Enter opens the highlighted result. Esc closes.

Claude Opus 4.6 vs Gemma 4 31B

Claude Opus 4.6 leads Gemma 4 31B on coding, 57.2 to 39.0 on the Vibe Coding Index, and Gemma 4 31B costs 62.5x less per output token ($0.40 vs $25.00 per million). Updated October 22, 2026; 57 benchmarks have a result for both.

Claude Opus 4.6Anthropic
Coding
57.2
Overall
66.0
Output $/M
$25.00
54
Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
3
vs boards won of 57 shared

Claude Opus 4.6 or Gemma 4 31B: which to pick

Pick Claude Opus 4.6 for coding: it scores 57.2 on the Vibe Coding Index against 39.0 for Gemma 4 31B.

Pick Gemma 4 31B for output tokens 62.5x cheaper ($0.40 vs $25.00 per million) and work measured by FACTS Benchmark Suite or SAGE (Vals AI), where it leads.

Shared results
57
Claude Opus 4.6 only
53
Gemma 4 31B only
14
Like-for-like categories
7 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
Claude Opus 4.6 57.2 from 4 benchmarks, Gemma 4 31B 39.0 from 2 benchmarks.
Widest category
Agentic work, 26.6 points apart on average over 1 shared benchmark.
Widest single gap
SimpleQA Verified: Claude Opus 4.6 47.0% against Gemma 4 31B 10.4%, 36.6 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.6 $25.00 against Gemma 4 31B $0.40 per million output tokens, 62.5x apart.
Context window
Claude Opus 4.6 takes 1M tokens, Gemma 4 31B 262K.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryClaude Opus 4.6BarsGemma 4 31BTies
Coding70
Intelligence20
Agentic work10
Reasoning90
Math30
Knowledge71
General252
All shared boards543
CodingLike-for-likeSix of these boards feed the Vibe Coding Index70
Coding benchmarks for Claude Opus 4.6 and Gemma 4 31B
BenchmarkClaude Opus 4.6Gemma 4 31BLeader
SWE-bench Verified75.6%Not measuredOnly Claude Opus 4.6 measured
SWE-bench Multilingual72.0%Not measuredOnly Claude Opus 4.6 measured
LiveBench codingNot measured49.0%Only Gemma 4 31B measured
LMArena WebDev15471367Claude Opus 4.6
AA Coding IndexNot measured43.4Only Gemma 4 31B measured
LiveCodeBench (Vals AI)84.7%Not measuredOnly Claude Opus 4.6 measured
SWE-bench Verified (Vals AI)78.2%Not measuredOnly Claude Opus 4.6 measured
Vibe Code Bench (Vals AI)57.6%Not measuredOnly Claude Opus 4.6 measured
SciCodeNot measured45.5%Only Gemma 4 31B measured
Terminal-Bench Hard (Artificial Analysis run)48.5%36.4%Claude Opus 4.6
Terminal-Bench79.8%Not measuredOnly Claude Opus 4.6 measured
FrontierCode26.6%Not measuredOnly Claude Opus 4.6 measured
GSO-Bench41.2%Not measuredOnly Claude Opus 4.6 measured
WeirdML78.0%52.3%Claude Opus 4.6
Cybench93.0%Not measuredOnly Claude Opus 4.6 measured
ALE-BenchNot measured925.5Only Gemma 4 31B measured
LMArena Text: coding15341459Claude Opus 4.6
LMArena Text: software and IT15271463Claude Opus 4.6
LMArena WebDev: React15391359Claude Opus 4.6
LMArena WebDev: HTML15591380Claude Opus 4.6
LMArena WebDev: from an image1543Not measuredOnly Claude Opus 4.6 measured
SciCodeNot measured8.9%Only Gemma 4 31B measured
Neither model has a result on the other 17 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Opus 4.6 and Gemma 4 31B
BenchmarkClaude Opus 4.6Gemma 4 31BLeader
AA Intelligence Index31.914.7Claude Opus 4.6
Epoch Capabilities Index155.7143.0Claude Opus 4.6
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for Claude Opus 4.6 and Gemma 4 31B
BenchmarkClaude Opus 4.6Gemma 4 31BLeader
AA Agentic IndexNot measured4.2Only Gemma 4 31B measured
Design Arena: agents building web apps1206Not measuredOnly Claude Opus 4.6 measured
Design Arena: agents building full-stack apps1220Not measuredOnly Claude Opus 4.6 measured
Design Arena: agents building mobile apps1207Not measuredOnly Claude Opus 4.6 measured
Design Arena: agents building Android apps1197Not measuredOnly Claude Opus 4.6 measured
Design Arena: agents building games1212Not measuredOnly Claude Opus 4.6 measured
LiveBench researchNot measured44.4%Only Gemma 4 31B measured
LiveBench browserNot measured4.0%Only Gemma 4 31B measured
LiveBench long agenticNot measured13.3%Only Gemma 4 31B measured
τ²-Bench Telecom92.1%65.5%Claude Opus 4.6
APEX-Agents46.3%Not measuredOnly Claude Opus 4.6 measured
METR time horizons78.9%Not measuredOnly Claude Opus 4.6 measured
Remote Labor Index4.2%Not measuredOnly Claude Opus 4.6 measured
DeepResearch Bench55.3%Not measuredOnly Claude Opus 4.6 measured
Vending-Bench 2$8,018Not measuredOnly Claude Opus 4.6 measured
Neither model has a result on the other 26 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index90
Reasoning benchmarks for Claude Opus 4.6 and Gemma 4 31B
BenchmarkClaude Opus 4.6Gemma 4 31BLeader
GPQA Diamond89.7%Not measuredOnly Claude Opus 4.6 measured
LiveBench reasoningNot measured68.3%Only Gemma 4 31B measured
MMMU Pro (Vals AI)83.9%Not measuredOnly Claude Opus 4.6 measured
GPQA Diamond (Artificial Analysis run)89.6%85.7%Claude Opus 4.6
Humanity's Last Exam (Artificial Analysis run)39.9%23.6%Claude Opus 4.6
GPQA Diamond (Epoch AI run)90.5%75.8%Claude Opus 4.6
ARC-AGI94.0%Not measuredOnly Claude Opus 4.6 measured
ARC-AGI-269.2%Not measuredOnly Claude Opus 4.6 measured
SimpleBench67.6%Not measuredOnly Claude Opus 4.6 measured
Chess puzzles21.0%Not measuredOnly Claude Opus 4.6 measured
Mystery game puzzles25.0%Not measuredOnly Claude Opus 4.6 measured
EBR-bench12.7%Not measuredOnly Claude Opus 4.6 measured
LMArena Text: hard prompts15251448Claude Opus 4.6
LMArena Text: expert15441464Claude Opus 4.6
LMArena Text: hard prompts in English15301456Claude Opus 4.6
LMArena Vision: diagrams13401283Claude Opus 4.6
LMArena Vision: homework13371310Claude Opus 4.6
Kagi LLM Benchmark83.6%63.5%Claude Opus 4.6
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Claude Opus 4.6 and Gemma 4 31B
BenchmarkClaude Opus 4.6Gemma 4 31BLeader
AIME95.6%Not measuredOnly Claude Opus 4.6 measured
OTIS Mock AIME94.4%73.3%Claude Opus 4.6
FrontierMath, tiers 1 to 366.0%Not measuredOnly Claude Opus 4.6 measured
FrontierMath, tier 426.8%Not measuredOnly Claude Opus 4.6 measured
ProofBench50.0%Not measuredOnly Claude Opus 4.6 measured
LMArena Text: math15181463Claude Opus 4.6
LMArena Text: mathematical work15251465Claude Opus 4.6
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index71
Knowledge benchmarks for Claude Opus 4.6 and Gemma 4 31B
BenchmarkClaude Opus 4.6Gemma 4 31BLeader
MMLU Pro89.1%Not measuredOnly Claude Opus 4.6 measured
LegalBench (Vals AI)85.3%Not measuredOnly Claude Opus 4.6 measured
CaseLaw (Vals AI)62.1%52.6%Claude Opus 4.6
CorpFin (Vals AI)67.0%Not measuredOnly Claude Opus 4.6 measured
TaxEval (Vals AI)76.0%Not measuredOnly Claude Opus 4.6 measured
MortgageTax (Vals AI)68.5%61.4%Claude Opus 4.6
MedQA (Vals AI)95.4%Not measuredOnly Claude Opus 4.6 measured
MedCode (Vals AI)49.1%Not measuredOnly Claude Opus 4.6 measured
SimpleQA Verified47.0%10.4%Claude Opus 4.6
LMArena Text: science15191457Claude Opus 4.6
LMArena Text: medicine and healthcare15041451Claude Opus 4.6
LMArena Text: legal and government15121438Claude Opus 4.6
LMArena Text: business and finance14971430Claude Opus 4.6
FACTS Benchmark Suite41.5%45.3%Gemma 4 31B
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for Claude Opus 4.6 and Gemma 4 31B
BenchmarkClaude Opus 4.6Gemma 4 31BLeader
Design Arena: websites1291Not measuredOnly Claude Opus 4.6 measured
Design Arena: UI components1281Not measuredOnly Claude Opus 4.6 measured
Design Arena: game dev1277Not measuredOnly Claude Opus 4.6 measured
Design Arena: data viz1279Not measuredOnly Claude Opus 4.6 measured
Design Arena: 3D1273Not measuredOnly Claude Opus 4.6 measured
Design Arena: all code categories1288Not measuredOnly Claude Opus 4.6 measured
Design Arena: SVG1227Not measuredOnly Claude Opus 4.6 measured
Design Arena: ASCII art1255Not measuredOnly Claude Opus 4.6 measured
LiveBench designNot measured58.4%Only Gemma 4 31B measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index252
General benchmarks for Claude Opus 4.6 and Gemma 4 31B
BenchmarkClaude Opus 4.6Gemma 4 31BLeader
LiveBench data analysisNot measured53.3%Only Gemma 4 31B measured
SAGE (Vals AI)51.6%55.0%Gemma 4 31B
MedScribe (Vals AI)86.7%Not measuredOnly Claude Opus 4.6 measured
IFBench53.1%75.6%Gemma 4 31B
Long context reasoning (AA-LCR)78.0%69.7%Claude Opus 4.6
DTBench91.2%82.7%Claude Opus 4.6
LMCA55.8%39.3%Claude Opus 4.6
CL-bench20.7%Not measuredOnly Claude Opus 4.6 measured
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
Furniture assembly28.3%Not measuredOnly Claude Opus 4.6 measured
CL-bench Life17.0%Not measuredOnly Claude Opus 4.6 measured
LMArena Text15011443Claude Opus 4.6
LMArena Text: instruction following15211433Claude Opus 4.6
LMArena Text: creative writing15051417Claude Opus 4.6
LMArena Vision13161276Claude Opus 4.6
LMArena Text: English15111451Claude Opus 4.6
LMArena Text: non-English14881430Claude Opus 4.6
LMArena Text: Chinese15511475Claude Opus 4.6
LMArena Text: German1500Not measuredOnly Claude Opus 4.6 measured
LMArena Text: Japanese1488Not measuredOnly Claude Opus 4.6 measured
LMArena Text: Korean1464Not measuredOnly Claude Opus 4.6 measured
LMArena Text: French15121436Claude Opus 4.6
LMArena Text: Spanish15101442Claude Opus 4.6
LMArena Text: Russian14971460Claude Opus 4.6
LMArena Text: Polish14991433Claude Opus 4.6
LMArena Text: multi-turn15111452Claude Opus 4.6
LMArena Text: longer queries15181446Claude Opus 4.6
LMArena Text: writing and language15021432Claude Opus 4.6
LMArena Text: entertainment and media14921405Claude Opus 4.6
LMArena Vision: English13241271Claude Opus 4.6
LMArena Vision: Chinese13701326Claude Opus 4.6
LMArena Vision: reading text13261282Claude Opus 4.6
LMArena Vision: humor13141280Claude Opus 4.6
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing things12741226Claude Opus 4.6
LMArena Vision: creative writing13311285Claude Opus 4.6
LMArena Document15071425Claude Opus 4.6
Neither model has a result on the other 9 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Opus 4.6 and Gemma 4 31B
BenchmarkClaude Opus 4.6Gemma 4 31BLeader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

Claude Opus 4.6$0.018Fits in one request
Gemma 4 31B$0.0003Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.6$0.325Fits in one request
Gemma 4 31B$0.0082Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.6$1.25Fits in one request
Gemma 4 31B$0.032Fits in one request

Gemma 4 31B costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of Claude Opus 4.6 and Gemma 4 31B
SpecificationAnthropic Claude Opus 4.6Google Gemma 4 31B
MakerAnthropicGoogle
WeightsNo public weights listedOpen weights
ReleasedFebruary 4, 2026April 2, 2026
Context window1M262K
Input $/Mtok$5.00$0.14
Output $/Mtok$25.00$0.40
Coding index57.239.0
Independent measurements behind it42
Cost per solved task$1.56Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.6 better than Gemma 4 31B for coding?

Pick Claude Opus 4.6 for coding: it scores 57.2 on the Vibe Coding Index against 39.0 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 62.5x cheaper ($0.40 vs $25.00 per million) and work measured by FACTS Benchmark Suite or SAGE (Vals AI), where it leads.

Which is cheaper, Claude Opus 4.6 or Gemma 4 31B?

Claude Opus 4.6 costs $5.00 per million input tokens and $25.00 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for Claude Opus 4.6 only.

Which has the bigger context window, Claude Opus 4.6 or Gemma 4 31B?

Claude Opus 4.6, with 1M tokens against 262K.

How many benchmarks is the Claude Opus 4.6 vs Gemma 4 31B comparison based on?

57 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.6's coding index rests on 4 independent benchmarks and Gemma 4 31B's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/claude-opus-4-6-vs-gemma-4-31b-it" title="Claude Opus 4.6 vs Gemma 4 31B, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/claude-opus-4-6-vs-gemma-4-31b-it">LLMBenchmark.ai, Claude Opus 4.6 vs Gemma 4 31B</a></p>