Skip to content

Comparison · Math

ChatGPT vs Grok for math

On llmwise Pro, GPT-6.1 Sol gets up to 125 messages a month and Grok 4.7 up to 250 messages a month. ChatGPT is OpenAI's own app for its GPT models; llmwise has GPT models in its own chat, not ChatGPT itself. We ran the same 5 math prompts on all 5 GPT models and Grok's one model and published every reply: the results, then GPT-6.1 Terra against Grok 4.7 prompt by prompt, then how GPT and Grok compare on price per message, context and files.

Based on 30 of our test runs on , through OpenRouter with the app's own prompt and settings. Updated .

Short answer

In our math test runs on October 27, 2026, GPT's 5 models passed 24 of 25; GPT-6 Astra, GPT-6.1 Sol and 2 more each passed 5 of 5. Grok's one model passed 5 of 5 ($0.0072 a reply). GPT-6.1 Terra and Grok 4.7 each passed 5 of the 5 prompts, so these math prompts don't split GPT and Grok; the replies on this page show how they differ.

GPT and Grok on our math test runs

Every GPT and Grok model in llmwise on our 5 math prompts: how many replies passed, what each counted as on Pro, and what it cost to run.

GPT and Grok on our math test runs
ModelPassedHard onesMessages used on ProCost per replyTime per reply
GPT-6 AstraOpenAI5 of 52 of 21 each, of 31 a month on Pro$0.00852.7 s
GPT-6.1 SolOpenAI5 of 52 of 21 each, of 125 a month on Pro$0.00092.0 s
GPT-6 SolOpenAI5 of 52 of 21 each, of 125 a month on Pro$0.00182.2 s
GPT-6.1 TerraOpenAI5 of 52 of 21 each, of 250 a month on Pro$0.00052.1 s
GPT-6 LunaOpenAI4 of 52 of 21 each, of 60 a day on Pro$0.00012.4 s
Grok 4.7xAI5 of 52 of 21 each, of 250 a month on Pro$0.007211.6 s
GPT: 24 of 25 replies passed; Grok: 5 of 5 replies passed. Messages used is what each reply counted as on Pro; cost is what OpenRouter charged us per reply.

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.

GPT vs Grok, prompt by prompt

Each math prompt with GPT-6.1 Terra and Grok 4.7 side by side, as they replied: for each side, the model that passed the most math prompts (then the most hard ones, then the cheaper).

Math: GPT-6.1 Terra passed 5 of 5 and Grok 4.7 5 of 5. GPT-6.1 Terra answered 6.2× sooner at the median, 1.9 s against 11.7 s. GPT-6.1 Terra cost 13.6× less, $0.0027 against $0.0362 for the 5 replies. Grok 4.7's replies ran 74% longer, in tokens of reply, thinking not counted.

  1. 1. A discount, then sales tax

    Everyday. GPT: 5 of 5 models passed, GPT-6 Luna the cheapest at $0.0001 · Grok: 1 of 1 model passed, Grok 4.7 at $0.0033. The prompt in full.

    GPT-6.1 Terra and Grok 4.7 both passed this one. GPT-6.1 Terra answered sooner (1.2 s to 4.8 s), and GPT-6.1 Terra's reply cost less ($0.0004 to $0.0033); GPT-6.1 Terra wrote 38 tokens of reply, Grok 4.7 65.

    • GPT-6.1 Terra

      Passed: Final answer 66: right.

      Discounted price: $80 × 0.75 = $60  
      With tax: $60 × 1.10 = $66
      
      Final answer: $66

      574 tokens in, 38 out · 1.2 s · $0.0004 · 1 message on Pro · answered by openai/gpt-6.1-terra via OpenAI ·

    • Grok 4.7

      Passed: Final answer 66: right.

      Discount: \(80 \times 0.25 = 20\), so sale price is \(80 - 20 = 60\).  
      Tax: \(60 \times 0.10 = 6\), so final price is \(60 + 6 = 66\).
      
      Final answer: $66

      1,635 tokens in, 290 out (225 of them reasoning) · 4.8 s · $0.0033 · 1 message on Pro · answered by x-ai/grok-4.7 via xAI ·

  2. 2. Pens at 3 for $4

    Everyday. GPT: 4 of 5 models passed, GPT-6.1 Terra the cheapest at $0.0006 · Grok: 1 of 1 model passed, Grok 4.7 at $0.0111. The prompt in full.

    GPT-6.1 Terra and Grok 4.7 both passed this one. GPT-6.1 Terra answered sooner (3.1 s to 18.5 s), and GPT-6.1 Terra's reply cost less ($0.0006 to $0.0111); GPT-6.1 Terra wrote 84 tokens of reply, Grok 4.7 211.

    • GPT-6.1 Terra

      Passed: Final answer 3 deals and 1 single pen, for 13.50.: right.

      A 3-pen deal costs $4, less than the $4.50 cost of three single pens. So buy as many 3-pen deals as possible:
      
      3 deals (9 pens) + 1 single pen = $12 + $1.50 = $13.50.
      
      Final answer: 3 deals and 1 single pen, for $13.50.

      576 tokens in, 113 out (29 of them reasoning) · 3.1 s · $0.0006 · 1 message on Pro · answered by openai/gpt-6.1-terra via OpenAI ·

    • Grok 4.7

      Passed: Final answer 3 packs + 1 single ( 13.50): right.

      To buy exactly 10 pens, let \(x\) be the number of 3-packs (at \$4 each) and \(y\) the number of singles (at \$1.50 each), so \(3x + y = 10\) with \(x, y\) non-negative integers. The cost is \(4x + 1.5y\).
      
      Feasible options:
      - \(x=0\), \(y=10\): \$15.00
      - \(x=1\), \(y=7\): \$14.50
      - \(x=2\), \(y=4\): \$14.00
      - \(x=3\), \(y=1\): \$13.50
      
      Packs are cheaper per pen than singles, so maximizing packs (without exceeding 10) is optimal. Buying 4 packs yields 12 pens for \$16, which both exceeds 10 and costs more.
      
      Final answer: 3 packs + 1 single ($13.50)

      1,637 tokens in, 1,596 out (1,385 of them reasoning) · 18.5 s · $0.0111 · 1 message on Pro · answered by x-ai/grok-4.7 via xAI ·

  3. 3. Compound interest over three years

    Everyday. GPT: 5 of 5 models passed, GPT-6 Luna the cheapest at $0.0001 · Grok: 1 of 1 model passed, Grok 4.7 at $0.0051. The prompt in full.

    GPT-6.1 Terra and Grok 4.7 both passed this one. GPT-6.1 Terra answered sooner (2.6 s to 8.0 s), and GPT-6.1 Terra's reply cost less ($0.0005 to $0.0051); GPT-6.1 Terra wrote 57 tokens of reply, Grok 4.7 65.

    • GPT-6.1 Terra

      Passed: Final answer 315.25: right.

      Balance after 3 years: $2,000 × 1.05³ = $2,315.25  
      Interest earned: $2,315.25 − $2,000 = $315.25
      
      Final answer: $315.25

      576 tokens in, 85 out (28 of them reasoning) · 2.6 s · $0.0005 · 1 message on Pro · answered by openai/gpt-6.1-terra via OpenAI ·

    • Grok 4.7

      Passed: Final answer 315.25: right.

      The balance after 3 years is \(2000 \times (1.05)^3 = 2000 \times 1.157625 = 2315.25\).
      
      Interest earned is \(2315.25 - 2000 = 315.25\).
      
      Final answer: 315.25

      1,637 tokens in, 649 out (584 of them reasoning) · 8.0 s · $0.0051 · 1 message on Pro · answered by x-ai/grok-4.7 via xAI ·

  4. 4. Four-digit numbers whose digits sum to 9

    Hard. GPT: 5 of 5 models passed, GPT-6 Luna the cheapest at $0.0001 · Grok: 1 of 1 model passed, Grok 4.7 at $0.0093. The prompt in full.

    GPT-6.1 Terra and Grok 4.7 both passed this one. GPT-6.1 Terra answered sooner (1.7 s to 15.1 s), and GPT-6.1 Terra's reply cost less ($0.0006 to $0.0093); GPT-6.1 Terra wrote 103 tokens of reply, Grok 4.7 178.

    • GPT-6.1 Terra

      Passed: Final answer 165: right.

      Let the digits be \(a,b,c,d\), where \(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.
      \]
      
      All solutions satisfy the digit limits.
      
      Final answer: 165

      552 tokens in, 145 out (42 of them reasoning) · 1.7 s · $0.0006 · 1 message on Pro · answered by openai/gpt-6.1-terra via OpenAI ·

    • Grok 4.7

      Passed: Final answer 165: right.

      The four-digit positive integers whose digits sum to 9 are the solutions of \(A + B + C + D = 9\) in which \(A \in \{1,\dots,9\}\) and \(B,C,D \in \{0,\dots,9\}\).
      
      Because the target sum is only 9, the upper bounds of 9 are automatically satisfied. The change of variables \(A' = A - 1\) (so \(A' \ge 0\)) therefore converts the problem into the unrestricted equation
      \[
      A' + B + C + D = 8
      \]
      in non-negative integers. The number of solutions is
      \[
      \binom{8 + 4 - 1}{4 - 1} = \binom{11}{3} = 165.
      \]
      
      Final answer: 165

      1,614 tokens in, 1,305 out (1,127 of them reasoning) · 15.1 s · $0.0093 · 1 message on Pro · answered by x-ai/grok-4.7 via xAI ·

  5. 5. The highest of three dice is a 5

    Hard. GPT: 5 of 5 models passed, GPT-6 Luna the cheapest at $0.0001 · Grok: 1 of 1 model passed, Grok 4.7 at $0.0074. The prompt in full.

    GPT-6.1 Terra and Grok 4.7 both passed this one. GPT-6.1 Terra answered sooner (1.9 s to 11.7 s), and GPT-6.1 Terra's reply cost less ($0.0006 to $0.0074); GPT-6.1 Terra wrote 90 tokens of reply, Grok 4.7 127.

    • GPT-6.1 Terra

      Passed: Final answer 61/216: right.

      There are \(6^3 = 216\) possible outcomes. Of these, \(5^3\) have all dice at most 5, and \(4^3\) have all dice at most 4. So the probability is
      
      \[
      \frac{5^3-4^3}{6^3}=\frac{61}{216}.
      \]
      
      Final answer: 61/216

      567 tokens in, 112 out (22 of them reasoning) · 1.9 s · $0.0006 · 1 message on Pro · answered by openai/gpt-6.1-terra via OpenAI ·

    • Grok 4.7

      Passed: Final answer 61/216: right.

      The total number of outcomes is \(6^3 = 216\).
      
      The outcomes in which every die shows at most 5 number \(5^3 = 125\). Among these, the outcomes in which every die shows at most 4 number \(4^3 = 64\). Subtracting yields the outcomes in which the maximum is exactly 5:
      \[
      125 - 64 = 61.
      \]
      Thus the desired probability is \(61/216\). (The fraction is already in lowest terms, since 61 is prime and does not divide 216.)
      
      Final answer: 61/216

      1,629 tokens in, 972 out (845 of them reasoning) · 11.7 s · $0.0074 · 1 message on Pro · answered by x-ai/grok-4.7 via xAI ·

Each GPT model against each Grok model

Every GPT model against every Grok model on the same 5 math prompts: passes, the median wait and what the replies cost. A lead under 10% counts as close.

How the math replies are scored

Every GPT and Grok reply above was checked the same way as every other model's, by the rules published with the prompts: how the math prompts are scored, and each one in full.

The differences at a glance

What follows from each model's facts in our catalog.

  • The lineups

    GPT: 5 models, GPT-6 Astra, GPT-6.1 Sol, GPT-6 Sol, GPT-6.1 Terra, and GPT-6 Luna. Grok: one model, Grok 4.7.

  • Price per message

    The least expensive GPT model is GPT-6 Luna (60 messages a day on Pro); Grok's one model is Grok 4.7 (250 messages a month on Pro).

  • Context window

    GPT goes up to 1.05M tokens (GPT-6 Astra); Grok up to 500K tokens (Grok 4.7).

  • Images and PDFs

    Every model here reads images. Every model here takes a PDF as a whole file.

  • Plans

    Every plan has messages every month on them, GPT-6 Astra from Pro up. Every plan is month to month: cancel in two clicks.

Every GPT and Grok model's context window, files and API price: Grok vs ChatGPT.

Where your messages go

In llmwise, a message to GPT goes to its maker, OpenAI, or through OpenRouter when llmwise can't reach the maker directly. Grok models are served only through OpenRouter, by endpoints that don't store or train on prompts. The Privacy Policy has the details.

Bar chart: Prompts passed in our test runs, math. GPT-6.1 Terra: 5 of 5; Grok 4.7: 5 of 5; GPT-6.1 Sol: 5 of 5; GPT-6 Sol: 5 of 5; GPT-6 Astra: 5 of 5; GPT-6 Luna: 4 of 5.
Our test runs of September 27, 28, 29 and October 2, 7, 8, 9, 15, 27, 2026: the same prompts for every model, each reply checked the same way.

Questions

Which is better, ChatGPT or Grok for math?

In our math test runs on October 27, 2026, GPT's 5 models passed 24 of 25; GPT-6 Astra, GPT-6.1 Sol and 2 more each passed 5 of 5. Grok's one model passed 5 of 5 ($0.0072 a reply). GPT-6.1 Terra and Grok 4.7 each passed 5 of the 5 prompts, so these math prompts don't split GPT and Grok; the replies on this page show how they differ.

Is GPT or Grok cheaper?

In llmwise, the least expensive GPT model is GPT-6 Luna (60 messages a day on Pro), and the least expensive Grok model is Grok 4.7 (250 messages a month on Pro). At API list prices (October 2026), a typical message of 4,000 tokens in and 700 out costs $0.0008 on GPT-6 Luna and $0.0122 on Grok 4.7.

Can I use GPT and Grok in the same chat?

Yes. Ask GPT-6.1 Terra a question, then switch the picker to Grok 4.7 and ask again: Grok 4.7 sees the whole conversation, GPT-6.1 Terra's answer included.

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.