# Claude Sonnet 4 vs Phi-4

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

- Canonical page: https://noometry.com/compare/claude-sonnet-4-vs-phi-4
- Last updated: 2026-10-10
- Shared benchmarks: 24

## Summary

- They share 24 benchmarks with published results for both. Claude Sonnet 4 scores higher in 8 categories and Phi-4 in 1 category; 9 gaps are clear of the uncertainty.
- The widest gap is in math, where Claude Sonnet 4 leads 41.5 to 19.6.
- The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 71.1% for Claude Sonnet 4 and 13.8% for Phi-4.
- Phi-4 is cheaper at $0.07 / $0.14 per million input/output tokens, against $3 / $15 for Claude Sonnet 4.
- Claude Sonnet 4 accepts more context: 200K tokens versus 128K.
- Phi-4 has downloadable open weights; the other is API-only.

## Snapshot

| | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| Provider | Anthropic | Microsoft |
| Noometry Index | 40.6 | 30.9 |
| Rank | 139 | 269 |
| Context | 200K | 128K |
| Input $/M | $3 | $0.07 |
| Output $/M | $15 | $0.14 |
| Weights | Proprietary | Open |

## Coding

- Claude Sonnet 4: 44.0 (#70)
- Phi-4: 33.8 (#237)

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| LMArena Coding | 1414 | 1231 |
| SWE-bench Verified (bash only) | 64.9% | — |
| Aider Polyglot | 61.3% | — |
| SciCode | 40% | — |
| GSO | 4.9% | — |
| WeirdML | 46.1% | — |
| BigCodeBench Instruct | — | 45.5% |
| LiveBench Coding | — | 30.7% |
| BigCodeBench Complete | — | 55.4% |
| ALE-Bench | 655.35 | — |

## Agentic & Tool Use

- Claude Sonnet 4: 38.3 (#29)
- Phi-4: 22.6 (#120)

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| Berkeley Function Calling Leaderboard | — | 28.8% |
| TheAgentCompany | 33.1% | — |
| Cybench | 35% | — |
| DeepResearch Bench | 46.6% | — |
| OSWorld | 43.9% | — |
| BALROG | — | 11.6% |
| METR Time Horizons | 62% | — |

## Reasoning

- Claude Sonnet 4: 23.0 (#169)
- Phi-4: 17.0 (#287)

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| LMArena Hard Prompts | 1372 | 1220 |
| Epoch Capabilities Index | 141.69 | 130.43 |
| ARC-AGI-2 | 5.9% | — |
| SimpleBench | 45.5% | — |
| Kagi LLM Benchmark | 73% | — |
| ARC-AGI-1 | 40% | — |
| CritPt | 0.3% | — |
| Chess Puzzles | — | 1% |
| EnigmaEval | 3.1% | — |
| LiveBench Reasoning | — | 47.8% |
| DTBench | 77.1% | — |
| LiveBench Data Analysis | — | 45.2% |
| LMCA | 29% | — |
| ForecastBench | 60.2 | — |
| LiveBench | — | 41.6% |

## Math

- Claude Sonnet 4: 41.5 (#71)
- Phi-4: 19.6 (#279)

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| OTIS Mock AIME 2024-2025 | 71.1% | 13.8% |
| LMArena Math | 1375 | 1246 |
| MATH Level 5 | 84.4% | 64.9% |
| Omni-MATH | 60.2% | — |
| LiveBench Math | — | 42% |
| FrontierMath (Feb 2025 set) | 4.1% | — |
| FrontierMath Tier 4 (v1) | 0% | — |

## Knowledge

- Claude Sonnet 4: 41.6 (#99)
- Phi-4: 32.5 (#204)

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| GPQA Diamond | 79.2% | 56.1% |
| Confabulations | 13.2% | 29.4% |
| Vectara Hallucination Rate | 10.3% | 3.7% |
| LMArena Expert | 1371 | 1203 |
| Humanity's Last Exam | 7.8% | — |
| MMLU-Pro | 84.3% | — |
| GPQA (HELM) | 70.6% | — |
| MMLU | — | 84.8% |

## Multimodal

- Claude Sonnet 4: 25.6 (#116)
- Phi-4: —

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| LMArena Vision | 1191 | — |
| GeoBench | 37% | — |
| VPCT | 34% | — |
| MindCube | 44.8% | — |

## Multilingual

- Claude Sonnet 4: 46.9 (#151)
- Phi-4: 37.4 (#232)

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| LMArena Non-English | 1333 | 1197 |
| LMArena Chinese | 1351 | 1211 |
| LMArena French | 1364 | 1223 |
| LMArena German | 1331 | 1222 |
| LMArena Japanese | 1301 | 1158 |
| LMArena Korean | 1293 | 1151 |
| LMArena Russian | 1355 | 1209 |
| LMArena Spanish | 1356 | 1234 |

## Instruction Following

- Claude Sonnet 4: 71.8 (#141)
- Phi-4: 60.6 (#246)

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| LMArena Instruction Following | 1375 | 1201 |
| LiveBench Instruction Following | — | 58.4% |
| IFEval | 84% | — |

## Long Context

- Claude Sonnet 4: 33.6 (#254)
- Phi-4: 36.9 (#221)

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| LMArena Longer Query | 1398 | 1217 |
| Fiction.LiveBench | 46.9% | — |

## Writing & Preference

- Claude Sonnet 4: 57.3 (#127)
- Phi-4: 40.7 (#239)

| Benchmark | Claude Sonnet 4 | Phi-4 |
|---|---|---|
| LMArena Text | 1351 | 1217 |
| LMArena Creative Writing | 1345 | 1182 |
| Short-Story Creative Writing | 81.4% | 62.6% |
| LMArena Multi-Turn | 1376 | 1206 |
| EQ-Bench Creative Writing | 1483 | — |
| WildBench | 83.8% | — |
| LiveBench Language | — | 25.6% |

## FAQ

### Is Claude Sonnet 4 better than Phi-4?

Claude Sonnet 4 is the stronger model overall, scoring 40.6 to 30.9 on the Noometry Index. Phi-4 costs 69× 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?

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

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

Claude Sonnet 4 scores higher on coding benchmarks: 44.0 versus 33.8 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 share?

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