Skip to main content
Features AI Research Course Blog Ebook About GitHub
Sign in Launch Terminal
From the desk

How to calculate crypto profit and loss: spot, futures, fees and break-even

MECHANICS · 8 MIN READ

It sounds trivial: you bought low and sold high, so you made money. In practice the number on your exchange screen and the number in your bank often disagree. The difference is almost always fees, several purchases at different prices, leverage or time. This guide builds the calculation up from a single spot trade to a leveraged position, so you can check any result by hand.

Step 1: a simple spot trade

For a spot purchase with no fees, profit is the number of coins multiplied by the change in price.

Profit = coins × (sell price − buy price)

Buy 0.5 coins at $2,000 and sell at $2,600: 0.5 × $600 = $300, which is a 30% gain on the $1,000 spent. The percentage is the return on investment (ROI): profit divided by the amount invested.

Step 2: add fees on both sides

Exchanges charge a fee on the buy and another on the sell, usually a percentage of the trade value. With a 0.1% fee each way, $1,000 buys about 0.4995 coins after the buy fee, and selling them at $2,600 returns about $1,297.40 after the sell fee. Net profit is about $297.40, or 29.74%. Fees look small on a big move, but they matter on small ones and for frequent traders. Run your own numbers in the crypto ROI calculator.

Example: At 0.1% per side, you need about a 0.2% price rise just to break even. At 0.5% per side, which some buy-and-sell apps charge when they build a spread into the price, you need a rise of about 1%.

Step 3: several purchases mean an average cost

If you bought in several steps, your break-even is the weighted average price, not the simple average of the prices:

Average price = total cost ÷ total coins

Buy 0.1 coin at $60,000, 0.2 at $50,000 and 0.3 at $40,000: total cost $28,000 for 0.6 coin, an average of about $46,667, not $50,000. The average price calculator does this for up to five buys. Remember that tax authorities may require a specific lot-matching method rather than an average.

Step 4: realised versus unrealised

A position you still hold has an unrealised profit or loss: it exists on paper and changes every second. It becomes realised only when you sell. Mixing them up is how people feel richer or poorer than they are. Use your average cost and today's price to measure the unrealised figure, and the sale proceeds to measure the realised one.

Step 5: leveraged futures

On a futures position, your margin controls a larger position, and profit and loss are measured on the full position value, not on your margin.

A long at $60,000 closed at $63,000, with $1,000 margin, 10x leverage and a 0.05% fee per side, has a position of $10,000, a gross profit of $500, fees of about $10.25, net profit of $489.75 and an ROE of about 48.98%. The price moved 5%; the equity moved about 49%. Leverage multiplies both directions, so a 5% fall would have cost about half the margin plus fees. Use the futures profit calculator for your own trade and the liquidation price calculator to check the position would survive until your exit.

Step 6: funding on perpetual contracts

Perpetual futures have no expiry, so exchanges use a funding rate to keep the contract near the spot price. While you hold a position, you pay or receive funding at regular intervals. At 0.01% every eight hours on a $10,000 position, that is $1 per payment, $3 a day, about $90 a month: small for a day, meaningful for a month. The funding fee calculator handles it, and funding rates explained shows why the sign changes.

Step 7: the asymmetry of losses

A loss needs a larger gain to recover, because the base is smaller after the loss.

LossGain needed to get back to even
−10%+11.1%
−20%+25.0%
−50%+100.0%
−75%+300.0%
−90%+900.0%

This is the strongest argument for limiting risk per trade, which is covered in position sizing and the 1% rule.

Common mistakes

A repeatable checklist

1. Write down entry, exit, size and fees before you trade. 2. Calculate the break-even price, not just the target. 3. For futures, calculate liquidation, funding and ROE as well as PnL. 4. After the trade, record the realised result, including fees, in a journal.

Tax rules for crypto vary widely, and none of the figures here is tax or financial advice.

Keep reading