Claude Code cost guide
How much does a Claude Code session cost?
As of Nov 21, 2026, Anthropic reports an enterprise average of about $13 per developer per active day, with 90% of users spending under $30. A single Claude Code session can cost much more or less depending on how many turns it takes and how many input tokens come from cache. To estimate yours, choose the Coding agent preset in the free AI cost calculator.
By CWYN · Last updated · Not affiliated with Anthropic · Published
1. Why can a short request use so many tokens?
Suppose Claude reads a file and runs a test. When you ask it to fix the failure, the next turn resends the system prompt, tool definitions and conversation history, including the file contents and test output. Your request may be just a few words, but Claude receives all that earlier work as input again.
Anthropic shows one session with 940k cache-read tokens. A cache read reuses earlier input, so the same lines of a file can count several times over a session. Claude Code costs (checked Nov 21, 2026).
2. What does the Coding agent preset count?
CWYN estimates 4 sessions per day and 30 turns per session for the Coding agent preset. Here is how the calculator builds one session from an average turn.
- Input per session. Add 3,000 tokens for the system prompt and tools, 16,000 for conversation history and 1,000 for the new request. Multiply that sum by 30 turns.
- Output per session. Allow 800 tokens per reply for a tool call, patch or command. Multiply by the same 30 turns.
3. How do I price one session or one active day?
- In the calculator, select Claude Code / Claude, your API model and API key. Under Your usage, choose Coding agent.
- Enter your sessions per day. For input and output per session, use the totals across every call in one representative session. Open Prompt caching to set your turns per session and the shares of input billed as cache reads and writes.
- Divide the Monthly API estimate by the total number of sessions shown under How it adds up. That gives you the estimated API cost of one session. For an active day, multiply by the number of similar sessions you run that day.
To budget across working days, see what Claude Code costs per month. If you pay a plan fee, use the subscription vs API guide to compare billing methods.