Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.6 vs GPT-5.4

GPT-5.4 leads Claude Sonnet 4.6 on coding, 64.4 to 57.3 on the Vibe Coding Index, at about the same output price ($15.00 vs $15.00 per million). Updated October 22, 2026; 96 benchmarks have a result for both.

Claude Sonnet 4.6Anthropic
Coding
57.3
Overall
60.3
Output $/M
$15.00
32
GPT-5.4OpenAI
Coding
64.4
Overall
69.6
Output $/M
$15.00
63
vs boards won of 96 shared, 1 tied

Claude Sonnet 4.6 or GPT-5.4: which to pick

Pick GPT-5.4 for coding: it scores 64.4 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6, though on 3 benchmarks against 5.

Pick Claude Sonnet 4.6 for work measured by LMArena WebDev or Code migration (Vals AI), where it leads.

Shared results
96
Claude Sonnet 4.6 only
22
GPT-5.4 only
14
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 4.6 57.3 from 5 benchmarks, GPT-5.4 64.4 from 3 benchmarks.
Widest category
Agentic work, 14.7 points apart on average over 9 shared benchmarks.
Widest single gap
Terminal-Bench: Claude Sonnet 4.6 53.4% against GPT-5.4 81.8%, 28.4 points apart on a 0 to 100 scale.
Output price
Both cost $15.00 per million output tokens.
Context window
Claude Sonnet 4.6 takes 1M tokens, GPT-5.4 1.05M.

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 4.6BarsGPT-5.4Ties
Coding781 tie
Intelligence02
Agentic work72
Reasoning113
Math05
Knowledge39
Web design80
General624
All shared boards32631 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index78
Coding benchmarks for Claude Sonnet 4.6 and GPT-5.4
BenchmarkClaude Sonnet 4.6GPT-5.4Leader
LiveBench coding66.6%Not measuredOnly Claude Sonnet 4.6 measured
LMArena WebDev15231464Claude Sonnet 4.6
AA Coding Index63.071.1GPT-5.4
LiveCodeBench (Vals AI)82.1%84.1%GPT-5.4
SWE-bench Verified (Vals AI)77.4%78.2%GPT-5.4
Vibe Code Bench (Vals AI)55.8%67.4%GPT-5.4
Code migration (Vals AI)39.9%35.0%Claude Sonnet 4.6
ProgramBench (Vals AI)0.5%0.5%Tie
Terminal-Bench 2.1 (Vals AI)57.3%Not measuredOnly Claude Sonnet 4.6 measured
SkillsBench (Vals AI)49.0%51.7%GPT-5.4
SciCode50.1%Not measuredOnly Claude Sonnet 4.6 measured
Terminal-Bench Hard (Artificial Analysis run)53.0%57.6%GPT-5.4
Terminal-Bench53.4%81.8%GPT-5.4
FrontierCode24.3%Not measuredOnly Claude Sonnet 4.6 measured
GSO-BenchNot measured31.4%Only GPT-5.4 measured
WeirdML66.1%77.7%GPT-5.4
MirrorCodeNot measured15.6%Only GPT-5.4 measured
ALE-BenchNot measured1607.0Only GPT-5.4 measured
LMArena Text: coding15031496Claude Sonnet 4.6
LMArena Text: software and IT14911491Claude Sonnet 4.6
LMArena WebDev: React15121454Claude Sonnet 4.6
LMArena WebDev: HTML15271478Claude Sonnet 4.6
LMArena WebDev: from an image15291436Claude Sonnet 4.6
Neither model has a result on the other 16 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Claude Sonnet 4.6 and GPT-5.4
BenchmarkClaude Sonnet 4.6GPT-5.4Leader
AA Intelligence Index30.139.0GPT-5.4
Epoch Capabilities Index152.8157.3GPT-5.4
Agentic workLike-for-likePublic boards, shown as published, kept out of the index72
Agentic work benchmarks for Claude Sonnet 4.6 and GPT-5.4
BenchmarkClaude Sonnet 4.6GPT-5.4Leader
AA Agentic Index31.8Not measuredOnly Claude Sonnet 4.6 measured
Design Arena: agents building web apps11901059Claude Sonnet 4.6
Design Arena: agents building full-stack apps12131017Claude Sonnet 4.6
Design Arena: agents building mobile apps12121087Claude Sonnet 4.6
Design Arena: agents building Android apps11971031Claude Sonnet 4.6
Design Arena: agents building Godot games12261135Claude Sonnet 4.6
Design Arena: agents building games1177Not measuredOnly Claude Sonnet 4.6 measured
LiveBench research63.6%Not measuredOnly Claude Sonnet 4.6 measured
LiveBench browser68.0%Not measuredOnly Claude Sonnet 4.6 measured
LiveBench long agentic23.1%Not measuredOnly Claude Sonnet 4.6 measured
Finance Agent (Vals AI)51.0%Not measuredOnly Claude Sonnet 4.6 measured
Tax Agent Bench (Vals AI)25.8%Not measuredOnly Claude Sonnet 4.6 measured
Legal Research Bench (Vals AI)38.5%Not measuredOnly Claude Sonnet 4.6 measured
Excel Modeling Benchmark (Vals AI)60.2%Not measuredOnly Claude Sonnet 4.6 measured
τ²-Bench Telecom79.5%87.1%GPT-5.4
APEX-Agents43.0%52.4%GPT-5.4
METR time horizonsNot measured74.3%Only GPT-5.4 measured
OSWorld 2.09.3%Not measuredOnly Claude Sonnet 4.6 measured
DeepResearch Bench54.9%35.1%Claude Sonnet 4.6
PostTrainBenchNot measured19.0%Only GPT-5.4 measured
OSWorld72.1%Not measuredOnly Claude Sonnet 4.6 measured
Vending-Bench 2$7,204$6,144Claude Sonnet 4.6
Neither model has a result on the other 19 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index113
Reasoning benchmarks for Claude Sonnet 4.6 and GPT-5.4
BenchmarkClaude Sonnet 4.6GPT-5.4Leader
GPQA Diamond85.6%91.7%GPT-5.4
LiveBench reasoning86.4%Not measuredOnly Claude Sonnet 4.6 measured
MMMU Pro (Vals AI)83.6%87.5%GPT-5.4
GPQA Diamond (Artificial Analysis run)87.5%92.0%GPT-5.4
Humanity's Last Exam (Artificial Analysis run)33.6%43.7%GPT-5.4
GPQA Diamond (Epoch AI run)87.4%93.3%GPT-5.4
ARC-AGI86.5%93.7%GPT-5.4
ARC-AGI-260.4%74.0%GPT-5.4
Chess puzzles23.0%48.0%GPT-5.4
Mystery game puzzles16.0%37.0%GPT-5.4
EBR-benchNot measured25.4%Only GPT-5.4 measured
LMArena Text: hard prompts14851485GPT-5.4
LMArena Text: expert15001507GPT-5.4
LMArena Text: hard prompts in English14931479Claude Sonnet 4.6
LMArena Vision: diagrams13061327GPT-5.4
LMArena Vision: homework13111336GPT-5.4
Kagi LLM BenchmarkNot measured63.8%Only GPT-5.4 measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index05
Math benchmarks for Claude Sonnet 4.6 and GPT-5.4
BenchmarkClaude Sonnet 4.6GPT-5.4Leader
AIME92.3%96.7%GPT-5.4
OTIS Mock AIME85.8%97.8%GPT-5.4
FrontierMath, tiers 1 to 3Not measured78.6%Only GPT-5.4 measured
FrontierMath, tier 4Not measured49.0%Only GPT-5.4 measured
ProofBench45.0%56.0%GPT-5.4
LMArena Text: math14621488GPT-5.4
LMArena Text: mathematical work14831497GPT-5.4
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index39
Knowledge benchmarks for Claude Sonnet 4.6 and GPT-5.4
BenchmarkClaude Sonnet 4.6GPT-5.4Leader
MMLU Pro87.3%87.5%GPT-5.4
LegalBench (Vals AI)82.1%86.0%GPT-5.4
CaseLaw (Vals AI)64.0%63.8%Claude Sonnet 4.6
CorpFin (Vals AI)65.3%65.3%Claude Sonnet 4.6
TaxEval (Vals AI)77.1%74.0%Claude Sonnet 4.6
MortgageTax (Vals AI)67.7%68.3%GPT-5.4
MedQA (Vals AI)92.1%96.1%GPT-5.4
MedCode (Vals AI)Not measured41.3%Only GPT-5.4 measured
SimpleQA Verified35.5%45.1%GPT-5.4
LMArena Text: science14741479GPT-5.4
LMArena Text: medicine and healthcare14511458GPT-5.4
LMArena Text: legal and government14701486GPT-5.4
LMArena Text: business and finance14641474GPT-5.4
FACTS Benchmark Suite37.0%Not measuredOnly Claude Sonnet 4.6 measured
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index80
Web design benchmarks for Claude Sonnet 4.6 and GPT-5.4
BenchmarkClaude Sonnet 4.6GPT-5.4Leader
Design Arena: websites12841198Claude Sonnet 4.6
Design Arena: UI components12691212Claude Sonnet 4.6
Design Arena: game dev12581194Claude Sonnet 4.6
Design Arena: data viz12781196Claude Sonnet 4.6
Design Arena: 3D12341065Claude Sonnet 4.6
Design Arena: all code categories12751179Claude Sonnet 4.6
Design Arena: SVG11961141Claude Sonnet 4.6
Design Arena: ASCII art12351188Claude Sonnet 4.6
LiveBench design71.8%Not measuredOnly Claude Sonnet 4.6 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index624
General benchmarks for Claude Sonnet 4.6 and GPT-5.4
BenchmarkClaude Sonnet 4.6GPT-5.4Leader
LiveBench data analysis76.1%Not measuredOnly Claude Sonnet 4.6 measured
Public Benefits Bench (Vals AI)62.5%Not measuredOnly Claude Sonnet 4.6 measured
SAGE (Vals AI)46.6%43.3%Claude Sonnet 4.6
MedScribe (Vals AI)Not measured77.5%Only GPT-5.4 measured
Vals Multimodal Index60.6%Not measuredOnly Claude Sonnet 4.6 measured
IFBench56.6%73.9%GPT-5.4
Long context reasoning (AA-LCR)80.0%82.0%GPT-5.4
DTBench89.9%94.4%GPT-5.4
LMCA46.5%52.0%GPT-5.4
CL-benchNot measured27.9%Only GPT-5.4 measured
Furniture assemblyNot measured37.5%Only GPT-5.4 measured
ExploitBench23.6%Not measuredOnly Claude Sonnet 4.6 measured
CL-bench LifeNot measured21.7%Only GPT-5.4 measured
LMArena Text14581469GPT-5.4
LMArena Text: instruction following14761469Claude Sonnet 4.6
LMArena Text: creative writing14351439GPT-5.4
LMArena Vision12831303GPT-5.4
LMArena Text: English14721467Claude Sonnet 4.6
LMArena Text: non-English14401465GPT-5.4
LMArena Text: Chinese14911520GPT-5.4
LMArena Text: German14281472GPT-5.4
LMArena Text: Japanese14201485GPT-5.4
LMArena Text: Korean14101449GPT-5.4
LMArena Text: French14651493GPT-5.4
LMArena Text: Spanish14641452Claude Sonnet 4.6
LMArena Text: Russian14401480GPT-5.4
LMArena Text: Polish14431472GPT-5.4
LMArena Text: multi-turn14641482GPT-5.4
LMArena Text: longer queries14791473Claude Sonnet 4.6
LMArena Text: writing and language14441458GPT-5.4
LMArena Text: entertainment and media14311438GPT-5.4
LMArena Vision: English12981301GPT-5.4
LMArena Vision: Chinese13071354GPT-5.4
LMArena Vision: reading text12961312GPT-5.4
LMArena Vision: humor12481284GPT-5.4
LMArena Vision: recognizing things11951251GPT-5.4
LMArena Vision: creative writing12721283GPT-5.4
LMArena Document14821471Claude Sonnet 4.6
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 4.6 and GPT-5.4
BenchmarkClaude Sonnet 4.6GPT-5.4Leader
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 4.6$0.011Fits in one request
GPT-5.4$0.010Fits in one request

GPT-5.4 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.6$0.195Fits in one request
GPT-5.4$0.170Fits in one request

GPT-5.4 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.6$0.750Fits in one request
GPT-5.4$0.650Fits in one request

GPT-5.4 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 4.6 and GPT-5.4
SpecificationAnthropic Claude Sonnet 4.6OpenAI GPT-5.4
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 17, 2026March 5, 2026
Context window1M1.05M
Input $/Mtok$3.00$2.50
Output $/Mtok$15.00$15.00
Coding index57.364.4
Independent measurements behind it53
Cost per solved task$1.68$1.02
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.6 better than GPT-5.4 for coding?

Pick GPT-5.4 for coding: it scores 64.4 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6, though on 3 benchmarks against 5. Pick Claude Sonnet 4.6 for work measured by LMArena WebDev or Code migration (Vals AI), where it leads.

Which is cheaper, Claude Sonnet 4.6 or GPT-5.4?

Claude Sonnet 4.6 costs $3.00 per million input tokens and $15.00 per million output tokens; GPT-5.4 costs $2.50 and $15.00. Per solved SWE-bench Verified task, Claude Sonnet 4.6 costs $1.68 and GPT-5.4 $1.02.

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

GPT-5.4, with 1.05M tokens against 1M.

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

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