# Token Cost Calculator

> Cost the tokens a model used, pricing input and output separately at your own rates.

Page: https://freecalculator.tech/tools/token-cost-calculator
Last reviewed: 2026-09-17

## Formula

C = (Tin / 1,000,000) x Rin + (Tout / 1,000,000) x Rout + Other

- C = (Tin / 1,000,000) x Rin + (Tout / 1,000,000) x Rout + Other.
- Inputs used: Currency, Price per million input tokens, Input tokens used, Price per million output tokens (optional), Output tokens used (optional), Other charges (optional), Price as of (optional), Price source (optional).
- Edge handling: Price per million input tokens is required.; Price per million input tokens cannot be negative.; Price per million input tokens must be no more than 1000000000.; Input tokens used is required.; Input tokens used cannot be negative..

## Inputs

- Currency
- Price per million input tokens
- Input tokens used
- Price per million output tokens (optional)
- Output tokens used (optional)
- Other charges (optional)
- Price as of (optional)
- Price source (optional)

## Worked example: 18M input and 4M output tokens at your own per-million prices

Input and output are priced separately, as they are billed separately.
1. Start with Currency: USD, Price per million input tokens: 2.50, Input tokens used: 18, Price per million output tokens (optional): 10, Output tokens used (optional): 4, Other charges (optional): 0.
2. Apply the method: C = (Tin / 1,000,000) x Rin + (Tout / 1,000,000) x Rout + Other.
3. Input and output are priced separately, as they are billed separately.

## Common questions

### Where does this formula come from?

FinOps Framework capability: unit economics — cost per business unit is total cost for a period divided by the units delivered in the same period; a workload's cost is the sum of its metered components charged at the rates the organisation actually pays. See the source link on this page.

### What kind of calculation is this?

Metered token volume multiplied by the per-million-token prices the user is charged, input and output kept apart. Check the formula, example, and limitations on this page before using the result for a real professional & industry decision.

### What are its limits?

Arithmetic over the figures entered — it cannot tell whether the metering, logs or invoices behind them are complete. The result is only as current as the rates entered; a rate taken months ago is not a current price. Tiered, committed-use, cached-input and minimum-spend pricing are not modelled unless the user has already reduced them to the rates entered. Cached-input, reasoning and tool-call tokens are only included to the extent the user's token counts already include them.

### How do I use the Token Cost Calculator?

Enter the required values for Currency, Price per million input tokens, Input tokens used, Price per million output tokens (optional), Output tokens used (optional), and the other fields shown. The calculator applies the formula on this page and shows the main result with any supporting breakdown so you can check the arithmetic.

### What formula does the Token Cost Calculator use?

C = (Tin / 1,000,000) x Rin + (Tout / 1,000,000) x Rout + Other The visible formula section above lists the calculation path and the edge cases the page handles, so the result can be checked without relying on the form alone. Check the formula, example, and limitations on this page before using the result for a real professional & industry decision.

### Can the Token Cost Calculator be used for exact decisions?

Use it as a calculation aid, not as a substitute for checking the underlying rule, contract, policy, or professional advice that applies to your situation. When a result depends on local rules, personal details, prices, or dates, enter those values yourself and confirm them before acting.

## Limitations and assumptions

- Inputs outside the supported range are rejected rather than forced into a result.
- The result depends on the values you enter for this token cost calculator; it does not supply missing rates, rules, prices, dates, or assumptions for you.

## Sources

- The Linux Foundation — https://www.finops.org/framework/capabilities/unit-economics/

## Cite this page

- APA: Free Calculator. (2026, September 17). Token Cost Calculator. https://freecalculator.tech/tools/token-cost-calculator
- MLA: "Token Cost Calculator." Free Calculator, 17 Sept. 2026, https://freecalculator.tech/tools/token-cost-calculator.
- Link: Token Cost Calculator — Free Calculator, https://freecalculator.tech/tools/token-cost-calculator
