Across 32 comparable benchmarks, GPT-5 has better reported results on 30 and worse on 2. 1 further shared result is listed below, each with the reason it is not counted.
Moderate evidence32 of 33 shared results countedHow we compare
Claude Sonnet 4 is no longer available through its official API. API prices for this version are not shown.
Price basis: Listed rates vs standard rates. The price section below shows the applicable periods.
| Fact | Claude Sonnet 4 | GPT-5 |
|---|---|---|
| Context window | 200K tokens | 400K tokens |
| Input / 1M | — | $1.25 |
| Output / 1M | — | $10.00 |
| Blended (4:1) | — | $2.19 |
| Status | Retired | Deprecated |
| Released | May 23, 2025 | August 7, 2025 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 24 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
GPT-5 ahead on 7 of 9 counted
GPT-5 ahead on 2 of 2 counted
GPT-5 ahead on 6 of 6 counted
GPT-5 ahead on 4 of 4 counted
GPT-5 ahead on 1 of 1 counted
GPT-5 ahead on 3 of 3 counted
GPT-5 ahead on 4 of 4 counted
No shared comparable results for Computer & tool use, Research & search, Cybersecurity.
Published scores, with matching modes where available. Gaps show Claude Sonnet 4 relative to GPT-5. Reading the results
| Benchmark | Claude Sonnet 4 | GPT-5 | Gap |
|---|---|---|---|
| Aider-PolyglotAgentic Development · Accuracy | 61.3Thinking · no tools · 32K | 88.0≠Thinking High · no tools | −26.7 pts#14 vs #1 of 47 |
| CodeClashAlgorithmic Coding · Elo / win rate | 1223Normal · tools | 1360Normal · tools | 0.90×#4 vs #2 of 8 |
| IOI 2024 (Vals v1)Algorithmic Coding · Subtask points (%) | 9.7Normal · tools | 11≠Thinking · tools | −1.3 pts#5 vs #4 of 9 |
| IOI 2025 (Vals v1)Algorithmic Coding · Subtask points (%) | 4Thinking · tools | 29Thinking · tools | −25.0 pts#5 vs #2 of 8 |
| SWE-Bench Pro - CommercialRepository Engineering · Resolve Rate | 9.1Unspecified Reasoning · tools | 14.9Unspecified Reasoning · tools | −5.8 pts#13 vs #11 of 14 |
| SWE-Bench Pro - PublicRepository Engineering · Accuracy | 42.7Normal · tools | 41.8≠Thinking High · tools | +0.9 pts#58 vs #59 of 66 |
| SWE-bench VerifiedRepository Engineering · Accuracy | 80.2Parallel Thinking · tools | 72.8≠Thinking High · no tools | +7.4 pts#15 vs #49 of 108 |
| Terminal Bench HardAgentic Development · Accuracy | 31.1Thinking · tools | 37.9≠Thinking Medium · tools | −6.8 pts#66 vs #38 of 157 |
| Terminal-Bench 1.0Agentic Development · Accuracy | 41.3Deep Thinking · tools | 43.8≠Thinking · tools | −2.5 pts#9 vs #7 of 26 |
| ARC-AGI-1Abstract Generalization · Score (%) | 40.0Thinking · no tools | 65.7≠Thinking High · no tools | −25.7 pts#69 vs #54 of 87 |
| ARC-AGI-2Abstract Generalization · Score (% solved); cost per task (USD)Not counted · Speed and cost telemetry is reported, not scored | 5.9Thinking · no tools | 9.9≠Thinking High · no tools | 0.60×#64 vs #60 of 80 |
| SimpleBenchCommonsense · Score (AVG@5) | 45.5Thinking · no tools | 56.7≠Thinking High · no tools | 0.80×#73 vs #55 of 106 |
| AIME2025Mathematics · Accuracy | 85.0Deep Thinking · tools | 99.6≠Thinking · tools | −14.6 pts#48 vs #9 of 86 |
| FrontierMathMathematics · Accuracy | 4.1Normal · no tools | 26.3≠Thinking High · tools | −22.2 pts#32 vs #13 of 48 |
| FrontierMath - Tier 4Mathematics · Accuracy | 0.0Normal · no tools | 12.5≠Thinking High · no tools | −12.5 pts#44 vs #13 of 50 |
| IMO-ProofBenchMathematics · Accuracy | 27.1Thinking · no tools | 59.0Thinking · no tools | −31.9 pts#8 vs #2 of 14 |
| IMO-ProofBench AdvancedMathematics · Accuracy | 4.8Thinking · no tools | 20.0Thinking · no tools | −15.2 pts#19 vs #11 of 23 |
| MATH-500Mathematics · Accuracy | 99.1Thinking · no tools | 99.4≠Thinking High · no tools | −0.3 pts#4 vs #1 of 49 |
| CritPtScientific Reasoning · Score | 1.1Normal · no tools | 5.7≠Thinking High · no tools | 0.19×#103 vs #66 of 134 |
| GPQA DiamondScientific Reasoning · Accuracy | 83.8Deep Thinking · tools | 87.3≠Thinking · tools | −3.5 pts#91 vs #69 of 200 |
| MedCodeClinical Workflows · Accuracy (%) | 35.0Thinking · tools | 49.6≠Thinking High · tools | −14.7 pts#73 vs #21 of 97 |
| MedScribeClinical Workflows · Rubric pass rate (%) | 72.4Normal · tools | 83.7≠Thinking High · tools | −11.2 pts#81 vs #42 of 99 |
| Fiction.liveBenchLong Reasoning · 16k-token score (%) | 46.9Normal · no tools | 97.2≠Thinking Medium · no tools | −50.3 pts#24 vs #1 of 28 |
| MMMUVisual Understanding · Accuracy | 74.4Normal · no tools | 84.2≠Thinking High · no tools | −9.8 pts#23 vs #4 of 62 |
| MMMU-ProVisual Understanding · Accuracy | 62.4Normal · no tools | 78.4≠Thinking · no tools | −16.0 pts#100 vs #45 of 136 |
| VPCTVisual Understanding · Accuracy (%) | 34.0Thinking · no tools · 32K | 66.0≠Thinking High · no tools | −32.0 pts#22 vs #4 of 26 |
| Creative WritingWriting | 1483Normal · no tools | 1626Normal · no tools | 0.91×#62 vs #42 of 121 |
| SAGEService Workflows · Accuracy (%) | 35.0Normal · tools | 43.7≠Thinking High · tools | −8.7 pts#67 vs #47 of 82 |
| τ²-BenchService Workflows · Accuracy | 52.0Normal · tools | 80.0≠Thinking · tools | −28.0 pts#32 vs #15 of 40 |
| τ³-BankingService Workflows · Score | 16.7Thinking · tools | 22.1≠Thinking High · tools | 0.76×#67 vs #55 of 120 |
| HLEKnowledge Exams · Accuracy | 9.6Thinking · no tools | 35.2≠Thinking · tools | −25.6 pts#130 vs #82 of 151 |
| MMLU-ProKnowledge Exams · Accuracy | 84.0Thinking · no tools | 87.1≠Thinking High · no tools | −3.1 pts#42 vs #15 of 153 |
| ECICapability Indices · ECI score (capability index, higher is better) | 142Reported best | 150Reported best | 0.94×#91 vs #49 of 168 |
Agentic Development · Accuracy
Algorithmic Coding · Elo / win rate
Algorithmic Coding · Subtask points (%)
Algorithmic Coding · Subtask points (%)
Repository Engineering · Resolve Rate
Repository Engineering · Accuracy
Repository Engineering · Accuracy
Agentic Development · Accuracy
Agentic Development · Accuracy
Abstract Generalization · Score (%)
Abstract Generalization · Score (% solved); cost per task (USD)
Not counted · Speed and cost telemetry is reported, not scored
Commonsense · Score (AVG@5)
Mathematics · Accuracy
Mathematics · Accuracy
Mathematics · Accuracy
Mathematics · Accuracy
Mathematics · Accuracy
Mathematics · Accuracy
Scientific Reasoning · Score
Scientific Reasoning · Accuracy
Clinical Workflows · Accuracy (%)
Clinical Workflows · Rubric pass rate (%)
Long Reasoning · 16k-token score (%)
Writing
Service Workflows · Accuracy (%)
Service Workflows · Accuracy
Service Workflows · Score
A dash means no result is available.
| Benchmark | Claude Sonnet 4 | GPT-5 |
|---|---|---|
| AIME 2024 | 43.4 | — |
| FrontierMath Tier 4 v2 | — | 22.0 |
| FrontierMath v2 | — | 55.4 |
| MathArena Apex | — | 1.0 |
| GSO | — | 6.9 |
| LiveCodeBench | 48.5 | — |
| Vibe Code Bench v1.1 | — | 20.1 |
| WeirdML v2 | — | 60.7 |
| Claw Bench | 77.8 | — |
| OSWorld-Verified | 42.2 | — |
| Pinch Bench | 80.5 | — |
| PinchBench v2 | 48.8 | — |
| LiveBench | 61.3 | — |
| METR Time Horizons v1.1 | — | 203 |
| Text Arena (Coding) | — | 1395 |
| IF Bench | 55.0 | — |
| EBR-bench | — | 12.7 |
| GeoBench ACW | — | 81.0 |
| GDPval-AA | 33.0 | — |
| τ²-Bench - Telecom | — | 95.8 |
| BALROG | — | 32.8 |
| BrowseComp | — | 54.9 |
| GAIA | — | 59.4 |
Time-of-day providers use peak-hour rates; fixed-price providers use standard rates. Off-peak discounts remain in the published details.
Drag the handle above the bar for cache hits, the one below it for the input : output mix · 5% steps
Blended price = effective input rate at 90% cache hits × 80% + output rate × 20%
A blended cost needs a published input and output price on both sides, and one of these two does not have them yet.
Claude Sonnet 4: Listed text rates; pricing tier not confirmed.
GPT-5: Standard pricing. OpenAI official pricing (developers.openai.com/api/docs/pricing) verified 2026-11-13; standard tier; Deprecated; shutdown 2026-12-11 (replacement: gpt-6.1-sol)
| Price / 1M tokens | Claude Sonnet 4 | GPT-5 | Ratio |
|---|---|---|---|
| Input | — | $1.25 | — |
| Output | — | $10.00 | — |
| Cached input | — | $0.125 | — |
| Cache write | — | — | — |
| Blended | — | $2.19 | — |
Estimates use the selected token mix. Cache writes, tool fees and long-context surcharges are excluded.
Reported cost per task, paired with the score from the same run. Settings and sources may differ; costs do not affect the verdict.
Claude Sonnet 4 relative to GPT-5
No matching recorded settings for a cost summary.
Summary: 0 of 2 shared benchmarks have matching recorded settings and sources. The average is a geometric mean of 0 positive-cost ratios, one equal weight per benchmark. This benchmark set can include related tests and indexes; it is not a workload cost estimate.
Settings or sources differ or are not recorded; interpret the comparison with care.
Claude Sonnet 4
GPT-5
Settings or sources differ or are not recorded; interpret the comparison with care.
Claude Sonnet 4
GPT-5
| Attribute | Claude Sonnet 4 | GPT-5 |
|---|---|---|
| Availability | Retired | Deprecated |
| Provider | Anthropic | OpenAI |
| Model type | Reasoning model | Foundation model |
| First release | May 23, 2025 | August 7, 2025 |
| Context window | 200K tokens | 400K tokens |
| Max output | 64K tokens | 128K tokens |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Reasoning, Multilingual | Reasoning, Multilingual |
| Input modalities | Text, Image | Text, Image |
| Output modalities | Text | Text |
| Weights | Closed / API only | Closed / API only |
| Commercial use | Proprietary | Proprietary |
These are reported-score comparisons, not controlled head-to-head tests.
What people found comparing these models, or using either one. Comments also appear on the models' own pages.
Sign in with Google to comment on Claude Sonnet 4 vs GPT-5.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.