Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemini 2.5 Pro vs Gemma 4 31B

Google · released

Wins 2 of 7 areas

Facts · Images and charts

Google · released

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

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.

Gemini 2.5 Pro$1.25 to read · $10.00 to write$11Price from Google's own price page
Gemma 4 31B$0.17 to read · $0.40 to write$0.57Price from Artificial Analysis

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 aheadGemma 4 31B75.6Gemini 2.5 Pro48.7
  • Command-line tasks in a real terminalTerminal-Bench 2.1+14.9points aheadGemma 4 31B43.4Gemini 2.5 Pro28.5
  • Hard command-line tasks in a real terminalTerminal-Bench Hard+9.9points aheadGemma 4 31B36.4Gemini 2.5 Pro26.5

Where Gemini 2.5 Pro pulls ahead

  • Short factual questions, answered correctlySimpleQA Verified+45.6points aheadGemini 2.5 Pro56Gemma 4 31B10.4
  • Answers hard knowledge questions correctlyAA-Omniscience · Accuracy+19.1points aheadGemini 2.5 Pro39Gemma 4 31B20
  • Fixes real GitHub issues in Python projectsSWE-bench Verified+11.2points aheadGemini 2.5 Pro63.2Gemma 4 31B52

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

Full coding ranking

AgentsGemma 4 31B

Full agents ranking

ReasoningGemma 4 31B

Full reasoning ranking

FactsGemini 2.5 Pro

Full facts ranking

Images and chartsGemini 2.5 Pro

Full images and charts ranking

Long documentsEven

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 26.948.775.6+26.9

Full following instructions ranking

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.

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.