LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.5 vs GPT-4.1

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

Claude Sonnet 4.5Anthropic
Coding
59.1
Overall
20.7
Output $/M
$15.00
56
GPT-4.1OpenAI
Coding
46.5
Overall
12.7
Output $/M
$8.00
5
vs boards won of 61 shared

Decision reading

Pick Claude Sonnet 4.5 for coding: it scores 59.1 on the Vibe Coding Index against 46.5 for GPT-4.1.

Pick GPT-4.1 when output tokens cost 1.9x less, or when a solved task costs $0.37 against $1.16.

Shared results
61
Claude Sonnet 4.5 only
31
GPT-4.1 only
26
Like-for-like categories
7 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
Claude Sonnet 4.5 59.1 from 2 benchmarks, GPT-4.1 46.5 from 2 benchmarks.
Widest category
Math, 22.5 points apart on average over 7 shared benchmarks.
Widest single gap
ARC-AGI: Claude Sonnet 4.5 63.7% against GPT-4.1 5.5%, 58.2 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.5 $15.00 against GPT-4.1 $8.00 per million output tokens, 1.9x apart.
Context window
Claude Sonnet 4.5 takes 1M tokens, GPT-4.1 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.5BarsGPT-4.1Ties
Coding50
Intelligence20
Reasoning100
Math70
Knowledge75
Web design60
General190
All shared boards565
CodingLike-for-likeFour of these boards feed the Vibe Coding Index50
Coding benchmarks for Claude Sonnet 4.5 and GPT-4.1
BenchmarkClaude Sonnet 4.5GPT-4.1Leader
Aider polyglotNot measured52.4%Only GPT-4.1 measured
SWE-bench Verified74.8%39.6%Claude Sonnet 4.5
SWE-bench MultimodalNot measured31.1%Only GPT-4.1 measured
SWE-bench Multilingual67.0%Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev1394Not measuredOnly Claude Sonnet 4.5 measured
AA Coding Index52.1Not measuredOnly Claude Sonnet 4.5 measured
LiveCodeBench (Vals AI)73.0%54.7%Claude Sonnet 4.5
SWE-bench Verified (Vals AI)70.0%Not measuredOnly Claude Sonnet 4.5 measured
Vibe Code Bench (Vals AI)22.6%Not measuredOnly Claude Sonnet 4.5 measured
LiveCodeBench (Artificial Analysis run)Not measured45.7%Only GPT-4.1 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured13.6%Only GPT-4.1 measured
Terminal-Bench46.5%Not measuredOnly Claude Sonnet 4.5 measured
GSO-Bench14.7%Not measuredOnly Claude Sonnet 4.5 measured
WeirdML47.7%39.0%Claude Sonnet 4.5
Cybench60.0%Not measuredOnly Claude Sonnet 4.5 measured
ALE-BenchNot measured558.1Only GPT-4.1 measured
LMArena Text: coding14881390Claude Sonnet 4.5
LMArena Text: software and IT14731391Claude Sonnet 4.5
LMArena WebDev: React1386Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev: HTML1399Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 4.5 and GPT-4.1
BenchmarkClaude Sonnet 4.5GPT-4.1Leader
AA Intelligence Index20.712.7Claude Sonnet 4.5
Epoch Capabilities Index146.7136.7Claude Sonnet 4.5
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
Agentic work benchmarks for Claude Sonnet 4.5 and GPT-4.1
BenchmarkClaude Sonnet 4.5GPT-4.1Leader
AA Agentic Index15.8Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building web apps1060Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building full-stack apps1050Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building mobile apps1137Not measuredOnly Claude Sonnet 4.5 measured
τ²-Bench TelecomNot measured47.1%Only GPT-4.1 measured
METR time horizons67.4%Not measuredOnly Claude Sonnet 4.5 measured
Remote Labor Index2.1%Not measuredOnly Claude Sonnet 4.5 measured
GDPval42.5%Not measuredOnly Claude Sonnet 4.5 measured
DeepResearch Bench52.6%Not measuredOnly Claude Sonnet 4.5 measured
OSWorld62.9%Not measuredOnly Claude Sonnet 4.5 measured
Vending-Bench 2$3,839Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 28 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index100
Reasoning benchmarks for Claude Sonnet 4.5 and GPT-4.1
BenchmarkClaude Sonnet 4.5GPT-4.1Leader
GPQA Diamond81.6%65.4%Claude Sonnet 4.5
MMMU Pro (Vals AI)79.3%72.4%Claude Sonnet 4.5
GPQA Diamond (Artificial Analysis run)Not measured66.6%Only GPT-4.1 measured
Humanity's Last Exam (Artificial Analysis run)Not measured4.2%Only GPT-4.1 measured
GPQA Diamond (Epoch AI run)82.3%66.9%Claude Sonnet 4.5
ARC-AGI63.7%5.5%Claude Sonnet 4.5
ARC-AGI-213.6%0.4%Claude Sonnet 4.5
SimpleBench54.3%27.0%Claude Sonnet 4.5
Chess puzzles10.0%3.0%Claude Sonnet 4.5
Mystery game puzzles17.0%Not measuredOnly Claude Sonnet 4.5 measured
EBR-bench2.4%Not measuredOnly Claude Sonnet 4.5 measured
VPCT39.8%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: hard prompts14621384Claude Sonnet 4.5
LMArena Text: expert14831364Claude Sonnet 4.5
LMArena Text: hard prompts in English14711393Claude Sonnet 4.5
LMArena Vision: diagramsNot measured1215Only GPT-4.1 measured
LMArena Vision: homeworkNot measured1248Only GPT-4.1 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index70
Math benchmarks for Claude Sonnet 4.5 and GPT-4.1
BenchmarkClaude Sonnet 4.5GPT-4.1Leader
AIME88.2%39.6%Claude Sonnet 4.5
MATH 500 (Vals AI)Not measured87.2%Only GPT-4.1 measured
MGSM (Vals AI)94.3%87.7%Claude Sonnet 4.5
AA Math IndexNot measured34.7Only GPT-4.1 measured
AIME 2025 (Artificial Analysis run)Not measured34.7%Only GPT-4.1 measured
OTIS Mock AIME77.8%38.3%Claude Sonnet 4.5
FrontierMath, tiers 1 to 323.9%6.0%Claude Sonnet 4.5
FrontierMath, tier 42.4%Not measuredOnly Claude Sonnet 4.5 measured
ProofBench19.0%Not measuredOnly Claude Sonnet 4.5 measured
MATH level 597.7%83.0%Claude Sonnet 4.5
LMArena Text: math14491369Claude Sonnet 4.5
LMArena Text: mathematical work14621360Claude Sonnet 4.5
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index75
Knowledge benchmarks for Claude Sonnet 4.5 and GPT-4.1
BenchmarkClaude Sonnet 4.5GPT-4.1Leader
MMLU Pro87.4%80.5%Claude Sonnet 4.5
LegalBench (Vals AI)84.1%83.1%Claude Sonnet 4.5
CaseLaw (Vals AI)62.2%69.9%GPT-4.1
CorpFin (Vals AI)62.0%63.0%GPT-4.1
TaxEval (Vals AI)73.3%75.1%GPT-4.1
MortgageTax (Vals AI)64.0%65.9%GPT-4.1
MedQA (Vals AI)94.7%91.2%Claude Sonnet 4.5
MedCode (Vals AI)44.1%Not measuredOnly Claude Sonnet 4.5 measured
MMLU Pro (Artificial Analysis run)Not measured80.6%Only GPT-4.1 measured
SimpleQA Verified30.7%31.1%GPT-4.1
GeoBenchNot measured72.0%Only GPT-4.1 measured
LMArena Text: science14481382Claude Sonnet 4.5
LMArena Text: medicine and healthcare14441379Claude Sonnet 4.5
LMArena Text: legal and government14511399Claude Sonnet 4.5
LMArena Text: business and finance14401369Claude Sonnet 4.5
Neither model has a result on the other 2 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index60
Web design benchmarks for Claude Sonnet 4.5 and GPT-4.1
BenchmarkClaude Sonnet 4.5GPT-4.1Leader
Design Arena: websites11901039Claude Sonnet 4.5
Design Arena: UI components11731000Claude Sonnet 4.5
Design Arena: game dev11661080Claude Sonnet 4.5
Design Arena: data viz11671104Claude Sonnet 4.5
Design Arena: 3D1158850Claude Sonnet 4.5
Design Arena: all code categories11831026Claude Sonnet 4.5
Design Arena: SVG1114Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: ASCII art1204Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index190
General benchmarks for Claude Sonnet 4.5 and GPT-4.1
BenchmarkClaude Sonnet 4.5GPT-4.1Leader
SAGE (Vals AI)36.1%Not measuredOnly Claude Sonnet 4.5 measured
MedScribe (Vals AI)84.5%Not measuredOnly Claude Sonnet 4.5 measured
IFBenchNot measured43.0%Only GPT-4.1 measured
Long context reasoning (AA-LCR)Not measured68.3%Only GPT-4.1 measured
DTBench83.2%68.3%Claude Sonnet 4.5
LMCA38.8%25.6%Claude Sonnet 4.5
Fiction.LiveBenchNot measured63.9%Only GPT-4.1 measured
LMArena Text14381383Claude Sonnet 4.5
LMArena Text: instruction following14591367Claude Sonnet 4.5
LMArena Text: creative writing14421363Claude Sonnet 4.5
LMArena VisionNot measured1210Only GPT-4.1 measured
LMArena Text: English14501392Claude Sonnet 4.5
LMArena Text: non-English14251370Claude Sonnet 4.5
LMArena Text: Chinese14601382Claude Sonnet 4.5
LMArena Text: German14271381Claude Sonnet 4.5
LMArena Text: Japanese13901319Claude Sonnet 4.5
LMArena Text: Korean14021338Claude Sonnet 4.5
LMArena Text: French14591382Claude Sonnet 4.5
LMArena Text: Spanish14581376Claude Sonnet 4.5
LMArena Text: Russian14371377Claude Sonnet 4.5
LMArena Text: Polish14231389Claude Sonnet 4.5
LMArena Text: multi-turn14651397Claude Sonnet 4.5
LMArena Text: longer queries14751385Claude Sonnet 4.5
LMArena Text: writing and language14421371Claude Sonnet 4.5
LMArena Text: entertainment and media14281365Claude Sonnet 4.5
LMArena Vision: EnglishNot measured1209Only GPT-4.1 measured
LMArena Vision: ChineseNot measured1226Only GPT-4.1 measured
LMArena Vision: reading textNot measured1218Only GPT-4.1 measured
LMArena Vision: humorNot measured1196Only GPT-4.1 measured
LMArena Vision: captioningNot measured1207Only GPT-4.1 measured
LMArena Vision: recognizing thingsNot measured1208Only GPT-4.1 measured
LMArena Vision: creative writingNot measured1210Only GPT-4.1 measured
LMArena Document1450Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Sonnet 4.5 and GPT-4.1
BenchmarkClaude Sonnet 4.5GPT-4.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 4.5$0.011Fits in one request
GPT-4.1$0.0060Fits in one request

GPT-4.1 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.5$0.195Fits in one request
GPT-4.1$0.124Fits in one request

GPT-4.1 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.5$0.750Fits in one request
GPT-4.1$0.480Fits in one request

GPT-4.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 4.5 and GPT-4.1
SpecificationAnthropic Claude Sonnet 4.5OpenAI GPT-4.1
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedSeptember 29, 2025April 14, 2025
Context window1M1.05M
Input $/Mtok$3.00$2.00
Output $/Mtok$15.00$8.00
Coding index59.146.5
Independent measurements behind it22
Cost per solved task$1.16$0.37
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.5 better than GPT-4.1 for coding?

Pick Claude Sonnet 4.5 for coding: it scores 59.1 on the Vibe Coding Index against 46.5 for GPT-4.1. Pick GPT-4.1 when output tokens cost 1.9x less, or when a solved task costs $0.37 against $1.16.

Which is cheaper, Claude Sonnet 4.5 or GPT-4.1?

Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; GPT-4.1 costs $2.00 and $8.00. Per solved SWE-bench Verified task, Claude Sonnet 4.5 costs $1.16 and GPT-4.1 $0.37.

Which has the bigger context window, Claude Sonnet 4.5 or GPT-4.1?

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

How many benchmarks is the Claude Sonnet 4.5 vs GPT-4.1 comparison based on?

61 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 4.5's coding index rests on 2 independent benchmarks and GPT-4.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-4-5-vs-gpt-4-1" title="Claude Sonnet 4.5 vs GPT-4.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-4-5-vs-gpt-4-1">LLMBenchmark.ai, Claude Sonnet 4.5 vs GPT-4.1</a></p>