Calculate how much your tokens are worth in dollars from the number of tokens and price per token, or convert USD to tokens and find a token’s price.

Uses the USD price per token you enter; no live market price is fetched.

Optional settings
Blank omits implied market cap and the quantity-to-supply comparison.

Default 2; LLM cost uses at least 4. Tiny nonzero values use scientific notation.


Calculator Functions

FunctionWhat it doesWhat it requires
Token value in USDFinds the dollar value of a crypto token holdingRequires the number of tokens and the price per token in USD
Crypto tokens to USDFinds the dollars received for selling tokens, after an optional feeRequires the number of tokens and the price per token in USD
Token price from market capFinds the price of one token from the market capitalizationRequires the market capitalization in USD and the circulating supply
USD to crypto tokensFinds how many tokens a dollar budget buys, after an optional feeRequires the budget in USD and the price per token in USD
Profit/loss: token quantityFinds the gain or loss on a number of tokens bought and soldRequires the number of tokens, the buy price and the sale or current price
Profit/loss: purchase amountFinds the gain or loss on a dollar amount investedRequires the purchase amount before fees, the buy price and the sale or current price
LLM: known input tokensFinds the cost of a known number of AI model input tokensRequires the input token count and the input rate in USD per 1 million tokens
LLM: input and output countsFinds the cost of known input and output token counts togetherRequires the input and output token counts and a rate in USD per 1 million tokens for each
LLM: estimate input from textEstimates the input token count and cost of a text from its lengthRequires the character count, the assumed characters per token and the input rate
LLM: estimated input + outputEstimates the cost of a text plus a known number of output tokensRequires the character count, the assumed characters per token, the output token count and both rates

All prices and rates are typed in, in U.S. dollars. No market price, exchange rate or model price list is looked up. Fees are optional percentages and count as 0% when left blank. Maximum decimal places can be 2, 4, 6 or 8, and very small amounts are shown in scientific notation.

Token Value Formulas

TV = T ร— P
TVValue of the holding (USD)
TNumber of tokens
PPrice per token (USD)

Token value in USD

The formula above applies directly. One hundred tokens at $2.00 each are worth 100 ร— 2 = $200. With a circulating supply entered, the result adds the implied market capitalization, supply ร— price, and the holding as a percentage of that supply.

Crypto tokens to USD

USD = T ร— P ร—
(1 โˆ’ fee รท 100)

The fee comes out of the sale proceeds. Selling 500 tokens at $0.064 brings 500 ร— 0.064 = $32.00, and a 1% fee leaves $31.68.

Token price from market cap

P = market cap รท supply [1]

Market capitalization is price multiplied by the number of units outstanding [1], so dividing it by the circulating supply gives the price. A $1,000,000 market cap over 4,000,000 circulating tokens is $0.25 per token. Both numbers must refer to the same supply and the same date.

USD to crypto tokens

T = budget ร—
(1 โˆ’ fee รท 100) รท P

The fee comes out of the budget before the purchase. A $1,700 budget at $0.25 per token buys 6,800 tokens with no fee, or 6,732 after a 1% fee.

Profit/loss: token quantity

gain = T ร— Psell ร— (1 โˆ’ fs)
โˆ’ T ร— Pbuy ร— (1 + fb)

fb and fs are the buy and sell fees as fractions. Buying 100 tokens at $2 with a 1% fee costs $202. Selling them at $3 with a 1% fee returns $297, a gain of $95. Return is the gain divided by the total cost, here 47.03%.

Profit/loss: purchase amount

T = amount รท Pbuy

The token count is worked out from the dollars spent before the buy fee, then the gain is found as above. $1,000 at $2 is 500 tokens, and selling at $3 with no fees returns $1,500, a gain of $500.

LLM: known input tokens

cost = tokens ร— rate รท
1,000,000

AI model providers price tokens per million. Three million input tokens at $5 per million cost 3,000,000 ร— 5 รท 1,000,000 = $15, and 200,000 tokens at $3 per million cost $0.60.

LLM: input and output counts

cost = (Tin ร— Rin +
Tout ร— Rout) รท 1,000,000

Input and output tokens usually have different rates [2]. With 200,000 input tokens at $3 and 50,000 output tokens at $15 per million, the cost is $0.60 + $0.75 = $1.35.

LLM: estimate input from text

tokens โ‰ˆ characters รท 4 [2]

In English text one token is about 4 characters, or three-quarters of a word [2]. A 4,000-character prompt is about 1,000 tokens, which costs $0.005 at $5 per million. The characters per token can be changed.

LLM: estimated input + output

The estimated input cost is added to the cost of a known number of output tokens. The 4,000-character prompt above plus 1,000 output tokens at $15 per million comes to $0.005 + $0.015 = $0.02.

Limits of This Estimate

  • A token's value here is quantity times the price entered. It is not what a sale would bring: thin trading, price movement during the sale, spreads, network fees and taxes are not counted.
  • Fees are treated as a simple percentage. Flat and minimum fees are left out.
  • The market capitalization definition cited is written for company shares and is applied to tokens by analogy [1]. These estimates are based on the best available data and estimations.
  • Token counts depend on the model and the language, so the 4 characters per token figure is a rough guide for English [2]. Providers may also bill cached and reasoning tokens at their own rates.

Sources

  1. U.S. Securities and Exchange Commission, Investor.gov, Market Capitalization: market capitalization as price times units outstanding, defined for company shares
  2. OpenAI Help Center, Understanding and counting tokens: about 4 characters per token in English, and separate input and output token pricing