Crypto Profit/Loss Calculator
Calculate the net profit or loss, ROI, and break-even price on a crypto trade from buy price, sell price, quantity, and per-side trading fees (percentage or flat) — plus a full cost breakdown of the trade.
Input
A percentage of trade value or a flat dollar amount, set by Fee Type above.
A percentage of trade value or a flat dollar amount, set by Fee Type above.
Output
| Metric | Value |
|---|---|
| No data yet | |
| Metric | Value |
|---|---|
| No data yet | |
Guides
What this calculates
Buy a coin at one price, sell it at another, and the raw price difference isn't your real return — exchange fees eat into both sides of the trade. This tool works out the actual net profit or loss on a trade after buy and sell fees, the ROI that produces, and the exact price you'd need to sell at just to break even.
How this tool works
- Enter the buy price and sell price per unit (coin/token).
- Enter the quantity traded.
- Choose a fee type — a percentage of each trade's value, or a flat dollar amount per side — then enter the buy fee and sell fee in whichever form you picked.
- Choose a currency for the formatted output.
The Summary table shows the price change, net profit or loss, whether the trade was profitable, ROI, profit/loss per unit, and the break-even sell price — the price that would have made the trade a wash after fees. The Cost Breakdown table decomposes the trade step by step: gross buy cost, the buy fee, total buy cost, gross sell proceeds, the sell fee, and net sell proceeds, so you can see exactly where the money went.
The math
A percentage fee is charged against that side's gross trade value (price × quantity); a flat fee is a fixed amount regardless of trade size. Total buy cost is the gross cost plus the buy fee; net sell proceeds is the gross proceeds minus the sell fee. Net profit/loss is net proceeds minus total buy cost, and ROI is that profit as a percentage of total buy cost — not of the sell price, since total buy cost is what was actually put at risk.
Break-even price is solved for the fee type in use: with a flat sell fee, it's (total buy cost + flat fee) ÷ quantity; with a percentage sell fee, it accounts for the fee scaling with price too — total buy cost ÷ [quantity × (1 − sell fee %)] — since a higher sell price also means a higher dollar fee at a fixed percentage.
Common uses
- Checking whether a trade was actually profitable after both sides' fees, not just the sticker price difference
- Working out the minimum sell price needed to break even before placing an order
- Comparing ROI across trades with different fee structures (percentage vs. flat)
- Sanity-checking a profit figure an exchange or portfolio tracker reported
For a periodic investing strategy instead of a single trade, use the DCA (Dollar-Cost Averaging) Calculator. For a broader return-on-investment calculation outside of trading fees and break-even pricing, use the general ROI Calculator.
Privacy
This tool runs entirely in your browser. Your numbers are never uploaded to a server.
Use it from code
From 3 credits per callREST API
curl -X POST https://api.iotools.cloud/v1/tool/crypto-profit-loss-calculator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"buyPrice": "45000",
"sellPrice": "52000",
"quantity": "0.5",
"feeType": "percent",
"buyFee": "0.5",
"sellFee": "0.5",
"currency": "USD"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `crypto-profit-loss-calculator` tool (Crypto Profit/Loss Calculator) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.