Claude Sonnet 4.5 vs Grok 4.7
Updated October 21, 2026. 57 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick Grok 4.7 for coding: it scores 75.0 on the Vibe Coding Index against 59.1 for Claude Sonnet 4.5.
Pick Claude Sonnet 4.5 when the context window is larger, 1M against 500K tokens, or when what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.
- Shared results
- 57
- Claude Sonnet 4.5 only
- 35
- Grok 4.7 only
- 42
- 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
Grok 4.7
Grok 4.7 scores 75.0 against 59.1.
2 benchmarks behind each score
Intelligence
AA Intelligence Index
Grok 4.7
Grok 4.7 leads, 46.4 against 20.7.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Claude Sonnet 4.5 has a AA Agentic Index result, 15.8.
Directional only
Reasoning
GPQA Diamond
No call
Only Claude Sonnet 4.5 has a GPQA Diamond result, 81.6%.
Directional only
Math
AIME
No call
Only Claude Sonnet 4.5 has a AIME result, 88.2%.
Directional only
Knowledge
MMLU Pro
No call
Only Claude Sonnet 4.5 has a MMLU Pro result, 87.4%.
Directional only
Web design
Design Arena: websites
Grok 4.7
Grok 4.7 leads, 1255 against 1190.
Same board, both measured
General
Vals Index
No call
Only Grok 4.7 has a Vals Index result, 58.6%.
Directional only
Long documents
Listed context window
Claude Sonnet 4.5
Claude Sonnet 4.5 takes 1M tokens against 500K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Grok 4.7
Claude Sonnet 4.5 $0.011, Grok 4.7 $0.0050 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Claude Sonnet 4.5 has the number, $1.16.
Directional only
At a glance
- Coding index
- Claude Sonnet 4.5 59.1 from 2 benchmarks, Grok 4.7 75.0 from 2 benchmarks.
- Widest category
- Agentic work, 41.9 points apart on average over 1 shared benchmark.
- Widest single gap
- Vibe Code Bench (Vals AI): Claude Sonnet 4.5 22.6% against Grok 4.7 86.2%, 63.5 points apart on a 0 to 100 scale.
- Output price
- Claude Sonnet 4.5 $15.00 against Grok 4.7 $6.00 per million output tokens, 2.5x apart.
- Context window
- Claude Sonnet 4.5 takes 1M tokens, Grok 4.7 500K.
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.5 | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 2 | 4 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 0 | 1 | ||
| Reasoning | 3 | 5 | ||
| Math | 2 | 4 | ||
| Knowledge | 4 | 3 | ||
| Web design | 0 | 6 | ||
| General | 17 | 4 | ||
| All shared boards | 28 | 29 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index24
| Benchmark | Claude Sonnet 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| SWE-bench Verified | 74.8% | Not measured | Only Claude Sonnet 4.5 measured |
| SWE-bench Multilingual | 67.0% | Not measured | Only Claude Sonnet 4.5 measured |
| LiveBench coding | Not measured | 84.5% | Only Grok 4.7 measured |
| LMArena WebDev | 1394 | 1637 | Grok 4.7 |
| AA Coding Index | 52.1 | Not measured | Only Claude Sonnet 4.5 measured |
| LiveCodeBench (Vals AI) | 73.0% | Not measured | Only Claude Sonnet 4.5 measured |
| SWE-bench Verified (Vals AI) | 70.0% | Not measured | Only Claude Sonnet 4.5 measured |
| Terminal-Bench 4 (Vals AI) | Not measured | 28.8% | Only Grok 4.7 measured |
| Vibe Code Bench (Vals AI) | 22.6% | 86.2% | Grok 4.7 |
| Code migration (Vals AI) | Not measured | 44.8% | Only Grok 4.7 measured |
| ProgramBench (Vals AI) | Not measured | 0.5% | Only Grok 4.7 measured |
| IOI (Vals AI) | Not measured | 57.7% | Only Grok 4.7 measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 73.4% | Only Grok 4.7 measured |
| SWE-bench Multimodal (Vals AI) | Not measured | 42.9% | Only Grok 4.7 measured |
| CyberBench (Vals AI) | Not measured | 69.5% | Only Grok 4.7 measured |
| SciCode | Not measured | 57.8% | Only Grok 4.7 measured |
| Terminal-Bench | 46.5% | Not measured | Only Claude Sonnet 4.5 measured |
| FrontierCode | Not measured | 47.6% | Only Grok 4.7 measured |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| GSO-Bench | 14.7% | Not measured | Only Claude Sonnet 4.5 measured |
| WeirdML | 47.7% | Not measured | Only Claude Sonnet 4.5 measured |
| Cybench | 60.0% | Not measured | Only Claude Sonnet 4.5 measured |
| LMArena Text: coding | 1488 | 1432 | Claude Sonnet 4.5 |
| LMArena Text: software and IT | 1473 | 1421 | Claude Sonnet 4.5 |
| LMArena WebDev: React | 1386 | 1663 | Grok 4.7 |
| LMArena WebDev: HTML | 1399 | 1627 | Grok 4.7 |
| LMArena WebDev: from an image | Not measured | 1586 | Only Grok 4.7 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.5 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 20.7 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 146.7 | 154.4 | Grok 4.7 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Claude Sonnet 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Agentic Index | 15.8 | Not measured | Only Claude Sonnet 4.5 measured |
| Design Arena: agents building web apps | 1060 | Not measured | Only Claude Sonnet 4.5 measured |
| Design Arena: agents building full-stack apps | 1050 | Not measured | Only Claude Sonnet 4.5 measured |
| Design Arena: agents building mobile apps | 1137 | Not measured | Only Claude Sonnet 4.5 measured |
| LiveBench research | Not measured | 86.4% | Only Grok 4.7 measured |
| LiveBench browser | Not measured | 60.0% | Only Grok 4.7 measured |
| LiveBench long agentic | Not measured | 50.1% | Only Grok 4.7 measured |
| SREBench (Vals AI) | Not measured | 3.8% | Only Grok 4.7 measured |
| Finance Agent (Vals AI) | Not measured | 52.3% | Only Grok 4.7 measured |
| Tax Agent Bench (Vals AI) | Not measured | 34.2% | Only Grok 4.7 measured |
| Legal Research Bench (Vals AI) | Not measured | 47.1% | Only Grok 4.7 measured |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 18.3% | Only Grok 4.7 measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 67.0% | Only Grok 4.7 measured |
| BioMysteryBench (Vals AI) | Not measured | 69.3% | Only Grok 4.7 measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 10.0% | Only Grok 4.7 measured |
| Vals Science Index | Not measured | 34.8% | Only Grok 4.7 measured |
| Robo-bench (Vals AI) | Not measured | 0.2% | Only Grok 4.7 measured |
| APEX-Agents | Not measured | 54.6% | Only Grok 4.7 measured |
| METR time horizons | 67.4% | Not measured | Only Claude Sonnet 4.5 measured |
| Remote Labor Index | 2.1% | Not measured | Only Claude Sonnet 4.5 measured |
| GDPval | 42.5% | Not measured | Only Claude Sonnet 4.5 measured |
| DeepResearch Bench | 52.6% | Not measured | Only Claude Sonnet 4.5 measured |
| OSWorld | 62.9% | Not measured | Only Claude Sonnet 4.5 measured |
| Vending-Bench 2 | $3,839 | $10,537 | Grok 4.7 |
| Neither model has a result on the other 15 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index35
| Benchmark | Claude Sonnet 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | 81.6% | Not measured | Only Claude Sonnet 4.5 measured |
| LiveBench reasoning | Not measured | 82.7% | Only Grok 4.7 measured |
| MysteryMechanism (Vals AI) | Not measured | 25.2% | Only Grok 4.7 measured |
| MMMU Pro (Vals AI) | 79.3% | Not measured | Only Claude Sonnet 4.5 measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 43.1% | Only Grok 4.7 measured |
| GPQA Diamond (Epoch AI run) | 82.3% | 92.7% | Grok 4.7 |
| ARC-AGI | 63.7% | 90.2% | Grok 4.7 |
| ARC-AGI-2 | 13.6% | 61.4% | Grok 4.7 |
| SimpleBench | 54.3% | Not measured | Only Claude Sonnet 4.5 measured |
| Chess puzzles | 10.0% | 41.0% | Grok 4.7 |
| Mystery game puzzles | 17.0% | 29.0% | Grok 4.7 |
| EBR-bench | 2.4% | Not measured | Only Claude Sonnet 4.5 measured |
| VPCT | 39.8% | Not measured | Only Claude Sonnet 4.5 measured |
| LMArena Text: hard prompts | 1462 | 1415 | Claude Sonnet 4.5 |
| LMArena Text: expert | 1483 | 1439 | Claude Sonnet 4.5 |
| LMArena Text: hard prompts in English | 1471 | 1427 | Claude Sonnet 4.5 |
| LMArena Vision: diagrams | Not measured | 1254 | Only Grok 4.7 measured |
| LMArena Vision: homework | Not measured | 1309 | Only Grok 4.7 measured |
| Neither model has a result on the other 3 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index24
| Benchmark | Claude Sonnet 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| AIME | 88.2% | Not measured | Only Claude Sonnet 4.5 measured |
| MGSM (Vals AI) | 94.3% | Not measured | Only Claude Sonnet 4.5 measured |
| OTIS Mock AIME | 77.8% | 98.1% | Grok 4.7 |
| FrontierMath, tiers 1 to 3 | 23.9% | 53.0% | Grok 4.7 |
| FrontierMath, tier 4 | 2.4% | 17.1% | Grok 4.7 |
| ProofBench | 19.0% | 26.0% | Grok 4.7 |
| MATH level 5 | 97.7% | Not measured | Only Claude Sonnet 4.5 measured |
| LMArena Text: math | 1449 | 1414 | Claude Sonnet 4.5 |
| LMArena Text: mathematical work | 1462 | 1435 | Claude Sonnet 4.5 |
| Neither model has a result on the other 4 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index43
| Benchmark | Claude Sonnet 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | 87.4% | Not measured | Only Claude Sonnet 4.5 measured |
| LegalBench (Vals AI) | 84.1% | 84.4% | Grok 4.7 |
| CaseLaw (Vals AI) | 62.2% | Not measured | Only Claude Sonnet 4.5 measured |
| CorpFin (Vals AI) | 62.0% | Not measured | Only Claude Sonnet 4.5 measured |
| TaxEval (Vals AI) | 73.3% | Not measured | Only Claude Sonnet 4.5 measured |
| MortgageTax (Vals AI) | 64.0% | Not measured | Only Claude Sonnet 4.5 measured |
| MedQA (Vals AI) | 94.7% | Not measured | Only Claude Sonnet 4.5 measured |
| MedCode (Vals AI) | 44.1% | 49.5% | Grok 4.7 |
| SimpleQA Verified | 30.7% | 56.0% | Grok 4.7 |
| LMArena Text: science | 1448 | 1419 | Claude Sonnet 4.5 |
| LMArena Text: medicine and healthcare | 1444 | 1395 | Claude Sonnet 4.5 |
| LMArena Text: legal and government | 1451 | 1423 | Claude Sonnet 4.5 |
| LMArena Text: business and finance | 1440 | 1389 | Claude Sonnet 4.5 |
| Neither model has a result on the other 4 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index06
| Benchmark | Claude Sonnet 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | 1190 | 1255 | Grok 4.7 |
| Design Arena: UI components | 1173 | 1271 | Grok 4.7 |
| Design Arena: game dev | 1166 | 1314 | Grok 4.7 |
| Design Arena: data viz | 1167 | 1227 | Grok 4.7 |
| Design Arena: 3D | 1158 | 1269 | Grok 4.7 |
| Design Arena: all code categories | 1183 | 1271 | Grok 4.7 |
| Design Arena: SVG | 1114 | Not measured | Only Claude Sonnet 4.5 measured |
| Design Arena: ASCII art | 1204 | Not measured | Only Claude Sonnet 4.5 measured |
| LiveBench design | Not measured | 78.0% | Only Grok 4.7 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index174
| Benchmark | Claude Sonnet 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| Vals Index | Not measured | 58.6% | Only Grok 4.7 measured |
| LiveBench data analysis | Not measured | 76.9% | Only Grok 4.7 measured |
| Public Benefits Bench (Vals AI) | Not measured | 65.6% | Only Grok 4.7 measured |
| SAGE (Vals AI) | 36.1% | 40.8% | Grok 4.7 |
| MedScribe (Vals AI) | 84.5% | 89.4% | Grok 4.7 |
| Long context reasoning (AA-LCR) | Not measured | 80.0% | Only Grok 4.7 measured |
| DTBench | 83.2% | 96.0% | Grok 4.7 |
| LMCA | 38.8% | 49.4% | Grok 4.7 |
| Furniture assembly | Not measured | 20.8% | Only Grok 4.7 measured |
| LMArena Text | 1438 | 1399 | Claude Sonnet 4.5 |
| LMArena Text: instruction following | 1459 | 1406 | Claude Sonnet 4.5 |
| LMArena Text: creative writing | 1442 | 1381 | Claude Sonnet 4.5 |
| LMArena Vision | Not measured | 1231 | Only Grok 4.7 measured |
| LMArena Text: English | 1450 | 1411 | Claude Sonnet 4.5 |
| LMArena Text: non-English | 1425 | 1386 | Claude Sonnet 4.5 |
| LMArena Text: Chinese | 1460 | 1449 | Claude Sonnet 4.5 |
| LMArena Text: German | 1427 | 1366 | Claude Sonnet 4.5 |
| LMArena Text: Japanese | 1390 | 1359 | Claude Sonnet 4.5 |
| LMArena Text: Korean | 1402 | 1383 | Claude Sonnet 4.5 |
| LMArena Text: French | 1459 | 1431 | Claude Sonnet 4.5 |
| LMArena Text: Spanish | 1458 | 1406 | Claude Sonnet 4.5 |
| LMArena Text: Russian | 1437 | 1399 | Claude Sonnet 4.5 |
| LMArena Text: Polish | 1423 | 1420 | Claude Sonnet 4.5 |
| LMArena Text: multi-turn | 1465 | 1394 | Claude Sonnet 4.5 |
| LMArena Text: longer queries | 1475 | 1416 | Claude Sonnet 4.5 |
| LMArena Text: writing and language | 1442 | 1394 | Claude Sonnet 4.5 |
| LMArena Text: entertainment and media | 1428 | 1376 | Claude Sonnet 4.5 |
| LMArena Vision: English | Not measured | 1229 | Only Grok 4.7 measured |
| LMArena Vision: Chinese | Not measured | 1250 | Only Grok 4.7 measured |
| LMArena Vision: reading text | Not measured | 1241 | Only Grok 4.7 measured |
| LMArena Vision: creative writing | Not measured | 1217 | Only Grok 4.7 measured |
| LMArena Document | 1450 | Not measured | Only Claude Sonnet 4.5 measured |
| Neither model has a result on the other 14 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Sonnet 4.5 | Grok 4.7 | 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
Grok 4.7 costs less
Repository review
50K input + 3K output tokens
Grok 4.7 costs less
Agent loop
200K input + 10K output tokens
Grok 4.7 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.5 | SpaceXAI Grok 4.7 |
|---|---|---|
| Maker | Anthropic | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | September 29, 2025 | September 21, 2026 |
| Context window | 1M | 500K |
| Input $/Mtok | $3.00 | $2.00 |
| Output $/Mtok | $15.00 | $6.00 |
| Coding index | 59.1 | 75.0 |
| Independent measurements behind it | 2 | 2 |
| Cost per solved task | $1.16 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Sonnet 4.5 better than Grok 4.7 for coding?
Pick Grok 4.7 for coding: it scores 75.0 on the Vibe Coding Index against 59.1 for Claude Sonnet 4.5. Pick Claude Sonnet 4.5 when the context window is larger, 1M against 500K tokens, or when what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.
Which is cheaper, Claude Sonnet 4.5 or Grok 4.7?
Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for Claude Sonnet 4.5 only.
Which has the bigger context window, Claude Sonnet 4.5 or Grok 4.7?
Claude Sonnet 4.5, with 1M tokens against 500K.
How many benchmarks is the Claude Sonnet 4.5 vs Grok 4.7 comparison based on?
57 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 4.5's coding index rests on 2 independent benchmarks and Grok 4.7's on 2. Where only one model has a result, the page says so instead of naming a winner.