Coding · Mistral AI

Codestral 8B on HumanEval: score, rank and what it means

Codestral 8B scores 62.8 on HumanEval, placing it #459 of 600 models in the index. The benchmark average is 74.0 and the leader is GPT-5.2 Pro at 96.8.

Score
62.8
0–100 scale
Rank
#459
of 600
Percentile
24th
within the index
Benchmark avg
74.0
all models
Leader
96.8
GPT-5.2 Pro
Gap to leader
34.0
points

Score distribution

The chart shows the top 10 models on HumanEval, with Codestral 8B highlighted. Longer bars mean higher scores.

GPT-5.2 Pro 96.8
Gemini 3 Pro Pro 95.0
o4 Max 94.6
Grok 4 Reasoning 93.8
Claude Opus 4.5 93.7
GPT-5.2 Max 93.6
Claude Opus 4.5 Pro 93.4
Grok 4 Max 93.4
GPT-5.2 Turbo 93.2
GPT-5.1 Reasoning 92.9

Top 10 leaderboard

#ModelProviderContextInput / 1MAvg score
1 GPT-5.2 Pro OpenAI 2000000 $21.32 89.6
2 Gemini 3 Pro Pro Google DeepMind 200000 $19.80 87.3
3 o4 Max OpenAI 2000000 $19.51 86.2
4 Grok 4 Reasoning xAI 2000000 $19.67 87.8
5 Claude Opus 4.5 Anthropic 400000 $19.42 87.7
6 GPT-5.2 Max OpenAI 1000000 $21.39 89.2
7 Claude Opus 4.5 Pro Anthropic 200000 $20.98 89.1
8 Grok 4 Max xAI 2000000 $19.70 86.6
9 GPT-5.2 Turbo OpenAI 1000000 $20.73 87.4
10 GPT-5.1 Reasoning OpenAI 400000 $20.27 88.3

What this score means

On HumanEval, Codestral 8B sits at #459 of 600. The leader, GPT-5.2 Pro, scores 96.8, so the gap to the top is 34.0 points. The median model in this index scores 77.4, which puts Codestral 8B below the midpoint.

Mistral AI models average 71.6 on this benchmark. Codestral 8B is 8.8 points below that provider line, so it is a weaker result than the average Mistral AI model.

Among small open-weight models, the average is 56.7. Codestral 8B is 6.1 points above that group. This is the more useful comparison if you are shortlisting within the same tier rather than across the whole index.

Read a 62.8 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 $1.18 per million input tokens, Codestral 8B is below the median input price of $4.00 across the 600 models scored on HumanEval. The models immediately around it in the ranking are shown below so you can compare score and price together.

ModelProviderContextInput / 1MAvg score
DeepSeek-Coder 8B DeepSeek 32768 $1.26 58.7
Magistral 8B Mistral AI 4096 $1.33 60.0
SmolLM3 Base Hugging Face 16384 $1.38 60.4
GPT-NeoX Chat EleutherAI 16384 $1.49 60.1
Codestral 8B Mistral AI 4096 $1.18 59.0
Pythia EleutherAI 32768 $1.29 59.8
Auto Nano OpenRouter 4096 $2.83 57.1

Other benchmarks for Codestral 8B

BenchmarkScoreRankPercentileRelative
MMLU-Pro 65.7 441 27th
GPQA Diamond 53.3 488 19th
SWE-bench Verified 46.1 451 25th
MATH-500 57.9 492 18th
AIME 2025 49.9 461 23th
LiveCodeBench 49.5 453 25th
IFEval 70.4 451 25th
TruthfulQA 65.4 455 24th
HellaSwag 72.0 495 18th
MMMU 55.6 491 18th
Arena Elo 1253.3 486 19th

FAQ

What score does Codestral 8B get on HumanEval?

Codestral 8B scores 62.8 on HumanEval in this index. The benchmark average is 74.0 and the top score is 96.8.

How does Codestral 8B rank on HumanEval?

It ranks #459 of 600 models, in the 24th percentile. The leader is GPT-5.2 Pro at 96.8.

Is Codestral 8B good at HumanEval?

It is below the median for this benchmark, so test it carefully before relying on it for this capability. The result should be read alongside its price and context window.

How is the HumanEval score calculated?

HumanEval 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 Codestral 8B cost?

Codestral 8B costs $1.18 per million input tokens and $5.35 per million output tokens.

Related