Claude Token Cost Calculator

Paste a prompt to count its tokens and price it on every Claude model (Opus, Sonnet, Haiku). See what you'll pay per call and per month — and how to cut it.

Output tokens/call   Calls/month

Want exact counts + auto-compression inside your editor? Install the free MCP server: npx -y mcp-token-optimizersee how →

FAQ

How much does a Claude token cost?

Approximate per-1M-token prices: Claude Opus 4 ~$15 input / $75 output, Sonnet 4 ~$3 / $15, Haiku 4 ~$1 / $5. Paste your prompt above for the exact cost, and confirm on Anthropic's pricing page.

How do I count Claude tokens?

Paste your text into the calculator above for an instant estimate priced across Claude models. For exact counts inside Claude Desktop or Cursor, install the free MCP server: npx -y mcp-token-optimizer.

How can I reduce Claude token costs?

Slim your system prompt, route simple tasks to Haiku instead of Opus (often ~15x cheaper), and compress long context. The free mcp-token-optimizer MCP server does all three automatically.

More free calculators: Claude · Cursor · ChatGPT · guides · home