Model comparison

Claude Sonnet 4 vs Codestral

Claude Sonnet 4 is the stronger model overall, scoring 40.8 to 30.6 on the Noometry Index. Codestral costs 13× 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

Codestral Mistral AI

30.6

Rank #290 Reported

Summary

  • They share 3 benchmarks with published results for both. Claude Sonnet 4 scores higher in 2 categories and Codestral in 0 categories; 2 gaps are clear of the uncertainty.
  • The widest gap is in coding, where Claude Sonnet 4 leads 43.5 to 27.3.
  • The biggest single-benchmark swing is Aider Polyglot: 61.3% for Claude Sonnet 4 and 11.1% for Codestral.
  • Codestral is cheaper at $0.30 / $0.90 per million input/output tokens, against $3 / $15 for Claude Sonnet 4.
  • Codestral accepts more context: 256K tokens versus 200K.

Side by side

Claude Sonnet 4 and Codestral specifications
Claude Sonnet 4Codestral
ProviderAnthropicMistral AI
Noometry Index40.830.6
Released2025-05-222024-05-29
WeightsProprietaryProprietary
Context window200K256K
Max output64K8K
Input $ / M tokens$3$0.30
Output $ / M tokens$15$0.90
Results tracked587

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), Codestral: 27.3 (#321)

Coding benchmarks
BenchmarkClaude Sonnet 4Codestral
Aider Polyglot61.3%11.1%
ALE-Bench655.35137.78
SWE-bench Verified (bash only)64.9%—
SciCode40%—
GSO4.9%—
WeirdML46.1%—
BigCodeBench Instruct—41.8%
LMArena Coding1414—
BigCodeBench Complete—52.5%
HumanEval+—73.8%
MBPP+—61.9%

Agentic & Tool Use Not comparable

Claude Sonnet 4: 38.5 (#31), Codestral: —

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

Reasoning Claude Sonnet 4 leads

Claude Sonnet 4: 22.9 (#187), Codestral: 19.8 (#251)

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

Math Not comparable

Claude Sonnet 4: 43.3 (#80), Codestral: —

Math benchmarks
BenchmarkClaude Sonnet 4Codestral
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 Not comparable

Claude Sonnet 4: 41.8 (#108), Codestral: —

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

Multimodal Not comparable

Claude Sonnet 4: 26.2 (#121), Codestral: —

Multimodal benchmarks
BenchmarkClaude Sonnet 4Codestral
LMArena Vision1191—
GeoBench37%—
VPCT34%—
MindCube44.8%—

Multilingual Not comparable

Claude Sonnet 4: 46.7 (#156), Codestral: —

Multilingual benchmarks
BenchmarkClaude Sonnet 4Codestral
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), Codestral: —

Instruction Following benchmarks
BenchmarkClaude Sonnet 4Codestral
IFEval84%—
LMArena Instruction Following1376—

Long Context Not comparable

Claude Sonnet 4: 33.7 (#259), Codestral: —

Long Context benchmarks
BenchmarkClaude Sonnet 4Codestral
Fiction.LiveBench46.9%—
LMArena Longer Query1398—

Writing & Preference Not comparable

Claude Sonnet 4: 57.1 (#132), Codestral: —

Writing & Preference benchmarks
BenchmarkClaude Sonnet 4Codestral
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 Codestral?

Claude Sonnet 4 is the stronger model overall, scoring 40.8 to 30.6 on the Noometry Index. Codestral costs 13× 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 Codestral?

Codestral is cheaper. It lists at $0.30 per million input tokens and $0.90 per million output tokens; Claude Sonnet 4 lists at $3 and $15.

Is Claude Sonnet 4 or Codestral better for coding?

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

Which has the bigger context window?

Codestral does, with 256K tokens against 200K.

How many benchmarks do Claude Sonnet 4 and Codestral share?

3 benchmarks have published results for both models. Claude Sonnet 4 has 58 scored results on Noometry and Codestral has 7.

Related comparisons

Go deeper