Vector Database Cost Calculator

Estimate storage footprint and monthly query charges.

Estimated monthly database cost USD 200.77
Inputs
Try:
Display denomination only. No exchange-rate conversion is applied.
vectors
Stored vector count.
dimensions / vector
Embedding vector dimensions.
bytes
Use 4 for float32 or 2 for float16, subject to provider storage format.
%
Entered allowance for index metadata and fragmentation.
copies
Number of stored copies.
USD / GiB-month
Provider storage charge.
queries / month
Monthly query volume.
USD / 1,000 queries
Provider query rate.
Results & Graph
Estimated monthly database cost
USD 200.77

Estimated monthly database cost

Graph 1 • Calculator-specific flow Shows the calculated components and current result from this tool.
Estimated monthly database costStorage0.8Queries200Estimated monthly database cost: USD 200.77
Graph 2 • Modeled quantities Compares the values returned by the active calculation.
Storage 0.8 Queries 200
Graph 3 • Calculation checkpoints Displays the engine’s named calculation points in order.
0cost 108cost 216cost Storage: 0.772 cost 0.8 Storage Queries: 200 cost 200 Queries
Summary: 7.72 GiB modeled vector storage plus query charges.
Summary: 7.72 GiB modeled vector storage plus query charges.
⚠️ Actual index overhead, metadata, replicas, minimum spend, and tier pricing depend on the database service.
Interactive chart & math engine powered by CalculatorGraph

Formula: Vector Database Cost Calculator

Storage bytes = vectors × dimensions × bytes/value × overhead × replicas
monthly cost = storage + queries.
Storage bytes = vectors × dimensions × bytes/value × overhead × replicas; monthly cost = storage + queries.
  • Inputs: All units, rates, and allowances are entered by the user.

Rounding: Displayed values are rounded for readability; package and item quantities round upward.

Frequently Asked Questions

Where do I find the dimension count for my vectors?

From the embedding model, not the database. The model's documentation states its output length, and some models let you request a shorter one. You can also check directly by measuring the length of one embedding your code has produced. The default of 1,536 is just an example value; enter whatever your own model returns. Mixed models mean mixed sizes.

Should I enter 4 bytes per value?

Use 4 if the database stores full 32-bit floating point numbers, which is common when no compression is configured. Use 2 for half-precision storage and 1 for 8-bit quantized storage, if your service offers them and you have enabled them. Some services keep a full-precision copy alongside a compressed one; in that case, add the two sizes together.

Why does the answer hardly change when I add vectors?

Because on the default rates the query charge is far larger than the storage charge. Going from 600,000 to 1,500,000 vectors only moves the total from $200.46 to $201.16. If your provider charges more per GiB, or you run far fewer queries, storage will matter much more. Change the rates to your own before drawing conclusions. A tenth of the queries, by contrast, cuts the total to $20.77.

How do I set the index overhead from real data?

Load a sample, perhaps a few thousand vectors with the metadata you plan to keep, and note the storage size the service reports. Work out the raw size as vectors times dimensions times bytes per value. The reported size divided by the raw size, minus one, is your overhead as a fraction. Multiply by a hundred to enter it.

Does storing the original text with each vector count?

Yes, if you store it in the database. Metadata takes space and is usually billed at the same storage rate. Text chunks can be larger than the vectors themselves, so they can push the real overhead far above the default 35 per cent. If you keep the text in a separate store and save only an ID, the overhead stays smaller.

Is a GiB the same as a GB on my invoice?

Not quite. A GiB is based on powers of two and is about 7 per cent larger than a decimal GB. This calculator reports GiB. If your provider bills per decimal GB, the billed quantity will be slightly higher than the figure shown here, so the storage line will be slightly understated. On small storage bills the difference is usually trivial. It matters more when you plan memory for a self-hosted index.

How do I enter a query price quoted per million?

Divide it by a thousand, because the Query Rate field expects a price per 1,000 queries. Entering a per-million price unchanged makes the query line a thousand times too large. If the service bills read units rather than queries, estimate how many units a typical query uses and convert to a cost per thousand queries.

Should replicas include the primary copy?

Yes. The field counts total copies, so a single index with no backup is 1, and a primary plus two replicas is 3. Entering 2 when you mean one primary plus two replicas would understate storage by a third. Check how your provider counts, since some quote replicas in addition to the primary. When in doubt, read the usage page after setup.

Can I use this for a vector index inside my existing database?

For the storage estimate, yes. The footprint arithmetic is the same whether vectors live in a dedicated service or in an extension to a general database. The query rate usually does not apply, because you pay for the database server rather than per query. Set the query rate to zero and use the storage figure to plan disk and memory.

What does it cost to re-embed my collection?

This calculator does not cover it. Re-embedding means paying the embedding model to process all your text again, then writing every new vector into the database, which some services bill as write operations. If the new model has a different dimension count, rerun this page with it, since storage will change too. Budget for running old and new indexes side by side during the switch.

Why storage is under a dollar in the $200.77 default

Look at the default answer and then at the storage figure beneath it. A million vectors of 1,536 dimensions model out at 7.72 GiB, and at 0.1 per GiB-month that storage costs about 77 cents. The estimated monthly database cost is $200.77. Nearly all of it is queries.

The query side is 1,000,000 queries a month at 0.2 per 1,000 queries, which is a thousand blocks of queries at 0.2 each. That swamps the storage line by a factor of more than two hundred.

Whether that balance holds for you depends entirely on your rates and your traffic, both of which you type in. Some services charge little for queries and more for storage; some charge mostly for the compute that keeps the index in memory. The default is a worked example of the arithmetic, not a description of any provider. Its useful lesson is that you should never estimate a vector database bill from the size of the data alone. Price the traffic as well, and price it first if it is likely to be the bigger number.

Dimensions and bytes per value set the raw size

Each vector is a list of numbers, and Dimensions is how many numbers are in the list. You do not choose it freely: it is fixed by the embedding model that produces your vectors. Read it from that model's documentation, or check the length of one vector your pipeline has already produced.

Bytes per Value is how much space each number takes. The default of 4 bytes is a standard 32-bit floating point number. Many databases can store vectors at lower precision, such as 16-bit floats at 2 bytes, or 8-bit integers at 1 byte, often called quantization. Halving the bytes halves the modeled storage: at 2 bytes the default drops to 3.86 GiB, and at 1 byte to 1.93 GiB.

Using an embedding model with half the dimensions has the same effect as halving the bytes, and also gives 3.86 GiB on the default. Both choices trade some search accuracy for space, so test retrieval quality on your own data before assuming you can use them.

The raw size is vectors times dimensions times bytes. For the default that is about 6.1 billion bytes before any overhead.

What the 35 per cent index overhead stands for

A vector database does not store vectors in a plain list. To search quickly it builds an index on top, such as a graph linking each vector to its near neighbours, and that structure takes space. It also stores an ID for every vector and usually some metadata, such as the document a chunk came from or a tag used for filtering.

Index Overhead is a single percentage that stands for all of that. The default adds 35 per cent, which takes the raw 6.1 billion bytes to about 8.3 billion bytes, shown as 7.72 GiB. With overhead set to zero the figure drops to 5.72 GiB.

There is no universal right value. It depends on the index type, its settings and how much metadata you attach. Metadata can be the biggest surprise: if you store the original text of each chunk alongside its vector, that text can take more room than the vector itself. The reliable way to set this field is to load a sample of your real data, read the storage size the service reports, and compare it with the raw vector bytes for that sample.

Note too that sizes are shown in GiB, which are based on powers of two and are slightly larger than decimal gigabytes. Check which unit your provider bills in.

Scaling the collection: 600,000 to 1,500,000 vectors

The presets change the vector count while leaving everything else at the default. At 600,000 vectors the storage is 4.63 GiB and the monthly cost $200.46. At 1,500,000 vectors storage is 11.59 GiB and the cost $201.16.

Storage grows in a straight line with the count, but on these rates the total barely moves, because queries dominate. That is the honest result for this rate mix, and it is worth knowing before you spend effort trimming your collection. Deleting old vectors saves very little if query charges are most of your bill.

Your vector count is usually the number of chunks, not the number of documents. A long document split into many overlapping passages produces many vectors. Smaller chunks and more overlap both raise the count. If you plan to embed several fields of each record separately, each field adds its own vectors.

Allow for growth too. A collection that is a million vectors at launch may be several times that after a year of new content, so run the calculator at the size you expect to reach, not only the size you start with.

Replicas multiply storage, not queries

Replicas is the number of full copies of the index you keep. Extra copies protect against a machine failing and let more queries run in parallel. In the formula they multiply the storage footprint and nothing else.

Three replicas on the default give 23.17 GiB, three times the single copy, and the storage line rises to about 2.32. Because queries are billed per query rather than per copy, the query charge stays the same.

Whether that matches your bill depends on the service. On some managed services replication is built in and you never see it. On others you choose replicas and pay for each. Where the service bills by the node or instance rather than by the gigabyte, adding a replica means adding a whole machine, and the cost of that is not a storage-rate question at all.

The field takes whole numbers from 1 up, since a real index always has at least one copy and you cannot keep part of one.

Counting queries the way a search actually runs

Monthly Queries looks simple, but one search by a user is not always one query to the database. A retrieval pipeline may search more than one collection, run a keyword search and a vector search side by side, or fetch extra candidates in a second pass. Each of those may count as a separate billed request.

Find out what the service counts as a query. Some bill per request. Some bill by read units that depend on how many vectors are scanned or how many results are returned, so a request with a large result count or heavy filtering may cost more than a simple one. Read the pricing page's definition of the unit, not just the rate.

The query rate field expects a price per 1,000 queries. If the page quotes per million, divide by a thousand before entering it. Cutting traffic to a tenth, a hundred thousand queries a month, brings the default answer down to $20.77, which shows how directly this field drives the total on these rates.

Caching helps. If many users ask the same questions, caching recent results in your application can cut the number of queries that reach the database at all.

Checking the arithmetic by hand before you trust it

Because every rate is yours, a quick hand check catches most entry mistakes. Start with the raw bytes: vectors times dimensions times bytes per value. Multiply by one plus the overhead fraction, then by replicas. Divide by a GiB, which is a little over a billion bytes, and you have the storage figure the page shows. Multiply that by the storage rate.

For queries, divide the monthly count by a thousand and multiply by the query rate. On the default that is a thousand blocks at 0.2 each, which is where almost all of the $200.77 comes from.

If your hand figure and the page disagree by a factor of a thousand, a rate was entered in the wrong unit. If they disagree by a factor of two or four, look at bytes per value or replicas first. Those are the two fields most often left at a default that does not match the real setup.

Writes, node pricing and other charges outside the formula

The formula has two parts, storage and queries. Several common charges are not in it.

Writes are the first. Inserting, updating and deleting vectors can be billed separately, and the initial load of a large collection can be a noticeable one-time cost. Re-embedding everything when you switch embedding models means writing the whole collection again, plus paying for the new embeddings themselves.

Node or pod pricing is the second. Many vector databases are sold as provisioned capacity: you pay an hourly rate for machines sized to hold your index, and queries are effectively free up to what those machines can handle. For that model, use this page to estimate the 7.72 GiB footprint, or your own equivalent, and then use the provider's sizing guidance to choose a machine. The storage and query rates here would both be zero.

Self-hosting is the third. Running an open-source vector database on your own servers turns the bill into memory, disk and compute. The storage estimate still helps, since an index that must sit in memory needs at least that much RAM, plus headroom.