Model comparison

Claude Sonnet 4 vs Gemini 3.1 Pro Preview

Gemini 3.1 Pro Preview is the stronger model overall, scoring 56.7 to 40.8 on the Noometry Index.

Last verified . 40 shared benchmarks.

Claude Sonnet 4 Anthropic

40.8

Rank #145 Confirmed

Gemini 3.1 Pro Preview Google

56.7

Rank #23 Confirmed

Summary

  • They share 40 benchmarks with published results for both. Claude Sonnet 4 scores higher in 2 categories and Gemini 3.1 Pro Preview in 8 categories; 8 gaps are clear of the uncertainty.
  • The widest gap is in reasoning, where Gemini 3.1 Pro Preview leads 71.7 to 22.9.
  • The biggest single-benchmark swing is ARC-AGI-2: 5.9% for Claude Sonnet 4 and 77.1% for Gemini 3.1 Pro Preview.
  • Gemini 3.1 Pro Preview is cheaper at $2 / $12 per million input/output tokens, against $3 / $15 for Claude Sonnet 4.
  • Gemini 3.1 Pro Preview accepts more context: 1.05M tokens versus 200K.

Side by side

Claude Sonnet 4 and Gemini 3.1 Pro Preview specifications
Claude Sonnet 4Gemini 3.1 Pro Preview
ProviderAnthropicGoogle
Noometry Index40.856.7
Released2025-05-222026-02-19
WeightsProprietaryProprietary
Context window200K1.05M
Max output64K66K
Input $ / M tokens$3$2
Output $ / M tokens$15$12
Results tracked5871

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

Category by category

Coding Too close to call

Claude Sonnet 4: 43.5 (#88), Gemini 3.1 Pro Preview: 42.5 (#99)

Coding benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
SciCode40%58.9%
GSO4.9%22.6%
WeirdML46.1%72.1%
LMArena Coding14141484
ALE-Bench655.351,161
SWE-bench Verified—75.6%
DeepSWE—11.7%
SWE-bench Verified (bash only)64.9%—
Aider Polyglot61.3%—
LMArena WebDev—1447
MirrorCode—8.9%
AlgoTune—2.02

Agentic & Tool Use Too close to call

Claude Sonnet 4: 38.5 (#31), Gemini 3.1 Pro Preview: 37.7 (#34)

Agentic & Tool Use benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
DeepResearch Bench46.6%47.8%
METR Time Horizons62%77%
Terminal-Bench—80.2%
APEX-Agents—35.3%
TheAgentCompany33.1%—
τ²-bench Banking—26%
Cybench35%—
OSWorld43.9%—
PostTrainBench—22%
BALROG—57%
ExploitBench—26.1%
GBAEval—0.8%
GDP.pdf—17%
LMArena Search—1211
Vending-Bench 2—3,774

Reasoning Gemini 3.1 Pro Preview leads

Claude Sonnet 4: 22.9 (#187), Gemini 3.1 Pro Preview: 71.7 (#12)

Reasoning benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
ARC-AGI-25.9%77.1%
SimpleBench45.5%79.6%
ARC-AGI-140%98%
CritPt0.3%17.7%
EnigmaEval3.1%36.8%
LMArena Hard Prompts13721485
DTBench77.1%97.1%
LMCA29%53.8%
Epoch Capabilities Index141.69154.77
ForecastBench60.259
Kagi LLM Benchmark73%—
NYT Connections (extended)—97.4%
Chess Puzzles—55%
Thematic Generalization—79.4%
EBR-Bench—14.3%
Mystery Game Puzzles—34%

Math Gemini 3.1 Pro Preview leads

Claude Sonnet 4: 43.3 (#80), Gemini 3.1 Pro Preview: 62.1 (#34)

Math benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
OTIS Mock AIME 2024-202571.1%95.6%
LMArena Math13751485
FrontierMath (Feb 2025 set)4.1%36.9%
FrontierMath Tier 4 (v1)0%16.7%
FrontierMath (Tiers 1-3)—59.6%
FrontierMath Tier 4—26.8%
MathArena Final-Answer Competitions—86.5%
ProofBench—26%
Omni-MATH60.2%—
MATH Level 584.4%—

Knowledge Gemini 3.1 Pro Preview leads

Claude Sonnet 4: 41.8 (#108), Gemini 3.1 Pro Preview: 71.8 (#3)

Knowledge benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
GPQA Diamond79.2%94.4%
Humanity's Last Exam7.8%46.4%
Vectara Hallucination Rate10.3%10.4%
LMArena Expert13721485
SimpleQA Verified—73.5%
MMLU-Pro84.3%—
Confabulations13.2%—
GPQA (HELM)70.6%—

Multimodal Gemini 3.1 Pro Preview leads

Claude Sonnet 4: 26.2 (#121), Gemini 3.1 Pro Preview: 37.9 (#69)

Multimodal benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
LMArena Vision11911296
GeoBench37%—
VPCT34%—
Blueprint-Bench 2—26.5%
Furniture Assembly—26.7%
LMArena Document—1444
MindCube44.8%—

Multilingual Gemini 3.1 Pro Preview leads

Claude Sonnet 4: 46.7 (#156), Gemini 3.1 Pro Preview: 57.0 (#12)

Multilingual benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
LMArena Non-English13331477
LMArena Chinese13501529
LMArena French13631487
LMArena German13311491
LMArena Japanese13021493
LMArena Korean12911455
LMArena Russian13551498
LMArena Spanish13571479

Instruction Following Gemini 3.1 Pro Preview leads

Claude Sonnet 4: 71.7 (#145), Gemini 3.1 Pro Preview: 77.0 (#32)

Instruction Following benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
LMArena Instruction Following13761466
IFEval84%—

Long Context Gemini 3.1 Pro Preview leads

Claude Sonnet 4: 33.7 (#259), Gemini 3.1 Pro Preview: 47.4 (#18)

Long Context benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
LMArena Longer Query13981483
Fiction.LiveBench46.9%—
CL-bench—20.8%
CL-bench Life—16.9%

Writing & Preference Gemini 3.1 Pro Preview leads

Claude Sonnet 4: 57.1 (#132), Gemini 3.1 Pro Preview: 66.1 (#37)

Writing & Preference benchmarks
BenchmarkClaude Sonnet 4Gemini 3.1 Pro Preview
LMArena Text13511481
LMArena Creative Writing13451482
EQ-Bench Creative Writing14831491
LMArena Multi-Turn13761488
Short-Story Creative Writing81.4%—
WildBench83.8%—
EQ-Bench 4—1142

Frequently asked questions

Is Claude Sonnet 4 better than Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview is the stronger model overall, scoring 56.7 to 40.8 on the Noometry Index.

Which is cheaper, Claude Sonnet 4 or Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview is cheaper. It lists at $2 per million input tokens and $12 per million output tokens; Claude Sonnet 4 lists at $3 and $15.

Is Claude Sonnet 4 or Gemini 3.1 Pro Preview better for coding?

They score almost the same on coding (43.5 vs 42.5); test both on your own repository before choosing.

Which has the bigger context window?

Gemini 3.1 Pro Preview does, with 1.05M tokens against 200K.

How many benchmarks do Claude Sonnet 4 and Gemini 3.1 Pro Preview share?

40 benchmarks have published results for both models. Claude Sonnet 4 has 58 scored results on Noometry and Gemini 3.1 Pro Preview has 71.

Related comparisons

Go deeper