Profit & ROI

How to Calculate Crypto Profit and Loss (With Fees Included)

Most people calculate crypto profit the quick way: sell price minus buy price. That number is almost always wrong. It ignores the fees you paid on the way in, the fees you pay on the way out, and sometimes the spread hidden inside the price itself. On a single trade the difference might be a few dollars. Across a year of active trading it can be the difference between a profitable strategy and a losing one.

This guide walks through the correct calculation step by step, shows two worked examples, and explains the mistakes that make people think they are doing better than they are.

The basic profit formula

At its simplest, profit is what you received minus what you paid:

Profit = Net sale proceeds − Total purchase cost

The important words are net and total. Your total purchase cost includes every fee you paid to acquire the coins. Your net proceeds are what actually landed in your account after the sell fee was taken.

To express that profit as a percentage, divide it by your total cost:

ROI (%) = Profit ÷ Total purchase cost × 100

Run your own numbers with the free calculator: Crypto Profit Calculator

Open calculator →

Step by step: buying with a fixed amount

Most people buy crypto by spending a fixed amount of money, such as $1,000. Here is how fees change the outcome.

  1. Apply the buy fee. With a 0.1% fee, $1,000 buys $999 worth of coins. The $1 fee is part of your cost.
  2. Work out the coins received. $999 ÷ buy price. At $50,000 per BTC that is 0.01998 BTC.
  3. Calculate the gross sale value. Coins × sell price. If you sell at $60,000 you get $1,198.80 gross.
  4. Apply the sell fee. 0.1% of $1,198.80 is $1.20, so your net proceeds are $1,197.60.
  5. Subtract your total cost. $1,197.60 − $1,000 = $197.60 profit, an ROI of 19.76%.

The naive calculation — ($60,000 − $50,000) ÷ $50,000 — says 20%. The real figure is a little lower because you paid twice.

Why fees matter more than they look

A 0.1% fee per side sounds trivial. But fees scale with how often you trade and with the platform you use.

Platform type Typical cost per side Round-trip cost on $1,000
Pro exchange, maker order 0.00–0.10% $0–$2
Pro exchange, taker order 0.05–0.40% $1–$8
Instant-buy app 0.5–1.5% plus spread $10–$40
Card purchase 2–4% $20–$80

If you trade the same $1,000 twenty times a year on an app that costs 1% per side, you pay roughly $400 in fees — 40% of your capital — before the market has moved at all.

Worked example 2: a losing trade

Losses work the same way, and fees make them slightly worse. Suppose you invest $5,000 in Ethereum at $3,500 with a 0.5% fee, then sell at $3,200 with another 0.5% fee.

  • Coins received: $4,975 ÷ $3,500 = 1.4214 ETH
  • Gross sale: 1.4214 × $3,200 = $4,548.57
  • Sell fee: $22.74, so net proceeds are $4,525.83
  • Loss: −$474.17 (−9.48%)

The price fell 8.6%, but your loss is nearly 9.5% because of $47.74 in fees.

Including network and withdrawal fees

If you moved coins off the exchange to a private wallet and later sent them back to sell, each transfer cost a network fee. These are real costs of the investment. The cleanest approach is to add them to your purchase cost. For example, if you paid a $3 withdrawal fee after buying, your total cost is $1,000 + $3.

Calculating profit across multiple purchases

When you bought at different times and prices, use your average cost: add up every dollar spent (including fees) and divide by the total coins you hold. If you spent $3,000 across three purchases and own 0.06 BTC, your average cost is $50,000 per BTC. Use that as your buy price in the formula.

For tax purposes, however, many countries require a specific method — FIFO in many US cases, share pooling in the UK, and adjusted cost base in Canada — which can produce a different gain than the simple average. See our guide to cost basis methods.

Common mistakes

  • Forgetting the spread. Some apps advertise "zero fees" but quote a buy price 1% above the market. Compare the price you paid with a live market price to estimate the hidden cost.
  • Mixing up percentage gain and percentage of portfolio. A 50% gain on a coin that is 2% of your portfolio adds only 1% to your total.
  • Counting unrealized gains as profit. Until you sell, the gain can disappear. Read realized vs unrealized gains.
  • Ignoring tax. Profit before tax is not what you keep. A short-term gain in the US may be taxed at up to 37%.

Use the calculator

Rather than doing this by hand each time, enter your buy price, sell price, amount and both fees into the crypto profit calculator. It shows your net profit, ROI, total fees and the break-even price you need just to get your money back.

Key takeaways

  • Real profit = net sale proceeds − total purchase cost, with fees on both sides.
  • Fees are a small percentage per trade but compound quickly with frequent trading.
  • Use your average cost for multiple purchases, and check your country's tax method separately.

CryptoMathly provides educational estimates only and is not financial, investment or tax advice. Crypto assets are volatile and you can lose money. Always verify figures with a qualified professional.