Skip to content

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

    GPT-6.1 Terra

    Passed 5 of 5 math prompts, with 250 a month on Pro.

  • Everyday

    GPT-6 Luna

    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.

Our math test runs
ModelPassedHard onesMessages used on ProCost per replyTime per reply
Claude Fable 5.2Anthropic5 of 52 of 21 each, of 31 a month on Pro$0.00622.6 s
Claude Fable 5.1Anthropic5 of 52 of 21 each, of 31 a month on Pro$0.00902.0 s
Claude Opus 5.5Anthropic5 of 52 of 21 each, of 62 a month on Pro$0.00432.6 s
Claude Sonnet 5.5Anthropic5 of 52 of 21 each, of 125 a month on Pro$0.00181.7 s
Claude Sonnet 5Anthropic5 of 52 of 21 each, of 125 a month on Pro$0.00413.5 s
Claude Haiku 5.5Anthropic5 of 52 of 21 each, of 60 a day on Pro$0.00011.8 s
Claude Haiku 4.5Anthropic5 of 52 of 21 each, of 250 a month on Pro$0.00182.1 s
GPT-6.2 AstraOpenAI5 of 52 of 21 each, of 31 a month on Pro$0.00752.6 s
GPT-6 AstraOpenAI5 of 52 of 21 each, of 31 a month on Pro$0.00513.8 s
GPT-6.2 SolOpenAI5 of 52 of 21 each, of 125 a month on Pro$0.00191.9 s
GPT-6.1 SolOpenAI5 of 52 of 21 each, of 125 a month on Pro$0.00109.0 s
GPT-6 SolOpenAI5 of 52 of 21 each, of 125 a month on Pro$0.00112.5 s
GPT-6.1 TerraOpenAI5 of 52 of 21 each, of 250 a month on Pro$0.00052.6 s
GPT-6 LunaOpenAI5 of 52 of 21 each, of 60 a day on Pro$0.00013.4 s
Gemini 4 CarbonGoogle5 of 52 of 21 each, of 62 a month on Pro$0.00257.2 s
Gemini 4 ArgonGoogle5 of 52 of 21 each, of 62 a month on Pro$0.00156.8 s
Gemini 4 HydrogenGoogle5 of 52 of 21 each, of 125 a month on Pro$0.00233.5 s
Gemini 3.1 Pro (preview)Google5 of 52 of 21 each, of 125 a month on Pro$0.00476.8 s
Gemini 3.8 FlashGoogle5 of 52 of 21 each, of 250 a month on Pro$0.00093.8 s
DeepSeek V4.1 FlashDeepSeek5 of 52 of 21 each, of 60 a day on Pro$0.00030.7 s
DeepSeek V4 ProDeepSeek5 of 52 of 21 each, of 250 a month on Pro$0.00153.7 s
Grok 4.7xAI5 of 52 of 21 each, of 250 a month on Pro$0.008017.0 s
Kimi K3.1 ProMoonshot5 of 52 of 21 each, of 125 a month on Pro$0.00293.5 s
Kimi K3Moonshot5 of 52 of 21 each, of 125 a month on Pro$0.00385.6 s
GLM 5.3Z.ai5 of 52 of 21 each, of 250 a month on Pro$0.00071.4 s
GLM 5.3 FlashZ.ai5 of 52 of 21 each, of 60 a day on Pro$0.00021.0 s
Mistral Large 4Mistral5 of 52 of 21 each, of 250 a month on Pro$0.00116.3 s
Passed: out of the job's 5 prompts, how many replies passed their check (a reply the provider failed to give isn't counted). Messages used: what each reply counted as on Pro, and Pro's count on the model. Cost: what OpenRouter charged us per reply, on average; in llmwise you pay per message, not per token. Time: from sending to the whole reply.

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: 165

    552 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: 165

    550 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

Every model in llmwise
ModelOn ProPlansContext windowImagesPDFsReasoningAPI price per 1M, in / out
Claude Fable 5.2Anthropic31/mo on ProPro1M tokensYesWhole fileYes$8.00 / $40.00
Claude Fable 5.1Anthropic31/mo on ProPro1M tokensYesWhole fileYes$10.00 / $50.00
Claude Opus 5.5Anthropic62/mo on ProPlus and Pro1M tokensYesWhole fileYes$4.00 / $20.00
Claude Sonnet 5.5Anthropic125/mo on ProPlus and Pro1M tokensYesWhole fileYes$2.00 / $10.00
Claude Sonnet 5Anthropic125/mo on ProPlus and Pro1M tokensYesWhole fileYes$2.00 / $10.00
Claude Haiku 5.5Anthropic60/day on ProPlus and Pro1M tokensYesWhole fileYes$0.10 / $0.50
Claude Haiku 4.5Anthropic250/mo on ProPlus and Pro200K tokensYesWhole fileNo$1.00 / $5.00
GPT-6.2 AstraOpenAI31/mo on ProPro1.05M tokensYesWhole fileYes$8.00 / $40.00
GPT-6 AstraOpenAI31/mo on ProPro1.05M tokensYesWhole fileYes$10.00 / $50.00
GPT-6.2 SolOpenAI125/mo on ProPlus and Pro1.05M tokensYesWhole fileYes$2.00 / $10.00
GPT-6.1 SolOpenAI125/mo on ProPlus and Pro1.05M tokensYesWhole fileYes$2.00 / $10.00
GPT-6 SolOpenAI125/mo on ProPlus and Pro1.05M tokensYesWhole fileYes$2.00 / $10.00
GPT-6.1 TerraOpenAI250/mo on ProPlus and Pro1.05M tokensYesWhole fileYes$1.00 / $5.00
GPT-6 LunaOpenAI60/day on ProPlus and Pro1.05M tokensYesWhole fileYes$0.10 / $0.50
Gemini 4 CarbonGoogle62/mo on ProPlus and Pro1.05M tokensYesWhole fileYes$4.00 / $20.00
Gemini 4 ArgonGoogle62/mo on ProPlus and Pro1.05M tokensYesWhole fileYes$4.00 / $20.00
Gemini 4 HydrogenGoogle125/mo on ProPlus and Pro1.05M tokensYesWhole fileYes$1.50 / $7.50
Gemini 3.1 Pro (preview)Google125/mo on ProPlus and Pro1.05M tokensYesWhole fileYes$2.00 / $12.00
Gemini 3.8 FlashGoogle250/mo on ProPlus and Pro1.05M tokensYesWhole fileYes$0.75 / $3.75
DeepSeek V4.1 FlashDeepSeek60/day on ProPlus and Pro1.05M tokensYesText onlyYes$0.30 / $1.20
DeepSeek V4 ProDeepSeek250/mo on ProPlus and Pro1.05M tokensNoText onlyYes$0.40 / $4.00
Grok 4.7xAI250/mo on ProPlus and Pro500K tokensYesWhole fileYes$2.00 / $6.00
Kimi K3.1 ProMoonshot125/mo on ProPlus and Pro1.05M tokensYesText onlyYes$2.00 / $10.00
Kimi K3Moonshot125/mo on ProPlus and Pro1.05M tokensYesText onlyYes$3.00 / $15.00
GLM 5.3Z.ai250/mo on ProPlus and Pro1.05M tokensNoText onlyYes$1.40 / $4.40
GLM 5.3 FlashZ.ai60/day on ProPlus and Pro1.05M tokensYesText onlyYes$0.15 / $0.50
Mistral Large 4Mistral250/mo on ProPlus and Pro1.05M tokensYesText onlyYes$0.68 / $2.09
Each badge is how many messages Pro gets on the model: a month’s, or a day’s on an everyday model. “Plans” says which plans have the model. “Text only” models get the text of a PDF, not the file. API prices are the per-token prices in our model catalog as of October 2026 (Anthropic: Anthropic's list price; OpenAI: OpenAI's list price; Google: Google's list price; DeepSeek: the price of the OpenRouter endpoints llmwise uses, not DeepSeek's own API; xAI: xAI's price, served through OpenRouter; Moonshot: Moonshot's list price; Z.ai: Z.ai's list price; Mistral: Mistral's price, served through OpenRouter). In llmwise you pay per message, not per token. Claude Haiku 5.5: the rate for prompts up to 100K tokens; $0.50 / $2.50 a million over that. Gemini 4 Carbon: its standard price from December 1, 2026; $2 / $10 until then. Gemini 4 Argon: its standard price from December 1, 2026; $2 / $10 until then. Gemini 3.1 Pro (preview): the standard rate, for prompts up to 200K tokens. Gemini 3.8 Flash: an introductory price, through December 31, 2026. Grok 4.7: xAI charges more for very long prompts. Mistral Large 4: a sale price, half its list price of $1.36 / $4.18.

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.

Bar chart: Prompts passed in our test runs, math. GPT-6 Luna: 5 of 5; Claude Haiku 5.5: 5 of 5; GLM 5.3 Flash: 5 of 5; DeepSeek V4.1 Flash: 5 of 5; GPT-6.1 Terra: 5 of 5; GLM 5.3: 5 of 5; Gemini 3.8 Flash: 5 of 5; Mistral Large 4: 5 of 5; DeepSeek V4 Pro: 5 of 5; Claude Haiku 4.5: 5 of 5; Grok 4.7: 5 of 5; GPT-6.1 Sol: 5 of 5; GPT-6 Sol: 5 of 5; Claude Sonnet 5.5: 5 of 5; GPT-6.2 Sol: 5 of 5; Gemini 4 Hydrogen: 5 of 5; Kimi K3.1 Pro: 5 of 5; Kimi K3: 5 of 5; Claude Sonnet 5: 5 of 5; Gemini 3.1 Pro (preview): 5 of 5; Gemini 4 Argon: 5 of 5; Gemini 4 Carbon: 5 of 5; Claude Opus 5.5: 5 of 5; GPT-6 Astra: 5 of 5; Claude Fable 5.2: 5 of 5; GPT-6.2 Astra: 5 of 5; Claude Fable 5.1: 5 of 5.
Our test runs of November 17 and 18, 2026: the same prompts for every model, each reply checked the same way.

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.