Gemma 4 26B A4B vs Gemma 4 31B
Updated October 21, 2026. 54 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick Gemma 4 31B for coding: it scores 38.3 on the Vibe Coding Index against 22.8 for Gemma 4 26B A4B.
Pick Gemma 4 26B A4B when output tokens cost 1.6x less, or when what matters is ALE-Bench or AA Intelligence Index, where it leads.
- Shared results
- 54
- Gemma 4 26B A4B only
- 0
- Gemma 4 31B only
- 14
- Like-for-like categories
- 7 of 9
Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.
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.
Coding
Vibe Coding Index, four public coding benchmarks
Gemma 4 31B
Gemma 4 31B scores 38.3 against 22.8.
1 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
Gemma 4 26B A4B
Gemma 4 26B A4B leads, 16.7 against 14.7.
Same board, both measured
Agentic work
AA Agentic Index
Gemma 4 31B
Gemma 4 31B leads, 4.2 against 2.9.
Same board, both measured
Long documents
Listed context window
No call
Both take 262K tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 26B A4B
Gemma 4 26B A4B $0.0002, Gemma 4 31B $0.0004 per turn.
List prices
At a glance
- Coding index
- Gemma 4 26B A4B 22.8 from 1 benchmark, Gemma 4 31B 38.3 from 2 benchmarks.
- Widest category
- Agentic work, 11.6 points apart on average over 2 shared benchmarks.
- Widest single gap
- τ²-Bench Telecom: Gemma 4 26B A4B 43.6% against Gemma 4 31B 65.5%, 21.9 points apart on a 0 to 100 scale.
- Output price
- Gemma 4 26B A4B $0.255 against Gemma 4 31B $0.40 per million output tokens, 1.6x apart.
- Context window
- Both take 262K tokens.
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.
| Category | Gemma 4 26B A4B | Bars | Gemma 4 31B | Ties |
|---|---|---|---|---|
| Coding | 1 | 9 | ||
| Intelligence | 1 | 1 | ||
| Agentic work | 0 | 2 | ||
| Reasoning | 0 | 8 | ||
| Math | 3 | 0 | ||
| Knowledge | 1 | 3 | ||
| General | 3 | 22 | ||
| All shared boards | 9 | 45 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index19
| Benchmark | Gemma 4 26B A4B | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 49.0% | Only Gemma 4 31B measured |
| LMArena WebDev | 1360 | 1367 | Gemma 4 31B |
| AA Coding Index | 39.3 | 43.4 | Gemma 4 31B |
| SciCode | 40.0% | 45.5% | Gemma 4 31B |
| Terminal-Bench Hard (Artificial Analysis run) | 25.0% | 36.4% | Gemma 4 31B |
| WeirdML | 35.2% | 52.3% | Gemma 4 31B |
| ALE-Bench | 927.2 | 925.5 | Gemma 4 26B A4B |
| LMArena Text: coding | 1446 | 1459 | Gemma 4 31B |
| LMArena Text: software and IT | 1454 | 1463 | Gemma 4 31B |
| LMArena WebDev: React | 1351 | 1359 | Gemma 4 31B |
| LMArena WebDev: HTML | 1362 | 1380 | Gemma 4 31B |
| Neither model has a result on the other 27 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
| Benchmark | Gemma 4 26B A4B | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Intelligence Index | 16.7 | 14.7 | Gemma 4 26B A4B |
| Epoch Capabilities Index | 141.9 | 143.0 | Gemma 4 31B |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Gemma 4 26B A4B | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Agentic Index | 2.9 | 4.2 | Gemma 4 31B |
| LiveBench research | Not measured | 44.4% | Only Gemma 4 31B measured |
| LiveBench browser | Not measured | 4.0% | Only Gemma 4 31B measured |
| LiveBench long agentic | Not measured | 13.3% | Only Gemma 4 31B measured |
| τ²-Bench Telecom | 43.6% | 65.5% | Gemma 4 31B |
| Neither model has a result on the other 34 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index08
| Benchmark | Gemma 4 26B A4B | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench reasoning | Not measured | 68.3% | Only Gemma 4 31B measured |
| GPQA Diamond (Artificial Analysis run) | 79.2% | 85.7% | Gemma 4 31B |
| Humanity's Last Exam (Artificial Analysis run) | 19.3% | 23.6% | Gemma 4 31B |
| GPQA Diamond (Epoch AI run) | 73.2% | 75.8% | Gemma 4 31B |
| LMArena Text: hard prompts | 1438 | 1448 | Gemma 4 31B |
| LMArena Text: expert | 1447 | 1464 | Gemma 4 31B |
| LMArena Text: hard prompts in English | 1448 | 1456 | Gemma 4 31B |
| LMArena Vision: diagrams | 1264 | 1283 | Gemma 4 31B |
| LMArena Vision: homework | 1293 | 1310 | Gemma 4 31B |
| Neither model has a result on the other 12 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Gemma 4 26B A4B | Gemma 4 31B | Leader |
|---|---|---|---|
| OTIS Mock AIME | 82.2% | 73.3% | Gemma 4 26B A4B |
| LMArena Text: math | 1470 | 1463 | Gemma 4 26B A4B |
| LMArena Text: mathematical work | 1475 | 1465 | Gemma 4 26B A4B |
| Neither model has a result on the other 10 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index13
| Benchmark | Gemma 4 26B A4B | Gemma 4 31B | Leader |
|---|---|---|---|
| CaseLaw (Vals AI) | Not measured | 52.6% | Only Gemma 4 31B measured |
| MortgageTax (Vals AI) | Not measured | 61.4% | Only Gemma 4 31B measured |
| SimpleQA Verified | Not measured | 10.4% | Only Gemma 4 31B measured |
| LMArena Text: science | 1446 | 1457 | Gemma 4 31B |
| LMArena Text: medicine and healthcare | 1428 | 1451 | Gemma 4 31B |
| LMArena Text: legal and government | 1457 | 1438 | Gemma 4 26B A4B |
| LMArena Text: business and finance | 1429 | 1430 | Gemma 4 31B |
| Neither model has a result on the other 10 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | Gemma 4 26B A4B | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench design | Not measured | 58.4% | Only Gemma 4 31B measured |
| Neither model has a result on the other 8 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index322
| Benchmark | Gemma 4 26B A4B | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 53.3% | Only Gemma 4 31B measured |
| SAGE (Vals AI) | Not measured | 55.0% | Only Gemma 4 31B measured |
| IFBench | 72.4% | 75.6% | Gemma 4 31B |
| Long context reasoning (AA-LCR) | 65.7% | 69.7% | Gemma 4 31B |
| DTBench | 74.9% | 82.7% | Gemma 4 31B |
| LMCA | 29.7% | 39.3% | Gemma 4 31B |
| Surface Evolver Bench | Not measured | 30.6% | Only Gemma 4 31B measured |
| LMArena Text | 1434 | 1443 | Gemma 4 31B |
| LMArena Text: instruction following | 1420 | 1433 | Gemma 4 31B |
| LMArena Text: creative writing | 1400 | 1417 | Gemma 4 31B |
| LMArena Vision | 1260 | 1276 | Gemma 4 31B |
| LMArena Text: English | 1444 | 1451 | Gemma 4 31B |
| LMArena Text: non-English | 1421 | 1430 | Gemma 4 31B |
| LMArena Text: Chinese | 1495 | 1475 | Gemma 4 26B A4B |
| LMArena Text: French | 1460 | 1436 | Gemma 4 26B A4B |
| LMArena Text: Spanish | 1415 | 1442 | Gemma 4 31B |
| LMArena Text: Russian | 1434 | 1460 | Gemma 4 31B |
| LMArena Text: Polish | Not measured | 1433 | Only Gemma 4 31B measured |
| LMArena Text: multi-turn | 1441 | 1452 | Gemma 4 31B |
| LMArena Text: longer queries | 1427 | 1446 | Gemma 4 31B |
| LMArena Text: writing and language | 1405 | 1432 | Gemma 4 31B |
| LMArena Text: entertainment and media | 1403 | 1405 | Gemma 4 31B |
| LMArena Vision: English | 1256 | 1271 | Gemma 4 31B |
| LMArena Vision: Chinese | 1312 | 1326 | Gemma 4 31B |
| LMArena Vision: reading text | 1268 | 1282 | Gemma 4 31B |
| LMArena Vision: humor | 1272 | 1280 | Gemma 4 31B |
| LMArena Vision: captioning | 1297 | 1218 | Gemma 4 26B A4B |
| LMArena Vision: recognizing things | 1191 | 1226 | Gemma 4 31B |
| LMArena Vision: creative writing | 1256 | 1285 | Gemma 4 31B |
| LMArena Document | Not measured | 1425 | Only Gemma 4 31B measured |
| Neither model has a result on the other 16 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 4 26B A4B | Gemma 4 31B | Leader |
|---|---|---|---|
| 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 26B A4B costs less
Repository review
50K input + 3K output tokens
Gemma 4 26B A4B costs less
Agent loop
200K input + 10K output tokens
Gemma 4 26B A4B 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.
| Specification | Google Gemma 4 26B A4B | Google Gemma 4 31B |
|---|---|---|
| Maker | ||
| Weights | Open weights | Open weights |
| Released | April 3, 2026 | April 2, 2026 |
| Context window | 262K | 262K |
| Input $/Mtok | $0.0765 | $0.20 |
| Output $/Mtok | $0.255 | $0.40 |
| Coding index | 22.8 | 38.3 |
| Independent measurements behind it | 1 | 2 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemma 4 26B A4B better than Gemma 4 31B for coding?
Pick Gemma 4 31B for coding: it scores 38.3 on the Vibe Coding Index against 22.8 for Gemma 4 26B A4B. Pick Gemma 4 26B A4B when output tokens cost 1.6x less, or when what matters is ALE-Bench or AA Intelligence Index, where it leads.
Which is cheaper, Gemma 4 26B A4B or Gemma 4 31B?
Gemma 4 26B A4B costs $0.0765 per million input tokens and $0.255 per million output tokens; Gemma 4 31B costs $0.20 and $0.40. Cost per solved task is known for neither of them.
Which has the bigger context window, Gemma 4 26B A4B or Gemma 4 31B?
Neither: both take 262K tokens.
How many benchmarks is the Gemma 4 26B A4B vs Gemma 4 31B comparison based on?
54 benchmarks have a result for both models as of October 21, 2026. Gemma 4 26B A4B's coding index rests on 1 independent benchmark and Gemma 4 31B's on 2. Where only one model has a result, the page says so instead of naming a winner.