---
title: "Best LLM for Math: 6 Models Ranked by Score and Cost"
description: "The best LLM for math today is GPT-5.5, top on AIME 2026 and HMMT Feb 2026. DeepSeek V4 Flash solves 94% of HMMT for $0.016 a problem."
canonical: https://vynaris.com/blog/best-llm-for-math
author: "Dhrumil Barot"
author_bio: "Dhrumil is an AI inference and LLM infrastructure expert. Dhrumil built Vynaris to make model access, routing and pricing simple and transparent for developers."
published: 2026-11-17
updated: 2026-11-17
---

# Best LLM for Math: 6 Models Ranked by Score and Cost

Published 2026-11-17 · By [Dhrumil Barot](https://vynaris.com/about#founder), Founder

The best LLM for math today is GPT-5.5, top on AIME 2026 and HMMT Feb 2026. DeepSeek V4 Flash solves 94% of HMMT for $0.016 a problem.

**TL;DR:** The best LLM for math by accuracy is GPT-5.5: 100% on AIME 2026 and 98.48% on HMMT February 2026 in MathArena's runs, at $0.16 to $0.26 per problem. The best math accuracy per dollar is DeepSeek V4 Flash: 93.94% on HMMT for $0.015 a problem, about 16x cheaper per solved problem. Vynaris is listed first because it lets you call both behind one OpenAI-compatible API and shows the cost of every answer, so you can send hard problems to the expensive model and the rest to the cheap one.

**Try it:** point your OpenAI client at `https://api.vynaris.com/v1`, send an exact model ID or `auto`, and read the cost receipt on every response. [Get a Vynaris API key](https://vynaris.com/pricing).

The best LLM for math in November 2026 is OpenAI's GPT-5.5 at `xhigh` reasoning effort. On MathArena, which re-runs every model four times on each problem of new math competitions, it scored 100.00% on AIME 2026 and 98.48% on HMMT February 2026, first on both. Claude Opus 4.8 ties it on AIME (100%) but costs about 3x more per problem. Among open-weight models, DeepSeek V4 Flash (95.83% AIME, 93.94% HMMT) and Kimi K3 (96.67% AIME, 96.97% HMMT) are the best AI models for math you can also self-host. All scores below come from [MathArena](https://matharena.ai/), read on 2026-11-17, with the cost of one run on one problem in USD.

## How we judged the best AI model for math

We ranked models on four things, in this order:

1. **Accuracy on new competitions.** AIME 2026 (30 problems, integer answers) and HMMT February 2026 (number theory, combinatorics, geometry and team rounds). MathArena reports each score with a 95% confidence interval.
2. **Cost per problem** as MathArena measured it: the average cost of one run on one problem at the provider's list price.
3. **Cost per solved problem:** cost per problem divided by accuracy. This is the number that matters when you pay for wrong answers too.
4. **Can you run it yourself:** open weights or API only.

We did not run our own benchmark. One caveat applies to most of this table: MathArena marks a model with a warning when it "was released after competition release." GPT-5.5, Claude Opus 4.8, DeepSeek V4 Flash, Kimi K3 and Gemini 3.5 Flash all carry that flag on AIME 2026, so the problems could have been seen in training. HMMT February 2026 is the stronger test, and the two are shown side by side.

## Summary table: math score and cost

| Option | AIME 2026 | HMMT Feb 2026 | Cost per problem (HMMT) | Cost per solved problem (HMMT) | 1,000 HMMT-level problems | Open weights |
| --- | --- | --- | --- | --- | --- | --- |
| Vynaris | Model you pick | Model you pick | Provider price + 3% (1% after $500/month) | Shown on each receipt | Shown on each receipt | Routes to both |
| GPT-5.5 (xhigh) | 100.00% | 98.48% | $0.26 | $0.264 | $264 | No |
| Claude Opus 4.8 (max) | 100.00% | 95.45% | $0.76 | $0.796 | $796 | No |
| Kimi K3 (max) | 96.67% | 96.97% | $0.22 | $0.227 | $227 | Yes |
| Gemini 3.5 Flash (high) | 95.00% | 95.45% | $0.15 | $0.157 | $157 | No |
| DeepSeek V4 Flash (max) | 95.83% | 93.94% | $0.015 | $0.016 | $16 | Yes |
| Grok 4.1 Fast (Reasoning) | 94.17% | 86.36% | $0.007 | $0.008 | $8 | No |

Cost per solved problem = cost per problem / accuracy. GPT-5.5: $0.26 / 0.9848 = $0.264. DeepSeek V4 Flash: $0.015 / 0.9394 = $0.016. Want to plug in your own token counts? Use the [LLM cost calculator](https://vynaris.com/calculator).

![On HMMT Feb 2026, DeepSeek V4 Flash costs $16 per 1,000 solved problems against $264 for GPT-5.5](https://cdn.sanity.io/images/u1qdn8dx/production/b1bde6fec92fa25c3fe345dbf8204cbe8d8b79a5-1344x548.png?w=1440&fit=max&auto=format)

*MathArena scores and per-problem cost, read 2026-11-17.*

## 1. Vynaris

Vynaris is an OpenAI-compatible chat completions gateway at `https://api.vynaris.com/v1`. It does not train a math model, so it has no score of its own. What it does for a math workload: you send an exact model ID, or `auto` to let the router pick, and every response returns a receipt in `x-vynaris-*` headers with the model that served it and what it cost ([Vynaris docs](https://vynaris.com/docs)). That is how you check the cost-per-solved-problem math above on your own problems instead of trusting a leaderboard.

```python
from openai import OpenAI

client = OpenAI(base_url="https://api.vynaris.com/v1", api_key="vyn_sk_live_XXXX")
resp = client.chat.completions.create(
    model="auto",
    messages=[{"role": "user", "content": "Find all integers n with n^2 + 1 divisible by n + 1."}],
)
print(resp.choices[0].message.content)
```

**Pricing:** the provider's list price for the model that served the request, plus 3% until your monthly usage reaches $500, then 1%. Prepaid top-ups from $20; credit does not expire ([Vynaris pricing](https://vynaris.com/pricing)).

**Best for:** teams that grade thousands of problems and want the cheap model on easy ones and the strong model on hard ones, with a cost line per answer.

**Limits:** Vynaris adds a fee on top of provider prices and does not make any model more accurate. Browse what it serves on the [models page](https://vynaris.com/models).

## 2. GPT-5.5: highest math accuracy

GPT-5.5 at `xhigh` effort is the most accurate math model MathArena has run on 2026 competitions: 100.00% (±0.00) on AIME 2026 and 98.48% (±2.08) on HMMT February 2026. It is also token-efficient: 5,219 output tokens per AIME problem against 21,360 for Claude Opus 4.8, which is why it costs $0.16 per problem despite a $30 output price. OpenAI reports 51.7% on FrontierMath Tiers 1-3 and 35.4% on Tier 4, the research-level set ([OpenAI](https://openai.com/index/introducing-gpt-5-5/)).

**Pricing:** $5 input / $30 output per 1M tokens; reasoning effort runs from `none` to `xhigh`, default `medium` ([OpenAI model page](https://developers.openai.com/api/docs/models/gpt-5.5)).

**Best for:** proofs, olympiad problems and any case where one wrong answer costs more than $0.26.

**Limits:** closed weights; MathArena flags it as released after AIME 2026.

## 3. Claude Opus 4.8: ties on AIME, costs 3x more

Claude Opus 4.8 at `max` effort scored 100.00% on AIME 2026 and 95.45% (±5.03) on HMMT February 2026. Its per-token price is lower than GPT-5.5 on output, but it writes about 4x more tokens per AIME problem (21,360), so a problem costs $0.54 on AIME and $0.76 on HMMT. Per solved HMMT problem that is $0.796, 3.0x GPT-5.5.

**Pricing:** $5 input / $25 output per 1M tokens, cache reads $0.50 ([Anthropic pricing](https://platform.claude.com/docs/en/about-claude/pricing)). More on Claude costs in our [Claude API pricing guide](https://vynaris.com/blog/claude-api-pricing).

**Best for:** teams already on Claude who want long, readable worked solutions.

**Limits:** the most expensive option here per solved problem.

## 4. Kimi K3: best open-weight model for math accuracy

Kimi K3 from Moonshot AI scored 96.67% on AIME 2026 and 96.97% (±4.14) on HMMT February 2026, tied third on HMMT with GPT-5.2 and ahead of Claude Opus 4.8. It is an open-weight mixture-of-experts model with 2,800B total and 50B active parameters, per MathArena.

**Pricing:** $0.22 per HMMT problem on MathArena; Moonshot bills batch inference for `kimi-k3` at 60% of the standard price ([Moonshot pricing](https://platform.moonshot.ai/docs/pricing/chat)).

**Best for:** the highest open-weight math score when you can run batch jobs.

**Limits:** slow in MathArena's runs (9m 58s average per HMMT problem); at 2,800B parameters, self-hosting is a cluster job.

## 5. Gemini 3.5 Flash: fastest strong model

Gemini 3.5 Flash at `high` scored 95.00% on AIME 2026 and 95.45% on HMMT February 2026, at $0.13 and $0.15 per problem. It answered an HMMT problem in 1m 4s on average, against 2m 24s for GPT-5.5 and 15m 24s for DeepSeek V4 Pro. See our [Gemini API pricing guide](https://vynaris.com/blog/gemini-api-pricing) for its token rates.

**Pricing:** $0.15 per HMMT problem, $0.157 per solved problem (MathArena).

**Best for:** interactive tutoring or apps where a student waits for the answer.

**Limits:** its confidence intervals are wide (±5.51 on AIME), so the gap to the models around it is within noise.

## 6. DeepSeek V4 Flash: best math accuracy per dollar

DeepSeek V4 Flash at `max` scored 95.83% on AIME 2026 and 93.94% (±4.07) on HMMT February 2026 for $0.009 and $0.015 per problem. That is $0.016 per solved HMMT problem, 16x less than GPT-5.5, for 4.5 points less accuracy. It is open weights: 248B parameters, 13B active.

**Pricing:**  `deepseek-flash` is $0.30 input (cache miss) and $1.20 output per 1M tokens at peak, half that off-peak ([DeepSeek pricing](https://api-docs.deepseek.com/quick_start/pricing)). Note: DeepSeek now serves the legacy name `deepseek-v4-flash` with DeepSeek-V4.1-Flash-1017, a newer model than the one MathArena scored. More on its peak and off-peak math in [our DeepSeek V4 Flash cost breakdown](https://vynaris.com/blog/deepseek-v4-flash-vision-384-token-image-cost-peak-off-peak).

**Best for:** bulk grading, synthetic data and homework-scale volume.

**Limits:** it spends many tokens (54,365 output tokens per HMMT problem) and took 10m 43s per problem on average.

## 7. Grok 4.1 Fast: cheapest, weaker on HMMT

Grok 4.1 Fast (Reasoning) from xAI scored 94.17% on AIME 2026 at $0.005 per problem, the cheapest result in the table, and it carries no post-release warning there. On HMMT February 2026 it drops to 86.36%, about 12 points behind GPT-5.5.

**Pricing:** $0.007 per HMMT problem, $0.008 per solved problem (MathArena).

**Best for:** high-volume, easier math where a few misses are acceptable.

**Limits:** the HMMT gap shows on harder combinatorics and geometry.

## Which LLM scores highest on AIME and competition math?

GPT-5.5 scores highest: 100.00% on AIME 2026 and 98.48% on HMMT February 2026, rank 1 on both in MathArena. Claude Opus 4.8 ties it on AIME at 100.00% but falls to 95.45% on HMMT. On research-level math, OpenAI reports GPT-5.5 at 35.4% on FrontierMath Tier 4.

## Which model gives the best math accuracy per dollar?

DeepSeek V4 Flash gives the best accuracy per dollar among strong models: 93.94% on HMMT February 2026 at $0.016 per solved problem. Grok 4.1 Fast is cheaper ($0.008) but scores 86.36%. For 1,000 HMMT-level problems, that is $16 on DeepSeek V4 Flash, $157 on Gemini 3.5 Flash and $264 on GPT-5.5.

## How to choose

- **One wrong answer is expensive** (proofs, research, graded exams): GPT-5.5 at `xhigh`.
- **High volume, near-top accuracy:** DeepSeek V4 Flash, or Kimi K3 if you need open weights with a higher HMMT score.
- **A user is waiting:** Gemini 3.5 Flash.
- **Mixed difficulty:** our recommendation is Vynaris in front of two models. Send every problem to DeepSeek V4 Flash first, and only escalate the ones a check fails (wrong format, failed verification) to GPT-5.5. With receipts on every call, you see what the mix costs per solved problem.

![Escalation flow: cheap model first, strong model only on failed checks](https://cdn.sanity.io/images/u1qdn8dx/production/a237a41536641516590670ad3b1b7f0e3fc05e0d-1344x326.png?w=1440&fit=max&auto=format)

*Per-problem costs from MathArena HMMT Feb 2026.*

Don't route if your problems are all olympiad-hard: the cheap model will fail often enough that you pay twice. Then go straight to GPT-5.5.

## FAQ

### What is the best LLM for math?

GPT-5.5 at `xhigh` reasoning effort is the best LLM for math by score: 100.00% on AIME 2026 and 98.48% on HMMT February 2026 on MathArena, at $0.16 to $0.26 per problem.

### Do reasoning effort settings change math accuracy and cost?

Yes, through tokens. Cost per problem is output tokens times the output price, and higher effort means more tokens. MathArena runs each model at one setting (for example GPT-5.5 at `xhigh`, Claude Opus 4.8 at `max`), so it does not show the same model at two efforts. What it does show: GPT-5.5 used 5,219 output tokens per AIME problem and Claude Opus 4.8 used 21,360 for the same 100% score. GPT-5.5 accepts effort from `none` to `xhigh`, default `medium`, so test `high` against `xhigh` on your own problems.

### Which open-weight model is best for math?

Kimi K3 is the strongest open-weight model on HMMT February 2026 (96.97%). DeepSeek V4 Flash is close (93.94%) and far cheaper per problem ($0.015 against $0.22). For small hardware, Qwen3.5-9B scored 92.50% on AIME 2026 but 71.21% on HMMT.

### Is AIME still a good test of LLM math ability?

Less than it was. Most top models now score 95% to 100% on AIME 2026, and MathArena flags most of them as released after the competition. HMMT February 2026 separates models more (86% to 98%), and FrontierMath Tier 4 more again.

### Is ChatGPT good at math?

ChatGPT runs OpenAI's GPT models, and GPT-5.5 tops both 2026 competitions on MathArena. Results depend on the model and reasoning setting you get; the API lets you pick both.

## Run your own math eval

Leaderboards tell you where to start; your problems decide. Send the same 50 problems to two models through one endpoint and compare cost per solved problem from the receipts. [Get a Vynaris API key](https://vynaris.com/pricing) or read the [cheapest LLM API comparison](https://vynaris.com/cheapest-llm-api) first.

Sources: [MathArena AIME 2026 and HMMT February 2026 leaderboards](https://matharena.ai/), [OpenAI GPT-5.5 announcement](https://openai.com/index/introducing-gpt-5-5/), [OpenAI GPT-5.5 model page](https://developers.openai.com/api/docs/models/gpt-5.5), [Anthropic pricing](https://platform.claude.com/docs/en/about-claude/pricing), [DeepSeek pricing](https://api-docs.deepseek.com/quick_start/pricing), [Moonshot pricing](https://platform.moonshot.ai/docs/pricing/chat). All read 2026-11-17.

## About the author

[Dhrumil Barot](https://vynaris.com/about#founder), Founder. Dhrumil is an AI inference and LLM infrastructure expert. Dhrumil built Vynaris to make model access, routing and pricing simple and transparent for developers. [LinkedIn](https://www.linkedin.com/in/bdhrumil) · [X](https://x.com/fyidhrumil)
