Dev.to
7/13/2026

Let me rewrite this headline following the rules. The original is about Claude Code costs per session, with specific numbers.
Original: How much does Claude Code actually cost per session? I did the math
Short summary
A developer tracked Claude Code costs over 95 days and built a turn-by-turn cost model. A typical 40-call session on Sonnet costs ~$11.40 at list rates before caching discounts; heavy days can reach $38+. Key cost drivers are input tokens from re-sent context, file reads, and tool results. Practical levers include keeping CLAUDE.md lean, using fresh sessions, scoping file reads, and routing cheap tasks to cheap models.
- •Typical Claude Code session: ~3.6M input tokens, ~$11 on Sonnet at list rates
- •Input tokens drive cost — everything in the window is re-billed every call
- •Six cost-reduction levers: lean CLAUDE.md, fresh sessions, scoped reads, disable unused MCPs, model routing, discounted endpoints
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



