Enter opens the highlighted result. Esc closes.

Gemma 4 31B vs o3

o3 leads Gemma 4 31B on the Artificial Analysis Intelligence Index, 20.2 to 14.7, and Gemma 4 31B costs 20.0x less per output token ($0.40 vs $8.00 per million). Updated October 21, 2026; 55 benchmarks have a result for both.

Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
38
o3OpenAI
Coding
No data
Overall
51.1
Output $/M
$8.00
17
vs boards won of 55 shared

Gemma 4 31B or o3: which to pick

Only Gemma 4 31B has a coding score, 39.0 on the Vibe Coding Index; o3 has none, so the two cannot be ranked on coding.

Pick o3 for work measured by Terminal-Bench Hard (Artificial Analysis run) or WeirdML, where it leads.

Shared results
55
Gemma 4 31B only
16
o3 only
47
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
Gemma 4 31B 39.0 from 2 benchmarks, o3 not benchmarked.
Widest category
Agentic work, 15.2 points apart on average over 1 shared benchmark.
Widest single gap
SimpleQA Verified: Gemma 4 31B 10.4% against o3 49.4%, 39.0 points apart on a 0 to 100 scale.
Output price
Gemma 4 31B $0.40 against o3 $8.00 per million output tokens, 20.0x apart.
Context window
Gemma 4 31B takes 262K tokens, o3 200K.

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
CategoryGemma 4 31BBarso3Ties
Coding24
Intelligence02
Agentic work01
Reasoning72
Math21
Knowledge52
General225
All shared boards3817
CodingLike-for-likeSix of these boards feed the Vibe Coding Index24
Coding benchmarks for Gemma 4 31B and o3
BenchmarkGemma 4 31Bo3Leader
Aider polyglotNot measured81.3%Only o3 measured
SWE-bench VerifiedNot measured58.4%Only o3 measured
SWE-bench MultimodalNot measured36.0%Only o3 measured
LiveBench coding49.0%Not measuredOnly Gemma 4 31B measured
LMArena WebDev1367Not measuredOnly Gemma 4 31B measured
AA Coding Index43.4Not measuredOnly Gemma 4 31B measured
LiveCodeBench (Vals AI)Not measured83.9%Only o3 measured
LiveCodeBench (Artificial Analysis run)Not measured80.8%Only o3 measured
SciCode45.5%Not measuredOnly Gemma 4 31B measured
Terminal-Bench Hard (Artificial Analysis run)36.4%37.1%o3
GSO-BenchNot measured8.8%Only o3 measured
WeirdML52.3%52.4%o3
ALE-Bench925.5933.5o3
LMArena Text: coding14591407Gemma 4 31B
LMArena Text: software and IT14631415Gemma 4 31B
LMArena WebDev: React1359Not measuredOnly Gemma 4 31B measured
LMArena WebDev: HTML1380Not measuredOnly Gemma 4 31B measured
SciCode8.9%9.2%o3
Neither model has a result on the other 21 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Gemma 4 31B and o3
BenchmarkGemma 4 31Bo3Leader
AA Intelligence Index14.720.2o3
Epoch Capabilities Index143.0146.7o3
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Gemma 4 31B and o3
BenchmarkGemma 4 31Bo3Leader
AA Agentic Index4.2Not measuredOnly Gemma 4 31B measured
LiveBench research44.4%Not measuredOnly Gemma 4 31B measured
LiveBench browser4.0%Not measuredOnly Gemma 4 31B measured
LiveBench long agentic13.3%Not measuredOnly Gemma 4 31B measured
τ²-Bench Telecom65.5%80.7%o3
METR time horizonsNot measured65.4%Only o3 measured
GDPvalNot measured30.8%Only o3 measured
DeepResearch BenchNot measured45.2%Only o3 measured
OSWorldNot measured23.0%Only o3 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured63.0%Only o3 measured
BrowseComp-PlusNot measured65.9%Only o3 measured
Neither model has a result on the other 30 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index72
Reasoning benchmarks for Gemma 4 31B and o3
BenchmarkGemma 4 31Bo3Leader
GPQA DiamondNot measured84.1%Only o3 measured
LiveBench reasoning68.3%Not measuredOnly Gemma 4 31B measured
MMMU Pro (Vals AI)Not measured80.4%Only o3 measured
GPQA Diamond (Artificial Analysis run)85.7%82.7%Gemma 4 31B
Humanity's Last Exam (Artificial Analysis run)23.6%20.1%Gemma 4 31B
GPQA Diamond (Epoch AI run)75.8%81.8%o3
ARC-AGINot measured60.8%Only o3 measured
ARC-AGI-2Not measured6.5%Only o3 measured
SimpleBenchNot measured53.1%Only o3 measured
Chess puzzlesNot measured37.0%Only o3 measured
Mystery game puzzlesNot measured29.0%Only o3 measured
VPCTNot measured52.0%Only o3 measured
LMArena Text: hard prompts14481402Gemma 4 31B
LMArena Text: expert14641402Gemma 4 31B
LMArena Text: hard prompts in English14561411Gemma 4 31B
LMArena Vision: diagrams12831220Gemma 4 31B
LMArena Vision: homework13101234Gemma 4 31B
Kagi LLM Benchmark63.5%67.6%o3
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index21
Math benchmarks for Gemma 4 31B and o3
BenchmarkGemma 4 31Bo3Leader
AIMENot measured85.3%Only o3 measured
MATH 500 (Vals AI)Not measured94.6%Only o3 measured
MGSM (Vals AI)Not measured91.8%Only o3 measured
AA Math IndexNot measured88.3Only o3 measured
AIME 2025 (Artificial Analysis run)Not measured88.3%Only o3 measured
OTIS Mock AIME73.3%84.4%o3
FrontierMath, tiers 1 to 3Not measured33.3%Only o3 measured
MATH level 5Not measured97.8%Only o3 measured
LMArena Text: math14631426Gemma 4 31B
LMArena Text: mathematical work14651423Gemma 4 31B
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index52
Knowledge benchmarks for Gemma 4 31B and o3
BenchmarkGemma 4 31Bo3Leader
MMLU ProNot measured85.6%Only o3 measured
LegalBench (Vals AI)Not measured83.8%Only o3 measured
CaseLaw (Vals AI)52.6%Not measuredOnly Gemma 4 31B measured
CorpFin (Vals AI)Not measured59.7%Only o3 measured
TaxEval (Vals AI)Not measured74.6%Only o3 measured
MortgageTax (Vals AI)61.4%65.7%o3
MedQA (Vals AI)Not measured96.1%Only o3 measured
MedCode (Vals AI)Not measured47.3%Only o3 measured
MMLU Pro (Artificial Analysis run)Not measured85.3%Only o3 measured
SimpleQA Verified10.4%49.4%o3
GeoBenchNot measured74.0%Only o3 measured
LMArena Text: science14571429Gemma 4 31B
LMArena Text: medicine and healthcare14511448Gemma 4 31B
LMArena Text: legal and government14381428Gemma 4 31B
LMArena Text: business and finance14301393Gemma 4 31B
FACTS Benchmark Suite45.3%44.4%Gemma 4 31B
Neither model has a result on the other 2 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Web design benchmarks for Gemma 4 31B and o3
BenchmarkGemma 4 31Bo3Leader
Design Arena: websitesNot measured1036Only o3 measured
Design Arena: UI componentsNot measured1017Only o3 measured
Design Arena: game devNot measured1034Only o3 measured
Design Arena: data vizNot measured1200Only o3 measured
Design Arena: all code categoriesNot measured1020Only o3 measured
LiveBench design58.4%Not measuredOnly Gemma 4 31B measured
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index225
General benchmarks for Gemma 4 31B and o3
BenchmarkGemma 4 31Bo3Leader
LiveBench data analysis53.3%Not measuredOnly Gemma 4 31B measured
SAGE (Vals AI)55.0%41.8%Gemma 4 31B
MedScribe (Vals AI)Not measured76.7%Only o3 measured
IFBench75.6%71.4%Gemma 4 31B
Long context reasoning (AA-LCR)69.7%74.7%o3
DTBench82.7%84.8%o3
LMCA39.3%39.7%o3
Fiction.LiveBenchNot measured88.9%Only o3 measured
Creative writing (Lech Mazur)Not measured83.9%Only o3 measured
CL-benchNot measured17.8%Only o3 measured
Surface Evolver Bench30.6%Not measuredOnly Gemma 4 31B measured
LMArena Text14431410Gemma 4 31B
LMArena Text: instruction following14331368Gemma 4 31B
LMArena Text: creative writing14171359Gemma 4 31B
LMArena Vision12761214Gemma 4 31B
LMArena Text: English14511417Gemma 4 31B
LMArena Text: non-English14301401Gemma 4 31B
LMArena Text: Chinese14751437Gemma 4 31B
LMArena Text: GermanNot measured1420Only o3 measured
LMArena Text: JapaneseNot measured1403Only o3 measured
LMArena Text: KoreanNot measured1370Only o3 measured
LMArena Text: French14361430Gemma 4 31B
LMArena Text: Spanish14421395Gemma 4 31B
LMArena Text: Russian14601406Gemma 4 31B
LMArena Text: Polish14331438o3
LMArena Text: multi-turn14521405Gemma 4 31B
LMArena Text: longer queries14461372Gemma 4 31B
LMArena Text: writing and language14321372Gemma 4 31B
LMArena Text: entertainment and media14051373Gemma 4 31B
LMArena Vision: English12711221Gemma 4 31B
LMArena Vision: Chinese13261237Gemma 4 31B
LMArena Vision: reading text12821218Gemma 4 31B
LMArena Vision: humor12801222Gemma 4 31B
LMArena Vision: captioning12181210Gemma 4 31B
LMArena Vision: recognizing things12261234o3
LMArena Vision: creative writing12851201Gemma 4 31B
LMArena Document1425Not measuredOnly Gemma 4 31B measured
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 Gemma 4 31B and o3
BenchmarkGemma 4 31Bo3Leader
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

Gemma 4 31B$0.0003Fits in one request
o3$0.0060Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Gemma 4 31B$0.0082Fits in one request
o3$0.124Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Gemma 4 31B$0.032Fits in one request
o3$0.480Exceeds the context window

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 Gemma 4 31B and o3
SpecificationGoogle Gemma 4 31BOpenAI o3
MakerGoogleOpenAI
WeightsOpen weightsNo public weights listed
ReleasedApril 2, 2026April 16, 2025
Context window262K200K
Input $/Mtok$0.14$2.00
Output $/Mtok$0.40$8.00
Coding index39.0Not benchmarked
Independent measurements behind it20
Cost per solved taskNot computable$0.571
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemma 4 31B better than o3 for coding?

Only Gemma 4 31B has a coding score, 39.0 on the Vibe Coding Index; o3 has none, so the two cannot be ranked on coding. Pick o3 for work measured by Terminal-Bench Hard (Artificial Analysis run) or WeirdML, where it leads.

Which is cheaper, Gemma 4 31B or o3?

Gemma 4 31B costs $0.14 per million input tokens and $0.40 per million output tokens; o3 costs $2.00 and $8.00. Cost per solved task is known for o3 only.

Which has the bigger context window, Gemma 4 31B or o3?

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

How many benchmarks is the Gemma 4 31B vs o3 comparison based on?

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

Compare next