Best Models for Math

    Reasoning models for competition math, quantitative analysis, and step-by-step problem solving

    Compare
    Use Case
    Lounge Plan
    Capabilities
    Provider
    Status
    Input Price ($/M tokens)
    Output Price ($/M tokens)
    Context Size (tokens)
    18/345
    Models
    28/50
    Providers
    16
    Vision Models (filtered)
    18
    Tool-enabled (filtered)
    0
    Free Models (filtered)
    114 provider offers · page 3 of 3
    Features
    Tencent Cloud
    deepseek-v4-pro
    $0.66$1.98$0.02
    Together AI
    deepseek-v4-pro
    $1.32$3.96$0.13
    OpenAI
    gpt-5.5-proPlus: needs a Lounge Plus or Pro membership
    $30.00$180.00—
    Azure
    gpt-5.5Plus: needs a Lounge Plus or Pro membership
    $5.00$30.00$0.50
    OpenAI
    gpt-5.5Plus: needs a Lounge Plus or Pro membership
    $5.00$30.00$0.50
    OpenLux
    gpt-5.5Plus: needs a Lounge Plus or Pro membership
    $5.00$30.00$0.50
    Tu-Zi
    gpt-5.5Plus: needs a Lounge Plus or Pro membership
    $5.00$1.00
    -80% off
    $30.00$6.00
    -80% off
    $0.50$0.10
    -80% off
    Google AI Studio
    gemini-pro-latest
    $2.00$12.00$0.20
    Google AI Studio
    gemini-3.1-pro-previewPlus: needs a Lounge Plus or Pro membership
    $2.00$12.00$0.20
    Google Vertex AI
    gemini-3.1-pro-previewPlus: needs a Lounge Plus or Pro membership
    $2.00$12.00$0.20
    Quartz
    gemini-3.1-pro-previewPlus: needs a Lounge Plus or Pro membership
    $2.00$12.00$0.20
    Azure
    gpt-5.4-proPlus: needs a Lounge Plus or Pro membership
    $30.00$180.00—
    OpenAI
    gpt-5.4-proPlus: needs a Lounge Plus or Pro membership
    $30.00$180.00—
    OpenAI
    gpt-5.2-proPlus: needs a Lounge Plus or Pro membership
    $21.00$168.00—
    Page 3 of 3

    Best Models for Math, ranked by real usage

    The most-used models in this category by tokens routed through LLM Gateway over the last 30 days. Usage shows what developers run in production; it is not a quality benchmark.

    1. 1Claude Fable 5.22.7B tokens
    2. 2GPT-5.6 Sol1.3M tokens

    Usage data as of November 27, 2026

    Math is where reasoning models earn their keep: spending thinking tokens before answering dramatically improves accuracy on competition problems, proofs, and multi-step quantitative work. The strongest options are OpenAI's Pro-tier models, Claude Opus, and Gemini Pro — and, at a much lower price, open-weight reasoners like DeepSeek V4, Qwen's thinking models, and Xiaomi's MiMo.

    All of them are available through the same API here, so you can tune thinking budgets, compare answers across models, and route easy problems to cheap models while sending the hard ones to a Pro tier.

    Frequently asked questions

    What is the best LLM for math?

    GPT-5.5 Pro and GPT-5.4 Pro top most math evaluations, with Claude Opus 4.8 and Gemini 3.1 Pro close behind. DeepSeek V4 Pro and Qwen's 235B thinking model get remarkably close at a fraction of the cost, which makes them the default choice for high-volume math workloads.

    Do I need a reasoning model for math?

    For anything beyond arithmetic and simple algebra, yes. Reasoning models work through problems step by step before answering and are far more reliable on competition-style and multi-step problems. Most models here let you cap the thinking budget so you control cost per problem.

    Can LLMs be trusted for calculations?

    Not blindly. Models still make arithmetic slips inside otherwise-correct reasoning, so for production use pair the model with tool calling — let it call a calculator or run code — and use the LLM for setting up and interpreting the math rather than raw number crunching.

    How much do reasoning tokens cost?

    Reasoning tokens bill as output tokens, and hard problems can burn thousands of them. That's why per-token price matters double for math: DeepSeek V4 Pro at $0.87 per million output tokens can be orders of magnitude cheaper per problem than a Pro-tier frontier model — compare output prices in the list above.

    • Models
    • Docs
    • Pricing
    • Enterprise
    • Enterprise
    • Pricing
    • Docs
    • Models
      • AI Gateway
      • DevPass
      • Lounge
      • Observability
      • Image Generation
      • Blog
      • Changelog
      • Integrations
      • Reliability
      • Features
      • Guardrails
      • Providers
      • Partners
      • Rankings
      • Apps
      • Models
      • Model Timeline
      • Compare
      • Token Cost Calculator
      • Savings Audit
      • State of LLM Usage
      • Referral Program
      • MCP Server
      • CLI
      • Agents
      • AI SDK Provider
      • Agent Skills
      • Templates
      • Guides
    Log InBook a demoGet Started
    1.8k