Get the App

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.

Runs in your browser. Nothing you enter is sent or stored.

Turn on JavaScript to calculate. The worked example below uses made-up numbers.

Educational tool, not financial advice. Results are arithmetic on 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.

StepCalculationResult
Cost basis0.05 x 2,000$100.00
Entry feemax(0.75% x 100.00 = 0.75, 0.90)$0.90
Gross proceeds0.08 x 2,000$160.00
Exit feemax(0.75% x 160.00 = 1.20, 0.90)$1.20
Total fees0.90 + 1.20$2.10
Net profit160.00 - 100.00 - 2.10$57.90
ROI57.90 / (100.00 + 0.90)57.38%
Break-even sell price(100.00 + 0.90 + 0.90) / 2,0000.0509
Move needed0.0509 / 0.05 - 11.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

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.

Moby Agents · Agentic trading