LLM VRAM Calculator

LLM VRAM calculator.

Select a language model, quantization, and context length to calculate exactly how much VRAM your GPU needs.

Required VRAM

5.21GB

Breakdown

Model weights4.21 GB
KV Cache (ctx 4,096)0.50 GB
Runtime overhead0.50 GB
Total estimated5.21 GB

Recommended GPU

RTX 5060 8GB

8GB VRAM — Runs locally

View GPU on Amazon

Minimum recommended: RTX 5060 · RX 9060 XT 8 GB

Estimation based on Ollama / llama.cpp. Results may vary by framework.

New to local LLMs?

Read our full guide on how to run models on your PC with Ollama.

Frequently asked questions

How much VRAM does a language model need?

Roughly the parameter count multiplied by the bytes per parameter, plus the context. A 7-billion-parameter model at 4-bit needs about 4 GB, at 8-bit about 7 GB, and at full 16-bit precision about 14 GB. A 70B model at 4-bit needs around 40 GB, which is beyond any single consumer card.

What does quantization actually cost me?

It stores each weight in fewer bits, so the model shrinks roughly in proportion. Going from 16-bit to 8-bit is close to free in quality terms; 4-bit is the usual sweet spot and the loss is small for most uses; below 4-bit the degradation becomes noticeable.

Can I add a second graphics card to fit a bigger model?

Yes — the layers are split across cards and the totals add up, so two 16 GB cards can hold a model that needs 30 GB. Expect some loss to the traffic between them, and note that the slower card sets the pace.

What happens if the model does not fit?

Whatever does not fit spills into system memory, and the parts held there run at a fraction of the speed, because the processor's memory is far slower than the card's. A model that mostly fits is usable; one that mostly does not is not.

Does a longer context need more memory?

Yes, and people routinely forget it. The attention cache grows with the number of tokens in play, and at long contexts it can take more memory than the model weights themselves. Size for the context you intend to use, not the smallest one.

Related reading

Articles that explain the numbers this page works with, with worked examples and sources.

Keep going

Other tools and reference pages that pick up where this one leaves off.

Run a site about PC hardware? Put this calculator on it