Gemma 4 31B: how much memory, and what runs it

Gemma 4 31B is a mid-size AI model you can download and run on your own computer. It needs about 21 GB of memory at standard quality.

Memory needed

About 21 GB

At standard quality, with room for a conversation of about 12 pages.

Cheapest machine that runs it

Mac mini M6 32GB

$1,416€1,530estimate

Slow~3.1 words/s

Commercial use

Yes

Licence details

Machines that run Gemma 4 31B

Each of these holds the whole model in memory. Speed is in words per second; from about 6 it keeps up with your reading.

Where our price is for a used card or Mac, these shops mostly sell new ones, so their price can be higher.

About these prices

Each price is the amount we last wrote down for that machine, with its date on the machine page. "Estimate" is our own figure: for a complete PC we add our estimate for the other parts to the graphics card price, and some Mac prices are estimates, not a checked shop listing. "Used" is a second-hand price. "Unverified" means we have no checked shop listing for that exact amount. The shop buttons open a search for that machine at each shop, so you see today's price there. Prices excl. shipping. Euro prices incl. VAT. Dollar prices are converted from our euro prices without EU VAT, before US sales tax.

Speeds and memory are our estimate from the hardware specs, not a measured test. Prices are dated and may change. How we calculate

Memory at each quality level

A lower quality level makes the model smaller, so it fits on a smaller machine. Standard (Q4) is what most people run.

QualityMemory needed
Q4 · standard (smallest that keeps quality)20.6 GB
Q5 · a bit sharper, a bit bigger24.5 GB
Q8 · near full quality, almost twice Q435.8 GB
FP16 · full quality, over three times Q464.8 GB

With a conversation of 8,192 tokens · about 12 pages of text.

How we worked this out

At standard quality: 18.3 GB for the model itself (a measured file), 1.5 GB for a conversation of 8,192 tokens, and 0.8 GB for the software.

Size source: huggingface.co/google/gemma-4-31B-it. The published size is rounded, so ours is an estimate.

Google's dense Gemma 4 model under the Apache 2.0 licence, for chat, writing and image input. At our default quality it needs about 20.6 GB, so a 24 GB graphics card holds it.

Licence

Commercial use: yes

Commercial use allowed. Keep the licence and copyright notice when you share the weights.

Licence: Apache-2.0 · checked 21 Oct 2026

Our reading of the licence, not legal advice.

Common questions

How much memory does Gemma 4 31B need?
About 20.6 GB at standard quality (Q4) with a conversation of 8,192 tokens: 18.3 GB for the model itself, 1.5 GB for the conversation and 0.8 GB for the software. The model size is a measured file; the conversation and software parts are our estimate.
Does Gemma 4 31B fit on a single 24 GB graphics card?
Yes, by our estimate. It needs about 20.6 GB, and we count 23.4 GB of a 24 GB card as usable.
Are the speeds measured?
No. They are our estimate from how fast each machine's memory is. Real speed also depends on the software and its settings.
Put a Gemma 4 31B badge on your site

Show this result on your own site, blog or forum post. The badge links back to the full answer.

[![Gemma 4 31B Q4 on RTX 3060 12GB: ✗ · needs 20.6 GB (estimate)](https://localllmrig.com/badge/gemma-4-31b/rtx-3060-12gb.svg)](https://localllmrig.com/can-i-run/gemma-4-31b/rtx-3060-12gb?utm_source=badge)

Model badge

[![Gemma 4 31B Q4: needs ~20.6 GB VRAM (estimate)](https://localllmrig.com/badge/gemma-4-31b.svg)](https://localllmrig.com/models/gemma-4-31b?utm_source=badge)