Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Sonnet 4.6 vs Gemma 4 31B

Anthropic · released

Wins 6 of 7 areas

Coding · Agents · Reasoning · Facts · Images and charts · Long documents

Google · released

Wins 1 of 7 areas

Following instructions

Claude Sonnet 4.6 is the stronger all-rounder.Gemma 4 31B is cheaper and better at following instructions.

Scores updated · 36 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.

Claude Sonnet 4.6$3.00 to read · $15.00 to write$18Price from Artificial Analysis
Gemma 4 31B$0.17 to read · $0.40 to write$0.57Price from Artificial Analysis

Gemma 4 31B costs 97% less for the same work.

The biggest differences

The tests each model wins by the widest margin, up to three each. Scores are out of 100.

Where Claude Sonnet 4.6 pulls ahead

  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+36.6points aheadClaude Sonnet 4.651.6Gemma 4 31B15
  • Real work tasks from 44 professionsGDPVal+30.6points aheadClaude Sonnet 4.636.7Gemma 4 31B6.1
  • Command-line tasks in a real terminalTerminal-Bench 2.1+27.8points aheadClaude Sonnet 4.671.2Gemma 4 31B43.4

Where Gemma 4 31B pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+19points aheadGemma 4 31B75.6Claude Sonnet 4.656.6

Every test, side by side

All 36 tests both models report. The winning score is in its model's colour; marks a score checked independently.

CodingClaude Sonnet 4.6

Full coding ranking

AgentsClaude Sonnet 4.6

Full agents ranking

ReasoningClaude Sonnet 4.6

Full reasoning ranking

FactsClaude Sonnet 4.6

Full facts ranking

Images and chartsClaude Sonnet 4.6

Full images and charts ranking

Long documentsClaude Sonnet 4.6

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 1956.675.6+19

Full following instructions ranking

Other results12 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, Claude Sonnet 4.6 or Gemma 4 31B?

Claude Sonnet 4.6 wins six of the seven areas where both have results: coding, agents, reasoning, facts, images and charts and long documents. Gemma 4 31B wins following instructions, and costs 97% less.

Which is better for coding?

Claude Sonnet 4.6. It wins 6 of the 6 coding tests both models report; Gemma 4 31B wins none.

Which is cheaper?

Claude Sonnet 4.6 costs $3.00 per million input tokens and $15.00 per million output tokens; Gemma 4 31B costs $0.17 and $0.40. That makes Gemma 4 31B about 97% cheaper for the same work.

How do you compare the two?

We use the 36 benchmark tests both models have published scores on. The verdict counts the 24 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 12 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.