Claude Sonnet 5 vs Qwen3.8 27B
Qwen3.8 27B leads Claude Sonnet 5 on coding, 74.2 to 57.7 on the Vibe Coding Index, and Qwen3.8 27B costs 3.9x less per output token ($2.55 vs $10.00 per million). Updated October 22, 2026; 83 benchmarks have a result for both.
Claude Sonnet 5 or Qwen3.8 27B: which to pick
Pick Qwen3.8 27B for coding: it scores 74.2 on the Vibe Coding Index against 57.7 for Claude Sonnet 5, though on 4 benchmarks against 6.
Pick Claude Sonnet 5 for work measured by AA Coding Index or Vibe Code Bench (Vals AI), where it leads.
- Shared results
- 83
- Claude Sonnet 5 only
- 40
- Qwen3.8 27B only
- 2
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
Qwen3.8 27B
Qwen3.8 27B scores 74.2 against 57.7.
6 and 4 benchmarks behind the scores
Intelligence
AA Intelligence Index
Claude Sonnet 5
Claude Sonnet 5 leads, 38.2 against 33.7.
Same board, both measured
Agentic work
AA Agentic Index
Qwen3.8 27B
Qwen3.8 27B leads, 45.8 against 43.6.
Same board, both measured
Reasoning
GPQA Diamond
No call
Tied at 88.9%.
Same board, both measured
Knowledge
MMLU Pro
Claude Sonnet 5
Claude Sonnet 5 leads, 87.5% against 84.3%.
Same board, both measured
Web design
Design Arena: websites
No call
Only Claude Sonnet 5 has a Design Arena: websites result, 1274.
Directional only
Long documents
Listed context window
No call
Both take 1M tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Qwen3.8 27B
Claude Sonnet 5 $0.0070, Qwen3.8 27B $0.0017 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Qwen3.8 27B
Claude Sonnet 5 $1.87, Qwen3.8 27B $1.26.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Sonnet 5 57.7 from 6 benchmarks, Qwen3.8 27B 74.2 from 4 benchmarks.
- Widest category
- Math, 22.3 points apart on average over 3 shared benchmarks.
- Widest single gap
- ProofBench: Claude Sonnet 5 77.0% against Qwen3.8 27B 16.0%, 61.0 points apart on a 0 to 100 scale.
- Output price
- Claude Sonnet 5 $10.00 against Qwen3.8 27B $2.55 per million output tokens, 3.9x apart.
- Context window
- Both take 1M tokens.
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 | Qwen3.8 27B | Ties |
|---|---|---|---|---|
| Coding | 8 | 9 | 1 tie | |
| Intelligence | 2 | 0 | ||
| Agentic work | 8 | 2 | ||
| Reasoning | 8 | 1 | 1 tie | |
| Math | 3 | 0 | ||
| Knowledge | 7 | 2 | ||
| Web design | 1 | 0 | ||
| General | 21 | 8 | 1 tie | |
| All shared boards | 58 | 22 | 3 ties |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index89
| Benchmark | Claude Sonnet 5 | Qwen3.8 27B | Leader |
|---|---|---|---|
| LiveBench coding | 74.7% | 86.8% | Qwen3.8 27B |
| LMArena WebDev | 1540 | 1593 | Qwen3.8 27B |
| AA Coding Index | 71.5 | 68.1 | Claude Sonnet 5 |
| LiveCodeBench (Vals AI) | 82.4% | 84.0% | Qwen3.8 27B |
| SWE-bench Verified (Vals AI) | 79.6% | 86.0% | Qwen3.8 27B |
| Terminal-Bench 4 (Vals AI) | 10.6% | Not measured | Only Claude Sonnet 5 measured |
| Vibe Code Bench (Vals AI) | 81.3% | 64.8% | Claude Sonnet 5 |
| Code migration (Vals AI) | 44.4% | 14.2% | Claude Sonnet 5 |
| ProgramBench (Vals AI) | 0.0% | 0.0% | Tie |
| IOI (Vals AI) | 45.0% | 39.1% | Claude Sonnet 5 |
| Terminal-Bench 2.1 (Vals AI) | 74.5% | 58.4% | Claude Sonnet 5 |
| Vibe Code Bench 1-100 (Vals AI) | 13.8% | Not measured | Only Claude Sonnet 5 measured |
| SkillsBench (Vals AI) | 46.5% | 38.1% | Claude Sonnet 5 |
| CyberBench (Vals AI) | 70.3% | 67.8% | Claude Sonnet 5 |
| SciCode | 54.3% | 46.6% | Claude Sonnet 5 |
| FrontierCode | 42.7% | Not measured | Only Claude Sonnet 5 measured |
| GSO-Bench | 37.3% | Not measured | Only Claude Sonnet 5 measured |
| WeirdML | 68.8% | Not measured | Only Claude Sonnet 5 measured |
| ALE-Bench | 1463.1 | Not measured | Only Claude Sonnet 5 measured |
| LMArena Text: coding | 1483 | 1483 | Qwen3.8 27B |
| LMArena Text: software and IT | 1474 | 1478 | Qwen3.8 27B |
| LMArena WebDev: React | 1541 | 1602 | Qwen3.8 27B |
| LMArena WebDev: HTML | 1527 | 1570 | Qwen3.8 27B |
| LMArena WebDev: from an image | 1540 | 1577 | Qwen3.8 27B |
| SciCode | 10.7% | Not measured | Only Claude Sonnet 5 measured |
| SWE-Bench Pro V2 | 93.2% | Not measured | Only 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 index20
| Benchmark | Claude Sonnet 5 | Qwen3.8 27B | Leader |
|---|---|---|---|
| AA Intelligence Index | 38.2 | 33.7 | Claude Sonnet 5 |
| Epoch Capabilities Index | 156.9 | 151.7 | Claude Sonnet 5 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index82
| Benchmark | Claude Sonnet 5 | Qwen3.8 27B | Leader |
|---|---|---|---|
| AA Agentic Index | 43.6 | 45.8 | Qwen3.8 27B |
| 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 | 1226 | 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 | 1157 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: PowerPoint slides | 1190 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: spreadsheets | 1079 | Not measured | Only Claude Sonnet 5 measured |
| LiveBench research | 82.8% | 59.4% | Claude Sonnet 5 |
| LiveBench browser | 72.0% | 32.0% | Claude Sonnet 5 |
| LiveBench long agentic | 39.0% | 27.9% | Claude Sonnet 5 |
| SREBench (Vals AI) | 0.4% | Not measured | Only Claude Sonnet 5 measured |
| Finance Agent (Vals AI) | 53.9% | 48.5% | Claude Sonnet 5 |
| Tax Agent Bench (Vals AI) | 29.4% | 30.9% | Qwen3.8 27B |
| Legal Research Bench (Vals AI) | 41.8% | 36.1% | Claude Sonnet 5 |
| Excel Modeling Benchmark (Vals AI) | 66.3% | 59.7% | Claude Sonnet 5 |
| Terminal-Bench-Science (Vals AI) | 5.7% | 0.0% | Claude Sonnet 5 |
| APEX-Agents | 54.5% | 47.5% | Claude Sonnet 5 |
| Vending-Bench 2 | $6,378 | Not measured | Only Claude Sonnet 5 measured |
| Neither model has a result on the other 21 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index81
| Benchmark | Claude Sonnet 5 | Qwen3.8 27B | Leader |
|---|---|---|---|
| GPQA Diamond | 88.9% | 88.9% | Tie |
| LiveBench reasoning | 88.7% | 80.0% | Claude Sonnet 5 |
| MMMU Pro (Vals AI) | 83.0% | 83.9% | Qwen3.8 27B |
| GPQA Diamond (Artificial Analysis run) | 91.1% | 90.5% | Claude Sonnet 5 |
| Humanity's Last Exam (Artificial Analysis run) | 41.3% | 33.9% | Claude Sonnet 5 |
| GPQA Diamond (Epoch AI run) | 90.5% | Not measured | Only Claude Sonnet 5 measured |
| ARC-AGI | Not measured | 87.5% | Only Qwen3.8 27B measured |
| ARC-AGI-2 | Not measured | 42.4% | Only Qwen3.8 27B measured |
| 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 | 1459 | Claude Sonnet 5 |
| LMArena Text: expert | 1489 | 1479 | Claude Sonnet 5 |
| LMArena Text: hard prompts in English | 1464 | 1461 | Claude Sonnet 5 |
| LMArena Vision: diagrams | 1293 | 1285 | Claude Sonnet 5 |
| LMArena Vision: homework | 1311 | 1295 | Claude Sonnet 5 |
| 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 | Qwen3.8 27B | Leader |
|---|---|---|---|
| OTIS Mock AIME | 94.7% | Not measured | Only Claude Sonnet 5 measured |
| 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% | 16.0% | Claude Sonnet 5 |
| LMArena Text: math | 1467 | 1455 | Claude Sonnet 5 |
| LMArena Text: mathematical work | 1481 | 1458 | Claude Sonnet 5 |
| Neither model has a result on the other 8 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index72
| Benchmark | Claude Sonnet 5 | Qwen3.8 27B | Leader |
|---|---|---|---|
| MMLU Pro | 87.5% | 84.3% | Claude Sonnet 5 |
| LegalBench (Vals AI) | 83.9% | 82.4% | Claude Sonnet 5 |
| CorpFin (Vals AI) | 67.0% | Not measured | Only Claude Sonnet 5 measured |
| TaxEval (Vals AI) | 75.6% | 70.8% | Claude Sonnet 5 |
| MortgageTax (Vals AI) | 70.0% | 64.9% | Claude Sonnet 5 |
| MedCode (Vals AI) | 47.5% | 28.7% | Claude Sonnet 5 |
| SimpleQA Verified | 33.7% | Not measured | Only Claude Sonnet 5 measured |
| LMArena Text: science | 1460 | 1467 | Qwen3.8 27B |
| LMArena Text: medicine and healthcare | 1442 | 1437 | Claude Sonnet 5 |
| LMArena Text: legal and government | 1454 | 1447 | Claude Sonnet 5 |
| LMArena Text: business and finance | 1436 | 1438 | Qwen3.8 27B |
| Neither model has a result on the other 9 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Sonnet 5 | Qwen3.8 27B | Leader |
|---|---|---|---|
| Design Arena: websites | 1274 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: UI components | 1277 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: game dev | 1276 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: data viz | 1252 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: 3D | 1261 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: all code categories | 1275 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: SVG | 1191 | Not measured | Only Claude Sonnet 5 measured |
| Design Arena: ASCII art | 1206 | Not measured | Only Claude Sonnet 5 measured |
| LiveBench design | 82.0% | 75.9% | Claude Sonnet 5 |
GeneralLike-for-likePublic boards, shown as published, kept out of the index218
| Benchmark | Claude Sonnet 5 | Qwen3.8 27B | Leader |
|---|---|---|---|
| LiveBench data analysis | 71.7% | 76.6% | Qwen3.8 27B |
| Public Benefits Bench (Vals AI) | 66.0% | Not measured | Only Claude Sonnet 5 measured |
| SAGE (Vals AI) | 48.9% | 52.4% | Qwen3.8 27B |
| MedScribe (Vals AI) | 76.0% | 83.8% | Qwen3.8 27B |
| Vals Multimodal Index | 68.8% | Not measured | Only Claude Sonnet 5 measured |
| Long context reasoning (AA-LCR) | 82.0% | 82.0% | Tie |
| DTBench | 92.5% | 88.0% | Claude Sonnet 5 |
| LMCA | 50.0% | 41.4% | Claude Sonnet 5 |
| Surface Evolver Bench | 60.0% | 45.0% | Claude Sonnet 5 |
| LMArena Text | 1442 | 1440 | Claude Sonnet 5 |
| LMArena Text: instruction following | 1452 | 1436 | Claude Sonnet 5 |
| LMArena Text: creative writing | 1416 | 1383 | Claude Sonnet 5 |
| LMArena Vision | 1273 | 1269 | Claude Sonnet 5 |
| LMArena Text: English | 1450 | 1448 | Claude Sonnet 5 |
| LMArena Text: non-English | 1431 | 1428 | Claude Sonnet 5 |
| LMArena Text: Chinese | 1478 | 1501 | Qwen3.8 27B |
| LMArena Text: German | 1442 | 1443 | Qwen3.8 27B |
| LMArena Text: Japanese | 1422 | 1387 | Claude Sonnet 5 |
| LMArena Text: Korean | 1412 | 1384 | Claude Sonnet 5 |
| LMArena Text: French | 1463 | 1465 | Qwen3.8 27B |
| LMArena Text: Spanish | 1438 | 1449 | Qwen3.8 27B |
| LMArena Text: Russian | 1450 | 1415 | Claude Sonnet 5 |
| LMArena Text: Polish | 1425 | 1439 | Qwen3.8 27B |
| LMArena Text: multi-turn | 1453 | 1440 | Claude Sonnet 5 |
| LMArena Text: longer queries | 1462 | 1448 | Claude Sonnet 5 |
| LMArena Text: writing and language | 1436 | 1405 | Claude Sonnet 5 |
| LMArena Text: entertainment and media | 1411 | 1393 | Claude Sonnet 5 |
| LMArena Vision: English | 1275 | 1267 | Claude Sonnet 5 |
| LMArena Vision: Chinese | 1331 | 1326 | Claude Sonnet 5 |
| LMArena Vision: reading text | 1288 | 1281 | Claude Sonnet 5 |
| LMArena Vision: humor | 1261 | 1235 | Claude Sonnet 5 |
| LMArena Vision: creative writing | 1246 | 1237 | Claude Sonnet 5 |
| LMArena Document | 1466 | Not measured | Only Claude Sonnet 5 measured |
| EQ-Bench 4 | 1236 | Not measured | Only Claude Sonnet 5 measured |
| Neither model has a result on the other 14 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Sonnet 5 | Qwen3.8 27B | 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
Qwen3.8 27B costs less
Repository review
50K input + 3K output tokens
Qwen3.8 27B costs less
Agent loop
200K input + 10K output tokens
Qwen3.8 27B 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 | Qwen3.8 27B |
|---|---|---|
| Maker | Anthropic | Qwen |
| Weights | No public weights listed | Open weights |
| Released | June 30, 2026 | August 14, 2026 |
| Context window | 1M | 1M |
| Input $/Mtok | $2.00 | $0.425 |
| Output $/Mtok | $10.00 | $2.55 |
| Coding index | 57.7 | 74.2 |
| Independent measurements behind it | 6 | 4 |
| Cost per solved task | $1.87 | $1.26 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Sonnet 5 better than Qwen3.8 27B for coding?
Pick Qwen3.8 27B for coding: it scores 74.2 on the Vibe Coding Index against 57.7 for Claude Sonnet 5, though on 4 benchmarks against 6. Pick Claude Sonnet 5 for work measured by AA Coding Index or Vibe Code Bench (Vals AI), where it leads.
Which is cheaper, Claude Sonnet 5 or Qwen3.8 27B?
Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; Qwen3.8 27B costs $0.425 and $2.55. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and Qwen3.8 27B $1.26.
Which has the bigger context window, Claude Sonnet 5 or Qwen3.8 27B?
Neither: both take 1M tokens.
How many benchmarks is the Claude Sonnet 5 vs Qwen3.8 27B comparison based on?
83 benchmarks have a result for both models as of October 22, 2026. Claude Sonnet 5's coding index rests on 6 independent benchmarks and Qwen3.8 27B's on 4. Where only one model has a result, the page says so instead of naming a winner.