Claude Sonnet 5 vs Gemini 3.7 Flash
Updated October 21, 2026. 107 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.7 Flash for coding: it scores 69.9 on the Vibe Coding Index against 63.5 for Claude Sonnet 5.
Pick Claude Sonnet 5 when what matters is Vibe Code Bench (Vals AI) or Code migration (Vals AI), where it leads.
- Shared results
- 107
- Claude Sonnet 5 only
- 13
- Gemini 3.7 Flash only
- 5
- 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.7 Flash
Gemini 3.7 Flash scores 69.9 against 63.5.
2 benchmarks behind each score
Intelligence
AA Intelligence Index
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 39.6 against 38.2.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Claude Sonnet 5 has a AA Agentic Index result, 43.6.
Directional only
Reasoning
GPQA Diamond
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 93.9% against 88.9%.
Same board, both measured
Knowledge
MMLU Pro
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 90.1% against 87.5%.
Same board, both measured
Web design
Design Arena: websites
Gemini 3.7 Flash
Gemini 3.7 Flash leads, 1304 against 1274.
Same board, both measured
Long documents
Listed context window
Gemini 3.7 Flash
Gemini 3.7 Flash takes 1.05M tokens against 1M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemini 3.7 Flash
Claude Sonnet 5 $0.0070, Gemini 3.7 Flash $0.0026 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Gemini 3.7 Flash
Claude Sonnet 5 $1.87, Gemini 3.7 Flash $1.78.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Sonnet 5 63.5 from 2 benchmarks, Gemini 3.7 Flash 69.9 from 2 benchmarks.
- Widest category
- Coding, 8.3 points apart on average over 21 shared benchmarks.
- Widest single gap
- SimpleQA Verified: Claude Sonnet 5 33.7% against Gemini 3.7 Flash 69.2%, 35.5 points apart on a 0 to 100 scale.
- Output price
- Claude Sonnet 5 $10.00 against Gemini 3.7 Flash $3.75 per million output tokens, 2.7x apart.
- Context window
- Claude Sonnet 5 takes 1M tokens, Gemini 3.7 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.7 Flash | Ties |
|---|---|---|---|---|
| Coding | 4 | 15 | 2 ties | |
| Intelligence | 0 | 2 | ||
| Agentic work | 7 | 10 | ||
| Reasoning | 1 | 12 | ||
| Math | 1 | 5 | ||
| Knowledge | 2 | 8 | ||
| Web design | 1 | 8 | ||
| General | 1 | 28 | ||
| All shared boards | 17 | 88 | 2 ties |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index415
| Benchmark | Claude Sonnet 5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| LiveBench coding | 74.7% | 80.5% | Gemini 3.7 Flash |
| LMArena WebDev | 1540 | 1591 | Gemini 3.7 Flash |
| AA Coding Index | 71.5 | 71.5 | Tie |
| LiveCodeBench (Vals AI) | 82.4% | 88.7% | Gemini 3.7 Flash |
| SWE-bench Verified (Vals AI) | 79.6% | 80.8% | Gemini 3.7 Flash |
| Terminal-Bench 4 (Vals AI) | 10.6% | 12.1% | Gemini 3.7 Flash |
| Vibe Code Bench (Vals AI) | 81.3% | 70.4% | Claude Sonnet 5 |
| Code migration (Vals AI) | 44.4% | 34.8% | Claude Sonnet 5 |
| ProgramBench (Vals AI) | 0.0% | 0.0% | Tie |
| IOI (Vals AI) | 45.0% | 67.8% | Gemini 3.7 Flash |
| Terminal-Bench 2.1 (Vals AI) | 74.5% | 77.5% | Gemini 3.7 Flash |
| Vibe Code Bench 1-100 (Vals AI) | 13.8% | Not measured | Only Claude Sonnet 5 measured |
| SkillsBench (Vals AI) | 46.5% | 65.9% | Gemini 3.7 Flash |
| CyberBench (Vals AI) | 70.3% | 43.8% | Claude Sonnet 5 |
| SciCode | 54.3% | 59.8% | Gemini 3.7 Flash |
| FrontierCode | 42.7% | 43.6% | Gemini 3.7 Flash |
| FrontierSWE | Not measured | 20.3% | Only Gemini 3.7 Flash measured |
| GSO-Bench | 37.3% | Not measured | Only Claude Sonnet 5 measured |
| WeirdML | 68.8% | Not measured | Only Claude Sonnet 5 measured |
| ALE-Bench | 1463.1 | 904.3 | Claude Sonnet 5 |
| LMArena Text: coding | 1483 | 1499 | Gemini 3.7 Flash |
| LMArena Text: software and IT | 1474 | 1498 | Gemini 3.7 Flash |
| LMArena WebDev: React | 1541 | 1587 | Gemini 3.7 Flash |
| LMArena WebDev: HTML | 1527 | 1593 | Gemini 3.7 Flash |
| LMArena WebDev: from an image | 1540 | 1599 | Gemini 3.7 Flash |
| Neither model has a result on the other 13 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Claude Sonnet 5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| AA Intelligence Index | 38.2 | 39.6 | Gemini 3.7 Flash |
| Epoch Capabilities Index | 156.9 | 158.0 | Gemini 3.7 Flash |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index710
| Benchmark | Claude Sonnet 5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| AA Agentic Index | 43.6 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: agents building web apps | 1245 | 1224 | Claude Sonnet 5 |
| Design Arena: agents building full-stack apps | 1249 | 1208 | Claude Sonnet 5 |
| Design Arena: agents building mobile apps | 1215 | 1230 | Gemini 3.7 Flash |
| Design Arena: agents building Android apps | 1231 | 1247 | Gemini 3.7 Flash |
| Design Arena: agents building Godot games | 1225 | 1264 | Gemini 3.7 Flash |
| Design Arena: agents building games | 1227 | 1235 | Gemini 3.7 Flash |
| Design Arena: HTML slides | 1218 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: PowerPoint slides | 1216 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: spreadsheets | 1004 | 1028 | Gemini 3.7 Flash |
| LiveBench research | 82.8% | 76.5% | Claude Sonnet 5 |
| LiveBench browser | 72.0% | 56.0% | Claude Sonnet 5 |
| LiveBench long agentic | 39.0% | 28.3% | Claude Sonnet 5 |
| SREBench (Vals AI) | 0.4% | 4.6% | Gemini 3.7 Flash |
| Finance Agent (Vals AI) | 53.9% | 59.0% | Gemini 3.7 Flash |
| Tax Agent Bench (Vals AI) | 29.4% | 22.8% | Claude Sonnet 5 |
| Legal Research Bench (Vals AI) | 41.8% | 34.6% | Claude Sonnet 5 |
| Excel Modeling Benchmark (Vals AI) | 66.3% | 71.3% | Gemini 3.7 Flash |
| Terminal-Bench-Science (Vals AI) | 5.7% | 7.1% | Gemini 3.7 Flash |
| APEX-Agents | 54.5% | 67.8% | Gemini 3.7 Flash |
| Remote Labor Index | Not measured | 5.0% | Only Gemini 3.7 Flash measured |
| Vending-Bench 2 | $6,378 | Not measured | Only Claude Sonnet 5 measured |
| Neither model has a result on the other 17 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index112
| Benchmark | Claude Sonnet 5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| GPQA Diamond | 88.9% | 93.9% | Gemini 3.7 Flash |
| LiveBench reasoning | 88.7% | 87.8% | Claude Sonnet 5 |
| MMMU Pro (Vals AI) | 83.0% | 89.0% | Gemini 3.7 Flash |
| GPQA Diamond (Artificial Analysis run) | 91.1% | 94.5% | Gemini 3.7 Flash |
| Humanity's Last Exam (Artificial Analysis run) | 41.3% | 47.9% | Gemini 3.7 Flash |
| GPQA Diamond (Epoch AI run) | 90.5% | 94.8% | Gemini 3.7 Flash |
| ARC-AGI | Not measured | 95.5% | Only Gemini 3.7 Flash measured |
| ARC-AGI-2 | Not measured | 84.6% | Only Gemini 3.7 Flash measured |
| SimpleBench | 60.6% | Not measured | Only Claude Sonnet 5 measured |
| Chess puzzles | 45.0% | 66.0% | Gemini 3.7 Flash |
| Mystery game puzzles | 35.0% | 37.0% | Gemini 3.7 Flash |
| LMArena Text: hard prompts | 1461 | 1495 | Gemini 3.7 Flash |
| LMArena Text: expert | 1489 | 1512 | Gemini 3.7 Flash |
| LMArena Text: hard prompts in English | 1464 | 1487 | Gemini 3.7 Flash |
| LMArena Vision: diagrams | 1293 | 1329 | Gemini 3.7 Flash |
| LMArena Vision: homework | 1311 | 1320 | Gemini 3.7 Flash |
| Neither model has a result on the other 5 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index15
| Benchmark | Claude Sonnet 5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| OTIS Mock AIME | 94.7% | 97.2% | Gemini 3.7 Flash |
| FrontierMath, tiers 1 to 3 | 65.6% | 71.6% | Gemini 3.7 Flash |
| FrontierMath, tier 4 | 29.3% | 36.6% | Gemini 3.7 Flash |
| ProofBench | 77.0% | 58.0% | Claude Sonnet 5 |
| LMArena Text: math | 1467 | 1511 | Gemini 3.7 Flash |
| LMArena Text: mathematical work | 1481 | 1502 | Gemini 3.7 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.7 Flash | Leader |
|---|---|---|---|
| MMLU Pro | 87.5% | 90.1% | Gemini 3.7 Flash |
| LegalBench (Vals AI) | 83.9% | 87.3% | Gemini 3.7 Flash |
| CorpFin (Vals AI) | 67.0% | Not measured | Only Claude Sonnet 5 measured |
| TaxEval (Vals AI) | 75.6% | 74.7% | Claude Sonnet 5 |
| MortgageTax (Vals AI) | 70.0% | 66.7% | Claude Sonnet 5 |
| MedCode (Vals AI) | 47.5% | 53.4% | Gemini 3.7 Flash |
| SimpleQA Verified | 33.7% | 69.2% | Gemini 3.7 Flash |
| LMArena Text: science | 1460 | 1511 | Gemini 3.7 Flash |
| LMArena Text: medicine and healthcare | 1442 | 1494 | Gemini 3.7 Flash |
| LMArena Text: legal and government | 1454 | 1496 | Gemini 3.7 Flash |
| LMArena Text: business and finance | 1436 | 1479 | Gemini 3.7 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.7 Flash | Leader |
|---|---|---|---|
| Design Arena: websites | 1274 | 1304 | Gemini 3.7 Flash |
| Design Arena: UI components | 1279 | 1299 | Gemini 3.7 Flash |
| Design Arena: game dev | 1278 | 1318 | Gemini 3.7 Flash |
| Design Arena: data viz | 1251 | 1315 | Gemini 3.7 Flash |
| Design Arena: 3D | 1261 | 1308 | Gemini 3.7 Flash |
| Design Arena: all code categories | 1276 | 1308 | Gemini 3.7 Flash |
| Design Arena: SVG | 1193 | 1283 | Gemini 3.7 Flash |
| Design Arena: ASCII art | 1207 | 1276 | Gemini 3.7 Flash |
| LiveBench design | 82.0% | 73.2% | Claude Sonnet 5 |
GeneralLike-for-likePublic boards, shown as published, kept out of the index128
| Benchmark | Claude Sonnet 5 | Gemini 3.7 Flash | Leader |
|---|---|---|---|
| LiveBench data analysis | 71.7% | 68.0% | Claude Sonnet 5 |
| Public Benefits Bench (Vals AI) | 66.0% | Not measured | Only Claude Sonnet 5 measured |
| SAGE (Vals AI) | 48.9% | 49.2% | Gemini 3.7 Flash |
| MedScribe (Vals AI) | 76.0% | 83.9% | Gemini 3.7 Flash |
| Vals Multimodal Index | 68.8% | Not measured | Only Claude Sonnet 5 measured |
| Long context reasoning (AA-LCR) | 82.0% | 83.0% | Gemini 3.7 Flash |
| DTBench | 92.5% | 96.8% | Gemini 3.7 Flash |
| LMCA | 50.0% | 50.4% | Gemini 3.7 Flash |
| Surface Evolver Bench | 60.0% | Not measured | Only Claude Sonnet 5 measured |
| Furniture assembly | Not measured | 26.7% | Only Gemini 3.7 Flash measured |
| LMArena Text | 1442 | 1489 | Gemini 3.7 Flash |
| LMArena Text: instruction following | 1452 | 1484 | Gemini 3.7 Flash |
| LMArena Text: creative writing | 1416 | 1488 | Gemini 3.7 Flash |
| LMArena Vision | 1273 | 1314 | Gemini 3.7 Flash |
| LMArena Text: English | 1450 | 1483 | Gemini 3.7 Flash |
| LMArena Text: non-English | 1431 | 1487 | Gemini 3.7 Flash |
| LMArena Text: Chinese | 1478 | 1552 | Gemini 3.7 Flash |
| LMArena Text: German | 1442 | 1506 | Gemini 3.7 Flash |
| LMArena Text: Japanese | 1422 | 1511 | Gemini 3.7 Flash |
| LMArena Text: Korean | 1412 | 1481 | Gemini 3.7 Flash |
| LMArena Text: French | 1463 | 1500 | Gemini 3.7 Flash |
| LMArena Text: Spanish | 1438 | 1495 | Gemini 3.7 Flash |
| LMArena Text: Russian | 1450 | 1515 | Gemini 3.7 Flash |
| LMArena Text: Polish | 1425 | 1503 | Gemini 3.7 Flash |
| LMArena Text: multi-turn | 1453 | 1485 | Gemini 3.7 Flash |
| LMArena Text: longer queries | 1462 | 1492 | Gemini 3.7 Flash |
| LMArena Text: writing and language | 1436 | 1491 | Gemini 3.7 Flash |
| LMArena Text: entertainment and media | 1411 | 1477 | Gemini 3.7 Flash |
| LMArena Vision: English | 1275 | 1309 | Gemini 3.7 Flash |
| LMArena Vision: Chinese | 1331 | 1394 | Gemini 3.7 Flash |
| LMArena Vision: reading text | 1288 | 1322 | Gemini 3.7 Flash |
| LMArena Vision: humor | 1261 | 1299 | Gemini 3.7 Flash |
| LMArena Vision: creative writing | 1246 | 1312 | Gemini 3.7 Flash |
| LMArena Document | 1466 | Not measured | Only Claude Sonnet 5 measured |
| Neither model has a result on the other 12 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Sonnet 5 | Gemini 3.7 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.7 Flash costs less
Repository review
50K input + 3K output tokens
Gemini 3.7 Flash costs less
Agent loop
200K input + 10K output tokens
Gemini 3.7 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.7 Flash |
|---|---|---|
| Maker | Anthropic | |
| Weights | No public weights listed | No public weights listed |
| Released | June 30, 2026 | August 13, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $2.00 | $0.75 |
| Output $/Mtok | $10.00 | $3.75 |
| Coding index | 63.5 | 69.9 |
| Independent measurements behind it | 2 | 2 |
| Cost per solved task | $1.87 | $1.78 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Sonnet 5 better than Gemini 3.7 Flash for coding?
Pick Gemini 3.7 Flash for coding: it scores 69.9 on the Vibe Coding Index against 63.5 for Claude Sonnet 5. Pick Claude Sonnet 5 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.7 Flash?
Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; Gemini 3.7 Flash costs $0.75 and $3.75. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and Gemini 3.7 Flash $1.78.
Which has the bigger context window, Claude Sonnet 5 or Gemini 3.7 Flash?
Gemini 3.7 Flash, with 1.05M tokens against 1M.
How many benchmarks is the Claude Sonnet 5 vs Gemini 3.7 Flash comparison based on?
107 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.7 Flash's on 2. Where only one model has a result, the page says so instead of naming a winner.