Skip to main content

Model comparison

Claude 3.5 Sonnet vs GPT-4.1 mini

Data verified

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

46.96/100
Margin
3.9pts
← winning
43.1/100
1 category wins2 category wins

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

Evidence parity. Claude 3.5 Sonnet and GPT-4.1 mini share 3 comparable benchmark results. 3 of 8 categories are comparable. 1 result is unique to Claude 3.5 Sonnet; 19 to GPT-4.1 mini.

Updated July 24, 2026
Shared results
3
Claude 3.5 Sonnet only
1
GPT-4.1 mini only
19
Comparable categories
3 / 8

Pick Claude 3.5 Sonnet if you want the stronger benchmark profile. GPT-4.1 mini only becomes the better choice if knowledge is the priority or you want the cheaper token bill.

Confidence note. This is a partial-evidence comparison with 3 shared benchmark results across 3 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 3.5 Sonnet is clearly ahead on the BenchAlign aggregate, 46.96 to 43.1. The gap is large enough that you do not need to squint at the spreadsheet to see the difference.

Claude 3.5 Sonnet's sharpest advantage is in coding, where it averages 49 against 23.6. The single biggest benchmark swing on the page is SWE-bench Verified, 49% to 23.6%. GPT-4.1 mini does hit back in knowledge, so the answer changes if that is the part of the workload you care about most.

Claude 3.5 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 3.5 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 3.5 Sonnet and GPT-4.1 mini
CategoryClaude 3.5 SonnetΔGPT-4.1 mini
CodingClaude 3.5 Sonnet49.0Margin 25.4GPT-4.1 mini23.6
KnowledgeClaude 3.5 Sonnet59.4Margin 4.8GPT-4.1 mini64.2
MathClaude 3.5 Sonnet1.6Margin 2.9GPT-4.1 mini4.5
Inst. FollowingClaude 3.5 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 3.5 SonnetB · GPT-4.1 mini
  1. SWE-bench Verified

    Coding
    Source ↗
    A 49%B 23.6%
    Winner: Claude 3.5 SonnetΔ 25.4
    SWE-bench Verified: Claude 3.5 Sonnet scored 49%; GPT-4.1 mini scored 23.6%. Claude 3.5 Sonnet wins this benchmark.
  2. GPQA

    Knowledge
    Source ↗
    A 59.4%B 64.2%
    Winner: GPT-4.1 miniΔ 4.8
    GPQA: Claude 3.5 Sonnet scored 59.4%; GPT-4.1 mini scored 64.2%. GPT-4.1 mini wins this benchmark.
  3. FrontierMath v2 (Tiers 1-3)

    Math
    Source ↗
    A 2.069%B 4.483%
    Winner: GPT-4.1 miniΔ 2.4
    FrontierMath v2 (Tiers 1-3): Claude 3.5 Sonnet scored 2.069%; GPT-4.1 mini scored 4.483%. GPT-4.1 mini wins this benchmark.

Operational comparison

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

MetricClaude 3.5 SonnetGPT-4.1 miniComparison
Input / output priceUSD per 1M tokensClaude 3.5 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 3.5 SonnetNot availableGPT-4.1 mini80 tok/sA complete speed comparison is not available.
First-answer latencyseconds to first tokenClaude 3.5 SonnetNot availableGPT-4.1 mini0.76 sA complete latency comparison is not available.
Context windowmaximum listed tokensClaude 3.5 Sonnet200KGPT-4.1 mini1MGPT-4.1 mini lists the larger context window.

Benchmark Deep Dive

Agentic
BenchmarkClaude 3.5 SonnetGPT-4.1 miniResult
AA Agentic IndexSource 1.7%Not comparable
τ²-bench resultsSource 52.9%Not comparable
GDPval-AASource 0.4%Not comparable
GDPval-AASource 508Not comparable
CodingClaude 3.5 Sonnet wins
BenchmarkClaude 3.5 SonnetGPT-4.1 miniResult
SWE-bench VerifiedSource 49%23.6%Claude 3.5 Sonnet leads
AA Coding IndexSource 20.2%Not comparable
AA-SciCodeSource 40.4%Not comparable
Reasoning
BenchmarkClaude 3.5 SonnetGPT-4.1 miniResult
AA-LCRSource 42.3%Not comparable
CritPtSource 0.0%Not comparable
KnowledgeGPT-4.1 mini wins
BenchmarkClaude 3.5 SonnetGPT-4.1 miniResult
GPQASource 59.4%64.2%GPT-4.1 mini leads
MMLUSource 87.5%Not comparable
Artificial Analysis Intelligence IndexSource 14.8%Not comparable
AA-GPQA DiamondSource 66.4%Not comparable
AA-HLESource 4.6%Not comparable
AA-Omniscience IndexSource -50.1%Not comparable
AA-Omniscience AccuracySource 17.5%Not comparable
AA-Omniscience Hallucination RateSource 82.0%Not comparable
MathGPT-4.1 mini wins
BenchmarkClaude 3.5 SonnetGPT-4.1 miniResult
FrontierMath v2 (Tiers 1-3)Source 2.069%4.483%GPT-4.1 mini leads
FrontierMath v2 (Tier 4)Source 0.000%Not comparable
Multimodal
BenchmarkClaude 3.5 SonnetGPT-4.1 miniResult
AA-MMMU-ProSource 58.7%Not comparable
Design Arena WebsiteSource 1027Not comparable
Inst. Following
BenchmarkClaude 3.5 SonnetGPT-4.1 miniResult
IFEvalSource 88.5%Not comparable
AA-IFBenchSource 38.3%Not comparable
Frequently Asked Questions (4)

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

Claude 3.5 Sonnet is ahead on BenchLM's BenchAlign leaderboard, 46.96 to 43.1. The biggest single separator in this matchup is SWE-bench Verified, where the scores are 49% and 23.6%.

Which is better for knowledge tasks, Claude 3.5 Sonnet or GPT-4.1 mini?

GPT-4.1 mini has the edge for knowledge tasks in this comparison, averaging 64.2 versus 59.4. Inside this category, GPQA is the benchmark that creates the most daylight between them.

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

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

Which is better for math, Claude 3.5 Sonnet or GPT-4.1 mini?

GPT-4.1 mini has the edge for math in this comparison, averaging 4.5 versus 1.6. Inside this category, FrontierMath v2 (Tiers 1-3) is the benchmark that creates the most daylight between them.

Related Comparisons

Last updated: July 24, 2026