Vector Database Storage Calculator

Estimate the storage and RAM your vector database needs for any embedding model, index and vector count - free, online, no sign-up.

This vector database storage calculator estimates how much memory and storage your embeddings need, from the raw vectors through the HNSW, IVF or DiskANN index to metadata, stored text and replicas. It works as a vector DB and Milvus sizing calculator: it follows the index formulas in the Milvus documentation and suggests an AWS or GCP instance for the result. It is free, and nothing you enter leaves your browser.

Work it out from documents

Not sure how many chunks a document makes? Paste one into the RAG chunking visualizer.

Memory needed
Storage

  • Vector index
  • Metadata and text
  • Headroom
  • Milvus services

    Every index for these vectors

    IndexIndex in memoryTotal memoryStorageTrade-off

    Estimates from the index formulas in the Milvus documentation. Real usage varies with segment layout, deletes awaiting compaction and version; load a sample and check the query node's memory before buying hardware. Nothing you enter is saved or sent anywhere.

    Why use this vector database storage calculator

    Index-aware, not just vectors x dimensions

    HNSW graphs, IVF centroids, SQ8 and PQ codes, DiskANN's memory and disk split: each index is sized the way Milvus builds it.

    Compare every index at once

    One table shows memory and storage for every index your vector type supports, with the trade-off each one makes.

    From gigabytes to an instance

    Headroom and the Milvus services are added for you, and the result maps to a memory-optimized AWS or GCP machine.

    How to calculate vector database storage

    1. Enter the number of vectors. Type it, pick a preset, or work it out from documents times chunks per document. One chunk is one vector.
    2. Pick the embedding model. The model sets the dimensions: 1,536 for OpenAI text-embedding-3-small, 1,024 for BGE-M3, 384 for all-MiniLM-L6-v2. Choose Other for anything else.
    3. Choose the vector type and index. FLOAT_VECTOR with HNSW is the common default. The index list follows what Milvus supports for each vector type, and its parameters appear below it.
    4. Add metadata, text and replicas. Enter the bytes of metadata and stored chunk text per vector, the number of in-memory replicas, and how much headroom to leave.
    5. Read the sizing. See total memory, storage, a suggested AWS or GCP instance, and every index compared side by side for the same vectors.

    Vector DB and Milvus sizing formulas

    • Raw vectors = vectors x dimensions x bytes per dimension: 4 for float32, 2 for float16 and bfloat16, 1 for int8, 1/8 for binary.
    • HNSW = raw vectors + vectors x 2M x 4 bytes of graph links.
    • IVF_FLAT = raw vectors + nlist x dimensions x 4 bytes of centroids + 2 bytes per vector of cluster assignments.
    • IVF_SQ8 = 1 byte per dimension, plus the same centroids and assignments.
    • IVF_PQ = m x nbits / 8 bytes per vector, plus codebooks of 2^nbits x dimensions x 4 bytes, centroids and assignments.
    • DiskANN = 12.5% of the raw vectors as PQ codes plus a 10% search cache in memory; full vectors and a graph of 56 neighbours per vector on local disk.
    • Scalar fields = 8-byte primary key + metadata + stored text, per vector, loaded with the collection.

    Common vector database storage problems and fixes

    • Loading a collection fails for lack of memory: the loaded index plus scalar fields exceed what the query node can hold. Release collections you are not searching, move to IVF_SQ8, IVF_PQ or DiskANN, enable mmap for scalar fields, or add memory.
    • Memory use is higher than the estimate: growing segments that have not been indexed yet are searched as raw data, deleted rows stay until compaction runs, and every loaded collection counts. Keep the headroom, and watch the query node's memory after bulk inserts.
    • The index build runs out of memory: building an index needs its own working memory on top of the finished index. Give the index node (or the standalone machine) extra headroom while building, then size for the loaded index.
    • Recall dropped after switching to IVF_PQ or IVF_SQ8: quantization trades accuracy for memory. Raise nprobe at search time, use a larger PQ m, or go back to HNSW for the collections where recall matters most.
    • DiskANN searches are slow: DiskANN expects local NVMe SSD. Network block storage adds latency to every graph hop; use an instance with local NVMe for the query node.
    • Object storage keeps growing: old segments are kept until compaction and garbage collection remove them, and every index rebuild writes new files. Check that compaction is running, and plan storage at two to three times the estimate during heavy re-indexing.

    Count your chunks first with the RAG chunking visualizer: chunk size decides how many vectors a document becomes. To size the model that answers questions over them, use the vLLM memory calculator. When you are ready to run it, the Milvus developer guide walks through a self-hosted deployment on AWS, and the Milvus vector database launches from the Meetrix store on AWS or GCP. You can also browse all Meetrix features.

    Frequently Asked Questions

    Is this vector database storage calculator free?

    Yes. It is free, needs no account, and has no limit on how many configurations you compare.

    Is anything I enter sent anywhere?

    No. Every number is calculated in your browser with plain arithmetic; nothing you type is saved or sent to Meetrix or anyone else. The page records anonymous usage events (the calculator was used, a summary was copied), not your values.

    How much storage do 1 million vectors need?

    Raw float32 vectors take vectors x dimensions x 4 bytes. One million 1,536-dimension vectors (OpenAI text-embedding-3-small) are 5.7 GiB raw, about 6 GiB as an HNSW index in memory, and about 7 GiB once 1 KB of chunk text and some metadata per vector are loaded too. A 768-dimension model halves the vector part.

    How much RAM does Milvus need?

    Enough to hold every loaded index plus the scalar fields of the loaded collections, plus room for queries and the Milvus services. The Milvus docs set 8 GB as the minimum and 16 GB as the recommendation for standalone. For 10 million 1,536-dimension vectors with HNSW and 1 KB of text each, plan for about 70 GiB loaded, which with 30% headroom points to a 128 GiB machine.

    How is HNSW memory calculated?

    HNSW keeps the full vectors in memory and adds a graph: about vectors x 2M x 4 bytes, because each node keeps up to 2M neighbours on the bottom layer. With the Milvus default M of 30, that is 240 bytes per vector on top of the vector itself. The Milvus docs' example of 1 million 128-dimension vectors at M=16 comes to 512 MB of vectors and 128 MB of graph, which this calculator reproduces.

    Which vector index uses the least memory?

    IVF_PQ, then DiskANN, then IVF_SQ8. For 10 million 1,536-dimension vectors, HNSW needs about 59 GiB for the index, IVF_SQ8 about 14 GiB, DiskANN about 13 GiB of memory (with 127 GiB on fast local disk) and IVF_PQ about 7 GiB. Each step down costs some recall or speed; the comparison table under the calculator shows all of them for your numbers.

    Does storing the chunk text in Milvus use memory?

    Yes. Scalar fields, including a VARCHAR holding the chunk text, are loaded into memory with the collection unless you enable mmap. At 1 KB per chunk, 100 million chunks add about 100 GB. Large deployments often keep the text in object storage or a regular database and store only an ID and short metadata in Milvus.

    Should I use float16 or int8 vectors?

    FLOAT16_VECTOR and BFLOAT16_VECTOR halve vector memory with little effect on retrieval for most embedding models; 10 million 1,536-dimension HNSW vectors drop from about 70 to 41 GiB loaded. INT8_VECTOR quarters it but needs an embedding model that outputs int8, and Milvus supports HNSW for it. BINARY_VECTOR is 1 bit per dimension, for models trained for binary output.

    Can I reduce the dimensions instead?

    Often, yes. OpenAI's text-embedding-3 models take a dimensions parameter that returns shorter vectors (text-embedding-3-large at 1,024 instead of 3,072), and other Matryoshka-trained models can be truncated the same way. Memory falls in proportion. Check recall on your own queries before committing.

    What do replicas do to memory?

    Each in-memory replica loads a full copy of the collection onto its own query node, so memory multiplies by the replica count. Replicas add query throughput and availability, not capacity. Storage does not multiply: the data is stored once in object storage.

    What is the difference between memory and storage here?

    Memory is what the query node holds while a collection is loaded: the index and the scalar fields. Storage is what Milvus persists in object storage (MinIO in standalone, S3 or GCS in the cloud): the raw data as binlogs plus the built index files. Storage is cheap; memory decides the instance size.

    Does this work for Qdrant, Weaviate or pgvector?

    The vector part does: raw size is vectors x dimensions x bytes everywhere, and HNSW in every engine stores the vectors plus a neighbour graph of similar size. Each engine adds its own overhead and quantization options, so use the HNSW row as a starting estimate and confirm with a test load.

    How accurate is the estimate?

    The index formulas follow the Milvus documentation and match its worked examples. Real memory also depends on segment layout, deleted rows waiting for compaction, indexes still building and the Milvus version, which is why the calculator adds headroom. Load a representative sample and read the query node's memory before ordering hardware.

    Run open source tools on your own cloud

    Meetrix Store has pre-configured images for Jitsi Meet, Coturn, RustDesk, OpenVPN and 40+ more open source tools, ready to launch on AWS or Google Cloud in minutes.