GPT-5 vs Grok 4.7
Grok 4.7 leads GPT-5 on coding, 66.7 to 38.8 on the Vibe Coding Index, and Grok 4.7 costs 1.7x less per output token ($6.00 vs $10.00 per million). Updated October 21, 2026; 64 benchmarks have a result for both.
GPT-5 or Grok 4.7: which to pick
Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 38.8 for GPT-5.
Pick GPT-5 for work measured by LMArena Text: coding or LMArena Text: hard prompts, where it leads.
- Shared results
- 64
- GPT-5 only
- 49
- Grok 4.7 only
- 35
- 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
Grok 4.7
Grok 4.7 scores 66.7 against 38.8.
3 and 5 benchmarks behind the scores
Intelligence
AA Intelligence Index
Grok 4.7
Grok 4.7 leads, 46.4 against 23.0.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GPT-5 has a GPQA Diamond result, 85.6%.
Directional only
Math
AIME
No call
Only GPT-5 has a AIME result, 93.4%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-5 has a MMLU Pro result, 86.5%.
Directional only
Web design
Design Arena: websites
Grok 4.7
Grok 4.7 leads, 1254 against 1184.
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
Grok 4.7
Grok 4.7 takes 500K tokens against 400K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Grok 4.7
GPT-5 $0.0063, Grok 4.7 $0.0050 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GPT-5 has the number, $0.39.
Directional only
At a glance
- Coding index
- GPT-5 38.8 from 3 benchmarks, Grok 4.7 66.7 from 5 benchmarks.
- Widest category
- Coding, 25.4 points apart on average over 5 shared benchmarks.
- Widest single gap
- Vibe Code Bench (Vals AI): GPT-5 20.1% against Grok 4.7 86.2%, 66.1 points apart on a 0 to 100 scale.
- Output price
- GPT-5 $10.00 against Grok 4.7 $6.00 per million output tokens, 1.7x apart.
- Context window
- GPT-5 takes 400K 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 | GPT-5 | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 1 | 4 | ||
| Intelligence | 0 | 2 | ||
| Reasoning | 1 | 10 | ||
| Math | 2 | 4 | ||
| Knowledge | 5 | 2 | ||
| Web design | 0 | 6 | ||
| General | 13 | 14 | ||
| All shared boards | 22 | 42 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index14
| Benchmark | GPT-5 | Grok 4.7 | Leader |
|---|---|---|---|
| Aider polyglot | 88.0% | Not measured | Only GPT-5 measured |
| SWE-bench Verified | 74.4% | Not measured | Only GPT-5 measured |
| LiveBench coding | Not measured | 84.5% | Only Grok 4.7 measured |
| LMArena WebDev | 1418 | 1637 | Grok 4.7 |
| AA Coding Index | 37.8 | Not measured | Only GPT-5 measured |
| LiveCodeBench (Vals AI) | 85.9% | Not measured | Only GPT-5 measured |
| SWE-bench Verified (Vals AI) | 69.0% | Not measured | Only GPT-5 measured |
| Terminal-Bench 4 (Vals AI) | Not measured | 28.8% | Only Grok 4.7 measured |
| Vibe Code Bench (Vals AI) | 20.1% | 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 |
| LiveCodeBench (Artificial Analysis run) | 84.6% | Not measured | Only GPT-5 measured |
| SciCode | Not measured | 57.8% | Only Grok 4.7 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 37.9% | Not measured | Only GPT-5 measured |
| Terminal-Bench | 49.6% | Not measured | Only GPT-5 measured |
| FrontierCode | Not measured | 47.6% | Only Grok 4.7 measured |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| GSO-Bench | 6.9% | Not measured | Only GPT-5 measured |
| WeirdML | 60.7% | Not measured | Only GPT-5 measured |
| ALE-Bench | 807.6 | Not measured | Only GPT-5 measured |
| LMArena Text: coding | 1436 | 1432 | GPT-5 |
| LMArena Text: software and IT | 1420 | 1421 | Grok 4.7 |
| LMArena WebDev: React | Not measured | 1663 | Only Grok 4.7 measured |
| LMArena WebDev: HTML | 1427 | 1627 | Grok 4.7 |
| LMArena WebDev: from an image | Not measured | 1586 | Only Grok 4.7 measured |
| SciCode | 0.0% | Not measured | Only GPT-5 measured |
| Neither model has a result on the other 9 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GPT-5 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 23.0 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 150.0 | 154.4 | Grok 4.7 |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index22 boards, none shared
| Benchmark | GPT-5 | Grok 4.7 | Leader |
|---|---|---|---|
| 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 |
| τ²-Bench Telecom | 86.5% | Not measured | Only GPT-5 measured |
| APEX-Agents | Not measured | 54.6% | Only Grok 4.7 measured |
| METR time horizons | 69.6% | Not measured | Only GPT-5 measured |
| Remote Labor Index | 1.7% | Not measured | Only GPT-5 measured |
| GDPval | 34.8% | Not measured | Only GPT-5 measured |
| BALROG | 32.8% | Not measured | Only GPT-5 measured |
| DeepResearch Bench | 49.6% | Not measured | Only GPT-5 measured |
| Vending-Bench 2 | Not measured | $10,537 | Only Grok 4.7 measured |
| BrowseComp-Plus | 80.0% | Not measured | Only GPT-5 measured |
| Neither model has a result on the other 19 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index110
| Benchmark | GPT-5 | Grok 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | 85.6% | Not measured | Only GPT-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) | 81.5% | Not measured | Only GPT-5 measured |
| GPQA Diamond (Artificial Analysis run) | 85.4% | Not measured | Only GPT-5 measured |
| Humanity's Last Exam (Artificial Analysis run) | 28.5% | 43.1% | Grok 4.7 |
| GPQA Diamond (Epoch AI run) | 86.2% | 92.7% | Grok 4.7 |
| ARC-AGI | 65.7% | 90.2% | Grok 4.7 |
| ARC-AGI-2 | 9.9% | 61.4% | Grok 4.7 |
| SimpleBench | 56.7% | Not measured | Only GPT-5 measured |
| Chess puzzles | 36.0% | 41.0% | Grok 4.7 |
| Mystery game puzzles | 23.0% | 29.0% | Grok 4.7 |
| EBR-bench | 12.7% | Not measured | Only GPT-5 measured |
| VPCT | 66.0% | Not measured | Only GPT-5 measured |
| LMArena Text: hard prompts | 1415 | 1415 | GPT-5 |
| LMArena Text: expert | 1419 | 1439 | Grok 4.7 |
| LMArena Text: hard prompts in English | 1419 | 1427 | Grok 4.7 |
| LMArena Vision: diagrams | 1252 | 1254 | Grok 4.7 |
| LMArena Vision: homework | 1278 | 1309 | Grok 4.7 |
| Kagi LLM Benchmark | 72.7% | Not measured | Only GPT-5 measured |
| Neither model has a result on the other 2 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index24
| Benchmark | GPT-5 | Grok 4.7 | Leader |
|---|---|---|---|
| AIME | 93.4% | Not measured | Only GPT-5 measured |
| MATH 500 (Vals AI) | 96.0% | Not measured | Only GPT-5 measured |
| MGSM (Vals AI) | 92.8% | Not measured | Only GPT-5 measured |
| AA Math Index | 94.3 | Not measured | Only GPT-5 measured |
| AIME 2025 (Artificial Analysis run) | 94.3% | Not measured | Only GPT-5 measured |
| OTIS Mock AIME | 91.4% | 98.1% | Grok 4.7 |
| FrontierMath, tiers 1 to 3 | 55.4% | 53.0% | GPT-5 |
| FrontierMath, tier 4 | 22.0% | 17.1% | GPT-5 |
| ProofBench | 18.0% | 26.0% | Grok 4.7 |
| MATH level 5 | 98.1% | Not measured | Only GPT-5 measured |
| LMArena Text: math | 1407 | 1414 | Grok 4.7 |
| LMArena Text: mathematical work | 1405 | 1435 | Grok 4.7 |
| Neither model has a result on the other 1 board here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index52
| Benchmark | GPT-5 | Grok 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | 86.5% | Not measured | Only GPT-5 measured |
| LegalBench (Vals AI) | 86.0% | 84.4% | GPT-5 |
| CaseLaw (Vals AI) | 66.5% | Not measured | Only GPT-5 measured |
| CorpFin (Vals AI) | 61.1% | Not measured | Only GPT-5 measured |
| TaxEval (Vals AI) | 73.4% | Not measured | Only GPT-5 measured |
| MortgageTax (Vals AI) | 65.5% | Not measured | Only GPT-5 measured |
| MedQA (Vals AI) | 96.3% | Not measured | Only GPT-5 measured |
| MedCode (Vals AI) | 49.6% | 49.5% | GPT-5 |
| MMLU Pro (Artificial Analysis run) | 87.1% | Not measured | Only GPT-5 measured |
| SimpleQA Verified | 50.1% | 56.0% | Grok 4.7 |
| GeoBench | 81.0% | Not measured | Only GPT-5 measured |
| LMArena Text: science | 1416 | 1419 | Grok 4.7 |
| LMArena Text: medicine and healthcare | 1413 | 1395 | GPT-5 |
| LMArena Text: legal and government | 1431 | 1423 | GPT-5 |
| LMArena Text: business and finance | 1400 | 1389 | GPT-5 |
| FACTS Benchmark Suite | 56.5% | Not measured | Only GPT-5 measured |
| Neither model has a result on the other 2 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index06
| Benchmark | GPT-5 | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | 1184 | 1254 | Grok 4.7 |
| Design Arena: UI components | 1180 | 1275 | Grok 4.7 |
| Design Arena: game dev | 1185 | 1313 | Grok 4.7 |
| Design Arena: data viz | 1221 | 1235 | Grok 4.7 |
| Design Arena: 3D | 1056 | 1270 | Grok 4.7 |
| Design Arena: all code categories | 1168 | 1271 | Grok 4.7 |
| Design Arena: SVG | 1189 | Not measured | Only GPT-5 measured |
| Design Arena: ASCII art | 1141 | Not measured | Only GPT-5 measured |
| LiveBench design | Not measured | 78.0% | Only Grok 4.7 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index1314
| Benchmark | GPT-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) | 43.7% | 40.8% | GPT-5 |
| MedScribe (Vals AI) | 83.7% | 89.4% | Grok 4.7 |
| IFBench | 73.1% | Not measured | Only GPT-5 measured |
| Long context reasoning (AA-LCR) | 78.2% | 80.0% | Grok 4.7 |
| DTBench | 90.7% | 96.0% | Grok 4.7 |
| LMCA | 40.0% | 49.4% | Grok 4.7 |
| Fiction.LiveBench | 97.2% | Not measured | Only GPT-5 measured |
| Creative writing (Lech Mazur) | 86.0% | Not measured | Only GPT-5 measured |
| Furniture assembly | Not measured | 20.8% | Only Grok 4.7 measured |
| LMArena Text | 1406 | 1399 | GPT-5 |
| LMArena Text: instruction following | 1388 | 1406 | Grok 4.7 |
| LMArena Text: creative writing | 1365 | 1381 | Grok 4.7 |
| LMArena Vision | 1232 | 1231 | GPT-5 |
| LMArena Text: English | 1409 | 1411 | Grok 4.7 |
| LMArena Text: non-English | 1397 | 1386 | GPT-5 |
| LMArena Text: Chinese | 1422 | 1449 | Grok 4.7 |
| LMArena Text: German | 1416 | 1366 | GPT-5 |
| LMArena Text: Japanese | 1409 | 1359 | GPT-5 |
| LMArena Text: Korean | 1360 | 1383 | Grok 4.7 |
| LMArena Text: French | 1409 | 1431 | Grok 4.7 |
| LMArena Text: Spanish | 1399 | 1406 | Grok 4.7 |
| LMArena Text: Russian | 1407 | 1399 | GPT-5 |
| LMArena Text: Polish | 1431 | 1420 | GPT-5 |
| LMArena Text: multi-turn | 1426 | 1394 | GPT-5 |
| LMArena Text: longer queries | 1399 | 1416 | Grok 4.7 |
| LMArena Text: writing and language | 1384 | 1394 | Grok 4.7 |
| LMArena Text: entertainment and media | 1379 | 1376 | GPT-5 |
| LMArena Vision: English | 1231 | 1229 | GPT-5 |
| LMArena Vision: Chinese | 1267 | 1250 | GPT-5 |
| LMArena Vision: reading text | 1246 | 1241 | GPT-5 |
| LMArena Vision: humor | 1219 | Not measured | Only GPT-5 measured |
| LMArena Vision: captioning | 1212 | Not measured | Only GPT-5 measured |
| LMArena Vision: recognizing things | 1263 | Not measured | Only GPT-5 measured |
| LMArena Vision: creative writing | 1210 | 1217 | Grok 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 | GPT-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
GPT-5 costs less
Agent loop
200K input + 10K output tokens
GPT-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 | OpenAI GPT-5 | SpaceXAI Grok 4.7 |
|---|---|---|
| Maker | OpenAI | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | August 7, 2025 | September 21, 2026 |
| Context window | 400K | 500K |
| Input $/Mtok | $1.25 | $2.00 |
| Output $/Mtok | $10.00 | $6.00 |
| Coding index | 38.8 | 66.7 |
| Independent measurements behind it | 3 | 5 |
| Cost per solved task | $0.39 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GPT-5 better than Grok 4.7 for coding?
Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 38.8 for GPT-5. Pick GPT-5 for work measured by LMArena Text: coding or LMArena Text: hard prompts, where it leads.
Which is cheaper, GPT-5 or Grok 4.7?
GPT-5 costs $1.25 per million input tokens and $10.00 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for GPT-5 only.
Which has the bigger context window, GPT-5 or Grok 4.7?
Grok 4.7, with 500K tokens against 400K.
How many benchmarks is the GPT-5 vs Grok 4.7 comparison based on?
64 benchmarks have a result for both models as of October 21, 2026. GPT-5's coding index rests on 3 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.