Crypto profit calculator

Several buys at different prices make it hard to know where you stand. Enter each purchase and the current price to see your average cost, gain or loss, and break-even price with fees included.

Old handwritten accounts ledger lying open

Photo: “Ledger” by tercerojista, CC BY 2.0, via Flickr (edited: cropped and resized).

Quick answer

Profit or loss = value if you sold now (after the selling fee) − what you paid (including buying fees). Average cost = total cost ÷ total quantity. The break-even price is the price at which selling, after fees, returns exactly what you paid.

Key points

  • 1Add fees to your cost when you buy and subtract them from the value when you sell; small fees move the break-even price.
  • 2Your average cost is weighted by quantity, not a plain average of the prices you paid.
  • 3The result is unrealised: it only becomes a real gain or loss when you sell, and prices can change quickly before then.
  • 4Taxes are not included, because they depend on where you live.

Inputs

Example line: 0.5, 60000 means 0.5 units bought at $60,000 each.

Unrealised gain / loss

—
Total quantity
—
Cost basis incl. fees
—
Average cost per unit
—
Value after selling fee
—
Break-even price
—

Runs entirely in your browser. Nothing you type is sent anywhere. Results are arithmetic, not advice — read the risk disclosure.

What formula does this calculator use?#

Cost basis = Σ(quantity × buy price) × (1 + fee); Value = total quantity × current price × (1 − fee); Gain or loss = Value − Cost basis

The fee is the percentage you enter, written as a decimal (0.1% = 0.001), applied once on the way in and once on the way out. Average cost = Cost basis ÷ total quantity. Break-even price = Cost basis ÷ total quantity ÷ (1 − fee).

Enter one buy per line as quantity, then price — for example 0.5, 60000. The calculator adds every line, so it works whether you bought once or fifty times. If you sold part of a holding, enter only what you still hold and the price you paid for it.

How does it work with the default numbers?#

StepValue
Cost before fees = 0.5 × $60,000 + 0.25 × $40,000$40,000.00
Cost basis incl. 0.1% buying fee = $40,000 × 1.001$40,040.00
Total quantity = 0.5 + 0.250.75
Average cost per unit = $40,040 ÷ 0.75$53,386.67
Value after 0.1% selling fee = 0.75 × $50,000 × 0.999$37,462.50
Gain or loss = $37,462.50 − $40,040−$2,577.50 (−6.44%)
Break-even price = $40,040 ÷ 0.75 ÷ 0.999$53,440.11

Without fees the loss would be $2,500 (−6.25%) and the break-even price $53,333.33. Two fees of 0.1% added about $107 to the break-even price in this example.

How does the result change with the price?#

Same two buys and 0.1% fee, at different hypothetical current prices
Current priceValue after selling feeGain or lossChange
$50,000$37,462.50−$2,577.50−6.44%
$53,440.11$40,040.00$0.000.00%
$60,000$44,955.00+$4,915.00+12.28%

These numbers can swing quickly. EU regulators warn that crypto-asset prices can fall and rise quickly over short periods and that you may lose all the money you invest [1]. The FTC adds that crypto values can change by the hour, and that if the value goes down there is no assurance it will go back up [2].

Why might the real result differ from the calculator?#

  • Execution price. A market order fills at the current price, which may not be the price you expected [3].
  • Spreads and fees that are not a flat percentage, such as fixed withdrawal or network fees.
  • Taxes on gains, which the calculator ignores.
  • Platform risk: a company holding your coins could fail or halt withdrawals, and you might not get your assets back [4].

Frequently asked questions#

Why is my average cost not the average of my buy prices?

Because larger buys count more. 0.5 units at $60,000 and 0.25 units at $40,000 average to about $53,333 per unit before fees, not $50,000.

What fee should I enter?

The percentage your platform charges per trade. If it charges different rates for buying and selling, enter the average; for fixed fees, add them to the cost by hand.

Is an unrealised gain real money?

Not yet. It is what you would get if you sold at the price you entered, after fees. The price can change before you sell.

Does the calculator store what I type?

No. It runs in your browser and sends nothing to us.

The bottom line#

Knowing your true average cost and break-even price, fees included, is the first step to reading your own position honestly. Use the calculator to check where you stand — not to decide where the price will go next.

Sources#

Grade A = primary source (regulator, protocol specification, client code, original author). Grade B = expert secondary source used for explanation only.

  1. AEuropean Supervisory Authorities (EBA, ESMA, EIOPA). EU financial regulators warn consumers on the risks of crypto-assets, 2022.
  2. AU.S. Federal Trade Commission, Consumer Advice. What To Know About Cryptocurrency and Scams, 2022.
  3. AU.S. SEC, Investor.gov. Market Order, 2026.
  4. AU.S. SEC, Investor.gov. Exercise Caution with Crypto Asset Securities: Investor Alert, 2023.