Model comparison

Claude Sonnet 5 vs GPT-5.1-Codex

Claude Sonnet 5 is the stronger model overall, scoring 54.5 to 38.2 on the Noometry Index.

Last verified . 3 shared benchmarks.

Claude Sonnet 5 Anthropic

54.5

Rank #26 Confirmed

GPT-5.1-Codex OpenAI

38.2

Rank #178 Reported

Summary

  • They share 3 benchmarks with published results for both. Claude Sonnet 5 scores higher in 3 categories and GPT-5.1-Codex in 0 categories; 3 gaps are clear of the uncertainty.
  • The widest gap is in math, where Claude Sonnet 5 leads 66.1 to 29.3.
  • The biggest single-benchmark swing is ProofBench: 77% for Claude Sonnet 5 and 9% for GPT-5.1-Codex.
  • GPT-5.1-Codex is cheaper at $1.25 / $10 per million input/output tokens, against $2 / $10 for Claude Sonnet 5.
  • Claude Sonnet 5 accepts more context: 1M tokens versus 400K.

Side by side

Claude Sonnet 5 and GPT-5.1-Codex specifications
Claude Sonnet 5GPT-5.1-Codex
ProviderAnthropicOpenAI
Noometry Index54.538.2
Released2026-06-292025-11-12
WeightsProprietaryProprietary
Context window1M400K
Max output128K128K
Input $ / M tokens$2$1.25
Output $ / M tokens$10$10
Results tracked516

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding Claude Sonnet 5 leads

Claude Sonnet 5: 55.5 (#20), GPT-5.1-Codex: 41.7 (#107)

Coding benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
LMArena WebDev15401337
ALE-Bench1,4631,245
DeepSWE53.8%—
FrontierCode42.7%—
SWE-bench Verified (bash only)—66%
CursorBench34.1%—
SciCode53.6%—
GSO37.3%—
WeirdML68.8%—
LMArena Coding1483—

Agentic & Tool Use Claude Sonnet 5 leads

Claude Sonnet 5: 42.7 (#16), GPT-5.1-Codex: 37.8 (#32)

Agentic & Tool Use benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
Terminal-Bench—60.4%
APEX-Agents54.5%—
GBAEval65.3%—
LMArena Search1194—
METR Time Horizons—70.8%
Vending-Bench 26,378—

Reasoning Not comparable

Claude Sonnet 5: 48.2 (#37), GPT-5.1-Codex: —

Reasoning benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
SimpleBench60.6%—
NYT Connections (extended)75.1%—
CritPt16.9%—
Chess Puzzles35%—
LMArena Hard Prompts1461—
Mystery Game Puzzles35%—
DTBench92.5%—
LMCA50%—
Surface Evolver Bench60%—
Bench to the Future 30.14—
Epoch Capabilities Index156.34—
ForecastBench61.1—

Math Claude Sonnet 5 leads

Claude Sonnet 5: 66.1 (#21), GPT-5.1-Codex: 29.3 (#218)

Math benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
ProofBench77%9%
FrontierMath (Tiers 1-3)65.6%—
FrontierMath Tier 429.3%—
OTIS Mock AIME 2024-202594.7%—
LMArena Math1467—

Knowledge Not comparable

Claude Sonnet 5: 55.7 (#42), GPT-5.1-Codex: —

Knowledge benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
GPQA Diamond90.5%—
SimpleQA Verified33.7%—
LMArena Expert1491—

Multimodal Not comparable

Claude Sonnet 5: 42.4 (#26), GPT-5.1-Codex: —

Multimodal benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
LMArena Vision1275—
Blueprint-Bench 224.9%—
LMArena Document1466—

Multilingual Not comparable

Claude Sonnet 5: 54.0 (#55), GPT-5.1-Codex: —

Multilingual benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
LMArena Non-English1431—
LMArena Chinese1475—
LMArena French1457—
LMArena German1448—
LMArena Japanese1422—
LMArena Korean1411—
LMArena Russian1452—
LMArena Spanish1436—

Instruction Following Not comparable

Claude Sonnet 5: 76.6 (#39), GPT-5.1-Codex: —

Instruction Following benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
LMArena Instruction Following1453—

Long Context Not comparable

Claude Sonnet 5: 44.8 (#53), GPT-5.1-Codex: —

Long Context benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
LMArena Longer Query1464—

Writing & Preference Not comparable

Claude Sonnet 5: 69.4 (#24), GPT-5.1-Codex: —

Writing & Preference benchmarks
BenchmarkClaude Sonnet 5GPT-5.1-Codex
LMArena Text1443—
LMArena Creative Writing1416—
EQ-Bench Creative Writing1794—
EQ-Bench 41236—
LMArena Multi-Turn1454—

Frequently asked questions

Is Claude Sonnet 5 better than GPT-5.1-Codex?

Claude Sonnet 5 is the stronger model overall, scoring 54.5 to 38.2 on the Noometry Index.

Which is cheaper, Claude Sonnet 5 or GPT-5.1-Codex?

GPT-5.1-Codex is cheaper. It lists at $1.25 per million input tokens and $10 per million output tokens; Claude Sonnet 5 lists at $2 and $10.

Is Claude Sonnet 5 or GPT-5.1-Codex better for coding?

Claude Sonnet 5 scores higher on coding benchmarks: 55.5 versus 41.7 in the Noometry coding category.

Which has the bigger context window?

Claude Sonnet 5 does, with 1M tokens against 400K.

How many benchmarks do Claude Sonnet 5 and GPT-5.1-Codex share?

3 benchmarks have published results for both models. Claude Sonnet 5 has 51 scored results on Noometry and GPT-5.1-Codex has 6.

Related comparisons

Go deeper