Coding · Microsoft

Phi-4 on LiveCodeBench: score, rank and what it means

Phi-4 scores 64.7 on LiveCodeBench, placing it #303 of 600 models in the index. The benchmark average is 61.0 and the leader is Claude Sonnet 4.5 Reasoning at 85.1.

Score
64.7
0–100 scale
Rank
#303
of 600
Percentile
50th
within the index
Benchmark avg
61.0
all models
Leader
85.1
Claude Sonnet 4.5 Reasoning
Gap to leader
20.4
points

Score distribution

The chart shows the top 10 models on LiveCodeBench, with Phi-4 highlighted. Longer bars mean higher scores.

Claude Sonnet 4.5 Reasoning 85.1
Grok 4 Reasoning 85.1
Claude Opus 4.5 85.0
GPT-5.2 Max 84.8
Grok 4 Turbo 84.7
GPT-5.1 Turbo 84.6
GPT-5.2 Pro 84.6
GPT-5.2 Reasoning 84.6
Claude Opus 4.5 Pro 84.1
Gemini 3 Pro Max 83.6

Top 10 leaderboard

#ModelProviderContextInput / 1MAvg score
1 Claude Sonnet 4.5 Reasoning Anthropic 400000 $19.48 87.7
2 Grok 4 Reasoning xAI 2000000 $19.67 87.8
3 Claude Opus 4.5 Anthropic 400000 $19.42 87.7
4 GPT-5.2 Max OpenAI 1000000 $21.39 89.2
5 Grok 4 Turbo xAI 1000000 $19.21 86.7
6 GPT-5.1 Turbo OpenAI 2000000 $19.19 86.1
7 GPT-5.2 Pro OpenAI 2000000 $21.32 89.6
8 GPT-5.2 Reasoning OpenAI 1000000 $20.98 87.5
9 Claude Opus 4.5 Pro Anthropic 200000 $20.98 89.1
10 Gemini 3 Pro Max Google DeepMind 2000000 $20.57 87.9

What this score means

On LiveCodeBench, Phi-4 sits at #303 of 600. The leader, Claude Sonnet 4.5 Reasoning, scores 85.1, so the gap to the top is 20.4 points. The median model in this index scores 64.7, which puts Phi-4 above the midpoint.

Microsoft models average 52.1 on this benchmark. Phi-4 is 12.6 points above that provider line, so it is a stronger result than the average Microsoft model.

Among multimodal models, the average is 70.3. Phi-4 is 5.6 points below that group. This is the more useful comparison if you are shortlisting within the same tier rather than across the whole index.

Read a 64.7 as a relative signal, not an absolute guarantee. Benchmark scores depend on prompt format, evaluation harness and contamination controls. Use this page to narrow the shortlist, then test the model on your own data.

Price context

At $3.96 per million input tokens, Phi-4 is below the median input price of $4.00 across the 600 models scored on LiveCodeBench. The models immediately around it in the ranking are shown below so you can compare score and price together.

ModelProviderContextInput / 1MAvg score
Nova Lite Amazon 65536 $9.20 73.4
Firefunction Max Fireworks AI 32768 $9.12 73.2
Llama 3 Anyscale Anyscale 65536 $3.94 74.7
Mixtral Groq Chat Groq 8192 $3.09 72.0
Phi-4 Microsoft 200000 $3.96 75.4
Gemma 3 Chat Google DeepMind 65536 $3.74 74.5
Hunyuan-Large Base Tencent 200000 $3.64 74.0

Other benchmarks for Phi-4

BenchmarkScoreRankPercentileRelative
MMLU-Pro 79.5 198 67th
GPQA Diamond 69.4 284 53th
SWE-bench Verified 66.5 180 70th
HumanEval 79.4 253 58th
MATH-500 79.0 236 61th
AIME 2025 74.1 180 70th
IFEval 83.0 246 59th
TruthfulQA 76.5 295 51th
HellaSwag 86.3 206 66th
MMMU 71.2 267 56th
Arena Elo 1392.0 240 60th

FAQ

What score does Phi-4 get on LiveCodeBench?

Phi-4 scores 64.7 on LiveCodeBench in this index. The benchmark average is 61.0 and the top score is 85.1.

How does Phi-4 rank on LiveCodeBench?

It ranks #303 of 600 models, in the 50th percentile. The leader is Claude Sonnet 4.5 Reasoning at 85.1.

Is Phi-4 good at LiveCodeBench?

Yes, relative to the index: it is above the median and inside the top half of scores. The result should be read alongside its price and context window.

How is the LiveCodeBench score calculated?

LiveCodeBench is a coding benchmark. Scores in this index are modelled estimates on a 0–100 scale (or Elo for Arena), derived from capability tier and benchmark difficulty. They are not official leaderboard results.

What does Phi-4 cost?

Phi-4 costs $3.96 per million input tokens and $20.63 per million output tokens.

Related