How far does your AI plan go?

A free token calculator for Claude Code and Codex. 6 questions, no sign-up.

Free toolsUpdated October 20, 2026

Turn on JavaScript to use the calculator. The price table, the assumptions and the FAQ are just below.

EstimateHow we calculate
  • A token is the small piece of text the AI reads and writes. It is what uses up your plan.
  • Anthropic and OpenAI don't publish how many tokens each plan has. So the result is an estimate with a range, never a fixed number.
  • We use the API price as a yardstick: what your routine would cost per token, compared with the size of the plan window on the same yardstick.
  • The window for Claude Pro and Max 20x comes from third-party measurements (Wokey, data from October 19, 2026); Max 5x is our assumption. Codex uses OpenAI's official table, in messages.
  • The profile of one agent hour (how much it reads and writes) is our own average, still to be calibrated.
  • If you use Merlin, the Usage screen shows your real number.
See every assumption
Which AI plan do you pay for today?

Not sure? In Claude: claude.ai, Settings, Usage. In Codex: the /status command.

Claude

ChatGPT and Codex

Other

How much does Claude Code cost?

There is no single price: Claude Code has two ways to pay, and the math differs.

On a subscription you pay a fixed amount a month, in dollars: Claude Pro, $20; Max 5x, $100; Max 20x, $200. What changes between plans is how much you can use before you hit the limit.

On the API you pay for what you use. The price is per million tokens, split between what the AI reads (input) and what it writes (output). Sonnet 5.5, for example, costs $2 per million tokens read and $10 per million written.

The math, in plain words

  1. Work out how many tokens your routine uses. A token is a small piece of text, and Claude Code sends the whole conversation with every request, so the numbers add up fast.
  2. Divide by one million and multiply by the model's price. 3 million output tokens on Sonnet 5.5 is 3 × $10 = $30.
  3. If you want it in another currency, multiply by the exchange rate. (Brazilian readers see this in reais on the Portuguese page.)

The calculator does the three steps for you: it estimates your tokens (hours a day, days a week, agents, model) and shows the cost "as if" you paid per token, next to the plan price. Two caveats: tokens per hour are our estimate, not a measurement of your usage, and prices change without notice.

Plan prices and limits

Checked on October 20, 2026. The dollar is a yardstick for comparing, not what Anthropic measures inside. Providers change limits without notice.

Subscription plans
PlanPrice5-h window (API equivalent)Week (API equivalent)Where the number comes from
Claude Pro $20/month ($17 on the yearly plan) 10 to 18, central 14 120 to 220, central 170 measured by a third party
Claude Max 5x $100/month 49 to 70, central 60 510 to 850, central 680 our assumption
Claude Max 20x $200/month 150 to 260, central 205 1,150 to 2,100, central 1,643 measured by a third party
ChatGPT Plus $20/month GPT-6 Astra: 5 to 45; GPT-6.1 Sol: 15 to 160; GPT-6 Luna: 350 to 3,000 (messages per 5-h window) not published official
ChatGPT Business $25/month ($20 on the yearly plan) GPT-6 Astra: 5 to 45; GPT-6.1 Sol: 15 to 160; GPT-6 Luna: 350 to 3,000 (messages per 5-h window) not published official
ChatGPT Pro from $100 no 5-hour limit not published official

API price per token

Dollars per million tokens, from each provider's official table. Very long context costs more; we use the short-context price.

Claude (Anthropic)
ModelInputCache writeCache readOutput
Opus 5.5$4$5$0.2$20
Sonnet 5.5$2$2.5$0.1$10
Haiku 5.5$0.1$0.125$0.01$0.5
Fable 5.1$10$12.5$0.25$50
Codex (OpenAI)
ModelInputCache readOutput
GPT-6 Astra$10$1$50
GPT-6.1 Sol$2$0.1$10
GPT-6 Luna$0.1$0.01$0.5

Assumptions

Everything the math assumes, so you can disagree knowing why.

One hour of an active agent
Reads 5 million cached tokens, writes 0.4 of new context, takes 0.1 uncached input and generates 0.15 of output (reasoning included). This is our assumption. For Codex, uncached input is 0.5 per hour.
Activity factor
An agent doesn't work 100% of the clock: it waits for you, for builds. We use 0.6, in a range of 0.4 to 0.8.
Project type
Multiplies the spend per hour: Website or landing page (×0.8), App or system (login, database) (×1), Automation or bot (spreadsheets, WhatsApp, n8n) (×0.8), Marketing and content (copy, posts) (×0.6), Several client projects (×1.3), Not sure yet (×1).
Range
Spend per hour from 0.6 to 1.6 times, activity and plan window size combined in quadrature. It covers most cases, not all.
Month and exchange rate
4.33 weeks a month. US$ 1 = R$ 5.0564 (PTAX sell rate of October 19, 2026), before taxes; reais are always "about".
Codex
The window comes in messages, not tokens, and OpenAI doesn't say what counts as a message in a multi-step task. We assume 6 to 16 messages per hour per agent and show ranges, not hours.
Rounding
Hours in 30-minute steps, dollars to the nearest 10 above 100 and to the nearest 1 below, percentages in steps of 5.
Left out
Team and Enterprise plans, ChatGPT Go, Gemini (limit in requests), chatting in the app and Codex cloud tasks.

Frequently asked questions

The small piece of text the AI reads and writes. It is what uses up your plan. See the glossary (in Portuguese)

Neither Anthropic nor OpenAI publishes that number. That's why the calculator gives an estimate with a range.

Prices come from the official pages, checked on the date shown. The Claude window is a third-party measurement (Max 5x is our assumption) and Codex uses OpenAI's official table of messages.

Long conversations, the strongest model for everything and several agents at once use more. The guide shows how to measure and what to adjust. How to use fewer tokens (in Portuguese)

Yes. On Pro and Max the limit is shared between chat and Claude Code.

It depends on usage. Light use can cost less per token; heavy use is usually cheaper on a subscription. The calculator shows both.

No. It shows how much you have used, warns you before it runs out and helps you pick the model for each role.

Your answers stay in your browser, unless you ask for the report by e-mail.

It depends on how you pay. On a subscription it is a fixed amount (Pro, Max 5x or Max 20x, shown above). On the API it is whatever you use. The calculator shows both side by side for your routine.

The 5-hour window renews and the warning shows the time (for example "resets 3:45pm"). The weekly limit runs on its own clock. In Claude Code, /usage shows what is left on both. Usage limits (in Portuguese)

free tool by Merlin

The calculator estimates; Merlin measures.

The Usage screen shows each agent's tokens, the estimated cost and the share of your plan already used, read from the tools' own files, and warns you before the limit runs out.

Merlin Usage screen with the Claude and ChatGPT plans for the 5-hour and weekly windows
The Merlin Usage screen, on a sample project (the app is in Portuguese).

Put the pack to work.

Free download for Windows and Mac · free plan forever · in beta