Claude Sonnet 5 vs gpt-oss-20b
Claude Sonnet 5 leads gpt-oss-20b on the Artificial Analysis Intelligence Index, 38.2 to 10.0, and gpt-oss-20b costs 66.7x less per output token ($0.15 vs $10.00 per million). Updated October 21, 2026; 47 benchmarks have a result for both.
Claude Sonnet 5 or gpt-oss-20b: which to pick
Only Claude Sonnet 5 has a coding score, 57.7 on the Vibe Coding Index; gpt-oss-20b has none, so the two cannot be ranked on coding.
Pick gpt-oss-20b for output tokens 66.7x cheaper ($0.15 vs $10.00 per million).
- Shared results
- 47
- Claude Sonnet 5 only
- 74
- gpt-oss-20b only
- 15
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Only Claude Sonnet 5 has a coding score, so no call is made.
One side not measured
Intelligence
AA Intelligence Index
Claude Sonnet 5
Claude Sonnet 5 leads, 38.2 against 10.0.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Claude Sonnet 5 has a AA Agentic Index result, 43.6.
Directional only
Reasoning
GPQA Diamond
Claude Sonnet 5
Claude Sonnet 5 leads, 88.9% against 68.9%.
Same board, both measured
Math
AIME
No call
Only gpt-oss-20b has a AIME result, 86.0%.
Directional only
Knowledge
MMLU Pro
Claude Sonnet 5
Claude Sonnet 5 leads, 87.5% against 71.6%.
Same board, both measured
Web design
Design Arena: websites
Claude Sonnet 5
Claude Sonnet 5 leads, 1274 against 852.
Same board, both measured
Long documents
Listed context window
Claude Sonnet 5
Claude Sonnet 5 takes 1M tokens against 131K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
gpt-oss-20b
Claude Sonnet 5 $0.0070, gpt-oss-20b $0.0001 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Claude Sonnet 5 has the number, $1.87.
Directional only
At a glance
- Coding index
- Claude Sonnet 5 57.7 from 6 benchmarks, gpt-oss-20b not benchmarked.
- Widest category
- Web design, 46.3 points apart on average over 2 shared benchmarks.
- Widest single gap
- Design Arena: websites: Claude Sonnet 5 1274 against gpt-oss-20b 852, 52.8 points apart on a 0 to 100 scale.
- Output price
- Claude Sonnet 5 $10.00 against gpt-oss-20b $0.15 per million output tokens, 66.7x apart.
- Context window
- Claude Sonnet 5 takes 1M tokens, gpt-oss-20b 131K.
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.
| Category | Claude Sonnet 5 | Bars | gpt-oss-20b | Ties |
|---|---|---|---|---|
| Coding | 6 | 0 | ||
| Intelligence | 2 | 0 | ||
| Reasoning | 7 | 0 | ||
| Math | 3 | 0 | ||
| Knowledge | 8 | 0 | ||
| Web design | 2 | 0 | ||
| General | 19 | 0 | ||
| All shared boards | 47 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index60
| Benchmark | Claude Sonnet 5 | gpt-oss-20b | Leader |
|---|---|---|---|
| LiveBench coding | 74.7% | Not measured | Only Claude Sonnet 5 measured |
| LMArena WebDev | 1540 | Not measured | Only Claude Sonnet 5 measured |
| AA Coding Index | 71.5 | Not measured | Only Claude Sonnet 5 measured |
| LiveCodeBench (Vals AI) | 82.4% | 80.4% | Claude Sonnet 5 |
| SWE-bench Verified (Vals AI) | 79.6% | Not measured | Only Claude Sonnet 5 measured |
| Terminal-Bench 4 (Vals AI) | 10.6% | Not measured | Only Claude Sonnet 5 measured |
| Vibe Code Bench (Vals AI) | 81.3% | Not measured | Only Claude Sonnet 5 measured |
| Code migration (Vals AI) | 44.4% | Not measured | Only Claude Sonnet 5 measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only Claude Sonnet 5 measured |
| IOI (Vals AI) | 45.0% | Not measured | Only Claude Sonnet 5 measured |
| Terminal-Bench 2.1 (Vals AI) | 74.5% | Not measured | Only Claude Sonnet 5 measured |
| Vibe Code Bench 1-100 (Vals AI) | 13.8% | Not measured | Only Claude Sonnet 5 measured |
| SkillsBench (Vals AI) | 46.5% | Not measured | Only Claude Sonnet 5 measured |
| CyberBench (Vals AI) | 70.3% | Not measured | Only Claude Sonnet 5 measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 77.7% | Only gpt-oss-20b measured |
| SciCode | 54.3% | 38.9% | Claude Sonnet 5 |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 10.6% | Only gpt-oss-20b measured |
| Terminal-Bench | Not measured | 3.4% | Only gpt-oss-20b measured |
| FrontierCode | 42.7% | Not measured | Only Claude Sonnet 5 measured |
| GSO-Bench | 37.3% | Not measured | Only Claude Sonnet 5 measured |
| WeirdML | 68.8% | 40.9% | Claude Sonnet 5 |
| ALE-Bench | 1463.1 | 566.0 | Claude Sonnet 5 |
| LMArena Text: coding | 1483 | 1307 | Claude Sonnet 5 |
| LMArena Text: software and IT | 1474 | 1311 | Claude Sonnet 5 |
| LMArena WebDev: React | 1541 | Not measured | Only Claude Sonnet 5 measured |
| LMArena WebDev: HTML | 1527 | Not measured | Only Claude Sonnet 5 measured |
| LMArena WebDev: from an image | 1540 | Not measured | Only Claude Sonnet 5 measured |
| SciCode | 10.7% | Not measured | Only 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
| Benchmark | Claude Sonnet 5 | gpt-oss-20b | Leader |
|---|---|---|---|
| AA Intelligence Index | 38.2 | 10.0 | Claude Sonnet 5 |
| Epoch Capabilities Index | 156.9 | 137.7 | Claude Sonnet 5 |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index23 boards, none shared
| Benchmark | Claude Sonnet 5 | gpt-oss-20b | Leader |
|---|---|---|---|
| AA Agentic Index | 43.6 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: agents building web apps | 1245 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: agents building full-stack apps | 1249 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: agents building mobile apps | 1215 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: agents building Android apps | 1225 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: agents building Godot games | 1225 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: agents building games | 1227 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: HTML slides | 1218 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: PowerPoint slides | 1216 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: spreadsheets | 1021 | Not measured | Only Claude Sonnet 5 measured |
| LiveBench research | 82.8% | Not measured | Only Claude Sonnet 5 measured |
| LiveBench browser | 72.0% | Not measured | Only Claude Sonnet 5 measured |
| LiveBench long agentic | 39.0% | Not measured | Only Claude Sonnet 5 measured |
| SREBench (Vals AI) | 0.4% | Not measured | Only Claude Sonnet 5 measured |
| Finance Agent (Vals AI) | 53.9% | Not measured | Only Claude Sonnet 5 measured |
| Tax Agent Bench (Vals AI) | 29.4% | Not measured | Only Claude Sonnet 5 measured |
| Legal Research Bench (Vals AI) | 41.8% | Not measured | Only Claude Sonnet 5 measured |
| Excel Modeling Benchmark (Vals AI) | 66.3% | Not measured | Only Claude Sonnet 5 measured |
| Terminal-Bench-Science (Vals AI) | 5.7% | Not measured | Only Claude Sonnet 5 measured |
| τ²-Bench Telecom | Not measured | 60.2% | Only gpt-oss-20b measured |
| APEX-Agents | 54.5% | Not measured | Only Claude Sonnet 5 measured |
| Vending-Bench 2 | $6,378 | Not measured | Only Claude Sonnet 5 measured |
| BrowseComp-Plus | Not measured | 50.6% | Only gpt-oss-20b measured |
| Neither model has a result on the other 18 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index70
| Benchmark | Claude Sonnet 5 | gpt-oss-20b | Leader |
|---|---|---|---|
| GPQA Diamond | 88.9% | 68.9% | Claude Sonnet 5 |
| LiveBench reasoning | 88.7% | Not measured | Only Claude Sonnet 5 measured |
| MMMU Pro (Vals AI) | 83.0% | Not measured | Only Claude Sonnet 5 measured |
| GPQA Diamond (Artificial Analysis run) | 91.1% | 68.8% | Claude Sonnet 5 |
| Humanity's Last Exam (Artificial Analysis run) | 41.3% | 11.0% | Claude Sonnet 5 |
| GPQA Diamond (Epoch AI run) | 90.5% | 60.8% | Claude Sonnet 5 |
| SimpleBench | 60.6% | Not measured | Only Claude Sonnet 5 measured |
| Chess puzzles | 45.0% | Not measured | Only Claude Sonnet 5 measured |
| Mystery game puzzles | 35.0% | Not measured | Only Claude Sonnet 5 measured |
| LMArena Text: hard prompts | 1461 | 1274 | Claude Sonnet 5 |
| LMArena Text: expert | 1489 | 1258 | Claude Sonnet 5 |
| LMArena Text: hard prompts in English | 1464 | 1292 | Claude Sonnet 5 |
| LMArena Vision: diagrams | 1293 | Not measured | Only Claude Sonnet 5 measured |
| LMArena Vision: homework | 1311 | Not measured | Only Claude Sonnet 5 measured |
| Kagi LLM Benchmark | Not measured | 53.2% | Only gpt-oss-20b measured |
| Neither model has a result on the other 7 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Claude Sonnet 5 | gpt-oss-20b | Leader |
|---|---|---|---|
| AIME | Not measured | 86.0% | Only gpt-oss-20b measured |
| MATH 500 (Vals AI) | Not measured | 94.2% | Only gpt-oss-20b measured |
| MGSM (Vals AI) | Not measured | 89.0% | Only gpt-oss-20b measured |
| AA Math Index | Not measured | 89.3 | Only gpt-oss-20b measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 89.3% | Only gpt-oss-20b measured |
| OTIS Mock AIME | 94.7% | 65.3% | Claude Sonnet 5 |
| FrontierMath, tiers 1 to 3 | 65.6% | Not measured | Only Claude Sonnet 5 measured |
| FrontierMath, tier 4 | 29.3% | Not measured | Only Claude Sonnet 5 measured |
| ProofBench | 77.0% | Not measured | Only Claude Sonnet 5 measured |
| LMArena Text: math | 1467 | 1317 | Claude Sonnet 5 |
| LMArena Text: mathematical work | 1481 | 1305 | Claude Sonnet 5 |
| Neither model has a result on the other 2 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index80
| Benchmark | Claude Sonnet 5 | gpt-oss-20b | Leader |
|---|---|---|---|
| MMLU Pro | 87.5% | 71.6% | Claude Sonnet 5 |
| LegalBench (Vals AI) | 83.9% | 70.8% | Claude Sonnet 5 |
| CaseLaw (Vals AI) | Not measured | 43.8% | Only gpt-oss-20b measured |
| CorpFin (Vals AI) | 67.0% | 53.1% | Claude Sonnet 5 |
| TaxEval (Vals AI) | 75.6% | 63.7% | Claude Sonnet 5 |
| MortgageTax (Vals AI) | 70.0% | Not measured | Only Claude Sonnet 5 measured |
| MedQA (Vals AI) | Not measured | 82.9% | Only gpt-oss-20b measured |
| MedCode (Vals AI) | 47.5% | Not measured | Only Claude Sonnet 5 measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 74.8% | Only gpt-oss-20b measured |
| SimpleQA Verified | 33.7% | Not measured | Only Claude Sonnet 5 measured |
| LMArena Text: science | 1460 | 1296 | Claude Sonnet 5 |
| LMArena Text: medicine and healthcare | 1442 | 1310 | Claude Sonnet 5 |
| LMArena Text: legal and government | 1454 | 1280 | Claude Sonnet 5 |
| LMArena Text: business and finance | 1436 | 1284 | Claude Sonnet 5 |
| Neither model has a result on the other 4 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Claude Sonnet 5 | gpt-oss-20b | Leader |
|---|---|---|---|
| Design Arena: websites | 1274 | 852 | Claude Sonnet 5 |
| Design Arena: UI components | 1280 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: game dev | 1278 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: data viz | 1251 | 933 | Claude Sonnet 5 |
| Design Arena: 3D | 1261 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: all code categories | 1276 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: SVG | 1193 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: ASCII art | 1207 | Not measured | Only Claude Sonnet 5 measured |
| LiveBench design | 82.0% | Not measured | Only Claude Sonnet 5 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index190
| Benchmark | Claude Sonnet 5 | gpt-oss-20b | Leader |
|---|---|---|---|
| LiveBench data analysis | 71.7% | Not measured | Only Claude Sonnet 5 measured |
| Public Benefits Bench (Vals AI) | 66.0% | Not measured | Only Claude Sonnet 5 measured |
| SAGE (Vals AI) | 48.9% | Not measured | Only Claude Sonnet 5 measured |
| MedScribe (Vals AI) | 76.0% | Not measured | Only Claude Sonnet 5 measured |
| Vals Multimodal Index | 68.8% | Not measured | Only Claude Sonnet 5 measured |
| IFBench | Not measured | 65.1% | Only gpt-oss-20b measured |
| Long context reasoning (AA-LCR) | 82.0% | 34.7% | Claude Sonnet 5 |
| DTBench | 92.5% | 68.0% | Claude Sonnet 5 |
| LMCA | 50.0% | 14.5% | Claude Sonnet 5 |
| Surface Evolver Bench | 60.0% | Not measured | Only Claude Sonnet 5 measured |
| LMArena Text | 1442 | 1288 | Claude Sonnet 5 |
| LMArena Text: instruction following | 1452 | 1236 | Claude Sonnet 5 |
| LMArena Text: creative writing | 1416 | 1201 | Claude Sonnet 5 |
| LMArena Vision | 1273 | Not measured | Only Claude Sonnet 5 measured |
| LMArena Text: English | 1450 | 1303 | Claude Sonnet 5 |
| LMArena Text: non-English | 1431 | 1269 | Claude Sonnet 5 |
| LMArena Text: Chinese | 1478 | 1315 | Claude Sonnet 5 |
| LMArena Text: German | 1442 | 1255 | Claude Sonnet 5 |
| LMArena Text: Japanese | 1422 | 1244 | Claude Sonnet 5 |
| LMArena Text: Korean | 1412 | 1236 | Claude Sonnet 5 |
| LMArena Text: French | 1463 | Not measured | Only Claude Sonnet 5 measured |
| LMArena Text: Spanish | 1438 | 1267 | Claude Sonnet 5 |
| LMArena Text: Russian | 1450 | 1278 | Claude Sonnet 5 |
| LMArena Text: Polish | 1425 | 1252 | Claude Sonnet 5 |
| LMArena Text: multi-turn | 1453 | 1268 | Claude Sonnet 5 |
| LMArena Text: longer queries | 1462 | 1250 | Claude Sonnet 5 |
| LMArena Text: writing and language | 1436 | 1238 | Claude Sonnet 5 |
| LMArena Text: entertainment and media | 1411 | 1216 | Claude Sonnet 5 |
| LMArena Vision: English | 1275 | Not measured | Only Claude Sonnet 5 measured |
| LMArena Vision: Chinese | 1331 | Not measured | Only Claude Sonnet 5 measured |
| LMArena Vision: reading text | 1288 | Not measured | Only Claude Sonnet 5 measured |
| LMArena Vision: humor | 1261 | Not measured | Only Claude Sonnet 5 measured |
| LMArena Vision: creative writing | 1246 | Not measured | Only Claude Sonnet 5 measured |
| LMArena Document | 1466 | Not measured | Only Claude Sonnet 5 measured |
| Neither model has a result on the other 12 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Sonnet 5 | gpt-oss-20b | Leader |
|---|---|---|---|
| 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
gpt-oss-20b costs less
Repository review
50K input + 3K output tokens
gpt-oss-20b costs less
Agent loop
200K input + 10K output tokens
gpt-oss-20b 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.
| Specification | Anthropic Claude Sonnet 5 | OpenAI gpt-oss-20b |
|---|---|---|
| Maker | Anthropic | OpenAI |
| Weights | No public weights listed | Open weights |
| Released | June 30, 2026 | August 5, 2025 |
| Context window | 1M | 131K |
| Input $/Mtok | $2.00 | $0.03 |
| Output $/Mtok | $10.00 | $0.15 |
| Coding index | 57.7 | Not benchmarked |
| Independent measurements behind it | 6 | 0 |
| Cost per solved task | $1.87 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Sonnet 5 better than gpt-oss-20b for coding?
Only Claude Sonnet 5 has a coding score, 57.7 on the Vibe Coding Index; gpt-oss-20b has none, so the two cannot be ranked on coding. Pick gpt-oss-20b for output tokens 66.7x cheaper ($0.15 vs $10.00 per million).
Which is cheaper, Claude Sonnet 5 or gpt-oss-20b?
Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; gpt-oss-20b costs $0.03 and $0.15. Cost per solved task is known for Claude Sonnet 5 only.
Which has the bigger context window, Claude Sonnet 5 or gpt-oss-20b?
Claude Sonnet 5, with 1M tokens against 131K.
How many benchmarks is the Claude Sonnet 5 vs gpt-oss-20b comparison based on?
47 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 5's coding index rests on 6 independent benchmarks and gpt-oss-20b's on 0. Where only one model has a result, the page says so instead of naming a winner.