All tools
Context · free, no sign-up

How much RAM does my vector database need?

A vector index wants to live in RAM. The graph walk touches memory in a scattered pattern, so spilling to disk costs far more than the size ratio suggests.

5 inputs4 questions answeredUpdated for 2026 hardware
Vector Database Memory Calculator — How much RAM does my vector database need?
Answer first

The short answer

Computed from this tool’s default settings — vectors stored and the rest as most people start. Change them below for your own case.

Fits in RAM4.29 GB

1,000,000 vectors need about 4.29 GB, comfortably inside 25.6 GB. You have room for roughly 5,973,269 at this dimension.

The calculator

Vector Database Memory Calculator

Whether the index fits in memory, and what happens when it does not.

Your setup
32

Source text, ids and filters stored alongside each vector.

Fits in RAM4.29 GB

1,000,000 vectors need about 4.29 GB, comfortably inside 25.6 GB. You have room for roughly 5,973,269 at this dimension.

Vectors3.07 GB
Graph1.01 GB
Metadata0.20 GB
Usable RAM25.6 GBReserving 20%
Ceiling5,973,269 vectors
Inputs

What each setting changes

Every input moves the result for a reason. This is what each one does and where to find the value for your own machine.

SettingDefaultWhat it changes
Vectors stored1000000Your own figure, starting from 1,000,000. Change it to match what you actually run.
Embedding dimension7685 options, from 384 to 3072.
Bytes per valuefloat323 options, from float32 to int8.
Available RAM32 GBAnywhere from 2 to 512 GB.
Metadata per vector200 bytesSource text, ids and filters stored alongside each vector.
Worked examples

Real answers across embedding dimension

The same calculation run at a range of settings, with everything else left at its default. These are computed by the tool itself, not written by hand.

Embedding dimensionFits in RAMVectorsGraphMetadata
3842.24 GB1.54 GB0.51 GB0.20 GB
7684.29 GB3.07 GB1.01 GB0.20 GB
10245.65 GB4.10 GB1.35 GB0.20 GB
15368.37 GB6.14 GB2.03 GB0.20 GB
307216.5 GB12.3 GB4.06 GB0.20 GB

1,000,000 vectors need about 2.24 GB, comfortably inside 25.6 GB. You have room for roughly 11,413,896 at this dimension.

Method

How this is calculated

No lookup tables and no invented constants. Here is the arithmetic, so you can check it against your own numbers.

HNSW-style indexes want to be resident in RAM: the graph walk touches memory in a scattered pattern, so spilling to disk costs far more than the size ratio suggests. The question is binary — does it fit.

Metadata is easy to forget and often exceeds the vectors themselves when the source text is stored inline. Keep the text in a separate store and hold only ids in the index if memory is tight.

These are well-founded engineering estimates, not benchmark results. Your quantisation, runtime and context length all move the real number, and usable memory is an assumption rather than a specification. See the full methodology for every assumption behind these figures.

Use cases

Who this is for

The three situations that bring people to this calculation.

Use case 01

Sizing a server

Check the index fits before deploying.

Use case 02

Scaling up

Find the vector ceiling for your RAM.

Use case 03

Slow search

Confirm whether you have started paging.

Walkthrough

How to use this calculator

Four steps, no account, nothing leaves your browser.

  1. Set vectors stored

    Start at the top of the panel. Every figure recalculates as you change it — there is no submit button, because watching the number move is the point.

  2. Adjust the rest to match your setup

    4 further settings: embedding dimension, bytes per value, available ram, metadata per vector. Defaults are the common case, so change only what differs for you.

  3. Read the headline, then the table

    The large figure answers the question. The table underneath shows how the answer changes across nearby settings, which is usually where the decision actually gets made.

  4. Check it against the method

    The arithmetic is written out above. If a number looks wrong for your hardware, the assumptions are the first place to look — usable memory and quantisation are the two that vary most.

Questions

How much RAM does my vector database need: common questions

The questions people ask about this, answered without hedging.

How much RAM does a vector database need?

The vectors, plus roughly a third again for the graph, plus metadata. A million 768-dimension float32 vectors is around 4 GB before the text you store with them.

What happens if the index does not fit?

Search slows disproportionately. Graph traversal jumps around memory, so page faults hit constantly rather than streaming — it is much worse than a linear slowdown.

How do I fit more vectors?

Quantise to int8, move stored text out of the index and keep only ids, or shard across machines. Quantisation is usually the cheapest first move.

Is metadata really a problem?

Often it is the largest component. Storing source text inline next to each vector can exceed the vectors themselves several times over.

The rest of the set

All 50 run on the same arithmetic, so answers across them agree.

Coverage

Searches this page answers

Different ways of asking the same question, all resolved above.

vector database memory requirementsqdrant ram usagehnsw memory usagepinecone vs self hosted memoryvector db sizinghow much ram for vector searchfaiss memory requirementshow much ram does my vector database needvector database memory calculatorvector database memory calculator onlinefree vector database memory calculator
Next step

Now find the models that fit

Sizing is only half the problem. Model Radar takes your hardware and shows which models actually run on it, ranked by what they are good at — the same arithmetic as this page, applied to every model worth running.