Calculate crypto profit/loss

Measure a completed digital-asset trade after entry and exit fees, including its break-even sale price.

freeworks offlinenothing uploaded
ToolCrypto Profit/Loss Calculator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Acquisition cost is quantity times buy price plus the buy fee, while sale proceeds are quantity times sell price minus the sell fee. Their difference gives profit or loss; return divides that result by acquisition cost, and break-even spreads both fixed fees across the units being sold.

Formula
profit or loss = net sale proceeds − acquisition cost
break-even price = (acquisition cost + sell fee) ÷ quantity
  • Fee fields default to 0 because exchange commissions, spreads, and network charges are not interchangeable.
  • Prices and fee amounts must use the same fiat currency for the subtraction to be meaningful.

Worked example

Calculate crypto profit/loss
Input
											Quantity: 0.25
Buy price: 40000
Sell price: 48000
Buy fee: 20
Sell fee: 24
										
Output
												Cost: 10020
Proceeds: 11976
Profit loss: 1956
Return percent: 19.52
Break even sell price: 40176
											

When to use this

Exchange trade histories, United States Form 1099-DA and Form 8949 records, and trading journals reconcile quantity and execution prices with entry and exit transaction costs.

Edge cases

  • When both buy price and buy fee are 0, acquisition cost is 0 and percentage return is null instead of dividing by zero.
  • A sell fee above gross sale value makes proceeds negative and increases the loss rather than stopping at 0.
  • Multiple acquisition lots need a chosen unit-identification and basis method before their results can be represented as one sale.

References