Enter opens the highlighted result. Esc closes.

GPT-5.2 vs Grok 4.20

Updated October 21, 2026. 45 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GPT-5.2OpenAI
Coding
55.9
Overall
30.4
Output $/M
$14.00
27
Grok 4.20xAI
Coding
33.3
Overall
25.7
Output $/M
$2.50
18
vs boards won of 45 shared

Decision reading

Pick GPT-5.2 for coding: it scores 55.9 on the Vibe Coding Index against 33.3 for Grok 4.20.

Pick Grok 4.20 when output tokens cost 5.6x less, or when a solved task costs $0.72 against $1.91.

Shared results
45
GPT-5.2 only
66
Grok 4.20 only
9
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.

At a glance

Coding index
GPT-5.2 55.9 from 3 benchmarks, Grok 4.20 33.3 from 2 benchmarks.
Widest category
Coding, 15.1 points apart on average over 6 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): GPT-5.2 53.5% against Grok 4.20 4.1%, 49.4 points apart on a 0 to 100 scale.
Output price
GPT-5.2 $14.00 against Grok 4.20 $2.50 per million output tokens, 5.6x apart.
Context window
GPT-5.2 takes 400K tokens, Grok 4.20 2M.

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
CategoryGPT-5.2BarsGrok 4.20Ties
Coding60
Intelligence20
Agentic work34
Reasoning33
Math10
Knowledge62
Web design17
General52
All shared boards2718
CodingLike-for-likeSix of these boards feed the Vibe Coding Index60
Coding benchmarks for GPT-5.2 and Grok 4.20
BenchmarkGPT-5.2Grok 4.20Leader
SWE-bench Verified72.8%Not measuredOnly GPT-5.2 measured
SWE-bench Multilingual66.7%Not measuredOnly GPT-5.2 measured
LMArena WebDev1417Not measuredOnly GPT-5.2 measured
LiveCodeBench (Vals AI)85.4%84.3%GPT-5.2
SWE-bench Verified (Vals AI)75.8%72.2%GPT-5.2
Vibe Code Bench (Vals AI)53.5%4.1%GPT-5.2
Code migration (Vals AI)Not measured0.3%Only Grok 4.20 measured
Terminal-Bench 2.1 (Vals AI)Not measured44.2%Only Grok 4.20 measured
LiveCodeBench (Artificial Analysis run)89.4%Not measuredOnly GPT-5.2 measured
Terminal-Bench Hard (Artificial Analysis run)47.0%37.9%GPT-5.2
Terminal-Bench64.9%57.3%GPT-5.2
GSO-Bench27.5%Not measuredOnly GPT-5.2 measured
WeirdML72.2%52.3%GPT-5.2
ALE-Bench1293.5Not measuredOnly GPT-5.2 measured
LMArena Text: coding1442Not measuredOnly GPT-5.2 measured
LMArena Text: software and IT1434Not measuredOnly GPT-5.2 measured
LMArena WebDev: HTML1427Not measuredOnly GPT-5.2 measured
Neither model has a result on the other 21 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-5.2 and Grok 4.20
BenchmarkGPT-5.2Grok 4.20Leader
AA Intelligence Index30.425.7GPT-5.2
Epoch Capabilities Index153.7152.1GPT-5.2
Agentic workLike-for-likePublic boards, shown as published, kept out of the index34
Agentic work benchmarks for GPT-5.2 and Grok 4.20
BenchmarkGPT-5.2Grok 4.20Leader
Design Arena: agents building web apps10861144Grok 4.20
Design Arena: agents building full-stack apps10431054Grok 4.20
Design Arena: agents building mobile apps10931090GPT-5.2
Design Arena: agents building Android apps10661052GPT-5.2
Design Arena: agents building Godot games11421089GPT-5.2
Design Arena: HTML slidesNot measured1180Only Grok 4.20 measured
Finance Agent (Vals AI)Not measured28.5%Only Grok 4.20 measured
Tax Agent Bench (Vals AI)Not measured7.0%Only Grok 4.20 measured
Legal Research Bench (Vals AI)Not measured13.9%Only Grok 4.20 measured
Excel Modeling Benchmark (Vals AI)Not measured11.7%Only Grok 4.20 measured
τ²-Bench Telecom84.8%93.0%Grok 4.20
METR time horizons75.3%Not measuredOnly GPT-5.2 measured
Remote Labor Index2.5%Not measuredOnly GPT-5.2 measured
GDPval49.7%Not measuredOnly GPT-5.2 measured
DeepResearch Bench41.1%Not measuredOnly GPT-5.2 measured
Vending-Bench 2$3,591$4,663Grok 4.20
Neither model has a result on the other 23 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index33
Reasoning benchmarks for GPT-5.2 and Grok 4.20
BenchmarkGPT-5.2Grok 4.20Leader
GPQA Diamond91.7%88.6%GPT-5.2
MMMU Pro (Vals AI)86.7%83.5%GPT-5.2
GPQA Diamond (Artificial Analysis run)90.3%91.1%Grok 4.20
Humanity's Last Exam (Artificial Analysis run)37.7%34.5%GPT-5.2
GPQA Diamond (Epoch AI run)91.4%Not measuredOnly GPT-5.2 measured
ARC-AGI86.2%89.5%Grok 4.20
ARC-AGI-252.9%65.1%Grok 4.20
SimpleBench45.8%Not measuredOnly GPT-5.2 measured
Chess puzzles48.0%Not measuredOnly GPT-5.2 measured
Mystery game puzzles23.0%Not measuredOnly GPT-5.2 measured
EBR-bench23.0%Not measuredOnly GPT-5.2 measured
VPCT84.0%Not measuredOnly GPT-5.2 measured
LMArena Text: hard prompts1428Not measuredOnly GPT-5.2 measured
LMArena Text: expert1445Not measuredOnly GPT-5.2 measured
LMArena Text: hard prompts in English1431Not measuredOnly GPT-5.2 measured
LMArena Vision: diagrams1265Not measuredOnly GPT-5.2 measured
LMArena Vision: homework1276Not measuredOnly GPT-5.2 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index10
Math benchmarks for GPT-5.2 and Grok 4.20
BenchmarkGPT-5.2Grok 4.20Leader
AIME96.9%96.5%GPT-5.2
MGSM (Vals AI)94.0%Not measuredOnly GPT-5.2 measured
AA Math Index99.0Not measuredOnly GPT-5.2 measured
AIME 2025 (Artificial Analysis run)99.0%Not measuredOnly GPT-5.2 measured
OTIS Mock AIME96.1%Not measuredOnly GPT-5.2 measured
FrontierMath, tiers 1 to 367.4%Not measuredOnly GPT-5.2 measured
FrontierMath, tier 431.7%Not measuredOnly GPT-5.2 measured
ProofBench15.0%Not measuredOnly GPT-5.2 measured
LMArena Text: math1440Not measuredOnly GPT-5.2 measured
LMArena Text: mathematical work1442Not measuredOnly GPT-5.2 measured
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index62
Knowledge benchmarks for GPT-5.2 and Grok 4.20
BenchmarkGPT-5.2Grok 4.20Leader
MMLU Pro86.2%86.3%Grok 4.20
LegalBench (Vals AI)82.8%77.7%GPT-5.2
CaseLaw (Vals AI)66.0%54.4%GPT-5.2
CorpFin (Vals AI)65.9%63.7%GPT-5.2
TaxEval (Vals AI)75.8%74.1%GPT-5.2
MortgageTax (Vals AI)67.1%45.4%GPT-5.2
MedQA (Vals AI)94.1%94.5%Grok 4.20
MedCode (Vals AI)49.8%32.2%GPT-5.2
MMLU Pro (Artificial Analysis run)87.4%Not measuredOnly GPT-5.2 measured
SimpleQA Verified37.1%Not measuredOnly GPT-5.2 measured
LMArena Text: science1425Not measuredOnly GPT-5.2 measured
LMArena Text: medicine and healthcare1425Not measuredOnly GPT-5.2 measured
LMArena Text: legal and government1427Not measuredOnly GPT-5.2 measured
LMArena Text: business and finance1414Not measuredOnly GPT-5.2 measured
Neither model has a result on the other 3 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index17
Web design benchmarks for GPT-5.2 and Grok 4.20
BenchmarkGPT-5.2Grok 4.20Leader
Design Arena: websites11951229Grok 4.20
Design Arena: UI components11901199Grok 4.20
Design Arena: game dev11951192GPT-5.2
Design Arena: data viz12021217Grok 4.20
Design Arena: 3D10791193Grok 4.20
Design Arena: all code categories11701221Grok 4.20
Design Arena: SVG11391164Grok 4.20
Design Arena: ASCII art11521174Grok 4.20
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index52
General benchmarks for GPT-5.2 and Grok 4.20
BenchmarkGPT-5.2Grok 4.20Leader
SAGE (Vals AI)49.3%38.2%GPT-5.2
MedScribe (Vals AI)84.4%63.4%GPT-5.2
Vals Multimodal IndexNot measured39.1%Only Grok 4.20 measured
IFBench75.4%81.2%Grok 4.20
Long context reasoning (AA-LCR)82.7%69.0%GPT-5.2
DTBench90.9%90.1%GPT-5.2
LMCA43.9%38.7%GPT-5.2
CL-bench18.2%22.2%Grok 4.20
Furniture assembly38.3%Not measuredOnly GPT-5.2 measured
CL-bench LifeNot measured11.9%Only Grok 4.20 measured
LMArena Text1416Not measuredOnly GPT-5.2 measured
LMArena Text: instruction following1409Not measuredOnly GPT-5.2 measured
LMArena Text: creative writing1376Not measuredOnly GPT-5.2 measured
LMArena Vision1246Not measuredOnly GPT-5.2 measured
LMArena Text: English1422Not measuredOnly GPT-5.2 measured
LMArena Text: non-English1405Not measuredOnly GPT-5.2 measured
LMArena Text: Chinese1447Not measuredOnly GPT-5.2 measured
LMArena Text: German1444Not measuredOnly GPT-5.2 measured
LMArena Text: Japanese1420Not measuredOnly GPT-5.2 measured
LMArena Text: Korean1374Not measuredOnly GPT-5.2 measured
LMArena Text: French1454Not measuredOnly GPT-5.2 measured
LMArena Text: Spanish1413Not measuredOnly GPT-5.2 measured
LMArena Text: Russian1415Not measuredOnly GPT-5.2 measured
LMArena Text: Polish1426Not measuredOnly GPT-5.2 measured
LMArena Text: multi-turn1419Not measuredOnly GPT-5.2 measured
LMArena Text: longer queries1413Not measuredOnly GPT-5.2 measured
LMArena Text: writing and language1392Not measuredOnly GPT-5.2 measured
LMArena Text: entertainment and media1378Not measuredOnly GPT-5.2 measured
LMArena Vision: English1243Not measuredOnly GPT-5.2 measured
LMArena Vision: Chinese1305Not measuredOnly GPT-5.2 measured
LMArena Vision: reading text1257Not measuredOnly GPT-5.2 measured
LMArena Vision: humor1227Not measuredOnly GPT-5.2 measured
LMArena Vision: captioning1267Not measuredOnly GPT-5.2 measured
LMArena Vision: recognizing things1232Not measuredOnly GPT-5.2 measured
LMArena Vision: creative writing1225Not measuredOnly GPT-5.2 measured
LMArena Document1405Not measuredOnly GPT-5.2 measured
Neither model has a result on the other 10 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.2 and Grok 4.20
BenchmarkGPT-5.2Grok 4.20Leader
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

GPT-5.2$0.0088Fits in one request
Grok 4.20$0.0025Fits in one request

Grok 4.20 costs less

Repository review

50K input + 3K output tokens

GPT-5.2$0.130Fits in one request
Grok 4.20$0.070Fits in one request

Grok 4.20 costs less

Agent loop

200K input + 10K output tokens

GPT-5.2$0.490Fits in one request
Grok 4.20$0.275Fits in one request

Grok 4.20 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 GPT-5.2 and Grok 4.20
SpecificationOpenAI GPT-5.2SpaceXAI Grok 4.20
MakerOpenAIxAI
WeightsNo public weights listedNo public weights listed
ReleasedDecember 10, 2025March 31, 2026
Context window400K2M
Input $/Mtok$1.75$1.25
Output $/Mtok$14.00$2.50
Coding index55.933.3
Independent measurements behind it32
Cost per solved task$1.91$0.72
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.2 better than Grok 4.20 for coding?

Pick GPT-5.2 for coding: it scores 55.9 on the Vibe Coding Index against 33.3 for Grok 4.20. Pick Grok 4.20 when output tokens cost 5.6x less, or when a solved task costs $0.72 against $1.91.

Which is cheaper, GPT-5.2 or Grok 4.20?

GPT-5.2 costs $1.75 per million input tokens and $14.00 per million output tokens; Grok 4.20 costs $1.25 and $2.50. Per solved SWE-bench Verified task, GPT-5.2 costs $1.91 and Grok 4.20 $0.72.

Which has the bigger context window, GPT-5.2 or Grok 4.20?

Grok 4.20, with 2M tokens against 400K.

How many benchmarks is the GPT-5.2 vs Grok 4.20 comparison based on?

45 benchmarks have a result for both models as of October 21, 2026. GPT-5.2's coding index rests on 3 independent benchmarks and Grok 4.20's on 2. 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/gpt-5-2-vs-grok-4-20" title="GPT-5.2 vs Grok 4.20, 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/gpt-5-2-vs-grok-4-20">LLMBenchmark.ai, GPT-5.2 vs Grok 4.20</a></p>