Skip to main content

Model comparison

Claude 4 Sonnet vs GPT-4.1 mini

Data verified

Head-to-head evidence from 14 shared benchmark results across 6 categories. Overall scores shown here use the public BenchAlign v5 ranking lane.

41.92/100
Margin
1.2pts
winning →
43.1/100
1 category wins0 category wins

Public leaderboard positions: Claude 4 Sonnet #168 (Supported); GPT-4.1 mini #160 (Estimated). Intervals and evidence labels describe ranking uncertainty, not a guarantee for a specific workload.

Evidence parity. Claude 4 Sonnet and GPT-4.1 mini share 14 comparable benchmark results. 1 of 8 categories are comparable. 2 results are unique to Claude 4 Sonnet; 8 to GPT-4.1 mini.

Updated July 24, 2026
Shared results
14
Claude 4 Sonnet only
2
GPT-4.1 mini only
8
Comparable categories
1 / 8

Pick GPT-4.1 mini if you want the stronger benchmark profile. Claude 4 Sonnet only becomes the better choice if coding is the priority.

Confidence note. This is a partial-evidence comparison with 14 shared benchmark results across 6 evidence categories; 1 of 8 categories currently have scoreable aggregates for both models. Treat the verdict as directional until coverage is more balanced.

Why this result

GPT-4.1 mini has the cleaner BenchAlign overall profile here, landing at 43.1 versus 41.92. It is a real lead, but still close enough that category-level strengths matter more than the headline number.

Claude 4 Sonnet is also the more expensive model on tokens at $3.00 input / $15.00 output per 1M tokens, versus $0.40 input / $1.60 output per 1M tokens for GPT-4.1 mini. That is roughly 9.4x on output cost alone. GPT-4.1 mini gives you the larger context window at 1M, compared with 200K for Claude 4 Sonnet.

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 scores and score margins for Claude 4 Sonnet and GPT-4.1 mini
CategoryClaude 4 SonnetΔGPT-4.1 mini
CodingClaude 4 Sonnet72.7Margin 49.1GPT-4.1 mini23.6
KnowledgeClaude 4 SonnetNot measuredMarginNo overlapGPT-4.1 mini64.2
MathClaude 4 SonnetNot measuredMarginNo overlapGPT-4.1 mini4.5
Inst. FollowingClaude 4 SonnetNot measuredMarginNo overlapGPT-4.1 mini88.5

Decisive benchmark drivers

The largest measured benchmark gaps in this matchup, with exact reported values.

More
A · Claude 4 SonnetB · GPT-4.1 mini
  1. SWE-bench Verified

    Coding
    Source ↗
    A 72.7%B 23.6%
    Winner: Claude 4 SonnetΔ 49.1
    SWE-bench Verified: Claude 4 Sonnet scored 72.7%; GPT-4.1 mini scored 23.6%. Claude 4 Sonnet wins this benchmark.

Operational comparison

Runtime and commercial metrics are compared only when both models have a complete sourced value.

MetricClaude 4 SonnetGPT-4.1 miniComparison
Input / output priceUSD per 1M tokensClaude 4 Sonnet$3 input / $15 outputGPT-4.1 mini$0.4 input / $1.6 outputGPT-4.1 mini has the lower combined listed price.
Generation speedtokens per secondClaude 4 Sonnet40 tok/sGPT-4.1 mini80 tok/sGPT-4.1 mini has the higher measured throughput.
First-answer latencyseconds to first tokenClaude 4 Sonnet1.33 sGPT-4.1 mini0.76 sGPT-4.1 mini reaches the first token sooner.
Context windowmaximum listed tokensClaude 4 Sonnet200KGPT-4.1 mini1MGPT-4.1 mini lists the larger context window.

Benchmark Deep Dive

Agentic
BenchmarkClaude 4 SonnetGPT-4.1 miniResult
τ²-bench resultsSource 52.3%52.9%GPT-4.1 mini leads
Gert LabsSource 39.66%Not comparable
JobBenchSource 18.4%Not comparable
AA Agentic IndexSource 1.7%Not comparable
GDPval-AASource 0.4%Not comparable
GDPval-AASource 508Not comparable
CodingClaude 4 Sonnet wins
BenchmarkClaude 4 SonnetGPT-4.1 miniResult
SWE-bench VerifiedSource 72.7%23.6%Claude 4 Sonnet leads
AA-SciCodeSource 37.3%40.4%GPT-4.1 mini leads
AA Coding IndexSource 20.2%Not comparable
Reasoning
BenchmarkClaude 4 SonnetGPT-4.1 miniResult
AA-LCRSource 44.3%42.3%Claude 4 Sonnet leads
CritPtSource 1.1%0.0%Claude 4 Sonnet leads
Knowledge
BenchmarkClaude 4 SonnetGPT-4.1 miniResult
Artificial Analysis Intelligence IndexSource 25.5%14.8%Claude 4 Sonnet leads
AA-GPQA DiamondSource 68.3%66.4%Claude 4 Sonnet leads
AA-HLESource 4.0%4.6%GPT-4.1 mini leads
AA-Omniscience IndexSource -9.2%-50.1%Claude 4 Sonnet leads
AA-Omniscience AccuracySource 22.4%17.5%Claude 4 Sonnet leads
AA-Omniscience Hallucination RateSource 40.8%82.0%Claude 4 Sonnet leads
MMLUSource 87.5%Not comparable
GPQASource 64.2%Not comparable
Math
BenchmarkClaude 4 SonnetGPT-4.1 miniResult
FrontierMath v2 (Tiers 1-3)Source 4.483%Not comparable
Multimodal
BenchmarkClaude 4 SonnetGPT-4.1 miniResult
AA-MMMU-ProSource 62.4%58.7%Claude 4 Sonnet leads
Design Arena WebsiteSource 11751027Claude 4 Sonnet leads
Inst. Following
BenchmarkClaude 4 SonnetGPT-4.1 miniResult
AA-IFBenchSource 45.4%38.3%Claude 4 Sonnet leads
IFEvalSource 88.5%Not comparable
Frequently Asked Questions (2)

Which is better, Claude 4 Sonnet or GPT-4.1 mini?

GPT-4.1 mini is ahead on BenchLM's BenchAlign leaderboard, 43.1 to 41.92. The biggest single separator in this matchup is SWE-bench Verified, where the scores are 72.7% and 23.6%.

Which is better for coding, Claude 4 Sonnet or GPT-4.1 mini?

Claude 4 Sonnet has the edge for coding in this comparison, averaging 72.7 versus 23.6. Inside this category, SWE-bench Verified is the benchmark that creates the most daylight between them.

Related Comparisons

Last updated: July 24, 2026