Model comparison

Claude Sonnet 4 vs Phi-4 Mini

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

Last verified . 3 shared benchmarks.

Claude Sonnet 4 Anthropic

40.8

Rank #145 Confirmed

Phi-4 Mini Microsoft

30.9

Rank #283 Reported

Summary

  • They share 3 benchmarks with published results for both. Claude Sonnet 4 scores higher in 3 categories and Phi-4 Mini in 0 categories; 2 gaps are clear of the uncertainty.
  • The widest gap is in knowledge, where Claude Sonnet 4 leads 41.8 to 25.3.
  • The biggest single-benchmark swing is SciCode: 40% for Claude Sonnet 4 and 10.8% for Phi-4 Mini.
  • Phi-4 Mini is cheaper at $0.075 / $0.30 per million input/output tokens, against $3 / $15 for Claude Sonnet 4.
  • Claude Sonnet 4 accepts more context: 200K tokens versus 128K.
  • Phi-4 Mini has downloadable open weights; the other is API-only.

Side by side

Claude Sonnet 4 and Phi-4 Mini specifications
Claude Sonnet 4Phi-4 Mini
ProviderAnthropicMicrosoft
Noometry Index40.830.9
Released2025-05-222024-12-11
WeightsProprietaryOpen
Context window200K128K
Max output64K4K
Input $ / M tokens$3$0.075
Output $ / M tokens$15$0.30
Results tracked583

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

Category by category

Coding Claude Sonnet 4 leads

Claude Sonnet 4: 43.5 (#88), Phi-4 Mini: 28.1 (#317)

Coding benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
SciCode40%10.8%
SWE-bench Verified (bash only)64.9%—
Aider Polyglot61.3%—
GSO4.9%—
WeirdML46.1%—
LMArena Coding1414—
ALE-Bench655.35—

Agentic & Tool Use Not comparable

Claude Sonnet 4: 38.5 (#31), Phi-4 Mini: —

Agentic & Tool Use benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
TheAgentCompany33.1%—
Cybench35%—
DeepResearch Bench46.6%—
OSWorld43.9%—
METR Time Horizons62%—

Reasoning Too close to call

Claude Sonnet 4: 22.9 (#187), Phi-4 Mini: 22.4 (#195)

Reasoning benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
CritPt0.3%0%
ARC-AGI-25.9%—
SimpleBench45.5%—
Kagi LLM Benchmark73%—
ARC-AGI-140%—
EnigmaEval3.1%—
LMArena Hard Prompts1372—
DTBench77.1%—
LMCA29%—
Epoch Capabilities Index141.69—
ForecastBench60.2—

Math Not comparable

Claude Sonnet 4: 43.3 (#80), Phi-4 Mini: —

Math benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
OTIS Mock AIME 2024-202571.1%—
Omni-MATH60.2%—
LMArena Math1375—
MATH Level 584.4%—
FrontierMath (Feb 2025 set)4.1%—
FrontierMath Tier 4 (v1)0%—

Knowledge Claude Sonnet 4 leads

Claude Sonnet 4: 41.8 (#108), Phi-4 Mini: 25.3 (#262)

Knowledge benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
Vectara Hallucination Rate10.3%23.5%
GPQA Diamond79.2%—
Humanity's Last Exam7.8%—
MMLU-Pro84.3%—
Confabulations13.2%—
GPQA (HELM)70.6%—
LMArena Expert1372—

Multimodal Not comparable

Claude Sonnet 4: 26.2 (#121), Phi-4 Mini: —

Multimodal benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
LMArena Vision1191—
GeoBench37%—
VPCT34%—
MindCube44.8%—

Multilingual Not comparable

Claude Sonnet 4: 46.7 (#156), Phi-4 Mini: —

Multilingual benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
LMArena Non-English1333—
LMArena Chinese1350—
LMArena French1363—
LMArena German1331—
LMArena Japanese1302—
LMArena Korean1291—
LMArena Russian1355—
LMArena Spanish1357—

Instruction Following Not comparable

Claude Sonnet 4: 71.7 (#145), Phi-4 Mini: —

Instruction Following benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
IFEval84%—
LMArena Instruction Following1376—

Long Context Not comparable

Claude Sonnet 4: 33.7 (#259), Phi-4 Mini: —

Long Context benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
Fiction.LiveBench46.9%—
LMArena Longer Query1398—

Writing & Preference Not comparable

Claude Sonnet 4: 57.1 (#132), Phi-4 Mini: —

Writing & Preference benchmarks
BenchmarkClaude Sonnet 4Phi-4 Mini
LMArena Text1351—
LMArena Creative Writing1345—
Short-Story Creative Writing81.4%—
EQ-Bench Creative Writing1483—
WildBench83.8%—
LMArena Multi-Turn1376—

Frequently asked questions

Is Claude Sonnet 4 better than Phi-4 Mini?

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

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

Phi-4 Mini is cheaper. It lists at $0.075 per million input tokens and $0.30 per million output tokens; Claude Sonnet 4 lists at $3 and $15.

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

Claude Sonnet 4 scores higher on coding benchmarks: 43.5 versus 28.1 in the Noometry coding category.

Which has the bigger context window?

Claude Sonnet 4 does, with 200K tokens against 128K.

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

3 benchmarks have published results for both models. Claude Sonnet 4 has 58 scored results on Noometry and Phi-4 Mini has 3.

Related comparisons

Go deeper