AI economics · Free calculator

Vector Database Cost Calculator

Estimate vector database spend from vector count, dimensions, replicas, and query volume — plus the one-off embedding bill to build the index in the first place.

Disclaimer: Model prices move constantly. Every rate here is an editable input, not a quote — pull the current price page for your provider before you lock a margin model. Token counts are estimates (~0.75 words per token) and vary by tokenizer and language.

50,000
8
1,536
2

For availability. Multiplies storage.

0
2,000,000
8
0
400
10%
Try it like this

Tap a scenario to load realistic numbers, then tweak the sliders.

New here? Watch it work in 2 seconds — then tweak it for you.
Advertisement
Formula used

Vector storage and query cost

A float32 vector uses 4 bytes per dimension. Index structures and metadata add roughly 40%, and every replica multiplies the whole thing. Query cost is billed separately, usually per million queries.

GB = vectors × dims × 4 bytes × 1.4 overhead × replicas ÷ 1024³
1M vectors @ 1536 dims
~5.7 GB raw, ~8 GB stored
int8 quantisation saving
~75% of storage
Typical chunk size
300–600 tokens
Embedding price (small models)
$0.01 – $0.13 / M tokens
Backlink-friendly embed

Embed this calculator

Free to embed on any site. Inputs preserved, link back to RevenueLab. Each format trades polish for SEO juice.

<iframe src="https://www.revenuelab.fyi/embed/vector-database-cost-calculator?documents=50000&chunksPerDoc=8&dimensions=1536&replicas=2&storagePrice=0.25&queries=2000000&queryPrice=8&embedPrice=0.02&chunkTokens=400&refreshPct=10" width="100%" height="680" style="border:0;border-radius:12px;max-width:100%" loading="lazy" title="Vector Database Cost Calculator"></iframe>
<p style="font:12px/1.4 system-ui;color:#666;margin:6px 0 0">Calculator by <a href="https://www.revenuelab.fyi/vector-database-cost-calculator?documents=50000&chunksPerDoc=8&dimensions=1536&replicas=2&storagePrice=0.25&queries=2000000&queryPrice=8&embedPrice=0.02&chunkTokens=400&refreshPct=10" target="_blank" rel="noopener">RevenueLab</a></p>

Easiest to install — passes referral traffic and a referring-domain signal.

Cite this calculator

Writing about this topic? Grab a citation — every link helps keep these tools free.

APA
RevenueLab. (2026). Vector Database Cost Calculator. Retrieved from https://www.revenuelab.fyi/vector-database-cost-calculator
HTML
<p>Source: <a href="https://www.revenuelab.fyi/vector-database-cost-calculator" target="_blank" rel="noopener">Vector Database Cost Calculator — RevenueLab</a> (2026).</p>
Markdown
Source: [Vector Database Cost Calculator — RevenueLab](https://www.revenuelab.fyi/vector-database-cost-calculator) (2026).

Dimensions are the biggest lever you control

Storage scales linearly with dimensions. Dropping from 1536 to 768 halves your bill, and many modern embedding models support dimension truncation (Matryoshka embeddings) with only a small retrieval-quality loss. Test recall at 512 and 768 before defaulting to the maximum.

Quantisation is nearly free money

int8 quantisation cuts storage by about 75% versus float32, with a typical recall drop of 1–3%. Binary quantisation goes further (32× smaller) and is often paired with a float rescoring pass over the top candidates — the standard trick for very large indexes.

  • float32 → int8: ~75% storage reduction, 1–3% recall loss.
  • Binary + rescore: up to 32× smaller, near-parity recall.
  • Fewer replicas in non-critical environments.
  • Prune stale chunks — indexes only ever grow if you let them.

Don't forget the index-build bill

Embedding 400,000 chunks at 400 tokens each is 160 million tokens — cheap on a small embedding model, but not free, and you pay it again every time you change chunking strategy or switch embedding models. Settle your chunking before you index at scale.

FAQ

How much does a vector database cost?

A typical startup index — 50,000 documents at 8 chunks each, 1536 dimensions, 2 replicas, 2M queries/month — runs roughly $20–$40/month on managed pricing, plus a one-off index build of a few dollars. Enterprise indexes with millions of documents reach hundreds to thousands per month.

How much storage does 1 million vectors need?

At 1536 dimensions in float32: 1M × 1536 × 4 bytes ≈ 5.7 GB raw, or roughly 8 GB with index and metadata overhead. Multiply by your replica count.

Is pgvector cheaper than a managed vector DB?

Usually yes at small scale, since you're already paying for Postgres. The crossover is typically somewhere in the low millions of vectors, where dedicated ANN indexes and horizontal scaling start to matter more than the licence saving.

How do I reduce vector database costs?

In order: reduce dimensions, quantise to int8, cut replicas in non-production environments, prune stale chunks, and cache repeated queries. Dimensions and quantisation together commonly cut storage 80%+.

Should I count query-time embedding costs?

Yes, but they're small — a 30-token query at $0.02/M costs $0.0000006. At 100M queries/month it becomes real money; below 10M it's a rounding error.

What chunk size should I use?

300–600 tokens with 10–20% overlap is the common default for prose. Smaller chunks improve precision but multiply vector count (and therefore storage) proportionally.

How this calculator is built

Independently maintained

Written by Sam Doshi and the RevenueLab editorial team. We don't sell the data feeds this tool is built on.

Sourced from primary data

Benchmarks come from public AdSense / Stripe / IRS disclosures and reader-submitted data — never third-party "$X per view" claims. Full methodology.

Last editorial review

Reviewed on a rolling quarterly cycle. Dated reviews are published on the methodology record for each calculator.

Editorial standards

See our editorial policy and disclaimer. Results are estimates, not advice.