Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Sonnet 5 vs GPT-5.4

Anthropic · released

Wins 2 of 8 areas

Coding · Agents

OpenAI · released

Wins 5 of 8 areas

Reasoning · Facts · Images and charts · Math · Following instructions

GPT-5.4 is the stronger all-rounder.Claude Sonnet 5 is cheaper and better at coding.

Scores updated · 40 tests both models report · How we compare

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.

Claude Sonnet 5$2.00 to read · $10.00 to write$12Price from Anthropic's own price page
GPT-5.4$2.50 to read · $15.00 to write$18Price from Artificial Analysis

Claude Sonnet 5 costs 31% 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.4 pulls ahead

  • Extremely hard research-level math problemsFrontierMath Tier 4+19.7points aheadGPT-5.449Claude Sonnet 529.3
  • Proof problems from the US Math OlympiadUSAMO 2026+15.7points aheadGPT-5.495.2Claude Sonnet 579.5
  • Unpublished advanced math problemsFrontierMath Tiers 1-3 (v2)+13points aheadGPT-5.478.6Claude Sonnet 565.6

Where Claude Sonnet 5 pulls ahead

  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+52.3points aheadClaude Sonnet 560.6GPT-5.48.3
  • Real work tasks from 44 professionsGDPVal+10.9points aheadClaude Sonnet 548.3GPT-5.437.4
  • Fixes real GitHub issues in many programming languagesSWE-bench Multilingual+6.6points aheadClaude Sonnet 578.3GPT-5.471.7

Every test, side by side

All 40 tests both models report. The winning score is in its model's colour; marks a score checked independently.

CodingClaude Sonnet 5

Full coding ranking

AgentsClaude Sonnet 5

Full agents ranking

ReasoningGPT-5.4

Full reasoning ranking

FactsGPT-5.4

Full facts ranking

Images and chartsGPT-5.4

Full images and charts ranking

MathGPT-5.4

Full math ranking

Long documentsEven

Full long documents ranking

Following instructionsGPT-5.4

Full following instructions ranking

Other results13 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.

Questions people ask

Which is better, Claude Sonnet 5 or GPT-5.4?

GPT-5.4 wins five of the eight areas we test: reasoning, facts, images and charts, math and following instructions. Claude Sonnet 5 wins coding and agents, and costs 31% less. They are level on long documents.

Which is better for coding?

Claude Sonnet 5. It wins 6 of the 7 coding tests both models report; GPT-5.4 wins 1.

Which is cheaper?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; GPT-5.4 costs $2.50 and $15.00. That makes Claude Sonnet 5 about 31% cheaper for the same work.

How do you compare the two?

We use the 40 benchmark tests both models have published scores on. The verdict counts the 27 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 13 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.