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.
Calculator Functions
| Function | What it does | What it requires |
|---|---|---|
| Token value in USD | Finds the dollar value of a crypto token holding | Requires the number of tokens and the price per token in USD |
| Crypto tokens to USD | Finds the dollars received for selling tokens, after an optional fee | Requires the number of tokens and the price per token in USD |
| Token price from market cap | Finds the price of one token from the market capitalization | Requires the market capitalization in USD and the circulating supply |
| USD to crypto tokens | Finds how many tokens a dollar budget buys, after an optional fee | Requires the budget in USD and the price per token in USD |
| Profit/loss: token quantity | Finds the gain or loss on a number of tokens bought and sold | Requires the number of tokens, the buy price and the sale or current price |
| Profit/loss: purchase amount | Finds the gain or loss on a dollar amount invested | Requires the purchase amount before fees, the buy price and the sale or current price |
| LLM: known input tokens | Finds the cost of a known number of AI model input tokens | Requires the input token count and the input rate in USD per 1 million tokens |
| LLM: input and output counts | Finds the cost of known input and output token counts together | Requires the input and output token counts and a rate in USD per 1 million tokens for each |
| LLM: estimate input from text | Estimates the input token count and cost of a text from its length | Requires the character count, the assumed characters per token and the input rate |
| LLM: estimated input + output | Estimates the cost of a text plus a known number of output tokens | Requires 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 | Value of the holding (USD) |
| T | Number of tokens |
| P | Price 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
(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
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
(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
โ 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
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
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
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
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
- U.S. Securities and Exchange Commission, Investor.gov, Market Capitalization: market capitalization as price times units outstanding, defined for company shares
- OpenAI Help Center, Understanding and counting tokens: about 4 characters per token in English, and separate input and output token pricing
