Gemini · Math
Gemini for math
llmwise has 5 of Google's Gemini models, from Gemini 3.8 Flash (up to 250 messages a month on Pro) to Gemini 4 Carbon (up to 62 messages a month). We ran the same math prompts on every one and published every reply: which Gemini model to use, from the results, what each costs per message, and how to get more out of it.
Based on 25 of our test runs on , through OpenRouter with the app's own prompt and settings.
Short answer
In our test runs on November 18, 2026, all 5 models passed 5 of 5 math prompts, so these prompts don't pick one for hard problems. For value, Gemini 3.8 Flash (5 of 5), 250 a month on Pro. It's also our pick for everyday.
Our picks for math
Hard problems
Shared by 5 models
All 5 models passed 5 of 5, both hard ones: Gemini 4 Carbon, Gemini 4 Argon, Gemini 4 Hydrogen and 2 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, at 250 a month on Pro. The same model as best value.
These picks aren't our opinion: they're what the results below give, by these rules, among the Gemini 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 |
|---|---|---|---|---|---|
| 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 |
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.
Gemini 4 Carbon
Passed: Final answer 165: right.
Let the four-digit integer be represented by its digits $d_1 d_2 d_3 d_4$, where $1 \le d_1 \le 9$ and $0 \le d_2, d_3, d_4 \le 9$. We want to find the number of solutions to: $$d_1 + d_2 + d_3 + d_4 = 9$$ Substitute $d_1' = d_1 - 1$ so that $d_1' \ge 0$. The equation becomes: $$d_1' + d_2 + d_3 + d_4 = 8$$ Since the sum is 8, none of the variables can exceed 8, which automatically satisfies the upper bound of 9 for every digit (including $d_1 = d_1' + 1 \le 9$). Using the stars and bars method, the number of non-negative integer solutions is: $$\binom{8 + 4 - 1}{4 - 1} = \binom{11}{3} = \frac{11 \times 10 \times 9}{3 \times 2 \times 1} = 165$$ Final answer: 165623 tokens in, 619 out (340 of them reasoning) · 8.0 s · $0.0037 · 1 message on Pro · answered by google/gemini-4-carbon via Google AI Studio ·
Gemini 3.8 Flash
Passed: Final answer 165: right.
To find the number of four-digit integers $abcd$ whose digits sum to 9, we set up the equation: $$a + b + c + d = 9$$ where $a \in \{1, 2, \dots, 9\}$ and $b, c, d \in \{0, 1, \dots, 9\}$. Let $a' = a - 1$ such that $a' \ge 0$. The equation becomes: $$a' + b + c + d = 8$$ Since the sum is 8, no individual variable can exceed 8, so the constraint that each digit is at most 9 is automatically satisfied. Using the stars and bars method, the number of non-negative integer solutions is: $$\binom{8 + 4 - 1}{4 - 1} = \binom{11}{3} = \frac{11 \times 10 \times 9}{3 \times 2 \times 1} = 165$$ Final answer: 165599 tokens in, 577 out (345 of them reasoning) · 5.2 s · $0.0013 · 1 message on Pro · answered by google/gemini-3.8-flash via Google AI Studio ·
Gemini 4 Hydrogen
Passed: Final answer 165: right.
Let the four-digit integer be $d_1 d_2 d_3 d_4$, where $d_1 \ge 1$ and $d_2, d_3, d_4 \ge 0$. We need to find the number of integer solutions to: $$d_1 + d_2 + d_3 + d_4 = 9$$ Substitute $d_1' = d_1 - 1$ so that all variables are non-negative integers ($d_1' \ge 0$): $$d_1' + d_2 + d_3 + d_4 = 8$$ Note that since the sum is $8$, no digit can exceed $9$ (meaning $d_1 \le 9$ and $d_2, d_3, d_4 \le 9$ are automatically satisfied). Using the stars and bars method, the number of non-negative integer solutions is: $$\binom{8 + 4 - 1}{4 - 1} = \binom{11}{3} = \frac{11 \times 10 \times 9}{3 \times 2 \times 1} = 165$$ Final answer: 165623 tokens in, 725 out (447 of them reasoning) · 5.3 s · $0.0032 · 1 message on Pro · answered by google/gemini-4-hydrogen via Google AI Studio ·
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
Gemini in llmwise
| Model | On Pro | Plans | Context window | Images | PDFs | Reasoning | API price per 1M, in / out |
|---|---|---|---|---|---|---|---|
| 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 |
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.
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.
Gemini for 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.
In llmwise, a message to Gemini goes to its maker, Google, or through OpenRouter when llmwise can't reach the maker directly. See the Privacy Policy.
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
Is Gemini good for math?
In our test runs on November 18, 2026, Gemini 4 Carbon passed 5 of 5, Gemini 4 Argon passed 5 of 5, Gemini 4 Hydrogen passed 5 of 5, Gemini 3.1 Pro (preview) passed 5 of 5, Gemini 3.8 Flash passed 5 of 5 of our math prompts, against a best result of 5 of 5 among all 27 models. Every reply is published on this page and the methods page, so you can judge them yourself.
Which Gemini model should I use for math?
Start with Gemini 3.8 Flash for coursework, statistics and multi-step word problems, and move up to Gemini 4 Carbon for proofs, competition-style problems and anything where one slip ruins the answer.
Can I use Gemini for math for free?
No: there's no free plan or trial. Gemini 4 Carbon, Gemini 4 Argon, Gemini 4 Hydrogen, Gemini 3.1 Pro (preview), and Gemini 3.8 Flash are all on Plus and Pro. 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.
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.