How Much Storage and RAM Does a Vector Database Need?
Estimate vector count, index size, memory and monthly cost for a RAG system from documents, chunk size, embedding dimensions, precision and index settings.

Sizing a vector database looks simple until the first bill arrives. The embeddings are just lists of numbers, but every document becomes several chunks, every chunk becomes a vector, and the indexes that make search fast like to keep everything in memory. A back-of-the-envelope estimate done before you build saves both money and an awkward migration later.
From documents to vectors
Start with your documents and their average length in tokens. A page of prose is roughly 500 words, or about 650 tokens in English. Choose a chunk size and an overlap. With 512-token chunks and 64 tokens of overlap, each new chunk advances 448 tokens, so a 2,000-token document makes five chunks. Fifty thousand such documents make 250,000 vectors.
Overlap is not free. In that example it adds about 11 percent to the tokens you embed. At half the chunk size, overlap nearly doubles everything.
From vectors to bytes
Each vector takes its dimension count times the bytes per number. A 1,536-dimension embedding at float32 is 6,144 bytes; at 3,072 dimensions it is 12 KB. Storing as float16 halves that, int8 quarters it, and binary quantization keeps one bit per dimension, a 32-fold saving. Product quantization stores a fixed code of m bytes per vector.
The index adds its own overhead. HNSW, the default in most vector databases, keeps a graph of neighbours: with M set to 16, roughly 132 bytes per vector. IVF indexes store a set of centroids plus an id per vector, and IVF-PQ keeps only the compact codes. Then come ids, metadata such as source and page numbers, and often the chunk text itself, which can be larger than the vectors.
Memory is usually the real cost
Graph indexes search fast only when vectors and graph live in RAM, and RAM costs far more per gigabyte than disk. That is why quantization matters: int8 storage cuts index memory to a quarter, usually with a small loss in recall, while the full-precision originals stay on disk for re-scoring the top results.
The Vector Database Storage Estimator splits storage into each of these parts, shows disk and RAM separately with replicas, and prices them at the per-gigabyte rates you enter. In the example above, float32 with HNSW needs about 1.46 GB of RAM; switching to int8 brings it to about 400 MB.
Plan for growth and re-embedding
A growth rate turns today's estimate into a table for the coming months. It also shows the one-time cost of embedding everything, which you pay again if you ever change embedding models, along with a full re-index. Saving a few scenarios, such as small model versus large model or float32 versus int8, makes the trade-offs easy to explain to the person who approves the budget.
Sensible defaults to start from
Overlap of 10 to 20 percent of the chunk is a common starting point. HNSW with M between 16 and 32 suits most data. For IVF, a list count around four times the square root of the vector count is a usual choice. Once you pass a million vectors, avoid brute-force flat search.
Leave room for reality
Real engines add write-ahead logs, segments, deleted-vector tombstones and space for compaction, so add 20 to 50 percent headroom. Managed services often charge by pods, units or requests rather than by the gigabyte, so convert their plan into rough per-gigabyte prices, and treat the result as a planning figure rather than a quote. Revisit the estimate once you have real traffic, because query load, not storage, often decides how many replicas you need.



