How much VRAM does your local LLM actually need?
Most calculators stop at memory. This one also tells you what the tokens cost — hardware, electricity and depreciation — so you can see whether local inference beats a cloud API.
| Model | Weights (Q4) | KV @ 8K | Total needed | RTX 4090 24GB | RTX 3090 24GB | RTX 5090 32GB | Mac Studio 128GB |
|---|---|---|---|---|---|---|---|
| Llama 3.3 70B Meta | 42.4 GB | 2.7 GB | 46.5 GB | No | No | No | Fits |
| Qwen3 32B Alibaba | 19.7 GB | 2.1 GB | 23.3 GB | Tight | Tight | Fits | Fits |
| Mistral Small 24B Mistral AI | 14.2 GB | 1.3 GB | 17.0 GB | Fits | Fits | Fits | Fits |
| Qwen3 14B Alibaba | 8.9 GB | 1.3 GB | 11.7 GB | Fits | Fits | Fits | Fits |
| Qwen3 8B Alibaba | 4.9 GB | 1.2 GB | 7.6 GB | Fits | Fits | Fits | Fits |
| Llama 3.1 8B Meta | 4.8 GB | 1.1 GB | 7.4 GB | Fits | Fits | Fits | Fits |
Weights come from parameter count times bytes per parameter. KV cache comes from layers, KV heads and head dimension. Runtime overhead is treated as a fixed 1.5GB. Usable memory is a percentage of the card's capacity, because the driver and framebuffers take a cut.
Cost per million tokens adds electricity and depreciation, then divides by tokens produced per year at the estimated speed. Full formulas are on the TCO page.
Why does Q4 need 0.60 bytes per parameter, not 0.50?
Why calculate KV cache separately?
Are the tokens/sec numbers measured?
Does a 70B model really not run on 24GB?
All throughput figures are estimates derived from memory bandwidth and published measurements. VRAM figures are computed from model architecture and quantization assumptions. Verify against your own runtime before buying hardware.