---
title: "AI Coding Cost Calculator: Claude Code vs Codex | Flowmaps"
description: "Free calculator: see what your Claude Code or Codex use would cost at API prices, and which plan fits you. Pro, Max, Plus or ChatGPT Pro."
source: "https://flowmaps.app/tools/ai-coding-cost-calculator"
---

# AI coding cost calculator: Claude Code vs Codex

Tell it how many hours a week your AI agent works and how you use it. You'll see roughly how many tokens that is, what it would cost on pay-as-you-go pricing, and which Claude or ChatGPT plan fits. No account needed.

## Claude Code and Codex plans compared

Both tools come with a monthly plan. Each plan has usage limits that reset every few hours and every week. When you reach them you wait, buy extra usage, or move up a plan.

| Plan           | Price      | What you get                                                            |
| -------------- | ---------- | ----------------------------------------------------------------------- |
| Claude Pro     | $20/month  | Includes Claude Code. Limits reset every five hours, with a weekly cap. |
| Claude Max 5x  | $100/month | Five times the usage of Pro, for building most days.                    |
| Claude Max 20x | $200/month | Twenty times the usage of Pro, for all-day use.                         |
| ChatGPT Plus   | $20/month  | Includes Codex. Limits reset every five hours, with a weekly cap.       |
| ChatGPT Pro    | $100/month | No five-hour limit at the moment, only weekly limits.                   |
| ChatGPT Pro    | $200/month | More weekly usage, for long agent runs every day.                       |
| ChatGPT Pro    | $500/month | The largest personal plan, for agents running all day.                  |

## How the calculator works

An AI agent like Claude Code or Codex sends your project and the whole conversation to the model at every step. Most of that is cached and cheap, but it adds up: a few million tokens per hour of work is normal. The calculator multiplies your hours by a typical token use for how you work, then prices it at these API rates (per million tokens):

- Claude Code, Sonnet 5.5: $2 input, $0.10 cached input, $10 output
- Claude Code, Opus 5.5: $4 input, $0.20 cached input, $20 output
- Codex, GPT-6.1 Sol: $2 input, $0.10 cached input, $10 output
- Codex, GPT-6 Astra: $10 input, $1 cached input, $50 output

Then it picks the smallest plan that comfortably covers that use. Prices were checked on 2026-10-28\. Anthropic says the average Claude Code user at a company spends about $13 per active day at API prices, so the numbers here are in the same range.

## How to spend fewer tokens

1. **Plan before you build.** Know which features your app needs and in which order. Vague prompts make the agent read your whole project and guess, and guesses get redone.
2. **One feature per session.** Start a fresh session for each feature, so the agent doesn't carry old conversation along at every step.
3. **Use the everyday model.** Switch to the strongest model only for a hard problem, then switch back.
4. **Stop it early.** If the agent heads the wrong way, stop it and say what you want instead of letting it finish.

More tips in [How to save Lovable credits](https://flowmaps.app/guides/how-to-save-lovable-credits) and [How to plan an app before building with AI](https://flowmaps.app/guides/how-to-plan-an-app-before-building-with-ai).

## Frequently asked questions

### How much does Claude Code cost?

Claude Code is included in Claude Pro ($20 a month), Max 5x ($100) and Max 20x ($200). You can also pay per use with an API key. Anthropic says the average across companies is about $13 per developer per active day at API prices.

### How much does Codex cost?

Codex is included in ChatGPT plans: Plus is $20 a month, and Pro comes at $100, $200 or $500\. When you hit a limit you can buy credits, about $40 for 1,000, or pay per use with an API key.

### Is a subscription cheaper than the API?

For regular use, almost always. A plan costs the same every month, while API use adds up per token. Pay-as-you-go only wins if you use the agent for a few hours a month.

### How exact is this calculator?

It's a rough guide. Anthropic and OpenAI don't publish exact limits per plan, and token use depends on your project and prompts. The prices come from their public pricing pages, checked on the date shown.

### How do I use fewer tokens?

Plan before you build. Clear prompts for one feature at a time mean fewer retries and less rework. Start a fresh session for each new feature, and use the everyday model unless a task is really hard.

## Spend your tokens on building, not on guessing

Flowmaps turns your idea into a map of features in build order, with a clear prompt for each one. Connect Claude Code and it builds from the plan. Free to start.

[Start free](https://flowmaps.app/login?new=1)
