How Much VRAM Do I Need for an LLM? A Simple Formula
A simple way to estimate VRAM for any local LLM: weights from parameters and quant, plus context. With quick tables for 8B, 14B, 32B and 70B models.
The quick formula: weights + overhead + context.
Weights
Parameters (billions) times bits per weight divided by 8 gives gigabytes. Q4_K_M is about 4.8 bits per weight.
| Model | Q4_K_M | Q8_0 | FP16 |
|---|---|---|---|
| 8B | ~4.8 GB | ~8.5 GB | ~16 GB |
| 14B | ~8.4 GB | ~15 GB | ~28 GB |
| 32B | ~19 GB | ~34 GB | ~64 GB |
| 70B | ~42 GB | ~74 GB | ~140 GB |
Overhead and context
Add about 1 to 2 GB for runtime buffers, plus the KV cache, which grows with context length. A few thousand tokens adds little; 32K or more can add several gigabytes.
Rules of thumb
- 8 GB: 7B to 8B at Q4. See models for 8 GB VRAM.
- 12 to 16 GB: 12B to 14B at Q4 to Q6.
- 24 GB: up to about 32B at Q4. See models for 24 GB VRAM.
- 48 GB and up: 70B at Q4.
Calculate yours
Use the model size calculator, the GGUF quant picker and the detailed LLM VRAM calculator.
Common questions
Can I run a model bigger than my VRAM?
Yes, by offloading layers to system RAM, but generation slows sharply.
Does context length really matter?
Yes. Long contexts can add several gigabytes, especially on models without grouped-query attention.
Related reading
Tokens Per Second Explained: How Fast Will My LLM Run?
GuideWhich GGUF Quant Should I Download? A Decision Guide
GuideWhat Is a Token in AI? Tokens, Words and Context Explained
Free toolLLM VRAM Calculator
Browse more: all guides · comparisons · glossary · free tools