Best AI · Math
The best AI for math
In our test runs of November 17 and 18, 2026, 27 of the 27 models passed 5 of 5 math prompts, so these prompts don't name one best model. For best value, GPT-6.1 Terra (5 of 5). Our picks below follow fixed rules, beside each model's price per message, and every prompt and reply is published.
Based on 135 of our test runs on , through OpenRouter with the app's own prompt and settings. Updated .
Short answer
In our test runs on November 18, 2026, all 27 models passed 5 of 5 math prompts, so these prompts don't pick one for hard problems. For value, GPT-6.1 Terra (5 of 5), 250 a month on Pro; for everyday math, GPT-6 Luna (5 of 5), from the daily count.
Our picks for math
Hard problems
Shared by 27 models
All 27 models passed 5 of 5, both hard ones: Claude Fable 5.2, Claude Fable 5.1, Claude Opus 5.5 and 24 more. These prompts don't tell them apart, so they share the pick.
Best value
Passed 5 of 5 math prompts, with 250 a month on Pro.
Everyday
Passed 5 of 5 math prompts; an everyday model, so its messages come from the daily count (60 a day on Pro), not the monthly allowance.
These picks aren't our opinion: they're what the results below give, by these rules, among all 27 models in llmwise. They change when the results do.
- Hard problems: the model that passed the most prompts and, of those, the most hard ones. Models level on both share the pick: the prompts don't tell them apart, so we don't break the tie by price or by name.
- Best value: among the models that draw on the monthly allowance, the one with the most messages on Pro that passed no more than one prompt fewer than the top model. Ties go to the one that passed more, then to the lower cost per reply.
- Everyday: among the cheapest models on the page (the everyday models, which come from the daily count, when the page has any), the one that passed the most. Ties go to the one that passed more of the hard prompts, then to the lower cost per reply.
Our math test runs, model by model
How each model did on our 5 math prompts, what each reply counted as on Pro, and what it cost to run.
| Model | Passed | Hard ones | Messages used on Pro | Cost per reply | Time per reply |
|---|---|---|---|---|---|
| Claude Fable 5.2Anthropic | 5 of 5 | 2 of 2 | 1 each, of 31 a month on Pro | $0.0062 | 2.6 s |
| Claude Fable 5.1Anthropic | 5 of 5 | 2 of 2 | 1 each, of 31 a month on Pro | $0.0090 | 2.0 s |
| Claude Opus 5.5Anthropic | 5 of 5 | 2 of 2 | 1 each, of 62 a month on Pro | $0.0043 | 2.6 s |
| Claude Sonnet 5.5Anthropic | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0018 | 1.7 s |
| Claude Sonnet 5Anthropic | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0041 | 3.5 s |
| Claude Haiku 5.5Anthropic | 5 of 5 | 2 of 2 | 1 each, of 60 a day on Pro | $0.0001 | 1.8 s |
| Claude Haiku 4.5Anthropic | 5 of 5 | 2 of 2 | 1 each, of 250 a month on Pro | $0.0018 | 2.1 s |
| GPT-6.2 AstraOpenAI | 5 of 5 | 2 of 2 | 1 each, of 31 a month on Pro | $0.0075 | 2.6 s |
| GPT-6 AstraOpenAI | 5 of 5 | 2 of 2 | 1 each, of 31 a month on Pro | $0.0051 | 3.8 s |
| GPT-6.2 SolOpenAI | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0019 | 1.9 s |
| GPT-6.1 SolOpenAI | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0010 | 9.0 s |
| GPT-6 SolOpenAI | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0011 | 2.5 s |
| GPT-6.1 TerraOpenAI | 5 of 5 | 2 of 2 | 1 each, of 250 a month on Pro | $0.0005 | 2.6 s |
| GPT-6 LunaOpenAI | 5 of 5 | 2 of 2 | 1 each, of 60 a day on Pro | $0.0001 | 3.4 s |
| Gemini 4 CarbonGoogle | 5 of 5 | 2 of 2 | 1 each, of 62 a month on Pro | $0.0025 | 7.2 s |
| Gemini 4 ArgonGoogle | 5 of 5 | 2 of 2 | 1 each, of 62 a month on Pro | $0.0015 | 6.8 s |
| Gemini 4 HydrogenGoogle | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0023 | 3.5 s |
| Gemini 3.1 Pro (preview)Google | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0047 | 6.8 s |
| Gemini 3.8 FlashGoogle | 5 of 5 | 2 of 2 | 1 each, of 250 a month on Pro | $0.0009 | 3.8 s |
| DeepSeek V4.1 FlashDeepSeek | 5 of 5 | 2 of 2 | 1 each, of 60 a day on Pro | $0.0003 | 0.7 s |
| DeepSeek V4 ProDeepSeek | 5 of 5 | 2 of 2 | 1 each, of 250 a month on Pro | $0.0015 | 3.7 s |
| Grok 4.7xAI | 5 of 5 | 2 of 2 | 1 each, of 250 a month on Pro | $0.0080 | 17.0 s |
| Kimi K3.1 ProMoonshot | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0029 | 3.5 s |
| Kimi K3Moonshot | 5 of 5 | 2 of 2 | 1 each, of 125 a month on Pro | $0.0038 | 5.6 s |
| GLM 5.3Z.ai | 5 of 5 | 2 of 2 | 1 each, of 250 a month on Pro | $0.0007 | 1.4 s |
| GLM 5.3 FlashZ.ai | 5 of 5 | 2 of 2 | 1 each, of 60 a day on Pro | $0.0002 | 1.0 s |
| Mistral Large 4Mistral | 5 of 5 | 2 of 2 | 1 each, of 250 a month on Pro | $0.0011 | 6.3 s |
One prompt, side by side
Each model's reply to “Four-digit numbers whose digits sum to 9”, as it came, with whether it passed and what it cost.
The prompt: Four-digit numbers whose digits sum to 9 (hard)
How many four-digit positive integers have digits that add up to 9? Show your working briefly, then end with a line that says "Final answer: " followed by the answer alone.
Claude Fable 5.2
Passed: Final answer 165: right.
Let the digits be a, b, c, d with a ≥ 1 and a + b + c + d = 9. Substitute a' = a − 1 (so a' ≥ 0): a' + b + c + d = 8. Since the total is 8, no digit can exceed 9, so there are no upper-bound violations to subtract. Number of non-negative solutions (stars and bars): C(8 + 3, 3) = C(11, 3) = 165. Final answer: 165
766 tokens in, 156 out · 2.8 s · $0.0074 · 1 message on Pro · answered by anthropic/claude-fable-5.2 via Google ·
GPT-6.1 Terra
Passed: Final answer 165: right.
Let the digits be \(a,b,c,d\), with \(a\ge 1\). Set \(a'=a-1\). Then \[ a'+b+c+d=8. \] By stars and bars, the number of nonnegative integer solutions is \[ \binom{8+4-1}{4-1}=\binom{11}{3}=165. \] Final answer: 165552 tokens in, 146 out (50 of them reasoning) · 3.6 s · $0.0006 · 1 message on Pro · answered by openai/gpt-6.1-terra via OpenAI ·
GPT-6 Luna
Passed: Final answer 165: right.
Let the thousands digit be 1 plus a nonnegative variable. The four resulting variables sum to 8, so by stars and bars there are \(\binom{8+4-1}{4-1}=\binom{11}{3}=165\) possibilities. Final answer: 165550 tokens in, 156 out (88 of them reasoning) · 4.4 s · $0.0001 · 1 message on Pro · answered by openai/gpt-6-luna via OpenAI ·
The math prompts, and how they're scored
Final answer. Automatic. The reply's last “Final answer:” line must hold the right value.
Each prompt was sent the way llmwise sends a message in a side-by-side comparison, which offers no tools: the app's own system prompt, the model's own settings, and Pro's reply size limit (8,000 tokens). Read all five math prompts and how every reply was scored.
Prompts like these to try yourself
What matters for math
Step-by-step reasoning
Models that reason before answering work through the steps instead of jumping to a number, which matters most on multi-step problems.
Checking the arithmetic
Language models can slip on arithmetic. Running the calculation as code settles it.
Showing the work
A good answer shows its steps clearly enough for you to follow, and flags its assumptions.
Every model at a glance
| Model | On Pro | Plans | Context window | Images | PDFs | Reasoning | API price per 1M, in / out |
|---|---|---|---|---|---|---|---|
| Claude Fable 5.2Anthropic | 31/mo on Pro | Pro | 1M tokens | Yes | Whole file | Yes | $8.00 / $40.00 |
| Claude Fable 5.1Anthropic | 31/mo on Pro | Pro | 1M tokens | Yes | Whole file | Yes | $10.00 / $50.00 |
| Claude Opus 5.5Anthropic | 62/mo on Pro | Plus and Pro | 1M tokens | Yes | Whole file | Yes | $4.00 / $20.00 |
| Claude Sonnet 5.5Anthropic | 125/mo on Pro | Plus and Pro | 1M tokens | Yes | Whole file | Yes | $2.00 / $10.00 |
| Claude Sonnet 5Anthropic | 125/mo on Pro | Plus and Pro | 1M tokens | Yes | Whole file | Yes | $2.00 / $10.00 |
| Claude Haiku 5.5Anthropic | 60/day on Pro | Plus and Pro | 1M tokens | Yes | Whole file | Yes | $0.10 / $0.50 |
| Claude Haiku 4.5Anthropic | 250/mo on Pro | Plus and Pro | 200K tokens | Yes | Whole file | No | $1.00 / $5.00 |
| GPT-6.2 AstraOpenAI | 31/mo on Pro | Pro | 1.05M tokens | Yes | Whole file | Yes | $8.00 / $40.00 |
| GPT-6 AstraOpenAI | 31/mo on Pro | Pro | 1.05M tokens | Yes | Whole file | Yes | $10.00 / $50.00 |
| GPT-6.2 SolOpenAI | 125/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $2.00 / $10.00 |
| GPT-6.1 SolOpenAI | 125/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $2.00 / $10.00 |
| GPT-6 SolOpenAI | 125/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $2.00 / $10.00 |
| GPT-6.1 TerraOpenAI | 250/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $1.00 / $5.00 |
| GPT-6 LunaOpenAI | 60/day on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $0.10 / $0.50 |
| Gemini 4 CarbonGoogle | 62/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $4.00 / $20.00 |
| Gemini 4 ArgonGoogle | 62/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $4.00 / $20.00 |
| Gemini 4 HydrogenGoogle | 125/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $1.50 / $7.50 |
| Gemini 3.1 Pro (preview)Google | 125/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $2.00 / $12.00 |
| Gemini 3.8 FlashGoogle | 250/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Whole file | Yes | $0.75 / $3.75 |
| DeepSeek V4.1 FlashDeepSeek | 60/day on Pro | Plus and Pro | 1.05M tokens | Yes | Text only | Yes | $0.30 / $1.20 |
| DeepSeek V4 ProDeepSeek | 250/mo on Pro | Plus and Pro | 1.05M tokens | No | Text only | Yes | $0.40 / $4.00 |
| Grok 4.7xAI | 250/mo on Pro | Plus and Pro | 500K tokens | Yes | Whole file | Yes | $2.00 / $6.00 |
| Kimi K3.1 ProMoonshot | 125/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Text only | Yes | $2.00 / $10.00 |
| Kimi K3Moonshot | 125/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Text only | Yes | $3.00 / $15.00 |
| GLM 5.3Z.ai | 250/mo on Pro | Plus and Pro | 1.05M tokens | No | Text only | Yes | $1.40 / $4.40 |
| GLM 5.3 FlashZ.ai | 60/day on Pro | Plus and Pro | 1.05M tokens | Yes | Text only | Yes | $0.15 / $0.50 |
| Mistral Large 4Mistral | 250/mo on Pro | Plus and Pro | 1.05M tokens | Yes | Text only | Yes | $0.68 / $2.09 |
Every limit is published. Paid plans also have a monthly fair-use limit on AI cost: Plus $3.75, Pro $7.50, Max $20, Ultra $42, Studio $85. Using every message on your plan at typical sizes stays under it; very large messages and heavy research use it faster. Every limit, explained.
Math in llmwise
Readable formulas
Formulas in answers render as proper math, not raw LaTeX.
Run code (Pro and higher plans)
On Pro and higher plans the model can run Python or Node.js in an isolated sandbox once you approve it, read the output and fix what failed. A run counts as 1 Claude Haiku 4.5 message and stops after 60 seconds.
Photos of problems
Attach a photo of a worksheet or a screenshot of a problem to a model that reads images.
The Tutor persona
Pick the Tutor persona to have concepts explained step by step, with checks that you followed.
Tips
Ask for the steps, not just the answer.
Say what level you're at, so the explanation fits.
Ask the model to verify the final answer a second way.
For proofs, ask it to list its assumptions.
Questions
What is the best AI for math?
In our test runs on November 18, 2026, 27 of the 27 models passed 5 of 5 math prompts, so these prompts don't name one best model. For best value, GPT-6.1 Terra (5 of 5). For everyday, GPT-6 Luna (5 of 5). Every prompt and reply is published, so you can check them, and the picks follow fixed rules.
How did you test the models for math?
We sent the same math prompts to every model through llmwise's own pipeline and checked each reply the same way. The prompts, the replies, how each was scored and the grader are all published on the methods page.
Can I try these models for math for free?
No: there's no free plan or trial. Pro and higher plans have every model; Plus has every model but Claude Fable 5.2, Claude Fable 5.1, GPT-6.2 Astra, and GPT-6 Astra. Paid monthly from the day you start. Cancel in two clicks in Settings → Billing.
Can it check its own answer?
On Pro and higher plans, ask the model to check its answer with code: it runs Python in a sandbox (after you approve) and compares. A run counts as 1 Claude Haiku 4.5 message.
Can I send a photo of a problem?
Yes, to a model that reads images: attach the photo or screenshot. The table below shows which models do.
Claude, GPT, Gemini, DeepSeek, Grok, Kimi, GLM, and Mistral, in one chat.
See what a message costs before you send it. Every plan is month to month: cancel in two clicks. Sign in with an email link, no password.