Enter opens the highlighted result. Esc closes.

Claude Sonnet 5 vs GPT-5.2

Claude Sonnet 5 leads GPT-5.2 on coding, 57.7 to 55.9 on the Vibe Coding Index, and Claude Sonnet 5 costs 1.4x less per output token ($10.00 vs $14.00 per million). Updated October 22, 2026; 85 benchmarks have a result for both.

Claude Sonnet 5Anthropic
Coding
57.7
Overall
63.2
Output $/M
$10.00
68
GPT-5.2OpenAI
Coding
55.9
Overall
60.7
Output $/M
$14.00
17
vs boards won of 85 shared

Claude Sonnet 5 or GPT-5.2: which to pick

Claude Sonnet 5 and GPT-5.2 are level for coding, 57.7 against 55.9 on the Vibe Coding Index, so price and context decide.

Pick GPT-5.2 for work measured by LiveCodeBench (Vals AI) or WeirdML, where it leads. Pick Claude Sonnet 5 for output tokens 1.4x cheaper ($10.00 vs $14.00 per million) and a lower cost per solved task ($1.87 against $1.91).

Shared results
85
Claude Sonnet 5 only
36
GPT-5.2 only
29
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 5 57.7 from 6 benchmarks, GPT-5.2 55.9 from 3 benchmarks.
Widest category
Agentic work, 18.3 points apart on average over 6 shared benchmarks.
Widest single gap
ProofBench: Claude Sonnet 5 77.0% against GPT-5.2 15.0%, 62.0 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 5 $10.00 against GPT-5.2 $14.00 per million output tokens, 1.4x apart.
Context window
Claude Sonnet 5 takes 1M tokens, GPT-5.2 400K.

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 5BarsGPT-5.2Ties
Coding82
Intelligence20
Agentic work60
Reasoning94
Math33
Knowledge83
Web design80
General245
All shared boards6817
CodingLike-for-likeSix of these boards feed the Vibe Coding Index82
Coding benchmarks for Claude Sonnet 5 and GPT-5.2
BenchmarkClaude Sonnet 5GPT-5.2Leader
SWE-bench VerifiedNot measured72.8%Only GPT-5.2 measured
SWE-bench MultilingualNot measured66.7%Only GPT-5.2 measured
LiveBench coding74.7%Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev15401417Claude Sonnet 5
AA Coding Index71.5Not measuredOnly Claude Sonnet 5 measured
LiveCodeBench (Vals AI)82.4%85.4%GPT-5.2
SWE-bench Verified (Vals AI)79.6%75.8%Claude Sonnet 5
Terminal-Bench 4 (Vals AI)10.6%Not measuredOnly Claude Sonnet 5 measured
Vibe Code Bench (Vals AI)81.3%53.5%Claude Sonnet 5
Code migration (Vals AI)44.4%Not measuredOnly Claude Sonnet 5 measured
ProgramBench (Vals AI)0.0%Not measuredOnly Claude Sonnet 5 measured
IOI (Vals AI)45.0%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench 2.1 (Vals AI)74.5%Not measuredOnly Claude Sonnet 5 measured
Vibe Code Bench 1-100 (Vals AI)13.8%Not measuredOnly Claude Sonnet 5 measured
SkillsBench (Vals AI)46.5%Not measuredOnly Claude Sonnet 5 measured
CyberBench (Vals AI)70.3%Not measuredOnly Claude Sonnet 5 measured
LiveCodeBench (Artificial Analysis run)Not measured89.4%Only GPT-5.2 measured
SciCode54.3%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured47.0%Only GPT-5.2 measured
Terminal-BenchNot measured64.9%Only GPT-5.2 measured
FrontierCode42.7%Not measuredOnly Claude Sonnet 5 measured
GSO-Bench37.3%27.5%Claude Sonnet 5
WeirdML68.8%72.2%GPT-5.2
ALE-Bench1463.11293.5Claude Sonnet 5
LMArena Text: coding14831442Claude Sonnet 5
LMArena Text: software and IT14741434Claude Sonnet 5
LMArena WebDev: React1541Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev: HTML15271427Claude Sonnet 5
LMArena WebDev: from an image1540Not measuredOnly Claude Sonnet 5 measured
SciCode10.7%Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 9 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 5 and GPT-5.2
BenchmarkClaude Sonnet 5GPT-5.2Leader
AA Intelligence Index38.230.4Claude Sonnet 5
Epoch Capabilities Index156.9153.7Claude Sonnet 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index60
Agentic work benchmarks for Claude Sonnet 5 and GPT-5.2
BenchmarkClaude Sonnet 5GPT-5.2Leader
AA Agentic Index43.6Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building web apps12451086Claude Sonnet 5
Design Arena: agents building full-stack apps12491043Claude Sonnet 5
Design Arena: agents building mobile apps12151093Claude Sonnet 5
Design Arena: agents building Android apps12271059Claude Sonnet 5
Design Arena: agents building Godot games12251142Claude Sonnet 5
Design Arena: agents building games1227Not measuredOnly Claude Sonnet 5 measured
Design Arena: HTML slides1168Not measuredOnly Claude Sonnet 5 measured
Design Arena: PowerPoint slides1191Not measuredOnly Claude Sonnet 5 measured
Design Arena: spreadsheets1035Not measuredOnly Claude Sonnet 5 measured
LiveBench research82.8%Not measuredOnly Claude Sonnet 5 measured
LiveBench browser72.0%Not measuredOnly Claude Sonnet 5 measured
LiveBench long agentic39.0%Not measuredOnly Claude Sonnet 5 measured
SREBench (Vals AI)0.4%Not measuredOnly Claude Sonnet 5 measured
Finance Agent (Vals AI)53.9%Not measuredOnly Claude Sonnet 5 measured
Tax Agent Bench (Vals AI)29.4%Not measuredOnly Claude Sonnet 5 measured
Legal Research Bench (Vals AI)41.8%Not measuredOnly Claude Sonnet 5 measured
Excel Modeling Benchmark (Vals AI)66.3%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench-Science (Vals AI)5.7%Not measuredOnly Claude Sonnet 5 measured
τ²-Bench TelecomNot measured84.8%Only GPT-5.2 measured
APEX-Agents54.5%Not measuredOnly Claude Sonnet 5 measured
METR time horizonsNot measured75.3%Only GPT-5.2 measured
Remote Labor IndexNot measured2.5%Only GPT-5.2 measured
GDPvalNot measured49.7%Only GPT-5.2 measured
DeepResearch BenchNot measured41.1%Only GPT-5.2 measured
Vending-Bench 2$6,378$3,591Claude Sonnet 5
Berkeley Function Calling Leaderboard (BFCL)Not measured55.9%Only GPT-5.2 measured
Neither model has a result on the other 14 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index94
Reasoning benchmarks for Claude Sonnet 5 and GPT-5.2
BenchmarkClaude Sonnet 5GPT-5.2Leader
GPQA Diamond88.9%91.7%GPT-5.2
LiveBench reasoning88.7%Not measuredOnly Claude Sonnet 5 measured
MMMU Pro (Vals AI)83.0%86.7%GPT-5.2
GPQA Diamond (Artificial Analysis run)91.1%90.3%Claude Sonnet 5
Humanity's Last Exam (Artificial Analysis run)41.3%37.7%Claude Sonnet 5
GPQA Diamond (Epoch AI run)90.5%91.4%GPT-5.2
ARC-AGINot measured86.2%Only GPT-5.2 measured
ARC-AGI-2Not measured52.9%Only GPT-5.2 measured
SimpleBench60.6%45.8%Claude Sonnet 5
Chess puzzles45.0%48.0%GPT-5.2
Mystery game puzzles35.0%23.0%Claude Sonnet 5
EBR-benchNot measured23.0%Only GPT-5.2 measured
VPCTNot measured84.0%Only GPT-5.2 measured
LMArena Text: hard prompts14611428Claude Sonnet 5
LMArena Text: expert14891445Claude Sonnet 5
LMArena Text: hard prompts in English14641431Claude Sonnet 5
LMArena Vision: diagrams12931265Claude Sonnet 5
LMArena Vision: homework13111276Claude Sonnet 5
Kagi LLM BenchmarkNot measured73.3%Only GPT-5.2 measured
Neither model has a result on the other 3 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index33
Math benchmarks for Claude Sonnet 5 and GPT-5.2
BenchmarkClaude Sonnet 5GPT-5.2Leader
AIMENot measured96.9%Only GPT-5.2 measured
MGSM (Vals AI)Not measured94.0%Only GPT-5.2 measured
AA Math IndexNot measured99.0Only GPT-5.2 measured
AIME 2025 (Artificial Analysis run)Not measured99.0%Only GPT-5.2 measured
OTIS Mock AIME94.7%96.1%GPT-5.2
FrontierMath, tiers 1 to 365.6%67.4%GPT-5.2
FrontierMath, tier 429.3%31.7%GPT-5.2
ProofBench77.0%15.0%Claude Sonnet 5
LMArena Text: math14671440Claude Sonnet 5
LMArena Text: mathematical work14811442Claude Sonnet 5
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index83
Knowledge benchmarks for Claude Sonnet 5 and GPT-5.2
BenchmarkClaude Sonnet 5GPT-5.2Leader
MMLU Pro87.5%86.2%Claude Sonnet 5
LegalBench (Vals AI)83.9%82.8%Claude Sonnet 5
CaseLaw (Vals AI)Not measured66.0%Only GPT-5.2 measured
CorpFin (Vals AI)67.0%65.9%Claude Sonnet 5
TaxEval (Vals AI)75.6%75.8%GPT-5.2
MortgageTax (Vals AI)70.0%67.1%Claude Sonnet 5
MedQA (Vals AI)Not measured94.1%Only GPT-5.2 measured
MedCode (Vals AI)47.5%49.8%GPT-5.2
MMLU Pro (Artificial Analysis run)Not measured87.4%Only GPT-5.2 measured
SimpleQA Verified33.7%37.1%GPT-5.2
LMArena Text: science14601425Claude Sonnet 5
LMArena Text: medicine and healthcare14421425Claude Sonnet 5
LMArena Text: legal and government14541427Claude Sonnet 5
LMArena Text: business and finance14361414Claude Sonnet 5
FACTS Benchmark SuiteNot measured48.5%Only 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 index80
Web design benchmarks for Claude Sonnet 5 and GPT-5.2
BenchmarkClaude Sonnet 5GPT-5.2Leader
Design Arena: websites12741195Claude Sonnet 5
Design Arena: UI components12771190Claude Sonnet 5
Design Arena: game dev12771195Claude Sonnet 5
Design Arena: data viz12511202Claude Sonnet 5
Design Arena: 3D12611079Claude Sonnet 5
Design Arena: all code categories12751170Claude Sonnet 5
Design Arena: SVG11921139Claude Sonnet 5
Design Arena: ASCII art12071152Claude Sonnet 5
LiveBench design82.0%Not measuredOnly Claude Sonnet 5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index245
General benchmarks for Claude Sonnet 5 and GPT-5.2
BenchmarkClaude Sonnet 5GPT-5.2Leader
LiveBench data analysis71.7%Not measuredOnly Claude Sonnet 5 measured
Public Benefits Bench (Vals AI)66.0%Not measuredOnly Claude Sonnet 5 measured
SAGE (Vals AI)48.9%49.3%GPT-5.2
MedScribe (Vals AI)76.0%84.4%GPT-5.2
Vals Multimodal Index68.8%Not measuredOnly Claude Sonnet 5 measured
IFBenchNot measured75.4%Only GPT-5.2 measured
Long context reasoning (AA-LCR)82.0%82.7%GPT-5.2
DTBench92.5%90.9%Claude Sonnet 5
LMCA50.0%43.9%Claude Sonnet 5
CL-benchNot measured18.2%Only GPT-5.2 measured
Surface Evolver Bench60.0%Not measuredOnly Claude Sonnet 5 measured
Furniture assemblyNot measured38.3%Only GPT-5.2 measured
LMArena Text14421416Claude Sonnet 5
LMArena Text: instruction following14521409Claude Sonnet 5
LMArena Text: creative writing14161376Claude Sonnet 5
LMArena Vision12731246Claude Sonnet 5
LMArena Text: English14501422Claude Sonnet 5
LMArena Text: non-English14311405Claude Sonnet 5
LMArena Text: Chinese14781447Claude Sonnet 5
LMArena Text: German14421444GPT-5.2
LMArena Text: Japanese14221420Claude Sonnet 5
LMArena Text: Korean14121374Claude Sonnet 5
LMArena Text: French14631454Claude Sonnet 5
LMArena Text: Spanish14381413Claude Sonnet 5
LMArena Text: Russian14501415Claude Sonnet 5
LMArena Text: Polish14251426GPT-5.2
LMArena Text: multi-turn14531419Claude Sonnet 5
LMArena Text: longer queries14621413Claude Sonnet 5
LMArena Text: writing and language14361392Claude Sonnet 5
LMArena Text: entertainment and media14111378Claude Sonnet 5
LMArena Vision: English12751243Claude Sonnet 5
LMArena Vision: Chinese13311305Claude Sonnet 5
LMArena Vision: reading text12881257Claude Sonnet 5
LMArena Vision: humor12611227Claude Sonnet 5
LMArena Vision: captioningNot measured1267Only GPT-5.2 measured
LMArena Vision: recognizing thingsNot measured1232Only GPT-5.2 measured
LMArena Vision: creative writing12461225Claude Sonnet 5
LMArena Document14661405Claude Sonnet 5
Neither model has a result on the other 8 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Sonnet 5 and GPT-5.2
BenchmarkClaude Sonnet 5GPT-5.2Leader
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 5$0.0070Fits in one request
GPT-5.2$0.0088Fits in one request

Claude Sonnet 5 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 5$0.130Fits in one request
GPT-5.2$0.130Fits in one request

GPT-5.2 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 5$0.500Fits in one request
GPT-5.2$0.490Fits in one request

GPT-5.2 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 5 and GPT-5.2
SpecificationAnthropic Claude Sonnet 5OpenAI GPT-5.2
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedJune 30, 2026December 10, 2025
Context window1M400K
Input $/Mtok$2.00$1.75
Output $/Mtok$10.00$14.00
Coding index57.755.9
Independent measurements behind it63
Cost per solved task$1.87$1.91
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 5 better than GPT-5.2 for coding?

Claude Sonnet 5 and GPT-5.2 are level for coding, 57.7 against 55.9 on the Vibe Coding Index, so price and context decide. Pick GPT-5.2 for work measured by LiveCodeBench (Vals AI) or WeirdML, where it leads. Pick Claude Sonnet 5 for output tokens 1.4x cheaper ($10.00 vs $14.00 per million) and a lower cost per solved task ($1.87 against $1.91).

Which is cheaper, Claude Sonnet 5 or GPT-5.2?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; GPT-5.2 costs $1.75 and $14.00. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and GPT-5.2 $1.91.

Which has the bigger context window, Claude Sonnet 5 or GPT-5.2?

Claude Sonnet 5, with 1M tokens against 400K.

How many benchmarks is the Claude Sonnet 5 vs GPT-5.2 comparison based on?

85 benchmarks have a result for both models as of October 22, 2026. Claude Sonnet 5's coding index rests on 6 independent benchmarks and GPT-5.2's on 3. 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-5-vs-gpt-5-2" title="Claude Sonnet 5 vs GPT-5.2, 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-5-vs-gpt-5-2">LLMBenchmark.ai, Claude Sonnet 5 vs GPT-5.2</a></p>