Don’t know which model to look up? Start from your graphics card instead: see what LLM your GPU can run. Check my GPU →

VRAMCalculator.com

VRAM Calculator for Local LLMs

Required VRAM 0.0 GB
Model weights 0.0 GB
KV cache 0.0 GB
Runtime overhead 0.0 GB
How this result is calculated

Matching GPU options

smallest viable pools first
Calculator assumptions

Weights: parameters x bits per weight / 8, or the published file size where a real GGUF exists and we have recorded it. Observed beats computed.

KV cache: layers x KV heads x head dimension x context x K/V tensors x bytes per element. Concurrent sequences multiply it only on Ollama, which allocates memory per request; llama.cpp, LM Studio, vLLM and ExLlamaV2 share one pool across sequences. Architecture-aware: MLA and sliding-window models cache far less. Quantizing the cache with -ctk/-ctv shrinks it further.

Runtime: a fixed floor plus a small percentage, because most of this cost is CUDA context and compute buffers that do not grow with the model. llama.cpp 0.3 GB + 1%, measured on real cards with a prompt filling the window; with a q8_0 or q4_0 cache it also counts one layer of that cache at full precision, which llama.cpp keeps while it works. Ollama 0.9 GB + 3%, LM Studio 1 GB + 3%, vLLM 2 GB + 5%, ExLlamaV2 0.6 GB + 2%. Changed 2026-10-02 for llama.cpp, from 0.75 GB + 2%; screenshots taken before that date show the old figures.

Hardware: a card counts as a fit when the total plus 5% fits, keeping room for the desktop on a card that also drives your screen. Datacenter cards that keep ECC in their own memory (Tesla T4, L4, A10, A40, L40, L40S, P40) are counted at what they report, about 6% under the label. Multi-GPU fits include extra headroom for PCIe and tensor-parallel synchronization.

GGUF files: read entirely in your browser, header only. The file is never uploaded. Weight size is measured from the file itself.

Domain for sale: voxllm.com

Got your number? Now see it the other way round: what your GPU can run →

How much VRAM do I need to run an LLM?

Three things, added together: the model's weights, the KV cache for your context, and what the inference engine keeps for itself. This VRAM calculator adds them for the model, quantization, context length and backend you pick above, and the default view shows how it lands: Qwen3.8 27B at Q4_K_M with 8,192 tokens of context in llama.cpp needs 14.7 GB of weights on the card, 0.7 GB of KV cache and about 0.5 GB of overhead, 15.8 GB in total.

We test those totals on real cards. In our latest round, 33 setups on llama.cpp across 16, 24 and 96 GB cards, every setup the calculator called a fit ran, 27 of 27, and every estimate sat at or above what the card actually used. The VRAM calculator accuracy record lists every run, misses included.

  • Weights are the model file. Where we have recorded a published GGUF file's size, the calculator uses that measured size instead of an estimate from the parameter count, because the two can differ by a lot at low bit widths. For every other model it multiplies parameters by bits per weight. llama.cpp keeps the token embedding table in system RAM unless the model ties it to the output, so on the card the weights come to a little less than the file.
  • The KV cache is the memory that holds your conversation, and it grows with every token of context. It is usually what decides whether a card that fits the model also fits the chat. On Qwen3.8 27B it is 0.6 GB at 8K and about 16 GB at the full 262K window.
  • Overhead depends on the engine: llama.cpp 0.3 GB plus 1%, measured on real cards with a prompt filling the context, Ollama 0.9 GB plus 3%, LM Studio 1 GB plus 3%, vLLM 2 GB plus 5%, ExLlamaV2 0.6 GB plus 2%. A single card then keeps 5% spare, because filling one to the last megabyte fails in practice.

Have a GGUF file already? Choose it in the calculator's GGUF field and it reads the model's header in your browser. Nothing uploads. It works as a GGUF VRAM calculator for files that are not in the list yet.

Start from the other side if you know your card and not your model: the GPU checker lists what your graphics card can run, the Mac checker does the same for Apple Silicon, and the speed checker estimates tokens per second once it fits.

Issue 1 of The Local LLM Sizing Guide

The Local LLM Sizing Guide. Issue 1, 30 September

That is one model on one card. The guide does every model on every card.

Every model in the catalogue sized for every card from 8 GB to 128 GB, with the context each cache type holds, by the engine we test on real cards.

Know what fits before you buy

From $9 a month. Card or crypto. The next issue included.

FAQ

How do I calculate VRAM for an LLM?

Add the weights (the model file size, or parameters times bits per weight divided by 8), the KV cache for your context length, and the engine's overhead, then keep about 5% spare on a single card. This LLM GPU memory calculator does all three and shows each part separately.

How much VRAM does a 27B model need?

It depends on the model's attention design, so pick yours above. Qwen3.8 27B at Q4_K_M comes to 15.8 GB with 8,192 tokens of context in llama.cpp using unsloth's 16.5 GB file, and about 16.7 GB with bartowski's 17.4 GB file. On a 16 GB card the first clears by about 0.2 GB, which the calculator flags as tight: workable on a card with no screen attached, too close on one that also runs your display. Plan on 20 GB or 24 GB. Longer context raises it, because the KV cache grows with every token.

Does context length change how much VRAM I need?

Yes. The weights stay the same size, but the KV cache grows with every token you keep: on Qwen3.8 27B it is 0.6 GB at 8K and about 16 GB at 262K, more than the 14.7 GB of weights on the card. Set the context window to the length you actually use before you trust the total.

How accurate is this VRAM calculator?

In our latest round of real runs, 33 setups on llama.cpp across 16, 24 and 96 GB cards, every setup it called a fit ran, 27 of 27, and 30 of the 31 that loaded came within 5% of the memory the card really used, never below it. Its misses were all on the safe side: it called a few setups too tight that squeezed in. The full table is in the VRAM calculator accuracy record.

Does this VRAM calculator upload my GGUF file?

No. The calculation runs in your browser, and the GGUF reader opens only the file's header on your machine, so the file never leaves it. There is no signup.

Hear about notable models when they reach the calculator

Sent by hand, only when a model worth running is added here, with the VRAM it needs at common quantizations. No schedule and no spam.

Subscription Form (#3)