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 2 of 3
    Features
    Alibaba Cloud(eu-frankfurt)
    glm-5.2
    $1.10$3.85$0.28
    Alibaba Cloud(singapore)
    glm-5.2
    $1.40$4.40$0.28
    Alibaba Cloud(us-virginia)
    glm-5.2
    $1.40$4.40$0.28
    Baidu
    glm-5.2
    $1.40$4.40$0.26
    ByteDance
    glm-5.2
    $1.40$4.40$0.26
    CanopyWave
    glm-5.2
    $1.40$4.40$0.26
    NovitaAI
    glm-5.2
    $1.40$4.40$0.26
    NovitaAI(us-west)
    glm-5.2
    $1.40$4.40$0.26
    Tencent Cloud
    glm-5.2
    $1.40$4.40$0.26
    Z AI
    glm-5.2
    $1.40$4.40$0.26
    Anthropic
    claude-fable-5Plus: needs a Lounge Plus or Pro membership
    $10.00$50.00$1.00
    AWS Bedrock
    claude-fable-5Plus: needs a Lounge Plus or Pro membership
    $10.00$50.00$1.00
    AWS Bedrock(global)
    claude-fable-5Plus: needs a Lounge Plus or Pro membership
    $10.00$50.00$1.00
    AWS Bedrock(us)
    claude-fable-5Plus: needs a Lounge Plus or Pro membership
    $11.00$55.00$1.10
    Azure Anthropic
    claude-fable-5Plus: needs a Lounge Plus or Pro membership
    $10.00$50.00$1.00
    DeepKey
    claude-fable-5Plus: needs a Lounge Plus or Pro membership
    $10.00$2.50
    -75% off
    $50.00$12.50
    -75% off
    $1.00$0.25
    -75% off
    GPUGeek
    claude-fable-5Plus: needs a Lounge Plus or Pro membership
    $6.60$33.00$0.66
    DeepInfra
    minimax-m3
    $0.28$1.10$0.06
    MiniMax
    minimax-m3
    $0.30$1.20$0.06
    NovitaAI
    minimax-m3
    $0.30$1.20$0.06
    OpenLux
    minimax-m3
    $0.30$1.20$0.06
    Tencent Cloud
    minimax-m3
    $0.30$1.20$0.06
    Anthropic
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.00$25.00$0.50
    AWS Bedrock
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.00$25.00$0.50
    AWS Bedrock(au)
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.50$27.50$0.55
    AWS Bedrock(eu)
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.50$27.50$0.55
    AWS Bedrock(global)
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.00$25.00$0.50
    AWS Bedrock(jp)
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.50$27.50$0.55
    AWS Bedrock(us)
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.50$27.50$0.55
    Azure Anthropic
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.00$25.00$0.50
    NeoRouter
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.00$3.75
    -25% off
    $25.00$18.75
    -25% off
    $0.50$0.38
    -25% off
    OpenLux
    claude-opus-4-8Plus: needs a Lounge Plus or Pro membership
    $5.00$1.25
    -75% off
    $25.00$6.25
    -75% off
    $0.50$0.13
    -75% off
    Vertex AI (OpenAI-compatible)
    grok-4-20-reasoningPlus: needs a Lounge Plus or Pro membership
    $1.25$2.50$0.20
    Vertex AI (OpenAI-compatible)(global)
    grok-4-20-reasoningPlus: needs a Lounge Plus or Pro membership
    $1.25$2.50$0.20
    AWS Bedrock
    grok-4-3Plus: needs a Lounge Plus or Pro membership
    $1.25$2.50$0.20
    AWS Bedrock(global)
    grok-4-3Plus: needs a Lounge Plus or Pro membership
    $1.25$2.50$0.20
    AWS Bedrock(us)
    grok-4-3Plus: needs a Lounge Plus or Pro membership
    $1.38$2.75$0.22
    AWS Bedrock(us-west-2)
    grok-4-3Plus: needs a Lounge Plus or Pro membership
    $1.38$2.75$0.22
    Azure
    grok-4-3Plus: needs a Lounge Plus or Pro membership
    $1.25$2.50$0.20
    xAI
    grok-4-3Plus: needs a Lounge Plus or Pro membership
    $1.25$2.50$0.20
    Alibaba Cloud
    deepseek-v4-pro
    $1.32$3.96$0.13
    Alibaba Cloud(ap-tokyo)
    deepseek-v4-pro
    $1.27$3.82$0.13
    Alibaba Cloud(cn-beijing)
    deepseek-v4-pro
    $1.27$3.82$0.13
    Alibaba Cloud(eu-frankfurt)
    deepseek-v4-pro
    $1.27$3.82$0.13
    Alibaba Cloud(singapore)
    deepseek-v4-pro
    $1.32$3.96$0.13
    Alibaba Cloud(us-virginia)
    deepseek-v4-pro
    $1.27$3.82$0.13
    Baidu
    deepseek-v4-pro
    $1.32$3.96$0.04
    CanopyWave
    deepseek-v4-pro
    $1.74$3.48$0.01
    DeepInfra
    deepseek-v4-pro
    $1.30$2.60$0.10
    DeepSeek
    deepseek-v4-pro
    $0.66$1.98$0.02
    Page 2 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