Model comparison

Claude Sonnet 5 vs Phi-4

Claude Sonnet 5 is the stronger model overall, scoring 54.6 to 31.2 on the Noometry Index. Phi-4 costs 46× less per token, which makes it the better buy when Claude Sonnet 5's lead doesn't matter for your workload.

Last verified . 21 shared benchmarks.

Claude Sonnet 5 Anthropic

54.6

Rank #29 Confirmed

Phi-4 Microsoft

31.2

Rank #279 Confirmed

Summary

  • They share 21 benchmarks with published results for both. Claude Sonnet 5 scores higher in 9 categories and Phi-4 in 0 categories; 9 gaps are clear of the uncertainty.
  • The widest gap is in math, where Claude Sonnet 5 leads 66.2 to 20.8.
  • The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 94.7% for Claude Sonnet 5 and 13.8% for Phi-4.
  • Phi-4 is cheaper at $0.07 / $0.14 per million input/output tokens, against $2 / $10 for Claude Sonnet 5.
  • Claude Sonnet 5 accepts more context: 1M tokens versus 128K.
  • Phi-4 has downloadable open weights; the other is API-only.

Side by side

Claude Sonnet 5 and Phi-4 specifications
Claude Sonnet 5Phi-4
ProviderAnthropicMicrosoft
Noometry Index54.631.2
Released2026-06-292024-12-11
WeightsProprietaryOpen
Context window1M128K
Max output128K4K
Input $ / M tokens$2$0.07
Output $ / M tokens$10$0.14
Results tracked5137

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 (#26), Phi-4: 34.4 (#239)

Coding benchmarks
BenchmarkClaude Sonnet 5Phi-4
LMArena Coding14831231
DeepSWE53.8%—
FrontierCode42.7%—
CursorBench34.1%—
LMArena WebDev1541—
SciCode54.3%—
GSO37.3%—
WeirdML68.8%—
BigCodeBench Instruct—45.5%
LiveBench Coding—30.7%
BigCodeBench Complete—55.4%
ALE-Bench1,463—

Agentic & Tool Use Claude Sonnet 5 leads

Claude Sonnet 5: 42.8 (#18), Phi-4: 22.8 (#128)

Agentic & Tool Use benchmarks
BenchmarkClaude Sonnet 5Phi-4
APEX-Agents54.5%—
Berkeley Function Calling Leaderboard—28.8%
BALROG—11.6%
GBAEval65.3%—
LMArena Search1194—
Vending-Bench 26,378—

Reasoning Claude Sonnet 5 leads

Claude Sonnet 5: 49.1 (#39), Phi-4: 17.7 (#291)

Reasoning benchmarks
BenchmarkClaude Sonnet 5Phi-4
Chess Puzzles35%1%
LMArena Hard Prompts14611220
Epoch Capabilities Index156.21130.42
SimpleBench60.6%—
NYT Connections (extended)75.1%—
CritPt16.9%—
LiveBench Reasoning—47.8%
Mystery Game Puzzles35%—
DTBench92.5%—
LiveBench Data Analysis—45.2%
LMCA50%—
Surface Evolver Bench60%—
Bench to the Future 30.14—
ForecastBench61.1—
LiveBench—41.6%

Math Claude Sonnet 5 leads

Claude Sonnet 5: 66.2 (#27), Phi-4: 20.8 (#285)

Math benchmarks
BenchmarkClaude Sonnet 5Phi-4
OTIS Mock AIME 2024-202594.7%13.8%
LMArena Math14671246
FrontierMath (Tiers 1-3)65.6%—
FrontierMath Tier 429.3%—
ProofBench77%—
LiveBench Math—42%
MATH Level 5—64.9%

Knowledge Claude Sonnet 5 leads

Claude Sonnet 5: 55.6 (#47), Phi-4: 32.6 (#209)

Knowledge benchmarks
BenchmarkClaude Sonnet 5Phi-4
GPQA Diamond90.5%56.1%
LMArena Expert14901203
SimpleQA Verified33.7%—
Confabulations—29.4%
Vectara Hallucination Rate—3.7%
MMLU—84.8%

Multimodal Not comparable

Claude Sonnet 5: 42.4 (#31), Phi-4: —

Multimodal benchmarks
BenchmarkClaude Sonnet 5Phi-4
LMArena Vision1274—
Blueprint-Bench 224.9%—
LMArena Document1466—

Multilingual Claude Sonnet 5 leads

Claude Sonnet 5: 53.8 (#55), Phi-4: 37.2 (#237)

Multilingual benchmarks
BenchmarkClaude Sonnet 5Phi-4
LMArena Non-English14311197
LMArena Chinese14771212
LMArena French14601224
LMArena German14401222
LMArena Japanese14221158
LMArena Korean14111151
LMArena Russian14511209
LMArena Spanish14371234

Instruction Following Claude Sonnet 5 leads

Claude Sonnet 5: 76.3 (#41), Phi-4: 60.4 (#251)

Instruction Following benchmarks
BenchmarkClaude Sonnet 5Phi-4
LMArena Instruction Following14521201
LiveBench Instruction Following—58.4%

Long Context Claude Sonnet 5 leads

Claude Sonnet 5: 44.8 (#55), Phi-4: 36.9 (#226)

Long Context benchmarks
BenchmarkClaude Sonnet 5Phi-4
LMArena Longer Query14631217

Writing & Preference Claude Sonnet 5 leads

Claude Sonnet 5: 69.2 (#25), Phi-4: 40.5 (#244)

Writing & Preference benchmarks
BenchmarkClaude Sonnet 5Phi-4
LMArena Text14421217
LMArena Creative Writing14161182
LMArena Multi-Turn14541206
Short-Story Creative Writing—62.6%
EQ-Bench Creative Writing1794—
EQ-Bench 41236—
LiveBench Language—25.6%

Frequently asked questions

Is Claude Sonnet 5 better than Phi-4?

Claude Sonnet 5 is the stronger model overall, scoring 54.6 to 31.2 on the Noometry Index. Phi-4 costs 46× less per token, which makes it the better buy when Claude Sonnet 5's lead doesn't matter for your workload.

Which is cheaper, Claude Sonnet 5 or Phi-4?

Phi-4 is cheaper. It lists at $0.07 per million input tokens and $0.14 per million output tokens; Claude Sonnet 5 lists at $2 and $10.

Is Claude Sonnet 5 or Phi-4 better for coding?

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

Which has the bigger context window?

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

How many benchmarks do Claude Sonnet 5 and Phi-4 share?

21 benchmarks have published results for both models. Claude Sonnet 5 has 51 scored results on Noometry and Phi-4 has 37.

Related comparisons

Go deeper