Crypto Profit & Loss Calculator
Work out the real profit or loss on a closed crypto trade, after fees.
- How do you calculate crypto profit or loss?
- Take what you received when you sold, subtract the sell fee, then subtract everything you paid including the buy fee. Dividing that by your total cost gives the return.
Enter your numbers and press Calculate to see your results.
Embed this calculator on your site
Free to use on blogs, school and finance sites. Paste this where you want it to appear and keep the link to MoneyPilots underneath.
How a Crypto Profit or Loss Is Worked Out
This calculator works out the result of a completed trade: you bought a quantity of an asset at one average price and sold it at another. It builds a total cost (buy price multiplied by quantity, plus the buy fee) and a net proceeds figure (sell price multiplied by quantity, less the sell fee), and the difference is your real profit or loss.
Fees are the part people most often leave out. A percentage fee is charged on the way in and again on the way out, so the asset has to move further than the raw buy and sell prices suggest before the trade is genuinely ahead. Entering the average fill prices you actually got — rather than the price on the chart — keeps slippage and the spread inside the calculation where they belong.
This is a record of what happened on a closed position. It is not a forecast, and it is not a tax calculation: holding periods, cost-basis accounting methods and jurisdiction-specific rules all affect what you owe, and none of them are modelled here.
Worked example
Buy 0.5 units at $30,000 with a 0.1% fee: cost basis $15,000, fee $15, so total cost $15,015. Sell the same 0.5 units at $45,000 with a 0.1% fee: gross proceeds $22,500, fee $22.50, so net proceeds $22,477.50.
Net profit is $22,477.50 − $15,015 = $7,462.50, which is a 49.7% return on cost. Skip the two fees and the profit would look like $7,500 — close, but the difference is exactly what you paid to trade.
Why average prices are the right input
Most crypto trades are not a single clean fill. If you bought in three tranches, the number that matters is the weighted average price you paid, not the price of any one order. The same applies on the way out.
If you do not know your average cost, the average buy price calculator will work it out from what you hold and what it cost you.
What this figure leaves out
Withdrawal and network fees are not included, because they are usually flat rather than a percentage of the trade. Staking or interest earned while you held the asset, and any taxes due on the disposal, sit outside this figure too.
Because of that, treat the result as the trading outcome of a closed position rather than the total change in your wallet.
Example
Here is what Crypto Profit & Loss Calculator returns with its default inputs. Change any value above to see your own numbers.
Inputs
- Quantity bought
- 0.5
- Average buy price
- $30,000.00
- Average sell price
- $45,000.00
- Buy fee
- 0.1%
- Sell fee
- 0.1%
Result
- Net profit (after fees)
- $7,462.50
- Return on cost
- 49.7%
- Total cost including buy fee
- $15,015.00
- Net proceeds after sell fee
- $22,477.50
- Trading fees paid
- $37.50
What affects your crypto profit & loss result?
- Your actual fill prices. The average price you really got — not the price on the chart — sets the result. Slippage and the spread live inside that number.
- Fees on both sides. A trading fee is charged when you buy and again when you sell, so fees reduce the profit twice and raise the price you need to win.
- Position size. Profit scales with how much you hold, but so does the loss. Size is what turns a small price move into a meaningful dollar outcome.
- What is not included. Withdrawal and network fees, staking rewards and taxes are outside this figure, so your real net result is usually different.
Frequently asked questions
Should I enter the price I saw or the price I got?
Why is my profit lower than price change × quantity?
Does this tell me what I owe in tax?
Calculation methodology
Net profit = (sell price × quantity − sell fee) − (buy price × quantity + buy fee). ROI = net profit ÷ total cost × 100.
Assumptions
- Fees are treated as a percentage of each trade’s value and are charged on both the buy and the sell.
- Prices are the average fill prices you actually got — slippage and the spread are already inside them if you enter real fills.
- Network/withdrawal fees, staking income and taxes are not included.
- This is a record of a completed round trip, not a forecast or tax advice.
What should you calculate next?
Crypto Profit & Loss Calculator answers one part of the picture. These pick up where it leaves off.
Updated: · Built and maintained by MoneyPilots’ co-founders, Mohammed Salman and Ahmad Shara'a. Every formula is deterministic and covered by automated tests.
See our methodology and editorial policy.
This calculator provides estimates for educational purposes only and is not personalized financial advice. Rates, taxes, and financial products change — verify with providers and qualified professionals.