Best AI for Mathematics

26 models ranked by their Mathematics score from the LiveBench 2026_06_25 snapshot. Mathematics carries 15% of the overall LLM Index Score. Prices are per million input tokens.

#ModelMathematicsOverallPriceContext
1OpenAI: GPT-5.5
openai
95.980.49$5.001.1M
2Anthropic: Claude Fable 5
anthropic
95.779.82$10.001M
3Anthropic: Claude Opus 4.8
anthropic
95.379.67$5.001M
4OpenAI: GPT-5.4
openai
94.278.64$2.501.1M
5OpenAI: GPT-5.2
openai
93.275.45$1.75400K
6Anthropic: Claude Sonnet 5
anthropic
92.976.08$2.001M
7Anthropic: Claude Opus 4.7
anthropic
92.877.48$5.001M
8Google: Gemini 3.1 Pro Preview
google
91.076.96$2.001.0M
9OpenAI: GPT-5.4 Nano
openai
91.070.63$0.200400K
10DeepSeek: DeepSeek V4 Pro
deepseek
90.772.26$0.4351.0M
11Anthropic: Claude Opus 4.5
anthropic
90.473.03$5.00200K
12Z.ai: GLM 5.2
z-ai
89.873.84$0.9521.0M
13Anthropic: Claude Opus 4.6
anthropic
89.375.35$5.001M
14OpenAI: GPT-5.2-Codex
openai
88.874.55$1.75400K
15Google: Gemini 3.5 Flash
google
88.274.46$1.501.0M
16Anthropic: Claude Sonnet 4.6
anthropic
87.073.91$3.001M
17Qwen: Qwen3.7 Max
qwen
85.373.27$1.481M
18xAI: Grok 4.3
x-ai
84.362.08$1.251M
19MoonshotAI: Kimi K2.6
moonshotai
84.371.06$0.684262K
20Qwen: Qwen3.6 Plus
qwen
83.769.47$0.3251M
21Qwen: Qwen3.6 27B
qwen
79.964.91$0.450262K
22DeepSeek: DeepSeek V4 Flash
deepseek
79.765.62$0.0941.0M
23MoonshotAI: Kimi K2.7 Code
moonshotai
79.669.26$0.820262K
24OpenAI: GPT-5.4 Mini
openai
78.566.72$0.750400K
25xAI: Grok Build 0.1
x-ai
78.468.11$1.00256K
26MiniMax: MiniMax M3
minimax
77.067.63$0.3001.0M

What this ranking actually measures

The Mathematics score is not a vibe or an editorial opinion. It is the mean of 4 specific LiveBench tasks, each scored 0–100 and run against every model in the snapshot under the same conditions:

  • AMPS_Hard
  • integrals_with_game
  • math_comp
  • olympiad

Because a category score is a plain mean, a model can rank highly here while being uneven underneath — a strong average may hide one weak task. Every model page lists all 4 raw task scores separately, so you can check whether a lead is broad or carried by a single result. That matters when your workload leans on one specific ability rather than the category as a whole.

This category contributes 15% of the overall LLM Index Score, so a model at the top of this table is not automatically the best model overall — and a model that wins overall may sit mid-table here. If mathematics is the job you are hiring a model for, rank by this column rather than by the overall score.

Reading the price and context columns

Price is per million input tokens, taken from live provider pricing rather than a marketing page, and it moves independently of capability — the top model on this table is frequently not the cheapest, and the gap between rank 1 and rank 3 is often far smaller than the gap in cost. Context is the maximum window the model accepts; a large window matters for long-document and repository-scale work, and is close to irrelevant for short prompts. Neither column feeds the score. They are shown alongside it because a ranking without cost is only half a decision.

Scores come from the LiveBench 2026_06_25 snapshot. Models released after that snapshot appear in the index with full factual data but no score — we do not estimate a score for a model we have no measurements for. See methodology for the weights and the exact formula.

FAQ

Which AI model is best for mathematics?

OpenAI: GPT-5.5 leads on Mathematics with a score of 95.9 in the LiveBench 2026_06_25 snapshot, ahead of Anthropic: Claude Fable 5. That is a measurement from a fixed set of tasks, not an editorial pick.

How is the Mathematics ranking calculated?

Each model's Mathematics score is the mean of its raw LiveBench tasks in that category (AMPS_Hard, integrals_with_game, math_comp, olympiad), each scored 0-100. That category mean then contributes 15% of the overall LLM Index Score. Nothing is hand-adjusted per model.

Is the highest-scoring model here also the best overall?

Not necessarily. Mathematics is only 15% of the overall score, so a model can top this table and rank lower overall, or win overall while sitting mid-table here. Rank by this column when mathematics is the specific job you need done.

Why do some models show no score?

A model is scored only when every task in every category is present in the snapshot. Models released after the snapshot, or missing any task, keep their factual data (price, context, modality) and make no capability claim. We do not estimate a score from partial results, because a partial score is not comparable to a complete one.

Does a higher score justify a higher price?

That is your call, and it is why price sits next to the score. Capability and cost move independently: the gap between the first and third model on this table is often small, while the price gap between them can be several times over. For high-volume work the cheaper model is frequently the correct choice.

Other capabilities