---
title: "Claude token cost calculator"
description: "Estimate what a Claude Code session costs at API prices from input, output, cache-read and cache-write tokens, per session and per month. Free, no sign-up."
url: https://inlinr.com/tools/ai-cost-calculator
lang: en
---

Free tool

# Claude token cost calculator

What a session costs at API prices, from its four token counts. Cache reads bill at a tenth of the input rate and cache writes at a quarter more, which is why counting only input and output gets the number wrong.

Model

Input tokens

Fresh input, not from the cache.

Output tokens

Cache-read tokens

Context re-read on each turn.

Cache-write tokens

Context written to the cache.

Sessions like this per month

Per session $1.56

Per month $62.20

Same session without the cache $6.83

Cache read / write rate $0.20 / $2.50 per M

An estimate at Anthropic's list prices, checked on 14 Oct 2026. On a Pro or Max subscription you do not pay per token; the figure tells you what the same work would cost through the API, which is useful to compare sessions and projects.

Where to find your own numbers: Claude Code writes them in its local transcripts. inlinr's Claude Code plugin reads them and shows the four counts and this estimate per project and per week, see [reading a token bill](https://inlinr.com/guides/ai-token-costs).

## Read also

- [AI usage What “percent written by AI” can and cannot tell you The number is easy to produce and easy to misuse. What it counts, what it misses, and the questions it answers. 5 min read](https://inlinr.com/guides/measuring-ai-written-code)
- [Integration Time and token tracking for Claude Code Track Claude Code per project: time, lines written and the four token counts with their cost, in the terminal, the desktop app, IDEs and cloud sessions.. Open](https://inlinr.com/integrations/claude-code)
- [Tool GitHub README stats card Your time per language, editor and AI assistant on your GitHub profile, from a free inlinr account. Open](https://inlinr.com/tools/readme-card)

## See the real numbers, per project

Install the Claude Code plugin and every session lands on your dashboard with its tokens, its cost and the lines it wrote.

[Start free](https://inlinr.com/signin) 

[Install in Claude Code](https://inlinr.com/integrations/claude-code)

No card to start · no source code leaves your machine

Not ready to sign in? [Try the demo dashboard](https://inlinr.com/demo)
