Claude Sonnet 5 vs Gemini 3.8 Flash
Updated October 21, 2026. 113 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick Gemini 3.8 Flash for coding: it scores 70.5 on the Vibe Coding Index against 63.5 for Claude Sonnet 5.
Pick Claude Sonnet 5 when a solved task costs $1.87 against $2.74, or when what matters is Vibe Code Bench (Vals AI) or Code migration (Vals AI), where it leads.
- Shared results
- 113
- Claude Sonnet 5 only
- 7
- Gemini 3.8 Flash only
- 13
- Like-for-like categories
- 8 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
Gemini 3.8 Flash
Gemini 3.8 Flash scores 70.5 against 63.5.
2 benchmarks behind each score
Intelligence
AA Intelligence Index
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 40.9 against 38.2.
Same board, both measured
Agentic work
AA Agentic Index
Claude Sonnet 5
Claude Sonnet 5 leads, 43.6 against 40.2.
Same board, both measured
Reasoning
GPQA Diamond
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 94.4% against 88.9%.
Same board, both measured
Knowledge
MMLU Pro
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 90.2% against 87.5%.
Same board, both measured
Web design
Design Arena: websites
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 1301 against 1274.
Same board, both measured
General
Vals Index
No call
Only Gemini 3.8 Flash has a Vals Index result, 56.0%.
Directional only
Long documents
Listed context window
Gemini 3.8 Flash
Gemini 3.8 Flash takes 1.05M tokens against 1M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 3.8 Flash
Claude Sonnet 5 $0.0070, Gemini 3.8 Flash $0.0029 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Claude Sonnet 5
Claude Sonnet 5 $1.87, Gemini 3.8 Flash $2.74.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Sonnet 5 63.5 from 2 benchmarks, Gemini 3.8 Flash 70.5 from 2 benchmarks.
- Widest category
- Math, 10.1 points apart on average over 6 shared benchmarks.
- Widest single gap
- SimpleQA Verified: Claude Sonnet 5 33.7% against Gemini 3.8 Flash 69.7%, 36.0 points apart on a 0 to 100 scale.
- Output price
- Claude Sonnet 5 $10.00 against Gemini 3.8 Flash $4.125 per million output tokens, 2.4x apart.
- Context window
- Claude Sonnet 5 takes 1M tokens, Gemini 3.8 Flash 1.05M.
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 | Claude Sonnet 5 | Bars | Gemini 3.8 Flash | Ties |
|---|---|---|---|---|
| Coding | 5 | 18 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 10 | 9 | ||
| Reasoning | 0 | 13 | ||
| Math | 2 | 4 | ||
| Knowledge | 2 | 8 | ||
| Web design | 1 | 8 | ||
| General | 3 | 28 | ||
| All shared boards | 23 | 90 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index518
| Benchmark | Claude Sonnet 5 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| LiveBench coding | 74.7% | 82.2% | Gemini 3.8 Flash |
| LMArena WebDev | 1540 | 1585 | Gemini 3.8 Flash |
| AA Coding Index | 71.5 | 76.3 | Gemini 3.8 Flash |
| LiveCodeBench (Vals AI) | 82.4% | 89.5% | Gemini 3.8 Flash |
| SWE-bench Verified (Vals AI) | 79.6% | 80.0% | Gemini 3.8 Flash |
| Terminal-Bench 4 (Vals AI) | 10.6% | 19.7% | Gemini 3.8 Flash |
| Vibe Code Bench (Vals AI) | 81.3% | 78.7% | Claude Sonnet 5 |
| Code migration (Vals AI) | 44.4% | 36.5% | Claude Sonnet 5 |
| ProgramBench (Vals AI) | 0.0% | 1.0% | Gemini 3.8 Flash |
| IOI (Vals AI) | 45.0% | 56.9% | Gemini 3.8 Flash |
| Terminal-Bench 2.1 (Vals AI) | 74.5% | 81.3% | Gemini 3.8 Flash |
| SWE-bench Multimodal (Vals AI) | Not measured | 40.8% | Only Gemini 3.8 Flash measured |
| Vibe Code Bench 1-100 (Vals AI) | 13.8% | 18.8% | Gemini 3.8 Flash |
| SkillsBench (Vals AI) | 46.5% | 58.0% | Gemini 3.8 Flash |
| CyberBench (Vals AI) | 70.3% | 43.8% | Claude Sonnet 5 |
| SciCode | 54.3% | 56.6% | Gemini 3.8 Flash |
| FrontierCode | 42.7% | 41.2% | Claude Sonnet 5 |
| FrontierSWE | Not measured | 19.6% | Only Gemini 3.8 Flash measured |
| GSO-Bench | 37.3% | Not measured | Only Claude Sonnet 5 measured |
| WeirdML | 68.8% | 84.8% | Gemini 3.8 Flash |
| ALE-Bench | 1463.1 | 1269.7 | Claude Sonnet 5 |
| LMArena Text: coding | 1483 | 1508 | Gemini 3.8 Flash |
| LMArena Text: software and IT | 1474 | 1507 | Gemini 3.8 Flash |
| LMArena WebDev: React | 1541 | 1577 | Gemini 3.8 Flash |
| LMArena WebDev: HTML | 1527 | 1616 | Gemini 3.8 Flash |
| LMArena WebDev: from an image | 1540 | 1593 | Gemini 3.8 Flash |
| Neither model has a result on the other 12 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Claude Sonnet 5 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AA Intelligence Index | 38.2 | 40.9 | Gemini 3.8 Flash |
| Epoch Capabilities Index | 156.9 | 157.4 | Gemini 3.8 Flash |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index109
| Benchmark | Claude Sonnet 5 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AA Agentic Index | 43.6 | 40.2 | Claude Sonnet 5 |
| Design Arena: agents building web apps | 1245 | 1238 | Claude Sonnet 5 |
| Design Arena: agents building full-stack apps | 1249 | 1244 | Claude Sonnet 5 |
| Design Arena: agents building mobile apps | 1215 | 1236 | Gemini 3.8 Flash |
| Design Arena: agents building Android apps | 1231 | 1078 | Claude Sonnet 5 |
| Design Arena: agents building Godot games | 1225 | 1273 | Gemini 3.8 Flash |
| Design Arena: agents building games | 1227 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: HTML slides | 1218 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: PowerPoint slides | 1216 | 1178 | Claude Sonnet 5 |
| Design Arena: spreadsheets | 1004 | 1052 | Gemini 3.8 Flash |
| LiveBench research | 82.8% | 79.1% | Claude Sonnet 5 |
| LiveBench browser | 72.0% | 64.0% | Claude Sonnet 5 |
| LiveBench long agentic | 39.0% | 30.1% | Claude Sonnet 5 |
| SREBench (Vals AI) | 0.4% | 11.1% | Gemini 3.8 Flash |
| Finance Agent (Vals AI) | 53.9% | 61.4% | Gemini 3.8 Flash |
| Tax Agent Bench (Vals AI) | 29.4% | 32.1% | Gemini 3.8 Flash |
| Legal Research Bench (Vals AI) | 41.8% | 38.9% | Claude Sonnet 5 |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 12.1% | Only Gemini 3.8 Flash measured |
| Excel Modeling Benchmark (Vals AI) | 66.3% | 72.2% | Gemini 3.8 Flash |
| BioMysteryBench (Vals AI) | Not measured | 62.2% | Only Gemini 3.8 Flash measured |
| Terminal-Bench-Science (Vals AI) | 5.7% | 8.6% | Gemini 3.8 Flash |
| Vals Science Index | Not measured | 35.8% | Only Gemini 3.8 Flash measured |
| Time Horizon Index (Vals AI) | Not measured | 18.8% | Only Gemini 3.8 Flash measured |
| CUA-bench (Vals AI) | Not measured | 4.2% | Only Gemini 3.8 Flash measured |
| APEX-Agents | 54.5% | 64.3% | Gemini 3.8 Flash |
| Remote Labor Index | Not measured | 5.8% | Only Gemini 3.8 Flash measured |
| Vending-Bench 2 | $6,378 | $5,094 | Claude Sonnet 5 |
| Neither model has a result on the other 12 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index013
| Benchmark | Claude Sonnet 5 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| GPQA Diamond | 88.9% | 94.4% | Gemini 3.8 Flash |
| LiveBench reasoning | 88.7% | 89.3% | Gemini 3.8 Flash |
| MysteryMechanism (Vals AI) | Not measured | 36.5% | Only Gemini 3.8 Flash measured |
| MMMU Pro (Vals AI) | 83.0% | 89.1% | Gemini 3.8 Flash |
| GPQA Diamond (Artificial Analysis run) | 91.1% | 95.3% | Gemini 3.8 Flash |
| Humanity's Last Exam (Artificial Analysis run) | 41.3% | 47.8% | Gemini 3.8 Flash |
| GPQA Diamond (Epoch AI run) | 90.5% | 95.4% | Gemini 3.8 Flash |
| ARC-AGI | Not measured | 98.5% | Only Gemini 3.8 Flash measured |
| ARC-AGI-2 | Not measured | 89.2% | Only Gemini 3.8 Flash measured |
| SimpleBench | 60.6% | Not measured | Only Claude Sonnet 5 measured |
| Chess puzzles | 45.0% | 58.0% | Gemini 3.8 Flash |
| Mystery game puzzles | 35.0% | 47.0% | Gemini 3.8 Flash |
| LMArena Text: hard prompts | 1461 | 1509 | Gemini 3.8 Flash |
| LMArena Text: expert | 1489 | 1526 | Gemini 3.8 Flash |
| LMArena Text: hard prompts in English | 1464 | 1504 | Gemini 3.8 Flash |
| LMArena Vision: diagrams | 1293 | 1345 | Gemini 3.8 Flash |
| LMArena Vision: homework | 1311 | 1351 | Gemini 3.8 Flash |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index24
| Benchmark | Claude Sonnet 5 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| OTIS Mock AIME | 94.7% | 98.9% | Gemini 3.8 Flash |
| FrontierMath, tiers 1 to 3 | 65.6% | 68.4% | Gemini 3.8 Flash |
| FrontierMath, tier 4 | 29.3% | 22.0% | Claude Sonnet 5 |
| ProofBench | 77.0% | 48.0% | Claude Sonnet 5 |
| LMArena Text: math | 1467 | 1532 | Gemini 3.8 Flash |
| LMArena Text: mathematical work | 1481 | 1519 | Gemini 3.8 Flash |
| Neither model has a result on the other 7 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index28
| Benchmark | Claude Sonnet 5 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| MMLU Pro | 87.5% | 90.2% | Gemini 3.8 Flash |
| LegalBench (Vals AI) | 83.9% | 87.0% | Gemini 3.8 Flash |
| CorpFin (Vals AI) | 67.0% | Not measured | Only Claude Sonnet 5 measured |
| TaxEval (Vals AI) | 75.6% | 74.5% | Claude Sonnet 5 |
| MortgageTax (Vals AI) | 70.0% | 65.3% | Claude Sonnet 5 |
| MedCode (Vals AI) | 47.5% | 48.1% | Gemini 3.8 Flash |
| SimpleQA Verified | 33.7% | 69.7% | Gemini 3.8 Flash |
| LMArena Text: science | 1460 | 1523 | Gemini 3.8 Flash |
| LMArena Text: medicine and healthcare | 1442 | 1508 | Gemini 3.8 Flash |
| LMArena Text: legal and government | 1454 | 1497 | Gemini 3.8 Flash |
| LMArena Text: business and finance | 1436 | 1479 | Gemini 3.8 Flash |
| Neither model has a result on the other 6 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index18
| Benchmark | Claude Sonnet 5 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| Design Arena: websites | 1274 | 1301 | Gemini 3.8 Flash |
| Design Arena: UI components | 1279 | 1318 | Gemini 3.8 Flash |
| Design Arena: game dev | 1278 | 1305 | Gemini 3.8 Flash |
| Design Arena: data viz | 1251 | 1269 | Gemini 3.8 Flash |
| Design Arena: 3D | 1261 | 1295 | Gemini 3.8 Flash |
| Design Arena: all code categories | 1276 | 1304 | Gemini 3.8 Flash |
| Design Arena: SVG | 1193 | 1295 | Gemini 3.8 Flash |
| Design Arena: ASCII art | 1207 | 1264 | Gemini 3.8 Flash |
| LiveBench design | 82.0% | 72.7% | Claude Sonnet 5 |
GeneralLike-for-likePublic boards, shown as published, kept out of the index328
| Benchmark | Claude Sonnet 5 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| Vals Index | Not measured | 56.0% | Only Gemini 3.8 Flash measured |
| LiveBench data analysis | 71.7% | 54.0% | Claude Sonnet 5 |
| Public Benefits Bench (Vals AI) | 66.0% | 65.3% | Claude Sonnet 5 |
| SAGE (Vals AI) | 48.9% | 35.1% | Claude Sonnet 5 |
| MedScribe (Vals AI) | 76.0% | 84.5% | Gemini 3.8 Flash |
| Vals Multimodal Index | 68.8% | Not measured | Only Claude Sonnet 5 measured |
| Long context reasoning (AA-LCR) | 82.0% | 84.0% | Gemini 3.8 Flash |
| DTBench | 92.5% | 95.7% | Gemini 3.8 Flash |
| LMCA | 50.0% | 52.9% | Gemini 3.8 Flash |
| Surface Evolver Bench | 60.0% | 76.9% | Gemini 3.8 Flash |
| Furniture assembly | Not measured | 31.7% | Only Gemini 3.8 Flash measured |
| LMArena Text | 1442 | 1499 | Gemini 3.8 Flash |
| LMArena Text: instruction following | 1452 | 1492 | Gemini 3.8 Flash |
| LMArena Text: creative writing | 1416 | 1488 | Gemini 3.8 Flash |
| LMArena Vision | 1273 | 1315 | Gemini 3.8 Flash |
| LMArena Text: English | 1450 | 1498 | Gemini 3.8 Flash |
| LMArena Text: non-English | 1431 | 1491 | Gemini 3.8 Flash |
| LMArena Text: Chinese | 1478 | 1553 | Gemini 3.8 Flash |
| LMArena Text: German | 1442 | 1501 | Gemini 3.8 Flash |
| LMArena Text: Japanese | 1422 | 1507 | Gemini 3.8 Flash |
| LMArena Text: Korean | 1412 | 1464 | Gemini 3.8 Flash |
| LMArena Text: French | 1463 | 1496 | Gemini 3.8 Flash |
| LMArena Text: Spanish | 1438 | 1487 | Gemini 3.8 Flash |
| LMArena Text: Russian | 1450 | 1514 | Gemini 3.8 Flash |
| LMArena Text: Polish | 1425 | 1497 | Gemini 3.8 Flash |
| LMArena Text: multi-turn | 1453 | 1503 | Gemini 3.8 Flash |
| LMArena Text: longer queries | 1462 | 1507 | Gemini 3.8 Flash |
| LMArena Text: writing and language | 1436 | 1494 | Gemini 3.8 Flash |
| LMArena Text: entertainment and media | 1411 | 1480 | Gemini 3.8 Flash |
| LMArena Vision: English | 1275 | 1318 | Gemini 3.8 Flash |
| LMArena Vision: Chinese | 1331 | 1416 | Gemini 3.8 Flash |
| LMArena Vision: reading text | 1288 | 1333 | Gemini 3.8 Flash |
| LMArena Vision: humor | 1261 | 1321 | Gemini 3.8 Flash |
| LMArena Vision: creative writing | 1246 | 1299 | Gemini 3.8 Flash |
| LMArena Document | 1466 | Not measured | Only Claude Sonnet 5 measured |
| Neither model has a result on the other 11 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Sonnet 5 | Gemini 3.8 Flash | 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
Gemini 3.8 Flash costs less
Repository review
50K input + 3K output tokens
Gemini 3.8 Flash costs less
Agent loop
200K input + 10K output tokens
Gemini 3.8 Flash 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 | Anthropic Claude Sonnet 5 | Google Gemini 3.8 Flash |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | No public weights listed |
| Released | June 30, 2026 | September 2, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $2.00 | $0.825 |
| Output $/Mtok | $10.00 | $4.125 |
| Coding index | 63.5 | 70.5 |
| Independent measurements behind it | 2 | 2 |
| Cost per solved task | $1.87 | $2.74 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Sonnet 5 better than Gemini 3.8 Flash for coding?
Pick Gemini 3.8 Flash for coding: it scores 70.5 on the Vibe Coding Index against 63.5 for Claude Sonnet 5. Pick Claude Sonnet 5 when a solved task costs $1.87 against $2.74, or when what matters is Vibe Code Bench (Vals AI) or Code migration (Vals AI), where it leads.
Which is cheaper, Claude Sonnet 5 or Gemini 3.8 Flash?
Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; Gemini 3.8 Flash costs $0.825 and $4.125. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and Gemini 3.8 Flash $2.74.
Which has the bigger context window, Claude Sonnet 5 or Gemini 3.8 Flash?
Gemini 3.8 Flash, with 1.05M tokens against 1M.
How many benchmarks is the Claude Sonnet 5 vs Gemini 3.8 Flash comparison based on?
113 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 5's coding index rests on 2 independent benchmarks and Gemini 3.8 Flash's on 2. Where only one model has a result, the page says so instead of naming a winner.