Model comparison

Claude Sonnet 4 vs Gemma 4 31B IT

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 40.8 on the Noometry Index.

Last verified . 27 shared benchmarks.

Claude Sonnet 4 Anthropic

40.8

Rank #145 Confirmed

Gemma 4 31B IT Google

43.5

Rank #90 Confirmed

Summary

  • They share 27 benchmarks with published results for both. Claude Sonnet 4 scores higher in 3 categories and Gemma 4 31B IT in 6 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in multimodal, where Gemma 4 31B IT leads 41.6 to 26.2.
  • The biggest single-benchmark swing is LMCA: 29% for Claude Sonnet 4 and 39.3% for Gemma 4 31B IT.
  • Gemma 4 31B IT is cheaper at $0.09 / $0.34 per million input/output tokens, against $3 / $15 for Claude Sonnet 4.
  • Gemma 4 31B IT accepts more context: 262K tokens versus 200K.
  • Gemma 4 31B IT has downloadable open weights; the other is API-only.

Side by side

Claude Sonnet 4 and Gemma 4 31B IT specifications
Claude Sonnet 4Gemma 4 31B IT
ProviderAnthropicGoogle
Noometry Index40.843.5
Released2025-05-222026-04-02
WeightsProprietaryOpen
Context window200K262K
Max output64K33K
Input $ / M tokens$3$0.09
Output $ / M tokens$15$0.34
Results tracked5835

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Claude Sonnet 4 leads

Claude Sonnet 4: 43.5 (#88), Gemma 4 31B IT: 42.3 (#108)

Coding benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
SciCode40%43.4%
WeirdML46.1%52.3%
LMArena Coding14141459
ALE-Bench655.35925.5
SWE-bench Verified (bash only)64.9%—
Aider Polyglot61.3%—
LMArena WebDev—1366
GSO4.9%—

Agentic & Tool Use Not comparable

Claude Sonnet 4: 38.5 (#31), Gemma 4 31B IT: —

Agentic & Tool Use benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
TheAgentCompany33.1%—
Cybench35%—
DeepResearch Bench46.6%—
OSWorld43.9%—
METR Time Horizons62%—

Reasoning Gemma 4 31B IT leads

Claude Sonnet 4: 22.9 (#187), Gemma 4 31B IT: 27.2 (#122)

Reasoning benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
Kagi LLM Benchmark73%63.5%
CritPt0.3%1.4%
LMArena Hard Prompts13721448
DTBench77.1%82.7%
LMCA29%39.3%
Epoch Capabilities Index141.69142.74
ARC-AGI-25.9%—
SimpleBench45.5%—
NYT Connections (extended)—70.6%
ARC-AGI-140%—
Chess Puzzles—5%
EnigmaEval3.1%—
Thematic Generalization—53%
Surface Evolver Bench—30.6%
ForecastBench60.2—

Math Too close to call

Claude Sonnet 4: 43.3 (#80), Gemma 4 31B IT: 43.2 (#81)

Math benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
OTIS Mock AIME 2024-202571.1%73.3%
LMArena Math13751465
Omni-MATH60.2%—
MATH Level 584.4%—
FrontierMath (Feb 2025 set)4.1%—
FrontierMath Tier 4 (v1)0%—

Knowledge Claude Sonnet 4 leads

Claude Sonnet 4: 41.8 (#108), Gemma 4 31B IT: 37.9 (#151)

Knowledge benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
GPQA Diamond79.2%75.8%
Vectara Hallucination Rate10.3%7.4%
LMArena Expert13721465
Humanity's Last Exam7.8%—
SimpleQA Verified—10.4%
MMLU-Pro84.3%—
Confabulations13.2%—
GPQA (HELM)70.6%—

Multimodal Gemma 4 31B IT leads

Claude Sonnet 4: 26.2 (#121), Gemma 4 31B IT: 41.6 (#34)

Multimodal benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
LMArena Vision11911277
GeoBench37%—
VPCT34%—
LMArena Document—1425
MindCube44.8%—

Multilingual Gemma 4 31B IT leads

Claude Sonnet 4: 46.7 (#156), Gemma 4 31B IT: 53.8 (#57)

Multilingual benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
LMArena Non-English13331431
LMArena Chinese13501476
LMArena French13631435
LMArena Russian13551460
LMArena Spanish13571444
LMArena German1331—
LMArena Japanese1302—
LMArena Korean1291—

Instruction Following Gemma 4 31B IT leads

Claude Sonnet 4: 71.7 (#145), Gemma 4 31B IT: 75.5 (#61)

Instruction Following benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
LMArena Instruction Following13761433
IFEval84%—

Long Context Gemma 4 31B IT leads

Claude Sonnet 4: 33.7 (#259), Gemma 4 31B IT: 44.2 (#71)

Long Context benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
LMArena Longer Query13981446
Fiction.LiveBench46.9%—

Writing & Preference Gemma 4 31B IT leads

Claude Sonnet 4: 57.1 (#132), Gemma 4 31B IT: 60.5 (#96)

Writing & Preference benchmarks
BenchmarkClaude Sonnet 4Gemma 4 31B IT
LMArena Text13511443
LMArena Creative Writing13451415
EQ-Bench Creative Writing14831368
LMArena Multi-Turn13761452
Short-Story Creative Writing81.4%—
WildBench83.8%—
EQ-Bench 4—1120

Frequently asked questions

Is Claude Sonnet 4 better than Gemma 4 31B IT?

Gemma 4 31B IT is the stronger model overall, scoring 43.5 to 40.8 on the Noometry Index.

Which is cheaper, Claude Sonnet 4 or Gemma 4 31B IT?

Gemma 4 31B IT is cheaper. It lists at $0.09 per million input tokens and $0.34 per million output tokens; Claude Sonnet 4 lists at $3 and $15.

Is Claude Sonnet 4 or Gemma 4 31B IT better for coding?

Claude Sonnet 4 scores higher on coding benchmarks: 43.5 versus 42.3 in the Noometry coding category.

Which has the bigger context window?

Gemma 4 31B IT does, with 262K tokens against 200K.

How many benchmarks do Claude Sonnet 4 and Gemma 4 31B IT share?

27 benchmarks have published results for both models. Claude Sonnet 4 has 58 scored results on Noometry and Gemma 4 31B IT has 35.

Related comparisons

Go deeper