Claude Sonnet 4.6 vs Gemini 3.8 Flash
Gemini 3.8 Flash leads Claude Sonnet 4.6 on coding, 61.6 to 57.3 on the Vibe Coding Index, and Gemini 3.8 Flash costs 4.0x less per output token ($3.75 vs $15.00 per million). Updated October 22, 2026; 102 benchmarks have a result for both.
Claude Sonnet 4.6 or Gemini 3.8 Flash: which to pick
Pick Gemini 3.8 Flash for coding: it scores 61.6 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6.
Pick Claude Sonnet 4.6 for a lower cost per solved task ($1.68 against $2.74) and work measured by Code migration (Vals AI) or Design Arena: agents building Android apps, where it leads.
- Shared results
- 102
- Claude Sonnet 4.6 only
- 16
- Gemini 3.8 Flash only
- 26
- Like-for-like categories
- 8 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.
Coding
Vibe Coding Index, six public coding benchmarks
Gemini 3.8 Flash
Gemini 3.8 Flash scores 61.6 against 57.3.
5 and 6 benchmarks behind the scores
Intelligence
AA Intelligence Index
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 40.9 against 30.1.
Same board, both measured
Agentic work
AA Agentic Index
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 40.2 against 31.8.
Same board, both measured
Reasoning
GPQA Diamond
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 94.4% against 85.6%.
Same board, both measured
Math
AIME
No call
Only Claude Sonnet 4.6 has a AIME result, 92.3%.
Directional only
Knowledge
MMLU Pro
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 90.2% against 87.3%.
Same board, both measured
Web design
Design Arena: websites
Gemini 3.8 Flash
Gemini 3.8 Flash leads, 1300 against 1284.
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 4.6 $0.011, Gemini 3.8 Flash $0.0026 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Claude Sonnet 4.6
Claude Sonnet 4.6 $1.68, Gemini 3.8 Flash $2.74.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Sonnet 4.6 57.3 from 5 benchmarks, Gemini 3.8 Flash 61.6 from 6 benchmarks.
- Widest category
- Reasoning, 11.8 points apart on average over 15 shared benchmarks.
- Widest single gap
- Chess puzzles: Claude Sonnet 4.6 23.0% against Gemini 3.8 Flash 58.0%, 35.0 points apart on a 0 to 100 scale.
- Output price
- Claude Sonnet 4.6 $15.00 against Gemini 3.8 Flash $3.75 per million output tokens, 4.0x apart.
- Context window
- Claude Sonnet 4.6 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 4.6 | Bars | Gemini 3.8 Flash | Ties |
|---|---|---|---|---|
| Coding | 1 | 17 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 3 | 12 | ||
| Reasoning | 0 | 15 | ||
| Math | 0 | 4 | ||
| Knowledge | 2 | 8 | ||
| Web design | 1 | 8 | ||
| General | 2 | 27 | ||
| All shared boards | 9 | 93 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index117
| Benchmark | Claude Sonnet 4.6 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| LiveBench coding | 66.6% | 82.2% | Gemini 3.8 Flash |
| LMArena WebDev | 1523 | 1585 | Gemini 3.8 Flash |
| AA Coding Index | 63.0 | 76.3 | Gemini 3.8 Flash |
| LiveCodeBench (Vals AI) | 82.1% | 89.5% | Gemini 3.8 Flash |
| SWE-bench Verified (Vals AI) | 77.4% | 80.0% | Gemini 3.8 Flash |
| Terminal-Bench 4 (Vals AI) | Not measured | 19.7% | Only Gemini 3.8 Flash measured |
| Vibe Code Bench (Vals AI) | 55.8% | 78.7% | Gemini 3.8 Flash |
| Code migration (Vals AI) | 39.9% | 36.5% | Claude Sonnet 4.6 |
| ProgramBench (Vals AI) | 0.5% | 1.0% | Gemini 3.8 Flash |
| IOI (Vals AI) | Not measured | 56.9% | Only Gemini 3.8 Flash measured |
| Terminal-Bench 2.1 (Vals AI) | 57.3% | 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) | Not measured | 18.8% | Only Gemini 3.8 Flash measured |
| SkillsBench (Vals AI) | 49.0% | 58.0% | Gemini 3.8 Flash |
| CyberBench (Vals AI) | Not measured | 43.8% | Only Gemini 3.8 Flash measured |
| SciCode | 50.1% | 56.6% | Gemini 3.8 Flash |
| Terminal-Bench Hard (Artificial Analysis run) | 53.0% | Not measured | Only Claude Sonnet 4.6 measured |
| Terminal-Bench | 53.4% | Not measured | Only Claude Sonnet 4.6 measured |
| FrontierCode | 24.3% | 41.2% | Gemini 3.8 Flash |
| FrontierSWE | Not measured | 19.6% | Only Gemini 3.8 Flash measured |
| WeirdML | 66.1% | 84.8% | Gemini 3.8 Flash |
| ALE-Bench | Not measured | 1269.7 | Only Gemini 3.8 Flash measured |
| LMArena Text: coding | 1503 | 1508 | Gemini 3.8 Flash |
| LMArena Text: software and IT | 1491 | 1507 | Gemini 3.8 Flash |
| LMArena WebDev: React | 1512 | 1577 | Gemini 3.8 Flash |
| LMArena WebDev: HTML | 1527 | 1616 | Gemini 3.8 Flash |
| LMArena WebDev: from an image | 1529 | 1593 | Gemini 3.8 Flash |
| SciCode | Not measured | 12.3% | Only Gemini 3.8 Flash measured |
| Neither model has a result on the other 11 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Claude Sonnet 4.6 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AA Intelligence Index | 30.1 | 40.9 | Gemini 3.8 Flash |
| Epoch Capabilities Index | 152.8 | 157.4 | Gemini 3.8 Flash |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index312
| Benchmark | Claude Sonnet 4.6 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AA Agentic Index | 31.8 | 40.2 | Gemini 3.8 Flash |
| Design Arena: agents building web apps | 1190 | 1238 | Gemini 3.8 Flash |
| Design Arena: agents building full-stack apps | 1213 | 1244 | Gemini 3.8 Flash |
| Design Arena: agents building mobile apps | 1212 | 1236 | Gemini 3.8 Flash |
| Design Arena: agents building Android apps | 1197 | 1078 | Claude Sonnet 4.6 |
| Design Arena: agents building Godot games | 1226 | 1273 | Gemini 3.8 Flash |
| Design Arena: agents building games | 1177 | Not measured | Only Claude Sonnet 4.6 measured |
| Design Arena: PowerPoint slides | Not measured | 1153 | Only Gemini 3.8 Flash measured |
| Design Arena: spreadsheets | Not measured | 1022 | Only Gemini 3.8 Flash measured |
| LiveBench research | 63.6% | 79.1% | Gemini 3.8 Flash |
| LiveBench browser | 68.0% | 64.0% | Claude Sonnet 4.6 |
| LiveBench long agentic | 23.1% | 30.1% | Gemini 3.8 Flash |
| SREBench (Vals AI) | Not measured | 11.1% | Only Gemini 3.8 Flash measured |
| Finance Agent (Vals AI) | 51.0% | 61.4% | Gemini 3.8 Flash |
| Tax Agent Bench (Vals AI) | 25.8% | 32.1% | Gemini 3.8 Flash |
| Legal Research Bench (Vals AI) | 38.5% | 38.9% | Gemini 3.8 Flash |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 12.1% | Only Gemini 3.8 Flash measured |
| Excel Modeling Benchmark (Vals AI) | 60.2% | 72.2% | Gemini 3.8 Flash |
| BioMysteryBench (Vals AI) | Not measured | 62.2% | Only Gemini 3.8 Flash measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 8.6% | Only Gemini 3.8 Flash measured |
| 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 |
| τ²-Bench Telecom | 79.5% | Not measured | Only Claude Sonnet 4.6 measured |
| APEX-Agents | 43.0% | 64.3% | Gemini 3.8 Flash |
| Remote Labor Index | Not measured | 5.8% | Only Gemini 3.8 Flash measured |
| OSWorld 2.0 | 9.3% | Not measured | Only Claude Sonnet 4.6 measured |
| DeepResearch Bench | 54.9% | Not measured | Only Claude Sonnet 4.6 measured |
| OSWorld | 72.1% | Not measured | Only Claude Sonnet 4.6 measured |
| Vending-Bench 2 | $7,204 | $5,094 | Claude Sonnet 4.6 |
| Neither model has a result on the other 11 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index015
| Benchmark | Claude Sonnet 4.6 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| GPQA Diamond | 85.6% | 94.4% | Gemini 3.8 Flash |
| LiveBench reasoning | 86.4% | 89.3% | Gemini 3.8 Flash |
| MysteryMechanism (Vals AI) | Not measured | 36.5% | Only Gemini 3.8 Flash measured |
| MMMU Pro (Vals AI) | 83.6% | 89.1% | Gemini 3.8 Flash |
| GPQA Diamond (Artificial Analysis run) | 87.5% | 95.3% | Gemini 3.8 Flash |
| Humanity's Last Exam (Artificial Analysis run) | 33.6% | 47.8% | Gemini 3.8 Flash |
| GPQA Diamond (Epoch AI run) | 87.4% | 95.4% | Gemini 3.8 Flash |
| ARC-AGI | 86.5% | 98.5% | Gemini 3.8 Flash |
| ARC-AGI-2 | 60.4% | 89.2% | Gemini 3.8 Flash |
| Chess puzzles | 23.0% | 58.0% | Gemini 3.8 Flash |
| Mystery game puzzles | 16.0% | 47.0% | Gemini 3.8 Flash |
| LMArena Text: hard prompts | 1485 | 1509 | Gemini 3.8 Flash |
| LMArena Text: expert | 1500 | 1526 | Gemini 3.8 Flash |
| LMArena Text: hard prompts in English | 1493 | 1504 | Gemini 3.8 Flash |
| LMArena Vision: diagrams | 1306 | 1345 | Gemini 3.8 Flash |
| LMArena Vision: homework | 1311 | 1351 | Gemini 3.8 Flash |
| Neither model has a result on the other 6 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Claude Sonnet 4.6 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| AIME | 92.3% | Not measured | Only Claude Sonnet 4.6 measured |
| OTIS Mock AIME | 85.8% | 98.9% | Gemini 3.8 Flash |
| FrontierMath, tiers 1 to 3 | Not measured | 68.4% | Only Gemini 3.8 Flash measured |
| FrontierMath, tier 4 | Not measured | 22.0% | Only Gemini 3.8 Flash measured |
| ProofBench | 45.0% | 48.0% | Gemini 3.8 Flash |
| LMArena Text: math | 1462 | 1532 | Gemini 3.8 Flash |
| LMArena Text: mathematical work | 1483 | 1519 | Gemini 3.8 Flash |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index28
| Benchmark | Claude Sonnet 4.6 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| MMLU Pro | 87.3% | 90.2% | Gemini 3.8 Flash |
| LegalBench (Vals AI) | 82.1% | 87.0% | Gemini 3.8 Flash |
| CaseLaw (Vals AI) | 64.0% | Not measured | Only Claude Sonnet 4.6 measured |
| CorpFin (Vals AI) | 65.3% | Not measured | Only Claude Sonnet 4.6 measured |
| TaxEval (Vals AI) | 77.1% | 74.5% | Claude Sonnet 4.6 |
| MortgageTax (Vals AI) | 67.7% | 65.3% | Claude Sonnet 4.6 |
| MedQA (Vals AI) | 92.1% | Not measured | Only Claude Sonnet 4.6 measured |
| MedCode (Vals AI) | Not measured | 48.1% | Only Gemini 3.8 Flash measured |
| SimpleQA Verified | 35.5% | 69.7% | Gemini 3.8 Flash |
| LMArena Text: science | 1474 | 1523 | Gemini 3.8 Flash |
| LMArena Text: medicine and healthcare | 1451 | 1508 | Gemini 3.8 Flash |
| LMArena Text: legal and government | 1470 | 1497 | Gemini 3.8 Flash |
| LMArena Text: business and finance | 1464 | 1479 | Gemini 3.8 Flash |
| FACTS Benchmark Suite | 37.0% | 69.4% | Gemini 3.8 Flash |
| Neither model has a result on the other 4 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index18
| Benchmark | Claude Sonnet 4.6 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| Design Arena: websites | 1284 | 1300 | Gemini 3.8 Flash |
| Design Arena: UI components | 1269 | 1316 | Gemini 3.8 Flash |
| Design Arena: game dev | 1258 | 1304 | Gemini 3.8 Flash |
| Design Arena: data viz | 1278 | 1270 | Claude Sonnet 4.6 |
| Design Arena: 3D | 1234 | 1294 | Gemini 3.8 Flash |
| Design Arena: all code categories | 1275 | 1303 | Gemini 3.8 Flash |
| Design Arena: SVG | 1196 | 1296 | Gemini 3.8 Flash |
| Design Arena: ASCII art | 1235 | 1262 | Gemini 3.8 Flash |
| LiveBench design | 71.8% | 72.7% | Gemini 3.8 Flash |
GeneralLike-for-likePublic boards, shown as published, kept out of the index227
| Benchmark | Claude Sonnet 4.6 | Gemini 3.8 Flash | Leader |
|---|---|---|---|
| Vals Index | Not measured | 56.0% | Only Gemini 3.8 Flash measured |
| LiveBench data analysis | 76.1% | 54.0% | Claude Sonnet 4.6 |
| Public Benefits Bench (Vals AI) | 62.5% | 65.3% | Gemini 3.8 Flash |
| SAGE (Vals AI) | 46.6% | 35.1% | Claude Sonnet 4.6 |
| MedScribe (Vals AI) | Not measured | 84.5% | Only Gemini 3.8 Flash measured |
| Vals Multimodal Index | 60.6% | Not measured | Only Claude Sonnet 4.6 measured |
| IFBench | 56.6% | Not measured | Only Claude Sonnet 4.6 measured |
| Long context reasoning (AA-LCR) | 80.0% | 84.0% | Gemini 3.8 Flash |
| DTBench | 89.9% | 95.7% | Gemini 3.8 Flash |
| LMCA | 46.5% | 52.9% | Gemini 3.8 Flash |
| Surface Evolver Bench | Not measured | 76.9% | Only Gemini 3.8 Flash measured |
| Furniture assembly | Not measured | 31.7% | Only Gemini 3.8 Flash measured |
| ExploitBench | 23.6% | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Text | 1458 | 1499 | Gemini 3.8 Flash |
| LMArena Text: instruction following | 1476 | 1492 | Gemini 3.8 Flash |
| LMArena Text: creative writing | 1435 | 1488 | Gemini 3.8 Flash |
| LMArena Vision | 1283 | 1315 | Gemini 3.8 Flash |
| LMArena Text: English | 1472 | 1498 | Gemini 3.8 Flash |
| LMArena Text: non-English | 1440 | 1491 | Gemini 3.8 Flash |
| LMArena Text: Chinese | 1491 | 1553 | Gemini 3.8 Flash |
| LMArena Text: German | 1428 | 1501 | Gemini 3.8 Flash |
| LMArena Text: Japanese | 1420 | 1507 | Gemini 3.8 Flash |
| LMArena Text: Korean | 1410 | 1464 | Gemini 3.8 Flash |
| LMArena Text: French | 1465 | 1496 | Gemini 3.8 Flash |
| LMArena Text: Spanish | 1464 | 1487 | Gemini 3.8 Flash |
| LMArena Text: Russian | 1440 | 1514 | Gemini 3.8 Flash |
| LMArena Text: Polish | 1443 | 1497 | Gemini 3.8 Flash |
| LMArena Text: multi-turn | 1464 | 1503 | Gemini 3.8 Flash |
| LMArena Text: longer queries | 1479 | 1507 | Gemini 3.8 Flash |
| LMArena Text: writing and language | 1444 | 1494 | Gemini 3.8 Flash |
| LMArena Text: entertainment and media | 1431 | 1480 | Gemini 3.8 Flash |
| LMArena Vision: English | 1298 | 1318 | Gemini 3.8 Flash |
| LMArena Vision: Chinese | 1307 | 1416 | Gemini 3.8 Flash |
| LMArena Vision: reading text | 1296 | 1333 | Gemini 3.8 Flash |
| LMArena Vision: humor | 1248 | 1321 | Gemini 3.8 Flash |
| LMArena Vision: recognizing things | 1195 | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Vision: creative writing | 1272 | 1299 | Gemini 3.8 Flash |
| LMArena Document | 1482 | Not measured | Only Claude Sonnet 4.6 measured |
| Neither model has a result on the other 8 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Sonnet 4.6 | 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 4.6 | Google Gemini 3.8 Flash |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | No public weights listed |
| Released | February 17, 2026 | September 2, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $3.00 | $0.75 |
| Output $/Mtok | $15.00 | $3.75 |
| Coding index | 57.3 | 61.6 |
| Independent measurements behind it | 5 | 6 |
| Cost per solved task | $1.68 | $2.74 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Sonnet 4.6 better than Gemini 3.8 Flash for coding?
Pick Gemini 3.8 Flash for coding: it scores 61.6 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6. Pick Claude Sonnet 4.6 for a lower cost per solved task ($1.68 against $2.74) and work measured by Code migration (Vals AI) or Design Arena: agents building Android apps, where it leads.
Which is cheaper, Claude Sonnet 4.6 or Gemini 3.8 Flash?
Claude Sonnet 4.6 costs $3.00 per million input tokens and $15.00 per million output tokens; Gemini 3.8 Flash costs $0.75 and $3.75. Per solved SWE-bench Verified task, Claude Sonnet 4.6 costs $1.68 and Gemini 3.8 Flash $2.74.
Which has the bigger context window, Claude Sonnet 4.6 or Gemini 3.8 Flash?
Gemini 3.8 Flash, with 1.05M tokens against 1M.
How many benchmarks is the Claude Sonnet 4.6 vs Gemini 3.8 Flash comparison based on?
102 benchmarks have a result for both models as of October 22, 2026. Claude Sonnet 4.6's coding index rests on 5 independent benchmarks and Gemini 3.8 Flash's on 6. Where only one model has a result, the page says so instead of naming a winner.