Model comparison
Claude Sonnet 4.5 vs GPT-4.1
Head-to-head evidence from 6 shared benchmark results across 5 categories. Overall scores shown here use the public BenchAlign v5 ranking lane.
Public leaderboard positions: Claude Sonnet 4.5 #98 (Estimated); GPT-4.1 #111 (Supported). Intervals and evidence labels describe ranking uncertainty, not a guarantee for a specific workload.
Evidence parity. Claude Sonnet 4.5 and GPT-4.1 share 6 comparable benchmark results. 3 of 8 categories are comparable. 6 results are unique to Claude Sonnet 4.5; 14 to GPT-4.1.
Updated July 24, 2026- Shared results
- 6
- Claude Sonnet 4.5 only
- 6
- GPT-4.1 only
- 14
- Comparable categories
- 3 / 8
Pick Claude Sonnet 4.5 if you want the stronger benchmark profile. GPT-4.1 only becomes the better choice if you want the cheaper token bill or you need the larger 1M context window.
Confidence note. This is a partial-evidence comparison with 6 shared benchmark results across 5 evidence categories; 3 of 8 categories currently have scoreable aggregates for both models. Treat the verdict as directional until coverage is more balanced.
Why this result
Claude Sonnet 4.5 has the cleaner BenchAlign overall profile here, landing at 52.89 versus 50.44. It is a real lead, but still close enough that category-level strengths matter more than the headline number.
Claude Sonnet 4.5's sharpest advantage is in coding, where it averages 77.2 against 54.6. The single biggest benchmark swing on the page is SWE-bench Verified, 77.2% to 54.6%.
Claude Sonnet 4.5 is also the more expensive model on tokens at $3.00 input / $15.00 output per 1M tokens, versus $2.00 input / $8.00 output per 1M tokens for GPT-4.1. GPT-4.1 gives you the larger context window at 1M, compared with 200K for Claude Sonnet 4.5.
Category breakdown
Exact category averages are shown below. Not measured means BenchLM does not have enough sourced public coverage for that model and category.
| Category | Claude Sonnet 4.5 | Δ | GPT-4.1 |
|---|---|---|---|
| Coding | Claude Sonnet 4.577.2 | Margin← 22.6 | GPT-4.154.6 |
| Knowledge | Claude Sonnet 4.583.4 | Margin← 17.1 | GPT-4.166.3 |
| Math | Claude Sonnet 4.511.2 | Margin← 7.1 | GPT-4.14.1 |
| Agentic | Claude Sonnet 4.555.4 | MarginNo overlap | GPT-4.1Not measured |
| Reasoning | Claude Sonnet 4.513.6 | MarginNo overlap | GPT-4.1Not measured |
| Inst. Following | Claude Sonnet 4.5Not measured | MarginNo overlap | GPT-4.187.4 |
Decisive benchmark drivers
The largest measured benchmark gaps in this matchup, with exact reported values.
More
- Source ↗
SWE-bench Verified
CodingA 77.2%B 54.6%Winner: Claude Sonnet 4.5Δ 22.6SWE-bench Verified: Claude Sonnet 4.5 scored 77.2%; GPT-4.1 scored 54.6%. Claude Sonnet 4.5 wins this benchmark. - Source ↗
GPQA
KnowledgeA 83.4%B 66.3%Winner: Claude Sonnet 4.5Δ 17.1GPQA: Claude Sonnet 4.5 scored 83.4%; GPT-4.1 scored 66.3%. Claude Sonnet 4.5 wins this benchmark. - Source ↗
FrontierMath v2 (Tiers 1-3)
MathA 13.495%B 5.517%Winner: Claude Sonnet 4.5Δ 8FrontierMath v2 (Tiers 1-3): Claude Sonnet 4.5 scored 13.495%; GPT-4.1 scored 5.517%. Claude Sonnet 4.5 wins this benchmark. - Source ↗
FrontierMath v2 (Tier 4)
MathA 4.167%B 0.000%Winner: Claude Sonnet 4.5Δ 4.2FrontierMath v2 (Tier 4): Claude Sonnet 4.5 scored 4.167%; GPT-4.1 scored 0.000%. Claude Sonnet 4.5 wins this benchmark.
Operational comparison
Runtime and commercial metrics are compared only when both models have a complete sourced value.
| Metric | Claude Sonnet 4.5 | GPT-4.1 | Comparison |
|---|---|---|---|
| Input / output priceUSD per 1M tokens | Claude Sonnet 4.5$3 input / $15 output | GPT-4.1$2 input / $8 output | GPT-4.1 has the lower combined listed price. |
| Generation speedtokens per second | Claude Sonnet 4.5Not available | GPT-4.1108 tok/s | A complete speed comparison is not available. |
| First-answer latencyseconds to first token | Claude Sonnet 4.5Not available | GPT-4.11.02 s | A complete latency comparison is not available. |
| Context windowmaximum listed tokens | Claude Sonnet 4.5200K | GPT-4.11M | GPT-4.1 lists the larger context window. |
Benchmark Deep Dive
Agentic6 benchmarks
CodingClaude Sonnet 4.5 wins2 benchmarks
Reasoning3 benchmarks
KnowledgeClaude Sonnet 4.5 wins8 benchmarks
| Benchmark | Claude Sonnet 4.5 | GPT-4.1 | Result |
|---|---|---|---|
| GPQASource | 83.4% | 66.3% | Claude Sonnet 4.5 leads |
| MMLUSource | — | 90.2% | Not comparable |
| Artificial Analysis Intelligence IndexSource | — | 19.4% | Not comparable |
| AA-GPQA DiamondSource | — | 66.6% | Not comparable |
| AA-HLESource | — | 4.6% | Not comparable |
| AA-Omniscience IndexSource | — | -36.2% | Not comparable |
| AA-Omniscience AccuracySource | — | 24.2% | Not comparable |
| AA-Omniscience Hallucination RateSource | — | 79.6% | Not comparable |
MathClaude Sonnet 4.5 wins3 benchmarks
Multimodal2 benchmarks
Frequently Asked Questions (4)
Which is better, Claude Sonnet 4.5 or GPT-4.1?
Claude Sonnet 4.5 is ahead on BenchLM's BenchAlign leaderboard, 52.89 to 50.44. The biggest single separator in this matchup is SWE-bench Verified, where the scores are 77.2% and 54.6%.
Which is better for knowledge tasks, Claude Sonnet 4.5 or GPT-4.1?
Claude Sonnet 4.5 has the edge for knowledge tasks in this comparison, averaging 83.4 versus 66.3. Inside this category, GPQA is the benchmark that creates the most daylight between them.
Which is better for coding, Claude Sonnet 4.5 or GPT-4.1?
Claude Sonnet 4.5 has the edge for coding in this comparison, averaging 77.2 versus 54.6. Inside this category, SWE-bench Verified is the benchmark that creates the most daylight between them.
Which is better for math, Claude Sonnet 4.5 or GPT-4.1?
Claude Sonnet 4.5 has the edge for math in this comparison, averaging 11.2 versus 4.1. Inside this category, FrontierMath v2 (Tiers 1-3) is the benchmark that creates the most daylight between them.