Enter opens the highlighted result. Esc closes.

Claude Sonnet 5 vs GPT-5.1

GPT-5.1 leads Claude Sonnet 5 on coding, 53.2 to 46.4 on the Vibe Coding Index, at about the same output price ($10.00 vs $10.00 per million). Updated December 6, 2026; 77 benchmarks have a result for both.

Claude Sonnet 5Anthropic
Coding
46.4
Overall
63.9
Output $/M
$10.00
58
GPT-5.1OpenAI
Coding
53.2
Overall
62.9
Output $/M
$10.00
19
vs boards won of 77 shared

Claude Sonnet 5 or GPT-5.1: which to pick

Pick GPT-5.1 for coding: it scores 53.2 on the Vibe Coding Index against 46.4 for Claude Sonnet 5, though on 2 benchmarks against 4.

Pick Claude Sonnet 5 for a larger context window (1M against 400K tokens) and work measured by LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

Shared results
77
Claude Sonnet 5 only
45
GPT-5.1 only
26
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 46.4 from 4 benchmarks, GPT-5.1 53.2 from 2 benchmarks.
Widest category
Agentic work, 16.3 points apart on average over 2 shared benchmarks.
Widest single gap
GDPval-AA: Claude Sonnet 5 1473 against GPT-5.1 837, 53.1 points apart on a 0 to 100 scale.
Output price
Both cost $10.00 per million output tokens.
Context window
Claude Sonnet 5 takes 1M tokens, GPT-5.1 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.1Ties
Coding91
Intelligence10
Agentic work11
Reasoning121
Math30
Knowledge65
Web design80
General1811
All shared boards5819
CodingLike-for-likeSix of these boards feed the Vibe Coding Index91
Coding benchmarks for Claude Sonnet 5 and GPT-5.1
BenchmarkClaude Sonnet 5GPT-5.1Leader
SWE-bench VerifiedNot measured66.0%Only GPT-5.1 measured
LMArena WebDev15401397Claude Sonnet 5
LiveCodeBench (Vals AI)82.4%86.5%GPT-5.1
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
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 measured86.8%Only GPT-5.1 measured
SciCode54.3%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured45.5%Only GPT-5.1 measured
Terminal-Bench 4.0 (Artificial Analysis run)14.1%Not measuredOnly Claude Sonnet 5 measured
FrontierCode 2.017.6%Not measuredOnly Claude Sonnet 5 measured
Terminal-BenchNot measured47.6%Only GPT-5.1 measured
FrontierCode42.7%Not measuredOnly Claude Sonnet 5 measured
GSO-Bench37.3%13.7%Claude Sonnet 5
WeirdML69.0%60.8%Claude Sonnet 5
MirrorCode63.3%Not measuredOnly Claude Sonnet 5 measured
ALE-Bench1463.1Not measuredOnly Claude Sonnet 5 measured
LMArena Text: coding14831453Claude Sonnet 5
LMArena Text: software and IT14731454Claude Sonnet 5
LMArena WebDev: React15391306Claude Sonnet 5
LMArena WebDev: HTML15251406Claude Sonnet 5
LMArena WebDev: from an image15391419Claude Sonnet 5
SciCode10.7%Not measuredOnly Claude Sonnet 5 measured
SWE-Bench Pro V293.2%Not measuredOnly Claude Sonnet 5 measured
GameBench 253.9Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench 2.0Not measured47.6%Only GPT-5.1 measured
Terminal-Bench 2.174.6%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench 3.014.6%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench 4.012.4%Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 17 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Claude Sonnet 5 and GPT-5.1
BenchmarkClaude Sonnet 5GPT-5.1Leader
Epoch Capabilities Index156.8150.9Claude Sonnet 5
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index11
Agentic work benchmarks for Claude Sonnet 5 and GPT-5.1
BenchmarkClaude Sonnet 5GPT-5.1Leader
Design Arena: agents building web apps1203Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building full-stack apps1295Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building mobile apps1200Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Android apps1201Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building Godot games1188Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building games1170Not measuredOnly Claude Sonnet 5 measured
Design Arena: HTML slides1118Not measuredOnly Claude Sonnet 5 measured
Design Arena: PowerPoint slides1174Not measuredOnly Claude Sonnet 5 measured
Design Arena: spreadsheets1040Not 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 measured81.9%Only GPT-5.1 measured
APEX-Agents54.5%Not measuredOnly Claude Sonnet 5 measured
DeepResearch BenchNot measured42.8%Only GPT-5.1 measured
Vending-Bench 2$6,378$1,473Claude Sonnet 5
LMArena Search11871199GPT-5.1
MCP AtlasNot measured50.1%Only GPT-5.1 measured
Toolathlon-Verified71.6%Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index121
Reasoning benchmarks for Claude Sonnet 5 and GPT-5.1
BenchmarkClaude Sonnet 5GPT-5.1Leader
GPQA Diamond88.9%86.6%Claude Sonnet 5
MMMU Pro (Vals AI)83.0%83.2%GPT-5.1
GPQA Diamond (Artificial Analysis run)91.1%87.3%Claude Sonnet 5
Humanity's Last Exam (Artificial Analysis run)41.3%28.5%Claude Sonnet 5
GPQA Diamond (Epoch AI run)90.5%87.6%Claude Sonnet 5
ARC-AGINot measured72.8%Only GPT-5.1 measured
ARC-AGI-2Not measured17.6%Only GPT-5.1 measured
SimpleBench60.6%53.2%Claude Sonnet 5
Chess puzzles45.0%42.0%Claude Sonnet 5
Mystery game puzzles35.0%19.0%Claude Sonnet 5
VPCTNot measured58.7%Only GPT-5.1 measured
LMArena Text: hard prompts14611457Claude Sonnet 5
LMArena Text: expert14881469Claude Sonnet 5
LMArena Text: hard prompts in English14651462Claude Sonnet 5
LMArena Vision: diagrams12931264Claude Sonnet 5
LMArena Vision: homework13111274Claude Sonnet 5
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Claude Sonnet 5 and GPT-5.1
BenchmarkClaude Sonnet 5GPT-5.1Leader
AIMENot measured93.3%Only GPT-5.1 measured
MGSM (Vals AI)Not measured93.0%Only GPT-5.1 measured
AIME 2025 (Artificial Analysis run)Not measured94.0%Only GPT-5.1 measured
OTIS Mock AIME94.7%88.6%Claude Sonnet 5
FrontierMath, tiers 1 to 365.6%Not measuredOnly Claude Sonnet 5 measured
FrontierMath, tier 429.3%Not measuredOnly Claude Sonnet 5 measured
ProofBench77.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text: math14661447Claude Sonnet 5
LMArena Text: mathematical work14791450Claude Sonnet 5
MathArenaNot measured16.0%Only GPT-5.1 measured
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index65
Knowledge benchmarks for Claude Sonnet 5 and GPT-5.1
BenchmarkClaude Sonnet 5GPT-5.1Leader
MMLU Pro87.5%86.4%Claude Sonnet 5
LegalBench (Vals AI)83.9%85.7%GPT-5.1
CaseLaw (Vals AI)Not measured73.4%Only GPT-5.1 measured
CorpFin (Vals AI)67.0%63.8%Claude Sonnet 5
TaxEval (Vals AI)75.6%74.9%Claude Sonnet 5
MortgageTax (Vals AI)70.0%61.4%Claude Sonnet 5
MedQA (Vals AI)Not measured96.4%Only GPT-5.1 measured
MedCode (Vals AI)47.5%52.7%GPT-5.1
MMLU Pro (Artificial Analysis run)Not measured87.0%Only GPT-5.1 measured
SimpleQA Verified33.7%48.0%GPT-5.1
GeoBench74.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text: science14601459Claude Sonnet 5
LMArena Text: medicine and healthcare14421456GPT-5.1
LMArena Text: legal and government14511459GPT-5.1
LMArena Text: business and finance14371431Claude Sonnet 5
PRBench FinanceNot measured48.0%Only GPT-5.1 measured
PRBench LegalNot measured48.0%Only GPT-5.1 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 5 and GPT-5.1
BenchmarkClaude Sonnet 5GPT-5.1Leader
Design Arena: websites13171227Claude Sonnet 5
Design Arena: UI components12551146Claude Sonnet 5
Design Arena: game dev12531149Claude Sonnet 5
Design Arena: data viz12431198Claude Sonnet 5
Design Arena: 3D1218986Claude Sonnet 5
Design Arena: all code categories13201210Claude Sonnet 5
Design Arena: SVG12361190Claude Sonnet 5
Design Arena: ASCII art11821096Claude Sonnet 5
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index1811
General benchmarks for Claude Sonnet 5 and GPT-5.1
BenchmarkClaude Sonnet 5GPT-5.1Leader
Public Benefits Bench (Vals AI)66.0%Not measuredOnly Claude Sonnet 5 measured
MedScribe (Vals AI)76.0%88.1%GPT-5.1
Vals Multimodal Index68.8%Not measuredOnly Claude Sonnet 5 measured
IFBenchNot measured72.9%Only GPT-5.1 measured
Long context reasoning (AA-LCR)82.0%80.0%Claude Sonnet 5
GDPval-AA1473837Claude Sonnet 5
DTBench92.5%90.1%Claude Sonnet 5
LMCA50.0%43.9%Claude Sonnet 5
CL-benchNot measured23.7%Only GPT-5.1 measured
Surface Evolver Bench60.0%Not measuredOnly Claude Sonnet 5 measured
CL-bench LifeNot measured17.3%Only GPT-5.1 measured
LMArena Text14421442GPT-5.1
LMArena Text: instruction following14531442Claude Sonnet 5
LMArena Text: creative writing14141427GPT-5.1
LMArena Vision12721249Claude Sonnet 5
LMArena Text: English14501451GPT-5.1
LMArena Text: non-English14301431GPT-5.1
LMArena Text: Chinese14761495GPT-5.1
LMArena Text: German14411438Claude Sonnet 5
LMArena Text: Japanese14221455GPT-5.1
LMArena Text: Korean14001400Claude Sonnet 5
LMArena Text: French14641450Claude Sonnet 5
LMArena Text: Spanish14411432Claude Sonnet 5
LMArena Text: Russian14461435Claude Sonnet 5
LMArena Text: Polish14281440GPT-5.1
LMArena Text: multi-turn14541450Claude Sonnet 5
LMArena Text: longer queries14631447Claude Sonnet 5
LMArena Text: writing and language14351428Claude Sonnet 5
LMArena Text: entertainment and media14101414GPT-5.1
LMArena Vision: English12731251Claude Sonnet 5
LMArena Vision: Chinese13341271Claude Sonnet 5
LMArena Vision: reading text12861254Claude Sonnet 5
LMArena Vision: humor12571264GPT-5.1
LMArena Vision: captioningNot measured1252Only GPT-5.1 measured
LMArena Vision: recognizing thingsNot measured1232Only GPT-5.1 measured
LMArena Vision: creative writing12471267GPT-5.1
LMArena Document14591403Claude Sonnet 5
MultiChallengeNot measured63.4%Only GPT-5.1 measured
EQ-Bench 41221Not measuredOnly Claude Sonnet 5 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 Claude Sonnet 5 and GPT-5.1
BenchmarkClaude Sonnet 5GPT-5.1Leader
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.1$0.0063Fits in one request

GPT-5.1 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 5$0.130Fits in one request
GPT-5.1$0.092Fits in one request

GPT-5.1 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 5$0.500Fits in one request
GPT-5.1$0.350Fits in one request

GPT-5.1 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.1
SpecificationAnthropic Claude Sonnet 5OpenAI GPT-5.1
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedJune 30, 2026November 13, 2025
Context window1M400K
Input $/Mtok$2.00$1.25
Output $/Mtok$10.00$10.00
Coding index46.453.2
Independent measurements behind it42
Cost per solved task$1.87$1.02
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick GPT-5.1 for coding: it scores 53.2 on the Vibe Coding Index against 46.4 for Claude Sonnet 5, though on 2 benchmarks against 4. Pick Claude Sonnet 5 for a larger context window (1M against 400K tokens) and work measured by LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

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

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

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

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

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

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