Gemini 2.5 Pro vs Gemma 4 31B
Wins 2 of 7 areas
Facts · Images and charts
Wins 4 of 7 areas
Coding · Agents · Reasoning · Following instructions
Gemma 4 31B wins more areas, narrowly.Gemini 2.5 Pro is better at facts.
Scores updated · 35 tests both models report · How we compare
Where each one wins
Tests won in each of the seven areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.
- CodingWriting and fixing software13Gemma 4 31B3 of 5 tests · 1 tie
- AgentsCarrying out multi-step tasks on its own02Gemma 4 31B2 of 3 tests · 1 tie
- ReasoningHard problems that need careful thinking12Gemma 4 31B2 of 3 tests
- Following instructionsDoing exactly what it is asked01Gemma 4 31B1 of 1 test
- FactsGetting facts right instead of making them up21Gemini 2.5 Pro2 of 4 tests · 1 tie
- Images and chartsUnderstanding pictures, charts and video21Gemini 2.5 Pro2 of 4 tests · 1 tie
- Long documentsFinding answers in very long texts00Even0 each · 1 tie
Long documents and following instructions rest on a single test each.
What it costs
Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.
Gemma 4 31B costs 95% less for the same work.
The biggest differences
The three tests each model wins by the widest margin. Scores are out of 100.
Where Gemma 4 31B pulls ahead
- Follows unfamiliar, precisely checkable instructionsIFBench+26.9points ahead
- Command-line tasks in a real terminalTerminal-Bench 2.1+14.9points ahead
- Hard command-line tasks in a real terminalTerminal-Bench Hard+9.9points ahead
Where Gemini 2.5 Pro pulls ahead
- Short factual questions, answered correctlySimpleQA Verified+45.6points ahead
- Answers hard knowledge questions correctlyAA-Omniscience · Accuracy+19.1points ahead
- Fixes real GitHub issues in Python projectsSWE-bench Verified+11.2points ahead
Every test, side by side
All 35 tests both models report. The winning score is in its model's colour; marks a score checked independently.
CodingGemma 4 31B
- Terminal-Bench 2.1Gemma 4 31B by 14.928.543.4+14.9
- LMArena · WebDevGemma 4 31B by 141 rating points12241365+141 rating
- SWE-bench VerifiedGemini 2.5 Pro by 11.263.252+11.2
- Terminal-Bench HardGemma 4 31B by 9.926.536.4+9.9
- SciCodetie46.345.5tie
AgentsGemma 4 31B
- GDPValGemma 4 31B by 6.106.1+6.1
- τ-Bench V3 · BankingGemma 4 31B by 5.19.714.8+5.1
- Terminal-Bench 4.0tie00tie
ReasoningGemma 4 31B
- Humanity's Last ExamGemma 4 31B by 5.61823.6+5.6
- GPQA DiamondGemma 4 31B by 2.183.685.7+2.1
- CritPtGemini 2.5 Pro by 1.22.61.4+1.2
FactsGemini 2.5 Pro
- SimpleQA VerifiedGemini 2.5 Pro by 45.65610.4+45.6
- AA-Omniscience · AccuracyGemini 2.5 Pro by 19.13920+19.1
- AA-Omniscience · Non-hallucinationGemma 4 31B by 5.99.115+5.9
- Vectara HHEM hallucination ratelower is bettertie77.4tie
Images and chartsGemini 2.5 Pro
- MathVistaGemini 2.5 Pro by 4.683.979.3+4.6
- MMMU-ProGemini 2.5 Pro by 1.574.973.4+1.5
- LMArena · VisionGemma 4 31B by 14 rating points12631277+14 rating
- MMMUtie79.680.4tie
Following instructionsGemma 4 31B
- IFBenchGemma 4 31B by 26.948.775.6+26.9
Other results14 tests, not counted
Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.
- AA-OmniscienceGemini 2.5 Pro by 31.6-16.4-47.9+31.6
- τ²-BenchGemma 4 31B by 22.95476.9+22.9
- MATH-VisionGemma 4 31B by 12.373.385.6+12.3
- HMMT Feb. 2025Gemma 4 31B by 7.980.888.7+7.9
- HMMT Nov. 2025Gemma 4 31B by 7.58087.5+7.5
- τ²-Bench Telecom (AA run)Gemma 4 31B by 5.854.159.9+5.8
- Artificial Analysis Coding IndexGemini 2.5 Pro by 3.346.743.4+3.3
- AA Agentic IndexGemma 4 31B by 3.23.56.7+3.2
- vectara_avg_summary_lengthGemini 2.5 Pro by 30.6 rating points106.475.8+30.6 rating
- HLE (with tools)Gemini 2.5 Pro by 1.928.426.5+1.9
- vectara_answer_ratetie99.1100tie
- MMLU-Protie8685.2tie
- vectara_factual_consistencytie9392.6tie
- AA Intelligencetie1514.7tie
Questions people ask
Which is better, Gemini 2.5 Pro or Gemma 4 31B?
Gemma 4 31B wins four of the seven areas where both have results: coding, agents, reasoning and following instructions. Gemini 2.5 Pro wins facts and images and charts. They are level on long documents.
Which is better for coding?
Gemma 4 31B. It wins 3 of the 5 coding tests both models report; Gemini 2.5 Pro wins 1, and 1 is a tie.
Which is cheaper?
Gemini 2.5 Pro costs $1.25 per million input tokens and $10.00 per million output tokens; Gemma 4 31B costs $0.17 and $0.40. That makes Gemma 4 31B about 95% cheaper for the same work.
How do you compare the two?
We use the 35 benchmark tests both models have published scores on. The verdict counts the 21 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 14 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.