GGUF File Size Estimator

Before you download a model, one number matters most: how big is the GGUF file? This estimator gives you an honest range instead of a falsely exact figure - because a real file's size depends on the parameter count, the quantization's per-block scale metadata, which tensors the publisher left at full precision, and per-tensor overhead. Pick a model, pick a quantization, get low and high bounds, check whether it fits your disk, and compare every quant level side by side.

Private by design. Every calculation happens in your browser with JavaScript. Your model choices and estimates never leave this page - nothing is uploaded, logged, or stored.

Model

Pick a preset (typical published values) or enter your own. For custom models, the model card on Hugging Face lists total parameters, hidden size, vocabulary and layer count.

0 for dense models. For MoE models, use the TOTAL parameter count above - file size scales with total, not active.

Quantization & tensor overhead

The nominal bits-per-weight is the lower bound. Every quantized block also stores fp16 scale metadata, so real files land between the low and high estimates.

GGUF stores a name, shape, quant type and offset per tensor. 250 B is a safe default.

Will it fit?

Optional: enter your free disk space and the RAM or VRAM you plan to run with, and the verdicts below check the high end of the range against both.

Where the bytes go

Low column assumes only the nominal bits per weight; high adds the scale-metadata overhead band for the selected quant family.

ComponentLowHighNote

Quantization ladder for this model

The same model at every quant level, with the current F16-embedding/output setting applied. A quick way to see what each step down actually saves.

QuantNominal bpwSize range (low - high)Typical quality

Why GGUF files differ in size

The first term of any GGUF file is simple: parameter count times bits per weight, divided by eight. A 7-billion-parameter model at Q4 (4 bits) is about 3.5 GB before anything else. But that number is only the floor, and three things push a real file above it. First, quantized weights are stored in blocks of 32 or 256 elements, and every block carries fp16 scale metadata alongside the compressed data - a few percent on top of the nominal bits for simple quants, more for the K-quants with their two-level scales and hmask. Second, publishers make independent decisions about which tensors to keep at full precision: many Llama releases leave the untied output head (and sometimes the embedding) at F16, which keeps up to 13% of an 8B model's parameters at 16 bits each. Third, GGUF is a container format: it stores a header plus a per-tensor record (name, shape, quant type, offset), so a dense 32-layer model adds a few hundred kilobytes while a MoE model with tens of thousands of tensors can add several megabytes. This estimator reports a range - low is the nominal-bits floor, high includes the scale-metadata overhead - because any single number would be pretending to know which publisher you are downloading from.

How the estimate is calculated

The quantized portion of the weights uses the model's total parameters minus whatever stays at F16. The low bound multiplies those parameters by the nominal bits per weight; the high bound multiplies by the nominal bits plus the family's overhead band:

Quant familyNominal bpwScale-metadata overhead (high bound)
F16 / BF1616None - exact, 2 bytes per parameter
Q8_08Up to +6.25% (one fp16 scale per 32-element block)
Q4_0 / Q4_14Up to +12.5-15.6% (fp16 scales, plus min for Q4_1)
Q5_K_M / Q5_K_S5Up to ~11-13% (two-level scales + hmask per 256-element block)
Q4_K_M / Q4_K_S4Up to ~11-16% (two-level scales + hmask; _M slightly above _S)
Q3_K_M / Q3_K_S, Q2_K3 / 2Up to ~14-25% (coarser quants pay proportionally more in scales)
IQ4_XS / IQ3_XXS4 / 3Up to ~19-25% (importance-matrix lookup structures vary by model)

If the F16 embedding/output option is on, the input embedding matrix (vocabulary x hidden size) and - unless the output head is tied - the output head are added at exactly 2 bytes per parameter, and those parameters are removed from the quantized portion. Tensor overhead is the tensor count times the bytes-per-tensor value plus about 1 KB of header; the auto estimate is roughly 9 tensors per layer (attention projections, feed-forward weights, norms) plus the embedding, output head and final norm for dense models, adding 3 per expert per layer for MoE. The total range is the sum of each component's low and high ends - never a single fabricated number.

How to use this estimator

  1. Pick your model from the preset list, or switch to "Custom model" and fill in total parameters, hidden size, vocabulary and layers from the model card. For MoE models (Qwen3 30B A3B, Mixtral, DeepSeek), enter the TOTAL parameter count and the experts-per-layer number - that is what determines file size.
  2. Choose a quantization level. Q4_K_M is the default choice for most people: near-Q5 quality at roughly half of F16's size. Use the ladder table below the results to see exactly what each step down saves before you commit.
  3. Decide on the F16 embedding/output option. If you are downloading a specific file and know its publisher keeps those tensors at full precision (common with Llama releases), switch it on. If you do not know, look at both ranges - the real file will sit inside one of them.
  4. Leave the tensor overhead on auto-estimate unless you can read the actual tensor count from a file header - the GGUF Inspector tool on this site shows that metadata for any file you already have. The difference is usually under 1% of total size for dense models.
  5. Enter your free disk space and RAM/VRAM to get fit verdicts. Remember the file size is a floor for memory: the whole weights tensor must be loaded, plus the KV cache on top - the LLM VRAM Calculator handles that side properly.
  6. Take the numbers with you: copy the text report into a download tracker or spreadsheet, export the ladder as CSV, or copy the share link so someone else reviews the same setup.

A worked example: Llama 3.1 8B at Q4_K_M

Llama 3.1 8B has 8.03 billion parameters with an untied output head of 128,256 x 4,096 - about 525 million parameters. With everything quantized at Q4_K_M (nominal 4 bits), the low bound is 8.03B x 4 / 8 = 4.0 GB, and the high bound with the K-quant scale overhead included lands near 4.6 GB. Now switch on "keep embedding and output head at F16": only 7.5 billion parameters are quantized (3.75-4.3 GB) and the two full-precision matrices add 1.05 GB, giving a range of about 4.8-5.4 GB. Published Llama 3.1 8B Q4_K_M files in the wild land around 4.9 GB - right inside the F16-output range, and clearly outside the all-quantized one. That gap is exactly why this tool reports ranges and offers the toggle instead of printing a single confident number: the difference between "fits on my 5 GB stick" and "does not fit" is one publisher decision you cannot see from the filename.

Common mistakes when estimating GGUF sizes

  • Mixing MoE total parameters with active parameters. Qwen3 30B A3B activates only 3.3B parameters per token, but the file stores all 30.5B. File size scales with the total; speed and VRAM scale with the active count plus whatever experts fit in cache. Entering the active number underestimates the download by nearly a factor of ten.
  • Trusting a single exact number from any calculator. A lone figure hides the scale-metadata overhead and the publisher's F16 decisions. If two sources disagree by 5-10%, both are probably right - they are just assuming different things. Ranges are the honest output.
  • Treating file size as your memory requirement. The weights must all be loaded, and the KV cache for your context window is added on top - a 4.9 GB Q4 model can need 6-7 GB of RAM at a long context. File size is a floor, never a budget.
  • Mixing decimal GB with binary GiB. Model publishers quote decimal gigabytes (1 GB = 109 bytes); Windows file properties show binary gibibytes. The same file reads about 7% smaller in Explorer than the download page promised - that is formatting, not a corrupt download.
  • Assuming "smaller quant is always worse". Q4_K_M beats Q4_0 at nearly the same size because of its two-level scales, and per-model quality varies with how well the tokenizer and data suit the quant. Use the ladder to compare sizes, then check per-model reports before going below Q4.

Privacy

This tool is entirely client-side. The parameter math, the overhead bands and the fit checks all run in JavaScript inside your own browser tab, so nothing you enter touches a server. There is no account, no tracking of your inputs, and no data retention - close the tab and everything is gone.

Related tools

Once the file size is settled, the rest of the local-LLM sizing workflow:


Luke Keam
Spot a bug or want a custom utility built? I'd love to hear from you. Get in touch
Luke Keam | techgeek.biz