Gemma 4 / Model comparison

Gemma Model Comparison

Every Gemma model side by side: the five Gemma 4 sizes, Gemma 4 against earlier generations, the specialised variants, and how Gemma differs from Gemini. Pick any two and see exactly where they differ.

Figures from Google's model card and technical report ·

Five sizes, one family 31B17.5 GB 26B A4B14.4 GB 12B6.7 GB E4B4.5 GB E2B2.9 GB More capableRuns on less memory at 4-bit
Bigger models know more; smaller ones run almost anywhere.
Interactive

Compare any two models

Choose two models. The better figure on each row is shown in green.

vs
First modelSecond model
Turn on JavaScript to use the comparison tool, or see the full tables below.
Pick two models to see a summary.

Scores are percentages from Google's model card and technical report, with thinking on for Gemma 4. Memory is Google's estimate for loading the weights; download sizes are from Ollama's tags page. Lower is better for memory and download size.

Gemma 4

The five Gemma 4 sizes

Same family, same interface, very different hardware needs.

ModelDesignParametersContextInputsMemory, 4-bitMemory, full
Gemma 4 31BDense30.7B256KText, image, video17.5 GB69.9 GB
Gemma 4 26B A4BMixture of Experts25.2B (3.8B active)256KText, image, video14.4 GB57.7 GB
Gemma 4 12BUnified, encoder-free11.95B256KText, image, video, audio6.7 GB26.7 GB
Gemma 4 E4BEdge4.5B effective128KText, image, video, audio4.5 GB17.9 GB
Gemma 4 E2BEdge2.3B effective128KText, image, video, audio2.9 GB11.4 GB

From Google's model card. Video is read as image frames on every size; audio only on 12B, E4B and E2B. All are Apache 2.0. File types for each size are on the models page; full figures in technical specs; memory planning in the VRAM guide and QAT builds.

Benchmarks

Scores by size

The three larger models sit close together. The step down to the edge models is much bigger.

MMLU Pro

Knowledge and reasoning
31B85.2
26B A4B82.6
12B77.2
E4B69.4
E2B60.0

LiveCodeBench v6

Writing code
31B80.0
26B A4B77.1
12B72.0
E4B52.0
E2B44.0
Test31B26B A4B12BE4BE2B
MMLU Pro · knowledge85.282.677.269.460.0
AIME 2026 · maths89.288.377.542.537.5
GPQA Diamond · science84.382.378.858.643.4
LiveCodeBench v6 · coding80.077.172.052.044.0
Tau2 · agent tasks76.968.269.042.224.5
MMMU Pro · vision76.973.869.152.644.2
RULER at 128K · long context96.489.891.286.670.4

Best in each row in green. Note the 12B edges past the 26B A4B on agent tasks and long-context retrieval. Every test, including audio and the Arena ranking, is on the benchmarks page; what the numbers mean in practice is under capabilities.

Close calls

The four decisions people get stuck on

31B vs 26B A4B

The 31B is a few points ahead on most tests and clearly ahead on agent tasks and long context. The 26B A4B uses about 3.8B of its parameters per token, so it answers faster and needs 3.1 GB less memory. Choose the 26B for everyday speed, the 31B when quality decides the outcome.

MMLU Pro 85.2 vs 82.6 · coding 80.0 vs 77.1 · memory 17.5 vs 14.4 GB

26B A4B vs 12B

The 26B A4B is stronger on knowledge, maths and coding. The 12B needs less than half the memory, accepts audio, and matches or beats it on agent tasks and 128K retrieval. On a 16 GB machine the 12B is the answer.

MMLU Pro 82.6 vs 77.2 · coding 77.1 vs 72.0 · memory 14.4 vs 6.7 GB

12B vs E4B

This is the biggest drop in the family: about 20 points on coding and 35 on maths. Move to E4B only when the 12B will not fit, such as on a phone or an 8 GB laptop.

MMLU Pro 77.2 vs 69.4 · coding 72.0 vs 52.0 · memory 6.7 vs 4.5 GB

E4B vs E2B

E4B is better across the board. E2B exists for the tightest devices: Google lists a 2.58 GB phone build against 3.66 GB for E4B. See the Android page for measured speeds.

MMLU Pro 69.4 vs 60.0 · coding 52.0 vs 44.0 · memory 4.5 vs 2.9 GB

Verdicts are this site's reading of Google's figures. More on the 12B, phones on the Android page and mobile downloads.

Generations

Gemma 4 vs Gemma 3

A generational jump, not a refresh: a more open licence, double the context, audio and video input, a thinking mode and far higher scores.

Gemma 4Gemma 3
ReleasedMarch 31, 2026March 2025
SizesE2B, E4B, 12B, 26B A4B, 31B270M, 1B, 4B, 12B, 27B
LicenceApache 2.0Gemma Terms of Use
Largest context256K128K
InputsText, image, video, audio on three sizesText and image
Thinking modeYesNo
System roleNativeFolded into the user turn
Function callingBuilt inThrough prompting
TestGemma 3 27BGemma 4 31BChange
MMLU Pro67.685.2+17.6
AIME 202620.889.2+68.4
GPQA Diamond42.484.3+41.9
LiveCodeBench v629.180.0+50.9
Tau216.276.9+60.7
MMMU Pro49.776.9+27.2
RULER at 128K66.096.4+30.4

From Google's Gemma 4 model card and technical report. Gemma 3 has no thinking mode, so its scores are without it. Gemma 3 still offers one thing Gemma 4 does not: a tiny 270M model. More on the Gemma 3 page.

History

Every Gemma generation

Five releases in just over two years. Gemma 4 is the first under the Apache 2.0 licence.

Gemma 1Feb 2024 Gemma 2Jun 2024 Gemma 3Mar 2025 Gemma 3nJun 2025 Gemma 4Mar 2026 Two years from 8K context and text only to 256K, images, audio and video
From Gemma 1 to Gemma 4.
GenerationReleasedSizesLargest contextInputsLicence
Gemma 4March 2026E2B, E4B, 12B, 26B A4B, 31B256KText, image, video, audioApache 2.0
Gemma 3nJune 2025E2B, E4B32KText, image, video, audioGemma Terms
Gemma 3March 2025270M, 1B, 4B, 12B, 27B128KText, imageGemma Terms
Gemma 2June 20242B, 9B, 27B8KTextGemma Terms
Gemma 1February 20242B, 7B8KTextGemma Terms

Earlier generations are summarised from Google's Gemma release history and were not re-checked line by line for this update; some sizes arrived after the first release date shown.

The wider family

Specialised Gemma variants

Not bigger or smaller chat models - different tools for different jobs.

🧲

EmbeddingGemma 2 New · Oct 6, 2026

Turns text, code, images, video and audio into vectors for search and retrieval. 740M parameters, 768 dimensions, Apache 2.0. It does not generate text.

EmbeddingGemma 2 guide →

🌫️

DiffusionGemma Experimental

A 26B A4B sibling that writes by refining blocks of text in parallel instead of one token at a time: faster output, lower benchmark scores. Aimed at in-line editing and code infilling.

More on the models page →

Earlier variants, built on older Gemma generations

TranslateGemmaTranslation between languages
MedGemma 1.5Medical text and images
FunctionGemmaA tiny model for calling tools
ShieldGemma 2Checking content for safety
T5Gemma v2Encoder-decoder tasks
PaliGemma 2Vision-language fine-tuning
CodeGemmaCode completion
VaultGemmaPrivacy-preserving training

These predate Gemma 4 and use the older Gemma Terms of Use. Dates and sizes are in Google's release history. For general coding, plain Gemma 4 is now the stronger choice - see Gemma 4 coding.

Open vs hosted

Gemma vs Gemini

Same research lab, different products. Gemma is the open model you download and run. Gemini is the larger, closed model Google runs for you.

Gemma 4Gemini
What it isOpen-weight models you downloadProprietary models offered as a service
How you get itHugging Face, Kaggle, Ollama, or a hosted APIGemini app, Gemini API, Google Cloud
Runs offlineYes - phone, laptop or your own serversNo
Your dataStays on your hardware when self-hostedProcessed in Google's cloud
Fine-tune and modifyFull access to the weightsNo access to the weights
CostFree weights; you pay for computePer-token pricing or a subscription
Raw capabilityStrong for its sizeHigher - Google's frontier models
UpkeepYou run and scale itManaged by Google

A common setup is Gemma 4 locally for routine and private work, with the hardest requests sent to a hosted model. Costs are on the pricing page; hosted access is on the API page. Against other open models, see Gemma 4 vs Qwen 3.5; against a coding tool, Gemma 4 vs Claude Code.

Decide

Which Gemma should you pick?

If you needPickWhy
The best answersGemma 4 31BTop score on every test in the table above
Speed on a 24 GB GPUGemma 4 26B A4BClose to the 31B while using a fraction of its weights per token
A 16 GB laptopGemma 4 12B6.7 GB at 4-bit, 256K context, and it accepts audio
Audio inputGemma 4 12B, E4B or E2BThe two largest models do not take audio
A phone or offline deviceGemma 4 E2B or E4BBuilt for on-device use
Search and retrievalEmbeddingGemma 2Purpose-built for embeddings
Something under 1 GBGemma 3 270MGemma 4 has no model that small
The strongest model, with no setupGeminiHosted, larger and managed for you

Ready to get one? Use the download hub, how to download and install guide; choose a runtime with the runtime selector; Mac users see Mac setup; teams see self-hosting. Try before installing in the playground or chat.

FAQ

Comparison questions

More answers on the full FAQ page.

Which Gemma 4 model is the best?

The 31B scores highest. Whether it is best for you depends on memory: the 26B A4B is close behind and faster, and the 12B is the strongest model that fits a 16 GB laptop.

Is the 31B worth it over the 26B A4B?

Sometimes. The gap is two to three points on knowledge, maths and coding, but wider on agent tasks (76.9 vs 68.2) and 128K retrieval (96.4 vs 89.8). If those matter, yes.

Why does a 26B model run faster than a 31B one?

The 26B A4B is a Mixture-of-Experts model. Each token uses about 3.8B of its parameters, so there is far less to compute per token. All of it still has to fit in memory.

Should I upgrade from Gemma 3?

For almost every use, yes. Scores are far higher, the licence is more permissive and you gain thinking, audio and a longer context. The exception is if you rely on the 270M model.

Does the Apache 2.0 licence apply to older Gemma models?

No. Gemma 3 and earlier remain under the Gemma Terms of Use. Only Gemma 4 and the models built on it are Apache 2.0.

What does the "E" in E2B and E4B mean?

"Effective". The edge models use techniques that let them run with the memory footprint of a 2B or 4B model while holding more parameters in total. See features.

Is Gemma 4 as good as Gemini?

No. Gemini's frontier models are larger and more capable. Gemma 4's case is that you can download it, run it privately and modify it. Known gaps are in limitations.

Are these comparisons independent tests?

No. The figures are Google's own published results, not measurements made by this site. Test on your own tasks before deciding; prompt advice is in the prompting guide and responsible-use notes under safety.

Found your model?

Download it, or look closer at the numbers first.

Top