devpocket.dev

Embedding Storage Calculator

Estimate vector database storage, index overhead, replicas, RAM needs, and monthly cost.

Runs locally
Loading tool…

How to use

Enter the vector count and dimensions, then choose float32, float16, int8, or binary storage. Select Flat, HNSW, or IVF and set the index-specific option. Add replicas, metadata bytes per vector, and an infrastructure overhead factor. The unit switch changes only display units; storage pricing always uses decimal GB.

HNSW is an approximation: vectors × M × 2 × 4 bytes for the base graph, plus 10% for upper layers. IVF includes 8-byte list references and full-vector centroids. Database engines may add IDs, alignment, compression, cache, WAL, or page overhead not represented exactly here, so keep operational headroom.

FAQ

How much storage does one embedding use?

Multiply dimensions by bytes per dimension: float32 uses 4 bytes, float16 uses 2, int8 uses 1, and binary uses one bit per dimension rounded up to a full byte. Indexes and metadata are additional.

Is the HNSW memory estimate exact?

No. It estimates 2 × M four-byte neighbor IDs at the base layer and adds 10% for upper layers. Implementations differ in headers, alignment, deletion tracking, ID widths, and caching.

Does vector database disk size equal RAM usage?

Not necessarily. Some engines keep HNSW graphs and hot vectors in RAM while memory-mapping or caching other data from disk. Compression and workload also change resident memory.

Related tools