Enter opens the highlighted result. Esc closes.

Claude Sonnet 5 vs GPT-5.4 Nano

Claude Sonnet 5 leads GPT-5.4 Nano on coding, 57.7 to 44.8 on the Vibe Coding Index, and GPT-5.4 Nano costs 8.0x less per output token ($1.25 vs $10.00 per million). Updated October 22, 2026; 76 benchmarks have a result for both.

Claude Sonnet 5Anthropic
Coding
57.7
Overall
63.2
Output $/M
$10.00
73
GPT-5.4 NanoOpenAI
Coding
44.8
Overall
45.7
Output $/M
$1.25
2
vs boards won of 76 shared, 1 tied

Claude Sonnet 5 or GPT-5.4 Nano: which to pick

Pick Claude Sonnet 5 for coding: it scores 57.7 on the Vibe Coding Index against 44.8 for GPT-5.4 Nano.

Pick GPT-5.4 Nano for output tokens 8.0x cheaper ($1.25 vs $10.00 per million) and a lower cost per solved task ($0.14 against $1.87).

Shared results
76
Claude Sonnet 5 only
45
GPT-5.4 Nano only
9
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.

At a glance

Coding index
Claude Sonnet 5 57.7 from 6 benchmarks, GPT-5.4 Nano 44.8 from 2 benchmarks.
Widest category
Agentic work, 25.0 points apart on average over 5 shared benchmarks.
Widest single gap
ProofBench: Claude Sonnet 5 77.0% against GPT-5.4 Nano 5.0%, 72.0 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 5 $10.00 against GPT-5.4 Nano $1.25 per million output tokens, 8.0x apart.
Context window
Claude Sonnet 5 takes 1M tokens, GPT-5.4 Nano 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.4 NanoTies
Coding101
Intelligence20
Agentic work50
Reasoning1101 tie
Math60
Knowledge110
General281
All shared boards7321 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index101
Coding benchmarks for Claude Sonnet 5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 5GPT-5.4 NanoLeader
LiveBench coding74.7%Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev1540Not measuredOnly Claude Sonnet 5 measured
AA Coding Index71.556.1Claude Sonnet 5
LiveCodeBench (Vals AI)82.4%84.0%GPT-5.4 Nano
SWE-bench Verified (Vals AI)79.6%69.8%Claude Sonnet 5
Terminal-Bench 4 (Vals AI)10.6%Not measuredOnly Claude Sonnet 5 measured
Vibe Code Bench (Vals AI)81.3%26.1%Claude Sonnet 5
Code migration (Vals AI)44.4%14.5%Claude Sonnet 5
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%41.6%Claude Sonnet 5
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
SciCode54.3%47.2%Claude Sonnet 5
Terminal-Bench Hard (Artificial Analysis run)Not measured42.4%Only GPT-5.4 Nano measured
FrontierCode42.7%Not measuredOnly Claude Sonnet 5 measured
GSO-Bench37.3%Not measuredOnly Claude Sonnet 5 measured
WeirdML68.8%49.2%Claude Sonnet 5
ALE-Bench1463.11004.5Claude Sonnet 5
LMArena Text: coding14831404Claude Sonnet 5
LMArena Text: software and IT14741402Claude Sonnet 5
LMArena WebDev: React1541Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev: HTML1527Not measuredOnly Claude Sonnet 5 measured
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 13 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 5GPT-5.4 NanoLeader
AA Intelligence Index38.220.7Claude Sonnet 5
Epoch Capabilities Index156.9146.0Claude Sonnet 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index50
Agentic work benchmarks for Claude Sonnet 5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 5GPT-5.4 NanoLeader
AA Agentic Index43.616.0Claude Sonnet 5
Design Arena: agents building web apps1245Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building full-stack apps1249Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building mobile apps1215Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Android apps1227Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Godot games1225Not measuredOnly Claude Sonnet 5 measured
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%38.2%Claude Sonnet 5
Tax Agent Bench (Vals AI)29.4%5.0%Claude Sonnet 5
Legal Research Bench (Vals AI)41.8%6.3%Claude Sonnet 5
Excel Modeling Benchmark (Vals AI)66.3%44.8%Claude Sonnet 5
Terminal-Bench-Science (Vals AI)5.7%Not measuredOnly Claude Sonnet 5 measured
τ²-Bench TelecomNot measured76.0%Only GPT-5.4 Nano measured
APEX-Agents54.5%Not measuredOnly Claude Sonnet 5 measured
Vending-Bench 2$6,378Not measuredOnly Claude Sonnet 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
Reasoning benchmarks for Claude Sonnet 5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 5GPT-5.4 NanoLeader
GPQA Diamond88.9%77.5%Claude Sonnet 5
LiveBench reasoning88.7%Not measuredOnly Claude Sonnet 5 measured
MMMU Pro (Vals AI)83.0%73.6%Claude Sonnet 5
GPQA Diamond (Artificial Analysis run)91.1%81.7%Claude Sonnet 5
Humanity's Last Exam (Artificial Analysis run)41.3%28.3%Claude Sonnet 5
GPQA Diamond (Epoch AI run)90.5%78.5%Claude Sonnet 5
ARC-AGINot measured51.5%Only GPT-5.4 Nano measured
ARC-AGI-2Not measured5.7%Only GPT-5.4 Nano measured
SimpleBench60.6%Not measuredOnly Claude Sonnet 5 measured
Chess puzzles45.0%45.0%Tie
Mystery game puzzles35.0%9.0%Claude Sonnet 5
LMArena Text: hard prompts14611381Claude Sonnet 5
LMArena Text: expert14891396Claude Sonnet 5
LMArena Text: hard prompts in English14641387Claude Sonnet 5
LMArena Vision: diagrams12931210Claude Sonnet 5
LMArena Vision: homework13111225Claude Sonnet 5
Kagi LLM BenchmarkNot measured39.7%Only GPT-5.4 Nano measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index60
Math benchmarks for Claude Sonnet 5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 5GPT-5.4 NanoLeader
AIMENot measured88.8%Only GPT-5.4 Nano measured
OTIS Mock AIME94.7%87.8%Claude Sonnet 5
FrontierMath, tiers 1 to 365.6%44.9%Claude Sonnet 5
FrontierMath, tier 429.3%12.2%Claude Sonnet 5
ProofBench77.0%5.0%Claude Sonnet 5
LMArena Text: math14671405Claude Sonnet 5
LMArena Text: mathematical work14811409Claude Sonnet 5
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index110
Knowledge benchmarks for Claude Sonnet 5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 5GPT-5.4 NanoLeader
MMLU Pro87.5%77.2%Claude Sonnet 5
LegalBench (Vals AI)83.9%77.9%Claude Sonnet 5
CaseLaw (Vals AI)Not measured51.9%Only GPT-5.4 Nano measured
CorpFin (Vals AI)67.0%61.2%Claude Sonnet 5
TaxEval (Vals AI)75.6%67.4%Claude Sonnet 5
MortgageTax (Vals AI)70.0%59.1%Claude Sonnet 5
MedCode (Vals AI)47.5%41.0%Claude Sonnet 5
SimpleQA Verified33.7%11.7%Claude Sonnet 5
LMArena Text: science14601374Claude Sonnet 5
LMArena Text: medicine and healthcare14421369Claude Sonnet 5
LMArena Text: legal and government14541368Claude Sonnet 5
LMArena Text: business and finance14361366Claude Sonnet 5
Neither model has a result on the other 6 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for Claude Sonnet 5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 5GPT-5.4 NanoLeader
Design Arena: websites1274Not measuredOnly Claude Sonnet 5 measured
Design Arena: UI components1277Not measuredOnly Claude Sonnet 5 measured
Design Arena: game dev1277Not measuredOnly Claude Sonnet 5 measured
Design Arena: data viz1251Not measuredOnly Claude Sonnet 5 measured
Design Arena: 3D1261Not measuredOnly Claude Sonnet 5 measured
Design Arena: all code categories1275Not measuredOnly Claude Sonnet 5 measured
Design Arena: SVG1192Not measuredOnly Claude Sonnet 5 measured
Design Arena: ASCII art1207Not measuredOnly Claude Sonnet 5 measured
LiveBench design82.0%Not measuredOnly Claude Sonnet 5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index281
General benchmarks for Claude Sonnet 5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 5GPT-5.4 NanoLeader
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%38.1%Claude Sonnet 5
MedScribe (Vals AI)76.0%77.1%GPT-5.4 Nano
Vals Multimodal Index68.8%47.6%Claude Sonnet 5
IFBenchNot measured75.9%Only GPT-5.4 Nano measured
Long context reasoning (AA-LCR)82.0%76.7%Claude Sonnet 5
DTBench92.5%80.3%Claude Sonnet 5
LMCA50.0%36.9%Claude Sonnet 5
Surface Evolver Bench60.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text14421372Claude Sonnet 5
LMArena Text: instruction following14521362Claude Sonnet 5
LMArena Text: creative writing14161315Claude Sonnet 5
LMArena Vision12731196Claude Sonnet 5
LMArena Text: English14501381Claude Sonnet 5
LMArena Text: non-English14311359Claude Sonnet 5
LMArena Text: Chinese14781391Claude Sonnet 5
LMArena Text: German14421368Claude Sonnet 5
LMArena Text: Japanese14221343Claude Sonnet 5
LMArena Text: Korean14121321Claude Sonnet 5
LMArena Text: French14631395Claude Sonnet 5
LMArena Text: Spanish14381371Claude Sonnet 5
LMArena Text: Russian14501363Claude Sonnet 5
LMArena Text: Polish14251366Claude Sonnet 5
LMArena Text: multi-turn14531382Claude Sonnet 5
LMArena Text: longer queries14621365Claude Sonnet 5
LMArena Text: writing and language14361338Claude Sonnet 5
LMArena Text: entertainment and media14111325Claude Sonnet 5
LMArena Vision: English12751202Claude Sonnet 5
LMArena Vision: Chinese13311232Claude Sonnet 5
LMArena Vision: reading text12881204Claude Sonnet 5
LMArena Vision: humor12611161Claude Sonnet 5
LMArena Vision: recognizing thingsNot measured1141Only GPT-5.4 Nano measured
LMArena Vision: creative writing12461159Claude Sonnet 5
LMArena Document1466Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 11 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.4 Nano
BenchmarkClaude Sonnet 5GPT-5.4 NanoLeader
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.4 Nano$0.0008Fits in one request

GPT-5.4 Nano costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 5$0.130Fits in one request
GPT-5.4 Nano$0.014Fits in one request

GPT-5.4 Nano costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 5$0.500Fits in one request
GPT-5.4 Nano$0.052Fits in one request

GPT-5.4 Nano 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.4 Nano
SpecificationAnthropic Claude Sonnet 5OpenAI GPT-5.4 Nano
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedJune 30, 2026March 17, 2026
Context window1M400K
Input $/Mtok$2.00$0.20
Output $/Mtok$10.00$1.25
Coding index57.744.8
Independent measurements behind it62
Cost per solved task$1.87$0.14
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 5 better than GPT-5.4 Nano for coding?

Pick Claude Sonnet 5 for coding: it scores 57.7 on the Vibe Coding Index against 44.8 for GPT-5.4 Nano. Pick GPT-5.4 Nano for output tokens 8.0x cheaper ($1.25 vs $10.00 per million) and a lower cost per solved task ($0.14 against $1.87).

Which is cheaper, Claude Sonnet 5 or GPT-5.4 Nano?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; GPT-5.4 Nano costs $0.20 and $1.25. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and GPT-5.4 Nano $0.14.

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

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

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

76 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.4 Nano'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/claude-sonnet-5-vs-gpt-5-4-nano" title="Claude Sonnet 5 vs GPT-5.4 Nano, 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-4-nano">LLMBenchmark.ai, Claude Sonnet 5 vs GPT-5.4 Nano</a></p>