Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude 3.7 Sonnet vs GPT-5 Codex

Anthropic · released

Wins 0 of 7 areas

—

OpenAI · released

Wins 6 of 7 areas

Coding · Agents · Reasoning · Images and charts · Long documents · Following instructions

GPT-5 Codex is the stronger all-rounder.

Scores updated · 17 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 3.7 Sonnet$3.00 to read · $15.00 to write$18Price from Artificial Analysis
GPT-5 Codex$1.25 to read · $10.00 to write$11Price from Artificial Analysis

GPT-5 Codex costs 38% less for the same work.

The biggest differences

The tests each model wins by the widest margin, up to three each. Scores are out of 100.

Where GPT-5 Codex pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+25.8points aheadGPT-5 Codex74.1Claude 3.7 Sonnet48.3
  • Reasons across sets of long documentsAA-LCR+20points aheadGPT-5 Codex71.7Claude 3.7 Sonnet51.7
  • Very hard expert questions across many subjectsHumanity's Last Exam+18.1points aheadGPT-5 Codex27.8Claude 3.7 Sonnet9.7

Where Claude 3.7 Sonnet pulls ahead

Every test, side by side

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

CodingGPT-5 Codex

Full coding ranking

AgentsGPT-5 Codex
  • GDPValGPT-5 Codex by 8.427.435.8+8.4

Full agents ranking

ReasoningGPT-5 Codex

Full reasoning ranking

FactsEven

Full facts ranking

Images and chartsGPT-5 Codex
  • MMMU-ProGPT-5 Codex by 13.760.173.8+13.7

Full images and charts ranking

Long documentsGPT-5 Codex
  • AA-LCRGPT-5 Codex by 2051.771.7+20

Full long documents ranking

Following instructionsGPT-5 Codex
  • IFBenchGPT-5 Codex by 25.848.374.1+25.8

Full following instructions ranking

Other results5 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 3.7 Sonnet or GPT-5 Codex?

GPT-5 Codex wins six of the seven areas where both have results: coding, agents, reasoning, images and charts, long documents and following instructions. Claude 3.7 Sonnet wins none. They are level on facts.

Which is better for coding?

GPT-5 Codex. It wins 2 of the 3 coding tests both models report; Claude 3.7 Sonnet wins none, and 1 is a tie.

Which is cheaper?

Claude 3.7 Sonnet costs $3.00 per million input tokens and $15.00 per million output tokens; GPT-5 Codex costs $1.25 and $10.00. That makes GPT-5 Codex about 38% cheaper for the same work.

How do you compare the two?

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