Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.6 vs Grok 4.7

Grok 4.7 leads Claude Sonnet 4.6 on coding, 66.7 to 57.3 on the Vibe Coding Index, and Grok 4.7 costs 2.5x less per output token ($6.00 vs $15.00 per million). Updated October 22, 2026; 81 benchmarks have a result for both.

Claude Sonnet 4.6Anthropic
Coding
57.3
Overall
60.3
Output $/M
$15.00
42
Grok 4.7xAI
Coding
66.7
Overall
66.6
Output $/M
$6.00
37
vs boards won of 81 shared, 2 tied

Claude Sonnet 4.6 or Grok 4.7: which to pick

Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6.

Pick Claude Sonnet 4.6 for a larger context window (1M against 500K tokens) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

Shared results
81
Claude Sonnet 4.6 only
37
Grok 4.7 only
18
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.

At a glance

Coding index
Claude Sonnet 4.6 57.3 from 5 benchmarks, Grok 4.7 66.7 from 5 benchmarks.
Widest category
Coding, 14.5 points apart on average over 13 shared benchmarks.
Widest single gap
FrontierCode: Claude Sonnet 4.6 24.3% against Grok 4.7 47.6%, 35.8 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.6 $15.00 against Grok 4.7 $6.00 per million output tokens, 2.5x apart.
Context window
Claude Sonnet 4.6 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.

Boards won, where both have a result
CategoryClaude Sonnet 4.6BarsGrok 4.7Ties
Coding2101 tie
Intelligence02
Agentic work18
Reasoning66
Math31
Knowledge42
Web design34
General2341 tie
All shared boards42372 ties
CodingLike-for-likeSix of these boards feed the Vibe Coding Index210
Coding benchmarks for Claude Sonnet 4.6 and Grok 4.7
BenchmarkClaude Sonnet 4.6Grok 4.7Leader
LiveBench coding66.6%84.5%Grok 4.7
LMArena WebDev15231637Grok 4.7
AA Coding Index63.0Not measuredOnly Claude Sonnet 4.6 measured
LiveCodeBench (Vals AI)82.1%Not measuredOnly Claude Sonnet 4.6 measured
SWE-bench Verified (Vals AI)77.4%Not measuredOnly Claude Sonnet 4.6 measured
Terminal-Bench 4 (Vals AI)Not measured28.8%Only Grok 4.7 measured
Vibe Code Bench (Vals AI)55.8%86.2%Grok 4.7
Code migration (Vals AI)39.9%44.8%Grok 4.7
ProgramBench (Vals AI)0.5%0.5%Tie
IOI (Vals AI)Not measured57.7%Only Grok 4.7 measured
Terminal-Bench 2.1 (Vals AI)57.3%73.4%Grok 4.7
SWE-bench Multimodal (Vals AI)Not measured42.9%Only Grok 4.7 measured
SkillsBench (Vals AI)49.0%Not measuredOnly Claude Sonnet 4.6 measured
CyberBench (Vals AI)Not measured69.5%Only Grok 4.7 measured
SciCode50.1%57.8%Grok 4.7
Terminal-Bench Hard (Artificial Analysis run)53.0%Not measuredOnly Claude Sonnet 4.6 measured
Terminal-Bench53.4%Not measuredOnly Claude Sonnet 4.6 measured
FrontierCode24.3%47.6%Grok 4.7
FrontierSWENot measured29.5%Only Grok 4.7 measured
WeirdML66.1%Not measuredOnly Claude Sonnet 4.6 measured
LMArena Text: coding15031432Claude Sonnet 4.6
LMArena Text: software and IT14911421Claude Sonnet 4.6
LMArena WebDev: React15121663Grok 4.7
LMArena WebDev: HTML15271627Grok 4.7
LMArena WebDev: from an image15291586Grok 4.7
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Claude Sonnet 4.6 and Grok 4.7
BenchmarkClaude Sonnet 4.6Grok 4.7Leader
AA Intelligence Index30.146.4Grok 4.7
Epoch Capabilities Index152.8154.4Grok 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index18
Agentic work benchmarks for Claude Sonnet 4.6 and Grok 4.7
BenchmarkClaude Sonnet 4.6Grok 4.7Leader
AA Agentic Index31.8Not measuredOnly Claude Sonnet 4.6 measured
Design Arena: agents building web apps1190Not measuredOnly Claude Sonnet 4.6 measured
Design Arena: agents building full-stack apps1213Not measuredOnly Claude Sonnet 4.6 measured
Design Arena: agents building mobile apps1212Not measuredOnly Claude Sonnet 4.6 measured
Design Arena: agents building Android apps1197Not measuredOnly Claude Sonnet 4.6 measured
Design Arena: agents building Godot games1226Not measuredOnly Claude Sonnet 4.6 measured
Design Arena: agents building games1177Not measuredOnly Claude Sonnet 4.6 measured
LiveBench research63.6%86.4%Grok 4.7
LiveBench browser68.0%60.0%Claude Sonnet 4.6
LiveBench long agentic23.1%50.1%Grok 4.7
SREBench (Vals AI)Not measured3.8%Only Grok 4.7 measured
Finance Agent (Vals AI)51.0%52.3%Grok 4.7
Tax Agent Bench (Vals AI)25.8%34.2%Grok 4.7
Legal Research Bench (Vals AI)38.5%47.1%Grok 4.7
Harvey's Legal Agent Benchmark (Vals AI)Not measured18.3%Only Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)60.2%67.0%Grok 4.7
BioMysteryBench (Vals AI)Not measured69.3%Only Grok 4.7 measured
Terminal-Bench-Science (Vals AI)Not measured10.0%Only Grok 4.7 measured
Vals Science IndexNot measured34.8%Only Grok 4.7 measured
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
τ²-Bench Telecom79.5%Not measuredOnly Claude Sonnet 4.6 measured
APEX-Agents43.0%54.6%Grok 4.7
OSWorld 2.09.3%Not measuredOnly Claude Sonnet 4.6 measured
DeepResearch Bench54.9%Not measuredOnly Claude Sonnet 4.6 measured
OSWorld72.1%Not measuredOnly Claude Sonnet 4.6 measured
Vending-Bench 2$7,204$10,537Grok 4.7
Neither model has a result on the other 15 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index66
Reasoning benchmarks for Claude Sonnet 4.6 and Grok 4.7
BenchmarkClaude Sonnet 4.6Grok 4.7Leader
GPQA Diamond85.6%Not measuredOnly Claude Sonnet 4.6 measured
LiveBench reasoning86.4%82.7%Claude Sonnet 4.6
MysteryMechanism (Vals AI)Not measured25.2%Only Grok 4.7 measured
MMMU Pro (Vals AI)83.6%Not measuredOnly Claude Sonnet 4.6 measured
GPQA Diamond (Artificial Analysis run)87.5%Not measuredOnly Claude Sonnet 4.6 measured
Humanity's Last Exam (Artificial Analysis run)33.6%43.1%Grok 4.7
GPQA Diamond (Epoch AI run)87.4%92.7%Grok 4.7
ARC-AGI86.5%90.2%Grok 4.7
ARC-AGI-260.4%61.4%Grok 4.7
Chess puzzles23.0%41.0%Grok 4.7
Mystery game puzzles16.0%29.0%Grok 4.7
LMArena Text: hard prompts14851415Claude Sonnet 4.6
LMArena Text: expert15001439Claude Sonnet 4.6
LMArena Text: hard prompts in English14931427Claude Sonnet 4.6
LMArena Vision: diagrams13061254Claude Sonnet 4.6
LMArena Vision: homework13111309Claude Sonnet 4.6
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index31
Math benchmarks for Claude Sonnet 4.6 and Grok 4.7
BenchmarkClaude Sonnet 4.6Grok 4.7Leader
AIME92.3%Not measuredOnly Claude Sonnet 4.6 measured
OTIS Mock AIME85.8%98.1%Grok 4.7
FrontierMath, tiers 1 to 3Not measured53.0%Only Grok 4.7 measured
FrontierMath, tier 4Not measured17.1%Only Grok 4.7 measured
ProofBench45.0%26.0%Claude Sonnet 4.6
LMArena Text: math14621414Claude Sonnet 4.6
LMArena Text: mathematical work14831435Claude Sonnet 4.6
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index42
Knowledge benchmarks for Claude Sonnet 4.6 and Grok 4.7
BenchmarkClaude Sonnet 4.6Grok 4.7Leader
MMLU Pro87.3%Not measuredOnly Claude Sonnet 4.6 measured
LegalBench (Vals AI)82.1%84.4%Grok 4.7
CaseLaw (Vals AI)64.0%Not measuredOnly Claude Sonnet 4.6 measured
CorpFin (Vals AI)65.3%Not measuredOnly Claude Sonnet 4.6 measured
TaxEval (Vals AI)77.1%Not measuredOnly Claude Sonnet 4.6 measured
MortgageTax (Vals AI)67.7%Not measuredOnly Claude Sonnet 4.6 measured
MedQA (Vals AI)92.1%Not measuredOnly Claude Sonnet 4.6 measured
MedCode (Vals AI)Not measured49.5%Only Grok 4.7 measured
SimpleQA Verified35.5%56.0%Grok 4.7
LMArena Text: science14741419Claude Sonnet 4.6
LMArena Text: medicine and healthcare14511395Claude Sonnet 4.6
LMArena Text: legal and government14701423Claude Sonnet 4.6
LMArena Text: business and finance14641389Claude Sonnet 4.6
FACTS Benchmark Suite37.0%Not measuredOnly Claude Sonnet 4.6 measured
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index34
Web design benchmarks for Claude Sonnet 4.6 and Grok 4.7
BenchmarkClaude Sonnet 4.6Grok 4.7Leader
Design Arena: websites12841255Claude Sonnet 4.6
Design Arena: UI components12691275Grok 4.7
Design Arena: game dev12581314Grok 4.7
Design Arena: data viz12781238Claude Sonnet 4.6
Design Arena: 3D12341274Grok 4.7
Design Arena: all code categories12751273Claude Sonnet 4.6
Design Arena: SVG1196Not measuredOnly Claude Sonnet 4.6 measured
Design Arena: ASCII art1235Not measuredOnly Claude Sonnet 4.6 measured
LiveBench design71.8%78.0%Grok 4.7
GeneralLike-for-likePublic boards, shown as published, kept out of the index234
General benchmarks for Claude Sonnet 4.6 and Grok 4.7
BenchmarkClaude Sonnet 4.6Grok 4.7Leader
Vals IndexNot measured58.6%Only Grok 4.7 measured
LiveBench data analysis76.1%76.9%Grok 4.7
Public Benefits Bench (Vals AI)62.5%65.6%Grok 4.7
SAGE (Vals AI)46.6%40.8%Claude Sonnet 4.6
MedScribe (Vals AI)Not measured89.4%Only Grok 4.7 measured
Vals Multimodal Index60.6%Not measuredOnly Claude Sonnet 4.6 measured
IFBench56.6%Not measuredOnly Claude Sonnet 4.6 measured
Long context reasoning (AA-LCR)80.0%80.0%Tie
DTBench89.9%96.0%Grok 4.7
LMCA46.5%49.4%Grok 4.7
Furniture assemblyNot measured20.8%Only Grok 4.7 measured
ExploitBench23.6%Not measuredOnly Claude Sonnet 4.6 measured
LMArena Text14581399Claude Sonnet 4.6
LMArena Text: instruction following14761406Claude Sonnet 4.6
LMArena Text: creative writing14351381Claude Sonnet 4.6
LMArena Vision12831231Claude Sonnet 4.6
LMArena Text: English14721411Claude Sonnet 4.6
LMArena Text: non-English14401386Claude Sonnet 4.6
LMArena Text: Chinese14911449Claude Sonnet 4.6
LMArena Text: German14281366Claude Sonnet 4.6
LMArena Text: Japanese14201359Claude Sonnet 4.6
LMArena Text: Korean14101383Claude Sonnet 4.6
LMArena Text: French14651431Claude Sonnet 4.6
LMArena Text: Spanish14641406Claude Sonnet 4.6
LMArena Text: Russian14401399Claude Sonnet 4.6
LMArena Text: Polish14431420Claude Sonnet 4.6
LMArena Text: multi-turn14641394Claude Sonnet 4.6
LMArena Text: longer queries14791416Claude Sonnet 4.6
LMArena Text: writing and language14441394Claude Sonnet 4.6
LMArena Text: entertainment and media14311376Claude Sonnet 4.6
LMArena Vision: English12981229Claude Sonnet 4.6
LMArena Vision: Chinese13071250Claude Sonnet 4.6
LMArena Vision: reading text12961241Claude Sonnet 4.6
LMArena Vision: humor1248Not measuredOnly Claude Sonnet 4.6 measured
LMArena Vision: recognizing things1195Not measuredOnly Claude Sonnet 4.6 measured
LMArena Vision: creative writing12721217Claude Sonnet 4.6
LMArena Document1482Not measuredOnly Claude Sonnet 4.6 measured
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
Image generation benchmarks for Claude Sonnet 4.6 and Grok 4.7
BenchmarkClaude Sonnet 4.6Grok 4.7Leader
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 4.6$0.011Fits in one request
Grok 4.7$0.0050Fits in one request

Grok 4.7 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.6$0.195Fits in one request
Grok 4.7$0.118Fits in one request

Grok 4.7 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.6$0.750Fits in one request
Grok 4.7$0.460Fits in one request

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.

Specifications of Claude Sonnet 4.6 and Grok 4.7
SpecificationAnthropic Claude Sonnet 4.6SpaceXAI Grok 4.7
MakerAnthropicxAI
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 17, 2026September 21, 2026
Context window1M500K
Input $/Mtok$3.00$2.00
Output $/Mtok$15.00$6.00
Coding index57.366.7
Independent measurements behind it55
Cost per solved task$1.68Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.6 better than Grok 4.7 for coding?

Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6. Pick Claude Sonnet 4.6 for a larger context window (1M against 500K tokens) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

Which is cheaper, Claude Sonnet 4.6 or Grok 4.7?

Claude Sonnet 4.6 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.6 only.

Which has the bigger context window, Claude Sonnet 4.6 or Grok 4.7?

Claude Sonnet 4.6, with 1M tokens against 500K.

How many benchmarks is the Claude Sonnet 4.6 vs Grok 4.7 comparison based on?

81 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 Grok 4.7's on 5. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/claude-sonnet-4-6-vs-grok-4-7" title="Claude Sonnet 4.6 vs Grok 4.7, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/claude-sonnet-4-6-vs-grok-4-7">LLMBenchmark.ai, Claude Sonnet 4.6 vs Grok 4.7</a></p>