Home / Tools / Crypto Profit Calculator
Crypto Profit Calculator
A crypto profit calculator turns a buy price, a sell price, a quantity, and your fees into profit or loss, return on investment, and the sell price that covers those fees. It is long only: you buy, then you sell. The math uses only the numbers you enter.
How to calculate crypto profit
Cost basis = buy price x quantity. Entry fee follows the rule you pick, then any onchain amount you add. Gross proceeds = sell price x quantity. Exit fee follows the exit rule. Net profit = gross proceeds - cost basis - total fees. Return on investment = net profit / (cost basis + entry fee). The base includes the entry fee, so the entry fee is part of what you put in.
Net profit = (S x Q) - (B x Q) - fees. Break-even sell price is the smallest S where net profit is 0.
Crypto break-even price
With no exit percent, break-even sell price = (cost basis + entry fee + exit fixed fee + exit onchain fee) / quantity. With an exit percent p, divide that same numerator by quantity x (1 - p). With a percent and a minimum, the calculator checks both branches and keeps the one that matches its own rule.
Worked example
Example, made-up numbers. Buy 0.05, sell 0.08, quantity 2,000, both sides 0.75% with a $0.90 minimum, no onchain fees.
| Step | Calculation | Result |
|---|---|---|
| Cost basis | 0.05 x 2,000 | $100.00 |
| Entry fee | max(0.75% x 100.00 = 0.75, 0.90) | $0.90 |
| Gross proceeds | 0.08 x 2,000 | $160.00 |
| Exit fee | max(0.75% x 160.00 = 1.20, 0.90) | $1.20 |
| Total fees | 0.90 + 1.20 | $2.10 |
| Net profit | 160.00 - 100.00 - 2.10 | $57.90 |
| ROI | 57.90 / (100.00 + 0.90) | 57.38% |
| Break-even sell price | (100.00 + 0.90 + 0.90) / 2,000 | 0.0509 |
| Move needed | 0.0509 / 0.05 - 1 | 1.80% |
On a trade this small the minimum fee, not the percentage, sets your break-even.
Second example, a loss, made-up numbers. Buy 40, sell 36, quantity 5, no fees: cost $200.00, proceeds $180.00, profit -$20.00, ROI -10.00%, break-even 40.
Edge cases and limits
- Blank or non-numeric fields ask you to enter a number. No result shows until buy, sell, and quantity are valid.
- Buy price and quantity must be greater than zero. A sell price of 0 is allowed and shows a total loss.
- A negative net profit is shown with a minus sign and the word Loss.
- Prices accept up to 12 decimal places. Very small prices stay in plain digits.
- A fee percent over 100 is allowed, with the warning "Fees exceed the trade value." A 100% exit fee has no break-even sell price.
- Paste a dollar sign, commas, or spaces and they are cleaned. A decimal comma is not supported: use a dot for decimals.
- This calculator is long only: buy, then sell. It does not size a short.
- A custom percent with a minimum uses the larger of the two. A 2% fee with a $1.00 minimum on a $10 trade charges $1.00.
Frequently asked questions
How do you calculate profit on a crypto trade?
Subtract what you paid, including the entry fee, from what you received after the exit fee. Net profit = sell price x quantity - buy price x quantity - total fees.
What is a break-even price and why is it above my buy price?
Fees on both sides have to be covered before the trade is even. In the worked example, the minimum fee means the price has to rise about 1.80% just to cover fees.
Does this calculator include taxes?
No. Taxes depend on where you live and how you trade. Talk to a tax professional. This page does not give tax rates.
Can I use it for a trade I have not made yet?
Yes. Enter a planned sell price or a target to see the arithmetic result. The result is arithmetic on your inputs. It is not a claim about what the price will do.
Does the 0.75% preset apply to every exchange?
No. It matches the Moby swap fee only. Enter your own exchange's fee rule.
Related tools
Work out your fees before you read a profit figure. Then compare the idea on the risk reward calculator, or size it with the trading position size calculator. The ideas behind a stop are in risk management for trading.
Try it with a Moby Agent
A Moby Agent trades on Solana, paid in USDC, inside limits you set. You set your agent's per-trade and daily spending limits and market-cap range; Moby blocks red-rated tokens. No subscription. Pay only a 0.75% swap fee ($0.90 minimum), plus onchain fees.
