Cost per 1M Tokens Calculator
Calculate the normalized cost per one million tokens across LLM providers.
About Cost per 1M Tokens Calculator
Per-token pricing varies by more than 100x between the cheapest and most expensive frontier models, making model choice one of the biggest levers on AI product cost. This calculator applies your specified token volume across a reference table of major providers' current input or output pricing so you can directly compare total spend across models before committing to one.
Formula
cost = (tokens / 1000000) × price_per_million_tokens
- tokens
- Total token volume
- price_per_million_tokens
- Model provider price per 1M tokens
Worked example
With the default values below, Cost per 1M Tokens Calculator returns Cheapest Option Cost of $0.25. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Token Volumeaccepts 0–100,000,000,000 tokens
- 1,000,000 tokens
- Token Typeone of Input Tokens, Output Tokens
- Input Tokens
Results
- Cheapest Option Cost
- $0.25
- Cheapest Model
- Claude 3 Haiku
- Most Expensive Cost
- $15.00
- Most Expensive Model
- Claude 3 Opus
Step by step
- 1Cheapest option= $0.25
- 2Most expensive option= $15.00
Assumptions and limits
- The result is derived only from the 2 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
- Figures are rounded for display to 2 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
Should I compare input or output token cost?
Compare both if your workload has a mix — output tokens are typically 2-5x more expensive than input tokens across most providers, so completion-heavy workloads are more sensitive to model choice.
Are these prices kept up to date?
These are illustrative reference prices; providers change pricing periodically, so verify current rates on official pricing pages before finalizing a budget.
Does a cheaper model always mean lower total cost?
Not necessarily — cheaper models may require more tokens (via longer prompts, retries, or chaining) to achieve the same task quality, so per-token price isn't the only variable in total cost.
