Home › AI costs › Vector Database Size Calculator

Vector Database Memory and Storage Calculator

Estimate how much RAM or disk your embeddings need. Index structures such as HNSW add overhead on top of the raw vectors.

%

Estimated memory needed

—

Raw vector data
—
Per vector
—
Index overhead
—

Size the index before you pick the instance

Vector search indexes usually live in RAM for speed, and memory is the expensive part of running them. The raw size is simple arithmetic; the index structure, metadata and replicas then multiply it. This calculator estimates the total so you can choose hardware or a hosted plan with headroom.

One million 1,536-dimension float32 vectors are 6.14 GB of raw data (6,144 bytes each). With 50% index overhead and one replica, plan for about 9.22 GB.

Memory by precisionfloat329.22 GBfloat164.61 GBint82.3 GBbinary288 MB
Total memory for your vector count, dimensions, overhead and replicas at each precision. The highlighted bar is your current choice.

How the estimate is built

Bytes per vector = dimensions × bytes per value (float32 = 4, float16 = 2, int8 = 1, binary = ⅛)
Raw size = vectors × bytes per vector
Total = raw size × (1 + index overhead) × replicas

Sizes are in decimal units: 1 GB = 10⁹ bytes. Cloud instances often quote memory in GiB (2³⁰ bytes, about 7% larger).

Common embedding sizes

1 million vectors, float32, 50% overhead
DimensionsPer vectorRawTotal
3841,536 bytes1.54 GB2.3 GB
7683,072 bytes3.07 GB4.61 GB
1,0244,096 bytes4.1 GB6.14 GB
1,5366,144 bytes6.14 GB9.22 GB
3,07212,288 bytes12.29 GB18.43 GB

Choosing the overhead

Graph indexes such as HNSW store links between neighbouring vectors; depending on settings like the number of links per node, that can add roughly 10% to 100% on top of raw data. Inverted-file indexes can be smaller. Add room for metadata, IDs and the original text if they are stored alongside, and leave free memory for queries and updates.

Quantization trade-offs

Storing values as float16 halves memory with little loss in recall for most models. int8 cuts it to a quarter, and binary to one thirty-second, but recall falls more, so many systems use a compressed index for search and re-rank the top results with full-precision vectors. Test recall on your own queries before committing.

Sizing for next year, not today

An index that fits today can run out of memory within months if the corpus keeps growing. Suppose you start with 1 million chunks and add 100,000 a month. After a year you have 2.2 million, which needs 20.28 GB at the default settings, or 40.55 GB with one replica for failover. Size the instance for the size you expect at the end of the planning period, and leave headroom for the memory that queries, inserts and the operating system need on top of the index.

When memory is not the only option

Some engines can keep full vectors on disk and only a compressed copy in memory, using the compressed copy to shortlist and the full vectors to re-rank. That trades some query latency for much lower memory. If you go that route, the "Raw vector data" figure (6.14 GB for the default) becomes a disk requirement rather than a RAM one.

Cutting the vector count

Chunk size drives vector count. Splitting documents into 200-token chunks creates roughly twice as many vectors as 400-token chunks. Fewer, larger chunks save memory but can hurt retrieval precision.

For hardware choices, see GPU buy vs rent; for API spend, AI cost calculators; for converting storage units, use the audio file size calculator as a bitrate-to-bytes reference.

Vector storage questions

How much memory do 1 million embeddings need?

At 1,536 dimensions in float32, 6.14 GB raw, or about 9.22 GB with 50% index overhead.

Does quantization reduce accuracy?

Somewhat. float16 usually loses little; int8 and binary lose more, often offset by re-ranking.

What is index overhead?

Extra memory the search index uses, such as HNSW neighbour links, on top of the raw vectors.

Are these GB or GiB?

Decimal GB (10⁹ bytes). A GiB is about 7% larger.

Related guide

Related calculators