CalcToolsKitSimple tools. Clear answers.

LLM Token Cost Calculator

Free · No sign-up

Estimate input, cached-input and output token charges for an entered request volume.

Your inputs

tokens
tokens
tokens
USD/M tokens
USD/M tokens
USD/M tokens
requests

Example values are shown. Edit them for your calculation.

Results update automatically as you edit.

Inputs stay in this page. No account needed.

Your result

EVERYDAY

Example values are prefilled. Results update automatically when JavaScript is available.

What this tool calculates

Estimate input, cached-input and output token charges for an entered request volume.

Inputs used: Total input tokens per request, Cached input tokens per request, Output tokens per request, Input rate per million tokens, Cached-input rate per million, Output rate per million tokens, Number of requests.

On this page How it works & practical examples

How to use the LLM Token Cost Calculator

Supply the applicable provider rates and average token counts. Cached tokens are part of the total input, not extra tokens. Keep model, token-accounting and currency definitions consistent when estimating a batch.

The calculation

Cost = requests × [(input−cached)×input rate + cached×cache rate + output×output rate] / 1,000,000

Worked example

1,000 input tokens including 200 cached, 500 output tokens and example rates of $1, $0.25 and $2 per million cost $0.00185 per request, or $18.50 for 10,000 requests.

Assumptions and limits

Example rates are editable illustrations, not current provider pricing. Tool calls, images, storage, reasoning-token definitions, free tiers, taxes and other charges are not inferred.

Common questions

Are these live model prices?

No. Enter the rates from your provider’s applicable pricing.

Do cached tokens count twice?

No. They are subtracted from uncached input before the separate cache rate is applied.

AboutContactPrivacy PolicyTermsDisclaimerAll calculatorsSitemap