Claude Opus 4.7 vs Claude Sonnet 5
Claude Opus 4.7 leads Claude Sonnet 5 on coding, 67.5 to 57.7 on the Vibe Coding Index, and Claude Sonnet 5 costs 2.5x less per output token ($10.00 vs $25.00 per million). Updated October 22, 2026; 85 benchmarks have a result for both.
Claude Opus 4.7 or Claude Sonnet 5: which to pick
Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 57.7 for Claude Sonnet 5, though on 4 benchmarks against 6.
Pick Claude Sonnet 5 for output tokens 2.5x cheaper ($10.00 vs $25.00 per million) and a lower cost per solved task ($1.87 against $2.95).
- Shared results
- 85
- Claude Opus 4.7 only
- 18
- Claude Sonnet 5 only
- 36
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
Claude Opus 4.7
Claude Opus 4.7 scores 67.5 against 57.7.
4 and 6 benchmarks behind the scores
Intelligence
AA Intelligence Index
Claude Opus 4.7
Claude Opus 4.7 leads, 40.7 against 38.2.
Same board, both measured
Agentic work
AA Agentic Index
Claude Sonnet 5
Claude Sonnet 5 leads, 43.6 against 38.6.
Same board, both measured
Reasoning
GPQA Diamond
Claude Opus 4.7
Claude Opus 4.7 leads, 90.2% against 88.9%.
Same board, both measured
Math
AIME
No call
Only Claude Opus 4.7 has a AIME result, 96.3%.
Directional only
Knowledge
MMLU Pro
Claude Opus 4.7
Claude Opus 4.7 leads, 89.9% against 87.5%.
Same board, both measured
Web design
Design Arena: websites
No call
Only Claude Sonnet 5 has a Design Arena: websites result, 1274.
Directional only
Long documents
Listed context window
No call
Both take 1M tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Claude Sonnet 5
Claude Opus 4.7 $0.018, Claude Sonnet 5 $0.0070 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Claude Sonnet 5
Claude Opus 4.7 $2.95, Claude Sonnet 5 $1.87.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Opus 4.7 67.5 from 4 benchmarks, Claude Sonnet 5 57.7 from 6 benchmarks.
- Widest category
- General, 7.5 points apart on average over 30 shared benchmarks.
- Widest single gap
- Vending-Bench 2: Claude Opus 4.7 $10,937 against Claude Sonnet 5 $6,378, 28.5 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.7 $25.00 against Claude Sonnet 5 $10.00 per million output tokens, 2.5x apart.
- Context window
- Both take 1M 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 | Claude Opus 4.7 | Bars | Claude Sonnet 5 | Ties |
|---|---|---|---|---|
| Coding | 11 | 4 | 1 tie | |
| Intelligence | 1 | 1 | ||
| Agentic work | 1 | 6 | ||
| Reasoning | 10 | 3 | ||
| Math | 5 | 1 | ||
| Knowledge | 9 | 2 | ||
| General | 28 | 2 | ||
| All shared boards | 65 | 19 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index114
| Benchmark | Claude Opus 4.7 | Claude Sonnet 5 | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 74.7% | Only Claude Sonnet 5 measured |
| LMArena WebDev | 1558 | 1540 | Claude Opus 4.7 |
| AA Coding Index | 73.6 | 71.5 | Claude Opus 4.7 |
| LiveCodeBench (Vals AI) | 85.1% | 82.4% | Claude Opus 4.7 |
| SWE-bench Verified (Vals AI) | 82.0% | 79.6% | Claude Opus 4.7 |
| Terminal-Bench 4 (Vals AI) | Not measured | 10.6% | Only Claude Sonnet 5 measured |
| Vibe Code Bench (Vals AI) | 71.0% | 81.3% | Claude Sonnet 5 |
| Code migration (Vals AI) | 43.9% | 44.4% | Claude Sonnet 5 |
| ProgramBench (Vals AI) | 0.0% | 0.0% | Tie |
| IOI (Vals AI) | Not measured | 45.0% | Only Claude Sonnet 5 measured |
| Terminal-Bench 2.1 (Vals AI) | 68.5% | 74.5% | Claude Sonnet 5 |
| Vibe Code Bench 1-100 (Vals AI) | Not measured | 13.8% | Only Claude Sonnet 5 measured |
| SkillsBench (Vals AI) | Not measured | 46.5% | Only Claude Sonnet 5 measured |
| CyberBench (Vals AI) | Not measured | 70.3% | Only Claude Sonnet 5 measured |
| SciCode | Not measured | 54.3% | Only Claude Sonnet 5 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 54.5% | Not measured | Only Claude Opus 4.7 measured |
| Terminal-Bench | 80.2% | Not measured | Only Claude Opus 4.7 measured |
| FrontierCode | 38.5% | 42.7% | Claude Sonnet 5 |
| GSO-Bench | 44.1% | 37.3% | Claude Opus 4.7 |
| WeirdML | 76.4% | 68.8% | Claude Opus 4.7 |
| MirrorCode | 31.1% | Not measured | Only Claude Opus 4.7 measured |
| ALE-Bench | Not measured | 1463.1 | Only Claude Sonnet 5 measured |
| LMArena Text: coding | 1519 | 1483 | Claude Opus 4.7 |
| LMArena Text: software and IT | 1516 | 1474 | Claude Opus 4.7 |
| LMArena WebDev: React | 1560 | 1541 | Claude Opus 4.7 |
| LMArena WebDev: HTML | 1554 | 1527 | Claude Opus 4.7 |
| LMArena WebDev: from an image | 1577 | 1540 | Claude Opus 4.7 |
| SciCode | Not measured | 10.7% | Only Claude Sonnet 5 measured |
| Neither model has a result on the other 11 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
| Benchmark | Claude Opus 4.7 | Claude Sonnet 5 | Leader |
|---|---|---|---|
| AA Intelligence Index | 40.7 | 38.2 | Claude Opus 4.7 |
| Epoch Capabilities Index | 156.8 | 156.9 | Claude Sonnet 5 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index16
| Benchmark | Claude Opus 4.7 | Claude Sonnet 5 | Leader |
|---|---|---|---|
| AA Agentic Index | 38.6 | 43.6 | Claude Sonnet 5 |
| Design Arena: agents building web apps | Not measured | 1245 | Only Claude Sonnet 5 measured |
| Design Arena: agents building full-stack apps | Not measured | 1249 | Only Claude Sonnet 5 measured |
| Design Arena: agents building mobile apps | Not measured | 1215 | Only Claude Sonnet 5 measured |
| Design Arena: agents building Android apps | Not measured | 1227 | Only Claude Sonnet 5 measured |
| Design Arena: agents building Godot games | Not measured | 1225 | Only Claude Sonnet 5 measured |
| Design Arena: agents building games | Not measured | 1227 | Only Claude Sonnet 5 measured |
| Design Arena: HTML slides | Not measured | 1168 | Only Claude Sonnet 5 measured |
| Design Arena: PowerPoint slides | Not measured | 1191 | Only Claude Sonnet 5 measured |
| Design Arena: spreadsheets | Not measured | 1035 | Only Claude Sonnet 5 measured |
| LiveBench research | Not measured | 82.8% | Only Claude Sonnet 5 measured |
| LiveBench browser | Not measured | 72.0% | Only Claude Sonnet 5 measured |
| LiveBench long agentic | Not measured | 39.0% | Only Claude Sonnet 5 measured |
| SREBench (Vals AI) | Not measured | 0.4% | Only Claude Sonnet 5 measured |
| Finance Agent (Vals AI) | 51.5% | 53.9% | Claude Sonnet 5 |
| Tax Agent Bench (Vals AI) | 23.7% | 29.4% | Claude Sonnet 5 |
| Legal Research Bench (Vals AI) | 38.5% | 41.8% | Claude Sonnet 5 |
| Excel Modeling Benchmark (Vals AI) | 63.7% | 66.3% | Claude Sonnet 5 |
| Terminal-Bench-Science (Vals AI) | Not measured | 5.7% | Only Claude Sonnet 5 measured |
| τ²-Bench Telecom | 88.6% | Not measured | Only Claude Opus 4.7 measured |
| APEX-Agents | 49.2% | 54.5% | Claude Sonnet 5 |
| OSWorld 2.0 | 18.2% | Not measured | Only Claude Opus 4.7 measured |
| PostTrainBench | 28.6% | Not measured | Only Claude Opus 4.7 measured |
| Vending-Bench 2 | $10,937 | $6,378 | Claude Opus 4.7 |
| LMArena Search | 1230 | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 16 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index103
| Benchmark | Claude Opus 4.7 | Claude Sonnet 5 | Leader |
|---|---|---|---|
| GPQA Diamond | 90.2% | 88.9% | Claude Opus 4.7 |
| LiveBench reasoning | Not measured | 88.7% | Only Claude Sonnet 5 measured |
| MMMU Pro (Vals AI) | 85.5% | 83.0% | Claude Opus 4.7 |
| GPQA Diamond (Artificial Analysis run) | 91.4% | 91.1% | Claude Opus 4.7 |
| Humanity's Last Exam (Artificial Analysis run) | 42.3% | 41.3% | Claude Opus 4.7 |
| GPQA Diamond (Epoch AI run) | 90.2% | 90.5% | Claude Sonnet 5 |
| ARC-AGI | 93.5% | Not measured | Only Claude Opus 4.7 measured |
| ARC-AGI-2 | 75.8% | Not measured | Only Claude Opus 4.7 measured |
| SimpleBench | 61.7% | 60.6% | Claude Opus 4.7 |
| Chess puzzles | 41.0% | 45.0% | Claude Sonnet 5 |
| Mystery game puzzles | 28.0% | 35.0% | Claude Sonnet 5 |
| EBR-bench | 19.0% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: hard prompts | 1506 | 1461 | Claude Opus 4.7 |
| LMArena Text: expert | 1521 | 1489 | Claude Opus 4.7 |
| LMArena Text: hard prompts in English | 1508 | 1464 | Claude Opus 4.7 |
| LMArena Vision: diagrams | 1336 | 1293 | Claude Opus 4.7 |
| LMArena Vision: homework | 1337 | 1311 | Claude Opus 4.7 |
| Kagi LLM Benchmark | 80.7% | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index51
| Benchmark | Claude Opus 4.7 | Claude Sonnet 5 | Leader |
|---|---|---|---|
| AIME | 96.3% | Not measured | Only Claude Opus 4.7 measured |
| OTIS Mock AIME | 97.8% | 94.7% | Claude Opus 4.7 |
| FrontierMath, tiers 1 to 3 | 70.2% | 65.6% | Claude Opus 4.7 |
| FrontierMath, tier 4 | 31.7% | 29.3% | Claude Opus 4.7 |
| ProofBench | 54.0% | 77.0% | Claude Sonnet 5 |
| LMArena Text: math | 1498 | 1467 | Claude Opus 4.7 |
| LMArena Text: mathematical work | 1509 | 1481 | Claude Opus 4.7 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index92
| Benchmark | Claude Opus 4.7 | Claude Sonnet 5 | Leader |
|---|---|---|---|
| MMLU Pro | 89.9% | 87.5% | Claude Opus 4.7 |
| LegalBench (Vals AI) | 85.3% | 83.9% | Claude Opus 4.7 |
| CaseLaw (Vals AI) | 68.4% | Not measured | Only Claude Opus 4.7 measured |
| CorpFin (Vals AI) | 66.1% | 67.0% | Claude Sonnet 5 |
| TaxEval (Vals AI) | 75.3% | 75.6% | Claude Sonnet 5 |
| MortgageTax (Vals AI) | 70.3% | 70.0% | Claude Opus 4.7 |
| MedCode (Vals AI) | 54.9% | 47.5% | Claude Opus 4.7 |
| SimpleQA Verified | 51.7% | 33.7% | Claude Opus 4.7 |
| LMArena Text: science | 1508 | 1460 | Claude Opus 4.7 |
| LMArena Text: medicine and healthcare | 1495 | 1442 | Claude Opus 4.7 |
| LMArena Text: legal and government | 1504 | 1454 | Claude Opus 4.7 |
| LMArena Text: business and finance | 1490 | 1436 | Claude Opus 4.7 |
| FACTS Benchmark Suite | 45.5% | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 5 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | Claude Opus 4.7 | Claude Sonnet 5 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1274 | Only Claude Sonnet 5 measured |
| Design Arena: UI components | Not measured | 1277 | Only Claude Sonnet 5 measured |
| Design Arena: game dev | Not measured | 1277 | Only Claude Sonnet 5 measured |
| Design Arena: data viz | Not measured | 1251 | Only Claude Sonnet 5 measured |
| Design Arena: 3D | Not measured | 1261 | Only Claude Sonnet 5 measured |
| Design Arena: all code categories | Not measured | 1275 | Only Claude Sonnet 5 measured |
| Design Arena: SVG | Not measured | 1192 | Only Claude Sonnet 5 measured |
| Design Arena: ASCII art | Not measured | 1207 | Only Claude Sonnet 5 measured |
| LiveBench design | Not measured | 82.0% | Only Claude Sonnet 5 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index282
| Benchmark | Claude Opus 4.7 | Claude Sonnet 5 | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 71.7% | Only Claude Sonnet 5 measured |
| Public Benefits Bench (Vals AI) | Not measured | 66.0% | Only Claude Sonnet 5 measured |
| SAGE (Vals AI) | 56.1% | 48.9% | Claude Opus 4.7 |
| MedScribe (Vals AI) | 83.0% | 76.0% | Claude Opus 4.7 |
| Vals Multimodal Index | 67.4% | 68.8% | Claude Sonnet 5 |
| IFBench | 58.6% | Not measured | Only Claude Opus 4.7 measured |
| Long context reasoning (AA-LCR) | 78.7% | 82.0% | Claude Sonnet 5 |
| DTBench | 94.7% | 92.5% | Claude Opus 4.7 |
| LMCA | 52.2% | 50.0% | Claude Opus 4.7 |
| Surface Evolver Bench | Not measured | 60.0% | Only Claude Sonnet 5 measured |
| Furniture assembly | 33.3% | Not measured | Only Claude Opus 4.7 measured |
| ExploitBench | 26.5% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text | 1490 | 1442 | Claude Opus 4.7 |
| LMArena Text: instruction following | 1498 | 1452 | Claude Opus 4.7 |
| LMArena Text: creative writing | 1486 | 1416 | Claude Opus 4.7 |
| LMArena Vision | 1317 | 1273 | Claude Opus 4.7 |
| LMArena Text: English | 1496 | 1450 | Claude Opus 4.7 |
| LMArena Text: non-English | 1480 | 1431 | Claude Opus 4.7 |
| LMArena Text: Chinese | 1531 | 1478 | Claude Opus 4.7 |
| LMArena Text: German | 1495 | 1442 | Claude Opus 4.7 |
| LMArena Text: Japanese | 1474 | 1422 | Claude Opus 4.7 |
| LMArena Text: Korean | 1464 | 1412 | Claude Opus 4.7 |
| LMArena Text: French | 1503 | 1463 | Claude Opus 4.7 |
| LMArena Text: Spanish | 1494 | 1438 | Claude Opus 4.7 |
| LMArena Text: Russian | 1494 | 1450 | Claude Opus 4.7 |
| LMArena Text: Polish | 1489 | 1425 | Claude Opus 4.7 |
| LMArena Text: multi-turn | 1505 | 1453 | Claude Opus 4.7 |
| LMArena Text: longer queries | 1505 | 1462 | Claude Opus 4.7 |
| LMArena Text: writing and language | 1492 | 1436 | Claude Opus 4.7 |
| LMArena Text: entertainment and media | 1474 | 1411 | Claude Opus 4.7 |
| LMArena Vision: English | 1322 | 1275 | Claude Opus 4.7 |
| LMArena Vision: Chinese | 1371 | 1331 | Claude Opus 4.7 |
| LMArena Vision: reading text | 1327 | 1288 | Claude Opus 4.7 |
| LMArena Vision: humor | 1309 | 1261 | Claude Opus 4.7 |
| LMArena Vision: recognizing things | 1278 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: creative writing | 1326 | 1246 | Claude Opus 4.7 |
| LMArena Document | 1495 | 1466 | Claude Opus 4.7 |
| 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
| Benchmark | Claude Opus 4.7 | Claude Sonnet 5 | 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
Claude Sonnet 5 costs less
Repository review
50K input + 3K output tokens
Claude Sonnet 5 costs less
Agent loop
200K input + 10K output tokens
Claude Sonnet 5 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 Opus 4.7 | Anthropic Claude Sonnet 5 |
|---|---|---|
| Maker | Anthropic | Anthropic |
| Weights | No public weights listed | No public weights listed |
| Released | April 16, 2026 | June 30, 2026 |
| Context window | 1M | 1M |
| Input $/Mtok | $5.00 | $2.00 |
| Output $/Mtok | $25.00 | $10.00 |
| Coding index | 67.5 | 57.7 |
| Independent measurements behind it | 4 | 6 |
| Cost per solved task | $2.95 | $1.87 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.7 better than Claude Sonnet 5 for coding?
Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 57.7 for Claude Sonnet 5, though on 4 benchmarks against 6. Pick Claude Sonnet 5 for output tokens 2.5x cheaper ($10.00 vs $25.00 per million) and a lower cost per solved task ($1.87 against $2.95).
Which is cheaper, Claude Opus 4.7 or Claude Sonnet 5?
Claude Opus 4.7 costs $5.00 per million input tokens and $25.00 per million output tokens; Claude Sonnet 5 costs $2.00 and $10.00. Per solved SWE-bench Verified task, Claude Opus 4.7 costs $2.95 and Claude Sonnet 5 $1.87.
Which has the bigger context window, Claude Opus 4.7 or Claude Sonnet 5?
Neither: both take 1M tokens.
How many benchmarks is the Claude Opus 4.7 vs Claude Sonnet 5 comparison based on?
85 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.7's coding index rests on 4 independent benchmarks and Claude Sonnet 5's on 6. Where only one model has a result, the page says so instead of naming a winner.