Claude Sonnet 4 vs GPT-5
Wins 1 of 7 areas
Facts
Wins 6 of 7 areas
Coding · Agents · Reasoning · Images and charts · Long documents · Following instructions
GPT-5 is the stronger all-rounder.Claude Sonnet 4 is better at facts.
Scores updated · 56 tests both models report · How we compare
Where each one wins
Tests won in each of the seven areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.
- ReasoningHard problems that need careful thinking05GPT-55 of 5 tests
- AgentsCarrying out multi-step tasks on its own03GPT-53 of 3 tests
- Images and chartsUnderstanding pictures, charts and video03GPT-53 of 3 tests
- CodingWriting and fixing software24GPT-54 of 7 tests · 1 tie
- Following instructionsDoing exactly what it is asked02GPT-52 of 2 tests
- Long documentsFinding answers in very long texts01GPT-51 of 1 test
- FactsGetting facts right instead of making them up21Claude Sonnet 42 of 3 tests
Long documents rests on a single test.
What it costs
Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.
GPT-5 costs 38% less for the same work.
The biggest differences
The three tests each model wins by the widest margin. Scores are out of 100.
Where GPT-5 pulls ahead
- Finds hard-to-locate facts by browsing the webBrowseComp+42.7points ahead
- Recent programming contest problemsLiveCodeBench v6+38.5points ahead
- Follows unfamiliar, precisely checkable instructionsIFBench+18.4points ahead
Where Claude Sonnet 4 pulls ahead
- Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+53.1points ahead
- Fixes real GitHub issues in many programming languagesSWE-bench Multilingual+1.6points ahead
- Command-line tasks in a real terminalTerminal-Bench 2.1+1.1points ahead
Every test, side by side
All 56 tests both models report. The winning score is in its model's colour; marks a score checked independently.
CodingGPT-5
- LiveCodeBench v6GPT-5 by 38.548.587+38.5
- SciCodeGPT-5 by 2.94042.9+2.9
- SWE-bench VerifiedGPT-5 by 2.272.774.9+2.2
- SWE-bench MultilingualClaude Sonnet 4 by 1.656.955.3+1.6
- Terminal-Bench HardGPT-5 by 1.531.132.6+1.5
- Terminal-Bench 2.1Claude Sonnet 4 by 1.136.335.2+1.1
- SWE-bench Protie42.741.8tie
AgentsGPT-5
- BrowseCompGPT-5 by 42.712.254.9+42.7
- GDPValGPT-5 by 11.39.721+11.3
- τ-Bench V3 · BankingGPT-5 by 5.416.722.1+5.4
ReasoningGPT-5
- Humanity's Last ExamGPT-5 by 17.810.728.5+17.8
- SimpleBenchGPT-5 by 11.245.556.7+11.2
- GPQA DiamondGPT-5 by 7.777.785.4+7.7
- CritPtGPT-5 by 5.40.35.7+5.4
- ARC-AGI-2GPT-5 by 45.99.9+4
FactsClaude Sonnet 4
- AA-Omniscience · Non-hallucinationClaude Sonnet 4 by 53.170.917.8+53.1
- AA-Omniscience · AccuracyGPT-5 by 17.622.740.3+17.6
- Vectara HHEM hallucination ratelower is betterClaude Sonnet 4 by 4.810.315.1+4.8
Images and chartsGPT-5
- MMMU-ProGPT-5 by 12.461.874.2+12.4
- MMMUGPT-5 by 9.874.484.2+9.8
- LMArena · VisionGPT-5 by 17 rating points11911208+17 rating
Following instructionsGPT-5
- IFBenchGPT-5 by 18.454.773.1+18.4
- Multi-ChallengeGPT-5 by 12.557.169.6+12.5
Other results32 tests, not counted
Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.
- HMMT 2025GPT-5 by 77.415.993.3+77.4
- τ²-BenchGPT-5 by 37.245.282.4+37.2
- BrowseComp-ZHGPT-5 by 33.929.163+33.9
- ARC-AGI-1GPT-5 by 25.74065.7+25.7
- AIME 2025GPT-5 by 24.170.594.6+24.1
- FinSearchComp-globalGPT-5 by 21.94263.9+21.9
- τ²-Bench Telecom (AA run)GPT-5 by 20.264.684.8+20.2
- Aider-PolyglotGPT-5 by 17.370.788+17.3
- ArtifactsBenchGPT-5 by 15.757.373+15.7
- LiveCodeBenchGPT-5 by 1568.583.5+15
- HLE (with tools)GPT-5 by 14.920.335.2+14.9
- xbench-DeepSearchGPT-5 by 13.264.677.8+13.2
- frontiermath_tier_4_v1GPT-5 by 12.5012.5+12.5
- AA Agentic IndexGPT-5 by 8.917.626.5+8.9
- AA-OmniscienceClaude Sonnet 4 by 8.90.2-8.7+8.9
- Terminal-BenchGPT-5 by 8.335.543.8+8.3
- GAIA (text only)GPT-5 by 8.168.376.4+8.1
- Tau2 airlineGPT-5 by 7.155.562.6+7.1
- τ²-Bench (Retail)GPT-5 by 6.17581.1+6.1
- vectara_factual_consistencyClaude Sonnet 4 by 4.889.784.9+4.8
- AA IntelligenceGPT-5 by 4.118.923+4.1
- MMLU-ProGPT-5 by 3.483.787.1+3.4
- MMLU-ReduxGPT-5 by 1.793.695.3+1.7
- vectara_avg_summary_lengthGPT-5 by 16.9 rating points145.8162.7+16.9 rating
- vectara_answer_rateGPT-5 by 1.398.699.9+1.3
- AIR-Bench 2024tie88.387.7tie
- XSTesttie96.697.1tie
- HarmBenchtie9897.6tie
- Artificial Analysis Coding Indextie37.637.8tie
- bbqtie96.696.8tie
- simple_safety_teststie10099.8tie
- anthropic_red_teamtie99.299.1tie
Questions people ask
Which is better, Claude Sonnet 4 or GPT-5?
GPT-5 wins six of the seven areas where both have results: coding, agents, reasoning, images and charts, long documents and following instructions. Claude Sonnet 4 wins facts.
Which is better for coding?
GPT-5. It wins 4 of the 7 coding tests both models report; Claude Sonnet 4 wins 2, and 1 is a tie.
Which is cheaper?
Claude Sonnet 4 costs $3.00 per million input tokens and $15.00 per million output tokens; GPT-5 costs $1.25 and $10.00. That makes GPT-5 about 38% cheaper for the same work.
How do you compare the two?
We use the 56 benchmark tests both models have published scores on. The verdict counts the 24 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 32 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.