Enter opens the highlighted result. Esc closes.

Claude Opus 5 vs Grok 4.7

Claude Opus 5 leads Grok 4.7 on coding, 83.0 to 66.7 on the Vibe Coding Index, and Grok 4.7 costs 4.2x less per output token ($6.00 vs $25.00 per million). Updated October 22, 2026; 95 benchmarks have a result for both.

Claude Opus 5Anthropic
Coding
83.0
Overall
81.6
Output $/M
$25.00
92
Grok 4.7xAI
Coding
66.7
Overall
66.6
Output $/M
$6.00
3
vs boards won of 95 shared

Claude Opus 5 or Grok 4.7: which to pick

Pick Claude Opus 5 for coding: it scores 83.0 on the Vibe Coding Index against 66.7 for Grok 4.7.

Pick Grok 4.7 for output tokens 4.2x cheaper ($6.00 vs $25.00 per million) and work measured by CyberBench (Vals AI) or SciCode, where it leads.

Shared results
95
Claude Opus 5 only
36
Grok 4.7 only
4
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 Opus 5 83.0 from 6 benchmarks, Grok 4.7 66.7 from 5 benchmarks.
Widest category
Math, 33.4 points apart on average over 6 shared benchmarks.
Widest single gap
ProofBench: Claude Opus 5 99.0% against Grok 4.7 26.0%, 73.0 points apart on a 0 to 100 scale.
Output price
Claude Opus 5 $25.00 against Grok 4.7 $6.00 per million output tokens, 4.2x apart.
Context window
Claude Opus 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.

Boards won, where both have a result
CategoryClaude Opus 5BarsGrok 4.7Ties
Coding152
Intelligence20
Agentic work130
Reasoning130
Math60
Knowledge70
Web design70
General291
All shared boards923
CodingLike-for-likeSix of these boards feed the Vibe Coding Index152
Coding benchmarks for Claude Opus 5 and Grok 4.7
BenchmarkClaude Opus 5Grok 4.7Leader
LiveBench coding90.8%84.5%Claude Opus 5
LMArena WebDev16891637Claude Opus 5
AA Coding Index78.0Not measuredOnly Claude Opus 5 measured
LiveCodeBench (Vals AI)89.0%Not measuredOnly Claude Opus 5 measured
SWE-bench Verified (Vals AI)97.0%Not measuredOnly Claude Opus 5 measured
Terminal-Bench 4 (Vals AI)53.5%28.8%Claude Opus 5
Vibe Code Bench (Vals AI)88.4%86.2%Claude Opus 5
Code migration (Vals AI)57.5%44.8%Claude Opus 5
ProgramBench (Vals AI)3.0%0.5%Claude Opus 5
IOI (Vals AI)84.3%57.7%Claude Opus 5
Terminal-Bench 2.1 (Vals AI)84.6%73.4%Claude Opus 5
SWE-bench Multimodal (Vals AI)Not measured42.9%Only Grok 4.7 measured
Vibe Code Bench 1-100 (Vals AI)28.5%Not measuredOnly Claude Opus 5 measured
SkillsBench (Vals AI)60.4%Not measuredOnly Claude Opus 5 measured
CyberBench (Vals AI)65.4%69.5%Grok 4.7
SciCode56.4%57.8%Grok 4.7
FrontierCode53.4%47.6%Claude Opus 5
FrontierSWE52.0%29.5%Claude Opus 5
WeirdML91.8%Not measuredOnly Claude Opus 5 measured
ALE-Bench2164.6Not measuredOnly Claude Opus 5 measured
LMArena Text: coding15331432Claude Opus 5
LMArena Text: software and IT15271421Claude Opus 5
LMArena WebDev: React17111663Claude Opus 5
LMArena WebDev: HTML16801627Claude Opus 5
LMArena WebDev: from an image16621586Claude Opus 5
SciCode13.8%Not measuredOnly Claude Opus 5 measured
Neither model has a result on the other 13 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Opus 5 and Grok 4.7
BenchmarkClaude Opus 5Grok 4.7Leader
AA Intelligence Index50.846.4Claude Opus 5
Epoch Capabilities Index163.9154.4Claude Opus 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index130
Agentic work benchmarks for Claude Opus 5 and Grok 4.7
BenchmarkClaude Opus 5Grok 4.7Leader
AA Agentic Index56.5Not measuredOnly Claude Opus 5 measured
Design Arena: agents building web apps1266Not measuredOnly Claude Opus 5 measured
Design Arena: agents building full-stack apps1306Not measuredOnly Claude Opus 5 measured
Design Arena: agents building mobile apps1348Not measuredOnly Claude Opus 5 measured
Design Arena: agents building Android apps1257Not measuredOnly Claude Opus 5 measured
Design Arena: agents building Godot games1279Not measuredOnly Claude Opus 5 measured
Design Arena: agents building games1261Not measuredOnly Claude Opus 5 measured
Design Arena: PowerPoint slides1240Not measuredOnly Claude Opus 5 measured
LiveBench research88.9%86.4%Claude Opus 5
LiveBench browser84.0%60.0%Claude Opus 5
LiveBench long agentic62.1%50.1%Claude Opus 5
SREBench (Vals AI)12.2%3.8%Claude Opus 5
Finance Agent (Vals AI)58.6%52.3%Claude Opus 5
Tax Agent Bench (Vals AI)45.5%34.2%Claude Opus 5
Legal Research Bench (Vals AI)55.3%47.1%Claude Opus 5
Harvey's Legal Agent Benchmark (Vals AI)Not measured18.3%Only Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)73.6%67.0%Claude Opus 5
BioMysteryBench (Vals AI)79.3%69.3%Claude Opus 5
Terminal-Bench-Science (Vals AI)27.1%10.0%Claude Opus 5
Vals Science Index47.9%34.8%Claude Opus 5
Time Horizon Index (Vals AI)18.8%Not measuredOnly Claude Opus 5 measured
CUA-bench (Vals AI)9.0%Not measuredOnly Claude Opus 5 measured
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
APEX-Agents65.8%54.6%Claude Opus 5
OSWorld 2.031.4%Not measuredOnly Claude Opus 5 measured
BALROG63.4%Not measuredOnly Claude Opus 5 measured
PostTrainBench35.0%Not measuredOnly Claude Opus 5 measured
Vending-Bench 2$11,182$10,537Claude Opus 5
LMArena Search1242Not measuredOnly Claude Opus 5 measured
Neither model has a result on the other 12 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index130
Reasoning benchmarks for Claude Opus 5 and Grok 4.7
BenchmarkClaude Opus 5Grok 4.7Leader
GPQA Diamond93.4%Not measuredOnly Claude Opus 5 measured
LiveBench reasoning91.2%82.7%Claude Opus 5
MysteryMechanism (Vals AI)37.4%25.2%Claude Opus 5
MMMU Pro (Vals AI)89.9%Not measuredOnly Claude Opus 5 measured
GPQA Diamond (Artificial Analysis run)93.7%Not measuredOnly Claude Opus 5 measured
Humanity's Last Exam (Artificial Analysis run)54.9%43.1%Claude Opus 5
GPQA Diamond (Epoch AI run)93.9%92.7%Claude Opus 5
ARC-AGI97.5%90.2%Claude Opus 5
ARC-AGI-290.4%61.4%Claude Opus 5
SimpleBench80.6%Not measuredOnly Claude Opus 5 measured
Chess puzzles43.0%41.0%Claude Opus 5
Mystery game puzzles59.0%29.0%Claude Opus 5
EBR-bench45.7%Not measuredOnly Claude Opus 5 measured
LMArena Text: hard prompts15271415Claude Opus 5
LMArena Text: expert15541439Claude Opus 5
LMArena Text: hard prompts in English15231427Claude Opus 5
LMArena Vision: diagrams13481254Claude Opus 5
LMArena Vision: homework13381309Claude Opus 5
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index60
Math benchmarks for Claude Opus 5 and Grok 4.7
BenchmarkClaude Opus 5Grok 4.7Leader
OTIS Mock AIME98.9%98.1%Claude Opus 5
FrontierMath, tiers 1 to 385.6%53.0%Claude Opus 5
FrontierMath, tier 473.2%17.1%Claude Opus 5
ProofBench99.0%26.0%Claude Opus 5
LMArena Text: math15331414Claude Opus 5
LMArena Text: mathematical work15441435Claude Opus 5
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index70
Knowledge benchmarks for Claude Opus 5 and Grok 4.7
BenchmarkClaude Opus 5Grok 4.7Leader
MMLU Pro91.6%Not measuredOnly Claude Opus 5 measured
LegalBench (Vals AI)87.0%84.4%Claude Opus 5
CorpFin (Vals AI)73.2%Not measuredOnly Claude Opus 5 measured
TaxEval (Vals AI)75.1%Not measuredOnly Claude Opus 5 measured
MortgageTax (Vals AI)72.1%Not measuredOnly Claude Opus 5 measured
MedCode (Vals AI)63.6%49.5%Claude Opus 5
SimpleQA Verified59.9%56.0%Claude Opus 5
LMArena Text: science15311419Claude Opus 5
LMArena Text: medicine and healthcare15251395Claude Opus 5
LMArena Text: legal and government15301423Claude Opus 5
LMArena Text: business and finance15011389Claude Opus 5
Neither model has a result on the other 7 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index70
Web design benchmarks for Claude Opus 5 and Grok 4.7
BenchmarkClaude Opus 5Grok 4.7Leader
Design Arena: websites13091255Claude Opus 5
Design Arena: UI components13461275Claude Opus 5
Design Arena: game dev13371314Claude Opus 5
Design Arena: data viz13291238Claude Opus 5
Design Arena: 3D13341274Claude Opus 5
Design Arena: all code categories13231273Claude Opus 5
Design Arena: SVG1311Not measuredOnly Claude Opus 5 measured
Design Arena: ASCII art1352Not measuredOnly Claude Opus 5 measured
LiveBench design83.0%78.0%Claude Opus 5
GeneralLike-for-likePublic boards, shown as published, kept out of the index291
General benchmarks for Claude Opus 5 and Grok 4.7
BenchmarkClaude Opus 5Grok 4.7Leader
Vals IndexNot measured58.6%Only Grok 4.7 measured
LiveBench data analysis74.6%76.9%Grok 4.7
Public Benefits Bench (Vals AI)76.9%65.6%Claude Opus 5
SAGE (Vals AI)49.4%40.8%Claude Opus 5
MedScribe (Vals AI)91.0%89.4%Claude Opus 5
Vals Multimodal Index73.9%Not measuredOnly Claude Opus 5 measured
Long context reasoning (AA-LCR)82.0%80.0%Claude Opus 5
DTBench97.9%96.0%Claude Opus 5
LMCA64.5%49.4%Claude Opus 5
Furniture assembly60.8%20.8%Claude Opus 5
LMArena Text15091399Claude Opus 5
LMArena Text: instruction following15181406Claude Opus 5
LMArena Text: creative writing14931381Claude Opus 5
LMArena Vision13201231Claude Opus 5
LMArena Text: English15081411Claude Opus 5
LMArena Text: non-English15021386Claude Opus 5
LMArena Text: Chinese15731449Claude Opus 5
LMArena Text: German15271366Claude Opus 5
LMArena Text: Japanese15201359Claude Opus 5
LMArena Text: Korean15171383Claude Opus 5
LMArena Text: French15191431Claude Opus 5
LMArena Text: Spanish15231406Claude Opus 5
LMArena Text: Russian15071399Claude Opus 5
LMArena Text: Polish15221420Claude Opus 5
LMArena Text: multi-turn15001394Claude Opus 5
LMArena Text: longer queries15171416Claude Opus 5
LMArena Text: writing and language14991394Claude Opus 5
LMArena Text: entertainment and media14811376Claude Opus 5
LMArena Vision: English13151229Claude Opus 5
LMArena Vision: Chinese14001250Claude Opus 5
LMArena Vision: reading text13291241Claude Opus 5
LMArena Vision: humor1293Not measuredOnly Claude Opus 5 measured
LMArena Vision: creative writing13131217Claude Opus 5
LMArena Document1516Not measuredOnly Claude Opus 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
Image generation benchmarks for Claude Opus 5 and Grok 4.7
BenchmarkClaude Opus 5Grok 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 Opus 5$0.018Fits in one request
Grok 4.7$0.0050Fits in one request

Grok 4.7 costs less

Repository review

50K input + 3K output tokens

Claude Opus 5$0.325Fits in one request
Grok 4.7$0.118Fits in one request

Grok 4.7 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 5$1.25Fits 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 Opus 5 and Grok 4.7
SpecificationAnthropic Claude Opus 5SpaceXAI Grok 4.7
MakerAnthropicxAI
WeightsNo public weights listedNo public weights listed
ReleasedJuly 24, 2026September 21, 2026
Context window1M500K
Input $/Mtok$5.00$2.00
Output $/Mtok$25.00$6.00
Coding index83.066.7
Independent measurements behind it65
Cost per solved task$1.33Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 5 better than Grok 4.7 for coding?

Pick Claude Opus 5 for coding: it scores 83.0 on the Vibe Coding Index against 66.7 for Grok 4.7. Pick Grok 4.7 for output tokens 4.2x cheaper ($6.00 vs $25.00 per million) and work measured by CyberBench (Vals AI) or SciCode, where it leads.

Which is cheaper, Claude Opus 5 or Grok 4.7?

Claude Opus 5 costs $5.00 per million input tokens and $25.00 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for Claude Opus 5 only.

Which has the bigger context window, Claude Opus 5 or Grok 4.7?

Claude Opus 5, with 1M tokens against 500K.

How many benchmarks is the Claude Opus 5 vs Grok 4.7 comparison based on?

95 benchmarks have a result for both models as of October 22, 2026. Claude Opus 5's coding index rests on 6 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-opus-5-vs-grok-4-7" title="Claude Opus 5 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-opus-5-vs-grok-4-7">LLMBenchmark.ai, Claude Opus 5 vs Grok 4.7</a></p>