Compare / head-to-head
Claude Sonnet 4vsClaude Sonnet 5
Claude Sonnet 5 leads 3 of 3 shared benchmarks. Claude Sonnet 5 is 1.5x cheaper per token. Claude Sonnet 5 has the larger context window (1M tokens).
Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.
Shared benchmarks
0 – 3
Claude Sonnet 5 leads
Cheaper per token
Claude Sonnet 5
1.5x cheaper, input + output
Larger context
Claude Sonnet 5
1M tokens
Provider uptime (30d)
100%
Anthropic
Claude Sonnet 4
Anthropic · released 2025-05-22
textvision
Claude Sonnet 5
Anthropic · released 2026-06-30
textvision
Quality
Benchmark matrix
3 shared · 1 only Claude Sonnet 4 · 5 only Claude Sonnet 5| Benchmark | Claude Sonnet 4 | Claude Sonnet 5 | Δ | Edge |
|---|---|---|---|---|
| Reported by both · 3 | ||||
| SWE-bench Verified | 72.7% ↗ | 85.2% ↗ | -12.5 pt | Claude Sonnet 5 |
| GPQA Diamond | 79.2% ↗epoch | 90.5% ↗epoch | -11.3 pt | Claude Sonnet 5 |
| OTIS Mock AIME 2024-2025 (Epoch AI run) | 71.1% ↗epoch | 94.7% ↗epoch | -23.6 pt | Claude Sonnet 5 |
| Only Claude Sonnet 4 reports · 1 | ||||
| AIME 2024 (no extended thinking) | 33.1% ↗ | not reported | — | — |
| Only Claude Sonnet 5 reports · 5 | ||||
| Humanity's Last Exam (no tools) | not reported | 43.2% ↗ | — | — |
| FrontierMath Tier 4 v2 (Epoch AI run) | not reported | 29.3% ↗epoch | — | — |
| FrontierMath Tiers 1-3 v2 (Epoch AI run) | not reported | 65.6% ↗epoch | — | — |
| Humanity's Last Exam (with tools) | not reported | 57.4% ↗ | — | — |
| SimpleQA Verified | not reported | 33.7% ↗epoch | — | — |
Scores tagged "epoch" or "matharena" are independent runs, used only where the lab has not published its own; ⚠ marks rows MathArena flags as released after the competition. Higher is better on every row. Δ is Claude Sonnet 4 minus Claude Sonnet 5 in the benchmark's own unit. "Not reported" means the lab has not published that figure; it is not a zero. ↗ opens the source.
Specs & pricing
Side by side
Official pricing pages and model cards| Spec | Claude Sonnet 4 | Claude Sonnet 5 | Edge |
|---|---|---|---|
| Context window | 200K tokens | 1M tokens | Claude Sonnet 5 |
| Max output | 64K tokens | 128K tokens | Claude Sonnet 5 |
| Input price / 1M | $3 ↗ | $2 ↗ | Claude Sonnet 5 |
| Output price / 1M | $15 ↗ | $10 ↗ | Claude Sonnet 5 |
| Cached input / 1M | $0.3 ↗ | $0.2 ↗ | Claude Sonnet 5 |
| Input + output / 1M Lower is cheaper. List prices; batch, tool and regional fees excluded. | $18 | $12 | Claude Sonnet 5 |
| Modalities | text · vision | text · vision | Tie |
| Released | 2025-05-22 | 2026-06-30 | — |
| Cited benchmark scores | 4 | 8 | — |
Reliability
Anthropic status
Last 60 days · refreshed daily on this page · live on /statusMore matchups
Claude Sonnet 4 vs …
Models sharing the most benchmarksMore matchups
Claude Sonnet 5 vs …
Models sharing the most benchmarksBuilt by Respan
Which one wins on your data?
Public benchmarks are a starting point. Run Claude Sonnet 4 and Claude Sonnet 5 on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.