Claude 4 Sonnet vs GPT-5.1-Codex-Max

Side-by-side benchmark comparison across knowledge, coding, math, and reasoning.

Quick Verdict

GPT-5.1-Codex-Max wins overall with a score of 77 vs 59 (18 point difference).GPT-5.1-Codex-Max wins 4 out of 4 categories.

Knowledge

GPT-5.1-Codex-Max

Claude 4 Sonnet

71.5

GPT-5.1-Codex-Max

95

73
MMLU
98
73
GPQA
96
71
SuperGPQA
94
69
OpenBookQA
92

Coding

GPT-5.1-Codex-Max

Claude 4 Sonnet

65

GPT-5.1-Codex-Max

94

65
HumanEval
94

Mathematics

GPT-5.1-Codex-Max

Claude 4 Sonnet

72

GPT-5.1-Codex-Max

97.1

73
AIME 2023
99
75
AIME 2024
99
74
AIME 2025
98
69
HMMT Feb 2023
95
71
HMMT Feb 2024
97
70
HMMT Feb 2025
96
72
BRUMO 2025
96

Reasoning

GPT-5.1-Codex-Max

Claude 4 Sonnet

70

GPT-5.1-Codex-Max

93

71
SimpleQA
94
69
MuSR
92

Frequently Asked Questions

Which is better, Claude 4 Sonnet or GPT-5.1-Codex-Max?

GPT-5.1-Codex-Max scores higher overall with 77 vs 59, a difference of 18 points across all benchmarks.

Which is better for knowledge tasks, Claude 4 Sonnet or GPT-5.1-Codex-Max?

GPT-5.1-Codex-Max leads in knowledge tasks with an average score of 95 vs 71.5.

Which is better for coding, Claude 4 Sonnet or GPT-5.1-Codex-Max?

GPT-5.1-Codex-Max leads in coding with an average score of 94 vs 65.

Which is better for math, Claude 4 Sonnet or GPT-5.1-Codex-Max?

GPT-5.1-Codex-Max leads in math with an average score of 97.1 vs 72.

Which is better for reasoning, Claude 4 Sonnet or GPT-5.1-Codex-Max?

GPT-5.1-Codex-Max leads in reasoning with an average score of 93 vs 70.