Vector Database Cost Calculator

Each vector takes dimensions × bytes per dimension, plus metadata. Add index overhead and replicas to get stored size, then price storage, queries and writes.

Also called: Embedding storage calculator · Vector index size calculator

  • Last updated
  • Formula tested against reference values

Your numbers

IDs, text snippets and filter fields stored with each vector.

Graph or cluster structures on top of raw vectors. Measure it on your own index if you can.

1 = no replicas.

Example price only. Enter the current rate from your provider’s price list. GB here means a decimal gigabyte (1,000,000,000 bytes); 1 GiB = 1,073,741,824 bytes.

Example price only. Enter the current rate from your provider’s price list.

Example price only. Enter the current rate from your provider’s price list.

Result

Monthly cost
—

Calculating…

Raw vectors and metadata
—
Stored size
—
Stored size in binary units
—
Storage
—
Queries
—
Writes
—

How to use this calculator

  1. Enter or choose number of vectors.
  2. Enter or choose dimensions.
  3. Enter or choose precision.
  4. Enter or choose metadata per vector.
  5. Enter or choose index overhead.
  6. The monthly cost updates as you type. Use Copy result or Share to keep it.

Method

Raw bytes = Vectors × (Dimensions × Bytes per dimension + Metadata); Stored = Raw × (1 + Overhead%) × Copies; Cost = Stored GB × Price + Queries × Query price + Writes × Write price

Bytes per dimension
4 (float32), 2 (float16), 1 (int8), 0.125 (binary)
Copies
primary plus replicas

Worked example

  1. Per vector: 768 × 4 + 200 = 3,272 bytes; × 10 million = 32.72 GB.
  2. With 50% index overhead: 49.08 GB × 0.25 = 12.27.
  3. Queries 5 × 2.00 = 10; writes 1 × 1.00 = 1; total 23.27.

Ten million 768-dimension float32 vectors need about 49 GB with index overhead, about 23.27 a month at these example prices.

What the result means

Dimensions and precision drive size. Quantising float32 to int8 cuts raw vector storage by 75%, usually at a small cost in recall; check the trade-off on your own queries.

Assumptions and limits

  • All vectors have the same dimensions and average metadata size.
  • Index overhead applies to the whole stored record.
  • Many managed services price by pods, nodes or read and write units instead of GB; convert your plan to these terms or enter an equivalent rate.
  • Memory-resident indexes may need RAM sized to the index, which is priced differently from disk.

Questions

How big is one embedding?

Dimensions × bytes per value. A 768-dimension float32 vector is 3,072 bytes; a 1,536-dimension one is 6,144 bytes.

Does embedding generation cost go here?

Not directly. Creating embeddings is a one-off token cost per document; use the LLM Token Cost Calculator with your embedding model’s price.