Enter opens the highlighted result. Esc closes.

Gemini 3.6 Flash vs Gemma 4 31B

Gemini 3.6 Flash leads Gemma 4 31B on coding, 62.5 to 39.0 on the Vibe Coding Index, and Gemma 4 31B costs 9.4x less per output token ($0.40 vs $3.75 per million). Updated October 21, 2026; 56 benchmarks have a result for both.

Gemini 3.6 FlashGoogle
Coding
62.5
Overall
68.3
Output $/M
$3.75
53
Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
3
vs boards won of 56 shared

Gemini 3.6 Flash or Gemma 4 31B: which to pick

Pick Gemini 3.6 Flash for coding: it scores 62.5 on the Vibe Coding Index against 39.0 for Gemma 4 31B.

Pick Gemma 4 31B for output tokens 9.4x cheaper ($0.40 vs $3.75 per million) and work measured by ALE-Bench or SAGE (Vals AI), where it leads.

Shared results
56
Gemini 3.6 Flash only
53
Gemma 4 31B only
15
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
Gemini 3.6 Flash 62.5 from 4 benchmarks, Gemma 4 31B 39.0 from 2 benchmarks.
Widest category
Agentic work, 24.8 points apart on average over 1 shared benchmark.
Widest single gap
SimpleQA Verified: Gemini 3.6 Flash 66.2% against Gemma 4 31B 10.4%, 55.8 points apart on a 0 to 100 scale.
Output price
Gemini 3.6 Flash $3.75 against Gemma 4 31B $0.40 per million output tokens, 9.4x apart.
Context window
Gemini 3.6 Flash takes 1.05M 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
CategoryGemini 3.6 FlashBarsGemma 4 31BTies
Coding91
Intelligence20
Agentic work10
Reasoning80
Math30
Knowledge70
General232
All shared boards533
CodingLike-for-likeSix of these boards feed the Vibe Coding Index91
Coding benchmarks for Gemini 3.6 Flash and Gemma 4 31B
BenchmarkGemini 3.6 FlashGemma 4 31BLeader
LiveBench codingNot measured49.0%Only Gemma 4 31B measured
LMArena WebDev15381367Gemini 3.6 Flash
AA Coding Index69.243.4Gemini 3.6 Flash
LiveCodeBench (Vals AI)88.1%Not measuredOnly Gemini 3.6 Flash measured
SWE-bench Verified (Vals AI)79.6%Not measuredOnly Gemini 3.6 Flash measured
Vibe Code Bench (Vals AI)64.0%Not measuredOnly Gemini 3.6 Flash measured
Code migration (Vals AI)30.9%Not measuredOnly Gemini 3.6 Flash measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3.6 Flash measured
IOI (Vals AI)35.1%Not measuredOnly Gemini 3.6 Flash measured
Terminal-Bench 2.1 (Vals AI)73.8%Not measuredOnly Gemini 3.6 Flash measured
CyberBench (Vals AI)45.4%Not measuredOnly Gemini 3.6 Flash measured
SciCode53.4%45.5%Gemini 3.6 Flash
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
FrontierCode34.4%Not measuredOnly Gemini 3.6 Flash measured
WeirdML56.1%52.3%Gemini 3.6 Flash
ALE-Bench715.5925.5Gemma 4 31B
LMArena Text: coding14911459Gemini 3.6 Flash
LMArena Text: software and IT14921463Gemini 3.6 Flash
LMArena WebDev: React15281359Gemini 3.6 Flash
LMArena WebDev: HTML15471380Gemini 3.6 Flash
LMArena WebDev: from an image1545Not measuredOnly Gemini 3.6 Flash measured
SciCode10.8%8.9%Gemini 3.6 Flash
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 Gemini 3.6 Flash and Gemma 4 31B
BenchmarkGemini 3.6 FlashGemma 4 31BLeader
AA Intelligence Index34.014.7Gemini 3.6 Flash
Epoch Capabilities Index154.5143.0Gemini 3.6 Flash
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for Gemini 3.6 Flash and Gemma 4 31B
BenchmarkGemini 3.6 FlashGemma 4 31BLeader
AA Agentic Index29.04.2Gemini 3.6 Flash
Design Arena: agents building web apps1197Not measuredOnly Gemini 3.6 Flash measured
Design Arena: agents building full-stack apps1181Not measuredOnly Gemini 3.6 Flash measured
Design Arena: agents building mobile apps1199Not measuredOnly Gemini 3.6 Flash measured
Design Arena: agents building Android apps1203Not measuredOnly Gemini 3.6 Flash measured
Design Arena: agents building games1181Not measuredOnly Gemini 3.6 Flash measured
Design Arena: HTML slides1148Not measuredOnly Gemini 3.6 Flash measured
Design Arena: PowerPoint slides1146Not measuredOnly Gemini 3.6 Flash measured
Design Arena: spreadsheets1034Not measuredOnly Gemini 3.6 Flash 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
Finance Agent (Vals AI)56.3%Not measuredOnly Gemini 3.6 Flash measured
Tax Agent Bench (Vals AI)18.0%Not measuredOnly Gemini 3.6 Flash measured
Legal Research Bench (Vals AI)25.0%Not measuredOnly Gemini 3.6 Flash measured
Excel Modeling Benchmark (Vals AI)65.4%Not measuredOnly Gemini 3.6 Flash measured
BioMysteryBench (Vals AI)58.5%Not measuredOnly Gemini 3.6 Flash measured
Terminal-Bench-Science (Vals AI)4.3%Not measuredOnly Gemini 3.6 Flash measured
τ²-Bench TelecomNot measured65.5%Only Gemma 4 31B measured
APEX-Agents46.9%Not measuredOnly Gemini 3.6 Flash measured
Neither model has a result on the other 21 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index80
Reasoning benchmarks for Gemini 3.6 Flash and Gemma 4 31B
BenchmarkGemini 3.6 FlashGemma 4 31BLeader
GPQA Diamond93.4%Not measuredOnly Gemini 3.6 Flash measured
LiveBench reasoningNot measured68.3%Only Gemma 4 31B measured
MMMU Pro (Vals AI)88.4%Not measuredOnly Gemini 3.6 Flash measured
GPQA Diamond (Artificial Analysis run)92.8%85.7%Gemini 3.6 Flash
Humanity's Last Exam (Artificial Analysis run)40.8%23.6%Gemini 3.6 Flash
GPQA Diamond (Epoch AI run)94.1%75.8%Gemini 3.6 Flash
ARC-AGI91.2%Not measuredOnly Gemini 3.6 Flash measured
ARC-AGI-260.4%Not measuredOnly Gemini 3.6 Flash measured
Chess puzzles42.0%Not measuredOnly Gemini 3.6 Flash measured
Mystery game puzzles30.0%Not measuredOnly Gemini 3.6 Flash measured
LMArena Text: hard prompts14861448Gemini 3.6 Flash
LMArena Text: expert14901464Gemini 3.6 Flash
LMArena Text: hard prompts in English14841456Gemini 3.6 Flash
LMArena Vision: diagrams13141283Gemini 3.6 Flash
LMArena Vision: homework13141310Gemini 3.6 Flash
Kagi LLM BenchmarkNot measured63.5%Only Gemma 4 31B measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Gemini 3.6 Flash and Gemma 4 31B
BenchmarkGemini 3.6 FlashGemma 4 31BLeader
OTIS Mock AIME94.2%73.3%Gemini 3.6 Flash
FrontierMath, tiers 1 to 358.9%Not measuredOnly Gemini 3.6 Flash measured
FrontierMath, tier 422.0%Not measuredOnly Gemini 3.6 Flash measured
ProofBench36.0%Not measuredOnly Gemini 3.6 Flash measured
LMArena Text: math15081463Gemini 3.6 Flash
LMArena Text: mathematical work14921465Gemini 3.6 Flash
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index70
Knowledge benchmarks for Gemini 3.6 Flash and Gemma 4 31B
BenchmarkGemini 3.6 FlashGemma 4 31BLeader
MMLU Pro89.3%Not measuredOnly Gemini 3.6 Flash measured
LegalBench (Vals AI)86.7%Not measuredOnly Gemini 3.6 Flash measured
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
CorpFin (Vals AI)63.3%Not measuredOnly Gemini 3.6 Flash measured
TaxEval (Vals AI)74.9%Not measuredOnly Gemini 3.6 Flash measured
MortgageTax (Vals AI)67.6%61.4%Gemini 3.6 Flash
MedCode (Vals AI)53.1%Not measuredOnly Gemini 3.6 Flash measured
SimpleQA Verified66.2%10.4%Gemini 3.6 Flash
LMArena Text: science14891457Gemini 3.6 Flash
LMArena Text: medicine and healthcare14691451Gemini 3.6 Flash
LMArena Text: legal and government14791438Gemini 3.6 Flash
LMArena Text: business and finance14641430Gemini 3.6 Flash
FACTS Benchmark Suite65.3%45.3%Gemini 3.6 Flash
Neither model has a result on the other 5 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Gemini 3.6 Flash and Gemma 4 31B
BenchmarkGemini 3.6 FlashGemma 4 31BLeader
Design Arena: websites1300Not measuredOnly Gemini 3.6 Flash measured
Design Arena: UI components1297Not measuredOnly Gemini 3.6 Flash measured
Design Arena: game dev1263Not measuredOnly Gemini 3.6 Flash measured
Design Arena: data viz1289Not measuredOnly Gemini 3.6 Flash measured
Design Arena: 3D1272Not measuredOnly Gemini 3.6 Flash measured
Design Arena: all code categories1290Not measuredOnly Gemini 3.6 Flash measured
Design Arena: ASCII art1281Not measuredOnly Gemini 3.6 Flash measured
LiveBench designNot measured58.4%Only Gemma 4 31B measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index232
General benchmarks for Gemini 3.6 Flash and Gemma 4 31B
BenchmarkGemini 3.6 FlashGemma 4 31BLeader
LiveBench data analysisNot measured53.3%Only Gemma 4 31B measured
Public Benefits Bench (Vals AI)56.6%Not measuredOnly Gemini 3.6 Flash measured
SAGE (Vals AI)48.7%55.0%Gemma 4 31B
MedScribe (Vals AI)79.7%Not measuredOnly Gemini 3.6 Flash measured
Vals Multimodal Index65.1%Not measuredOnly Gemini 3.6 Flash measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)80.0%69.7%Gemini 3.6 Flash
DTBench95.5%82.7%Gemini 3.6 Flash
LMCA44.9%39.3%Gemini 3.6 Flash
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
Furniture assembly23.3%Not measuredOnly Gemini 3.6 Flash measured
LMArena Text14801443Gemini 3.6 Flash
LMArena Text: instruction following14671433Gemini 3.6 Flash
LMArena Text: creative writing14661417Gemini 3.6 Flash
LMArena Vision12991276Gemini 3.6 Flash
LMArena Text: English14821451Gemini 3.6 Flash
LMArena Text: non-English14701430Gemini 3.6 Flash
LMArena Text: Chinese15311475Gemini 3.6 Flash
LMArena Text: German1480Not measuredOnly Gemini 3.6 Flash measured
LMArena Text: Japanese1475Not measuredOnly Gemini 3.6 Flash measured
LMArena Text: Korean1429Not measuredOnly Gemini 3.6 Flash measured
LMArena Text: French15031436Gemini 3.6 Flash
LMArena Text: Spanish14761442Gemini 3.6 Flash
LMArena Text: Russian14881460Gemini 3.6 Flash
LMArena Text: Polish14731433Gemini 3.6 Flash
LMArena Text: multi-turn14811452Gemini 3.6 Flash
LMArena Text: longer queries14751446Gemini 3.6 Flash
LMArena Text: writing and language14701432Gemini 3.6 Flash
LMArena Text: entertainment and media14561405Gemini 3.6 Flash
LMArena Vision: English12951271Gemini 3.6 Flash
LMArena Vision: Chinese13571326Gemini 3.6 Flash
LMArena Vision: reading text13121282Gemini 3.6 Flash
LMArena Vision: humor12891280Gemini 3.6 Flash
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1226Only Gemma 4 31B measured
LMArena Vision: creative writing12781285Gemma 4 31B
LMArena Document14561425Gemini 3.6 Flash
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 Gemini 3.6 Flash and Gemma 4 31B
BenchmarkGemini 3.6 FlashGemma 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

Gemini 3.6 Flash$0.0026Fits in one request
Gemma 4 31B$0.0003Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Gemini 3.6 Flash$0.049Fits in one request
Gemma 4 31B$0.0082Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Gemini 3.6 Flash$0.188Fits 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 Gemini 3.6 Flash and Gemma 4 31B
SpecificationGoogle Gemini 3.6 FlashGoogle Gemma 4 31B
MakerGoogleGoogle
WeightsNo public weights listedOpen weights
ReleasedJuly 21, 2026April 2, 2026
Context window1.05M262K
Input $/Mtok$0.75$0.14
Output $/Mtok$3.75$0.40
Coding index62.539.0
Independent measurements behind it42
Cost per solved task$1.49Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.6 Flash better than Gemma 4 31B for coding?

Pick Gemini 3.6 Flash for coding: it scores 62.5 on the Vibe Coding Index against 39.0 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 9.4x cheaper ($0.40 vs $3.75 per million) and work measured by ALE-Bench or SAGE (Vals AI), where it leads.

Which is cheaper, Gemini 3.6 Flash or Gemma 4 31B?

Gemini 3.6 Flash costs $0.75 per million input tokens and $3.75 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for Gemini 3.6 Flash only.

Which has the bigger context window, Gemini 3.6 Flash or Gemma 4 31B?

Gemini 3.6 Flash, with 1.05M tokens against 262K.

How many benchmarks is the Gemini 3.6 Flash vs Gemma 4 31B comparison based on?

56 benchmarks have a result for both models as of October 21, 2026. Gemini 3.6 Flash'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/gemini-3-6-flash-vs-gemma-4-31b-it" title="Gemini 3.6 Flash 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/gemini-3-6-flash-vs-gemma-4-31b-it">LLMBenchmark.ai, Gemini 3.6 Flash vs Gemma 4 31B</a></p>