Enter opens the highlighted result. Esc closes.

Claude Sonnet 5 vs GPT-4.1 Nano

Claude Sonnet 5 leads GPT-4.1 Nano on the Artificial Analysis Intelligence Index, 38.2 to 7.8, and GPT-4.1 Nano costs 25.0x less per output token ($0.40 vs $10.00 per million). Updated October 22, 2026; 53 benchmarks have a result for both.

Claude Sonnet 5Anthropic
Coding
57.7
Overall
63.2
Output $/M
$10.00
53
GPT-4.1 NanoOpenAI
Coding
No data
Overall
24.7
Output $/M
$0.40
0
vs boards won of 53 shared

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

Only Claude Sonnet 5 has a coding score, 57.7 on the Vibe Coding Index; GPT-4.1 Nano has none, so the two cannot be ranked on coding.

Pick GPT-4.1 Nano for output tokens 25.0x cheaper ($0.40 vs $10.00 per million) and a larger context window (1.05M against 1M tokens).

Shared results
53
Claude Sonnet 5 only
68
GPT-4.1 Nano only
18
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-4.1 Nano not benchmarked.
Widest category
Math, 44.1 points apart on average over 3 shared benchmarks.
Widest single gap
OTIS Mock AIME: Claude Sonnet 5 94.7% against GPT-4.1 Nano 28.9%, 65.8 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 5 $10.00 against GPT-4.1 Nano $0.40 per million output tokens, 25.0x apart.
Context window
Claude Sonnet 5 takes 1M tokens, GPT-4.1 Nano 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 5BarsGPT-4.1 NanoTies
Coding50
Intelligence20
Reasoning90
Math30
Knowledge100
Web design60
General180
All shared boards530
CodingLike-for-likeSix of these boards feed the Vibe Coding Index50
Coding benchmarks for Claude Sonnet 5 and GPT-4.1 Nano
BenchmarkClaude Sonnet 5GPT-4.1 NanoLeader
Aider polyglotNot measured8.9%Only GPT-4.1 Nano measured
LiveBench coding74.7%Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev1540Not measuredOnly Claude Sonnet 5 measured
AA Coding Index71.511.1Claude Sonnet 5
LiveCodeBench (Vals AI)82.4%42.7%Claude Sonnet 5
SWE-bench Verified (Vals AI)79.6%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench 4 (Vals AI)10.6%Not measuredOnly Claude Sonnet 5 measured
Vibe Code Bench (Vals AI)81.3%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 measured32.6%Only GPT-4.1 Nano measured
SciCode54.3%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured3.8%Only GPT-4.1 Nano measured
FrontierCode42.7%Not measuredOnly Claude Sonnet 5 measured
GSO-Bench37.3%Not measuredOnly Claude Sonnet 5 measured
WeirdML68.8%19.0%Claude Sonnet 5
ALE-Bench1463.1Not measuredOnly Claude Sonnet 5 measured
LMArena Text: coding14831306Claude Sonnet 5
LMArena Text: software and IT14741305Claude 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 11 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 5 and GPT-4.1 Nano
BenchmarkClaude Sonnet 5GPT-4.1 NanoLeader
AA Intelligence Index38.27.8Claude Sonnet 5
Epoch Capabilities Index156.9129.5Claude Sonnet 5
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index23 boards, none shared
Agentic work benchmarks for Claude Sonnet 5 and GPT-4.1 Nano
BenchmarkClaude Sonnet 5GPT-4.1 NanoLeader
AA Agentic Index43.6Not measuredOnly Claude Sonnet 5 measured
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%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 measured17.3%Only GPT-4.1 Nano measured
APEX-Agents54.5%Not measuredOnly Claude Sonnet 5 measured
Vending-Bench 2$6,378Not measuredOnly Claude Sonnet 5 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured33.1%Only GPT-4.1 Nano measured
Neither model has a result on the other 18 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index90
Reasoning benchmarks for Claude Sonnet 5 and GPT-4.1 Nano
BenchmarkClaude Sonnet 5GPT-4.1 NanoLeader
GPQA Diamond88.9%50.8%Claude Sonnet 5
LiveBench reasoning88.7%Not measuredOnly Claude Sonnet 5 measured
MMMU Pro (Vals AI)83.0%55.0%Claude Sonnet 5
GPQA Diamond (Artificial Analysis run)91.1%51.2%Claude Sonnet 5
Humanity's Last Exam (Artificial Analysis run)41.3%3.8%Claude Sonnet 5
GPQA Diamond (Epoch AI run)90.5%48.9%Claude Sonnet 5
ARC-AGINot measured0.0%Only GPT-4.1 Nano measured
ARC-AGI-2Not measured0.0%Only GPT-4.1 Nano measured
SimpleBench60.6%Not measuredOnly Claude Sonnet 5 measured
Chess puzzles45.0%0.0%Claude Sonnet 5
Mystery game puzzles35.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text: hard prompts14611286Claude Sonnet 5
LMArena Text: expert14891271Claude Sonnet 5
LMArena Text: hard prompts in English14641293Claude Sonnet 5
LMArena Vision: diagrams1293Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: homework1311Not measuredOnly Claude Sonnet 5 measured
Kagi LLM BenchmarkNot measured33.3%Only GPT-4.1 Nano measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Claude Sonnet 5 and GPT-4.1 Nano
BenchmarkClaude Sonnet 5GPT-4.1 NanoLeader
AIMENot measured26.5%Only GPT-4.1 Nano measured
MATH 500 (Vals AI)Not measured80.2%Only GPT-4.1 Nano measured
MGSM (Vals AI)Not measured69.3%Only GPT-4.1 Nano measured
AA Math IndexNot measured24.0Only GPT-4.1 Nano measured
AIME 2025 (Artificial Analysis run)Not measured24.0%Only GPT-4.1 Nano measured
OTIS Mock AIME94.7%28.9%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
MATH level 5Not measured70.0%Only GPT-4.1 Nano measured
LMArena Text: math14671274Claude Sonnet 5
LMArena Text: mathematical work14811274Claude Sonnet 5
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index100
Knowledge benchmarks for Claude Sonnet 5 and GPT-4.1 Nano
BenchmarkClaude Sonnet 5GPT-4.1 NanoLeader
MMLU Pro87.5%63.5%Claude Sonnet 5
LegalBench (Vals AI)83.9%61.1%Claude Sonnet 5
CorpFin (Vals AI)67.0%42.1%Claude Sonnet 5
TaxEval (Vals AI)75.6%60.8%Claude Sonnet 5
MortgageTax (Vals AI)70.0%52.8%Claude Sonnet 5
MedQA (Vals AI)Not measured68.2%Only GPT-4.1 Nano measured
MedCode (Vals AI)47.5%Not measuredOnly Claude Sonnet 5 measured
MMLU Pro (Artificial Analysis run)Not measured65.7%Only GPT-4.1 Nano measured
SimpleQA Verified33.7%6.0%Claude Sonnet 5
LMArena Text: science14601297Claude Sonnet 5
LMArena Text: medicine and healthcare14421276Claude Sonnet 5
LMArena Text: legal and government14541300Claude Sonnet 5
LMArena Text: business and finance14361267Claude Sonnet 5
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index60
Web design benchmarks for Claude Sonnet 5 and GPT-4.1 Nano
BenchmarkClaude Sonnet 5GPT-4.1 NanoLeader
Design Arena: websites1274972Claude Sonnet 5
Design Arena: UI components1277913Claude Sonnet 5
Design Arena: game dev1277970Claude Sonnet 5
Design Arena: data viz1251891Claude Sonnet 5
Design Arena: 3D1261924Claude Sonnet 5
Design Arena: all code categories1275962Claude Sonnet 5
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 index180
General benchmarks for Claude Sonnet 5 and GPT-4.1 Nano
BenchmarkClaude Sonnet 5GPT-4.1 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%Not measuredOnly Claude Sonnet 5 measured
MedScribe (Vals AI)76.0%Not measuredOnly Claude Sonnet 5 measured
Vals Multimodal Index68.8%Not measuredOnly Claude Sonnet 5 measured
IFBenchNot measured32.0%Only GPT-4.1 Nano measured
Long context reasoning (AA-LCR)82.0%20.3%Claude Sonnet 5
DTBench92.5%52.5%Claude Sonnet 5
LMCA50.0%5.5%Claude Sonnet 5
Fiction.LiveBenchNot measured25.0%Only GPT-4.1 Nano measured
Surface Evolver Bench60.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text14421285Claude Sonnet 5
LMArena Text: instruction following14521266Claude Sonnet 5
LMArena Text: creative writing14161260Claude Sonnet 5
LMArena Vision12731063Claude Sonnet 5
LMArena Text: English14501303Claude Sonnet 5
LMArena Text: non-English14311260Claude Sonnet 5
LMArena Text: Chinese14781270Claude Sonnet 5
LMArena Text: German14421288Claude Sonnet 5
LMArena Text: Japanese14221198Claude Sonnet 5
LMArena Text: Korean1412Not measuredOnly Claude Sonnet 5 measured
LMArena Text: French1463Not measuredOnly Claude Sonnet 5 measured
LMArena Text: Spanish1438Not measuredOnly Claude Sonnet 5 measured
LMArena Text: Russian14501261Claude Sonnet 5
LMArena Text: Polish1425Not measuredOnly Claude Sonnet 5 measured
LMArena Text: multi-turn14531277Claude Sonnet 5
LMArena Text: longer queries14621283Claude Sonnet 5
LMArena Text: writing and language14361261Claude Sonnet 5
LMArena Text: entertainment and media14111243Claude Sonnet 5
LMArena Vision: English12751101Claude Sonnet 5
LMArena Vision: Chinese1331Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: reading text1288Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: humor1261Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: creative writing1246Not measuredOnly Claude Sonnet 5 measured
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-4.1 Nano
BenchmarkClaude Sonnet 5GPT-4.1 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-4.1 Nano$0.0003Fits in one request

GPT-4.1 Nano costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 5$0.130Fits in one request
GPT-4.1 Nano$0.0062Fits in one request

GPT-4.1 Nano costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 5$0.500Fits in one request
GPT-4.1 Nano$0.024Fits in one request

GPT-4.1 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-4.1 Nano
SpecificationAnthropic Claude Sonnet 5OpenAI GPT-4.1 Nano
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedJune 30, 2026April 14, 2025
Context window1M1.05M
Input $/Mtok$2.00$0.10
Output $/Mtok$10.00$0.40
Coding index57.7Not benchmarked
Independent measurements behind it60
Cost per solved task$1.87Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Only Claude Sonnet 5 has a coding score, 57.7 on the Vibe Coding Index; GPT-4.1 Nano has none, so the two cannot be ranked on coding. Pick GPT-4.1 Nano for output tokens 25.0x cheaper ($0.40 vs $10.00 per million) and a larger context window (1.05M against 1M tokens).

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

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; GPT-4.1 Nano costs $0.10 and $0.40. Cost per solved task is known for Claude Sonnet 5 only.

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

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

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

53 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-4.1 Nano's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next