LLM VRAM calculator

Estimate the GPU memory an open model needs from its parameters, quantisation and context length. Weights, KV cache and overhead, shown separately.

Updated Free, and it runs in your browser

Model
Your GPU
Quantisation
KV cache
18GB estimated

Fits a 24 GB card (RTX 3090, RTX 4090) with headroom.

  • Weights16.1 GB
  • KV cache0.7 GB
  • Overhead1.1 GB
Your cardRTX 4090
Yes
4.8 GB left

By card size

  • 8 GB No
  • 12 GB No
  • 16 GB No
  • 24 GB Yes
  • 32 GB Yes
  • 48 GB Yes
  • 80 GB Yes
  • 96 GB Yes

The parameter count includes the vision encoder; a text-only GGUF is slightly smaller.

How this is calculated

Weights = parameters × bytes per parameter for the chosen quantisation (FP16 2.00, Q8 1.06, Q6_K 0.82, Q5_K_M 0.71, Q4_K_M 0.58, Q3_K_M 0.47; effective averages that include scales and the unquantised embedding and output layers). KV cache = 2 × layers × KV heads × head dim × context × bytes per value for a standard transformer. Three newer designs are counted the way they actually cache: sliding-window layers (Gemma, gpt-oss) stop at their window, hybrid models (Qwen3.5 and later, Nemotron) only grow a cache on their few full-attention layers and carry a small fixed state for the rest, and latent-attention models (Mistral Small 4, GLM Flash) cache one compressed vector per layer. Each model page says which applies. Overhead = 0.5 GB runtime context plus 4% of weights. "Fits" means at or under 95% of the card, leaving room for the desktop and the runtime. Mixture-of-experts models load every expert, so total parameters are used. Architecture numbers come from each model's public config; the list says which.

Computed 16 October 2026Weights + KV cache + runtime overhead · an estimate from a stated formula

When the estimate is wrong, and in which direction

  • Flash attention and paged KV reduce real usage below the estimate, sometimes by a few gigabytes at long context.
  • Batch size above one multiplies the KV cache. This tool assumes a single conversation.
  • Vision and audio inputs add encoder memory the tool does not model.
  • Sliding-window, hybrid and latent-attention models are counted the way they actually cache, which is why Gemma, gpt-oss, Qwen3.5 and later, Nemotron, Mistral Small 4 and GLM Flash show a much smaller KV bar than their size suggests. A runtime that does not implement the matching cache stores every layer at full length and will use more than the estimate, by gigabytes at long context.
  • The custom model option assumes a standard transformer. For a hybrid model, enter only its full-attention layers in the layers field.
  • The desktop on the same card takes 0.5 to 2 GB. The 95% "fits" threshold assumes the card is otherwise free; on a desktop with a display attached, treat a tight fit as a maybe.

For the full background, read the self-hosted LLM guide. For a table of popular models at common settings, see which models fit on 16 to 96 GB. If you have a specific card in mind, the can-I-run-it checker answers the pairing and says what to change when it does not fit.

The numbers, once a month.

New open models and what they need, price moves, our newest measurements. One email a month; unsubscribe in one click.

Or follow new findings and data changes by RSS.

One email a month. Unsubscribe in one click; your address is used for nothing else. Privacy notice