How to Calculate Crypto Profit and Loss

Crypto profit and loss calculation showing Bitcoin, Ethereum, trading charts, PnL, ROI, fees, and a calculator.

Knowing whether a cryptocurrency trade made money or lost money sounds simple: compare the price you bought at with the price you sold at.

In practice, an accurate crypto profit and loss calculation can involve more than that.

You may need to account for:

  • Entry price
  • Exit price
  • Quantity of cryptocurrency
  • Trading fees
  • Average entry price
  • Multiple purchases
  • Long or short direction
  • Realized versus unrealized PnL
  • Leverage and margin
  • Funding or other transaction costs

Understanding these numbers is important because a trade that appears profitable before fees may produce a smaller net profit—or even a loss—after costs are included.

This guide explains how to calculate crypto profit and loss step by step using straightforward formulas and practical examples.

Important: This article is for educational purposes only and does not constitute financial, investment, tax, or trading advice. Cryptocurrency markets can be highly volatile, and losses can occur rapidly.

What Does PnL Mean in Crypto?

PnL stands for profit and loss.

It measures how much money a cryptocurrency position has gained or lost.

A positive PnL means the trade is profitable.

A negative PnL means the trade is losing money.

For a simple spot trade, the basic idea is:

Profit or Loss = Value When Sold − Cost When Bought

However, a more accurate calculation should also include trading fees and other relevant transaction costs.

Binance’s educational material distinguishes between realized PnL, which is locked in when a position is closed, and unrealized PnL, which reflects the current value of an open position. You can review its explanation of crypto profit and loss.

The Basic Crypto Profit Formula

For a simple long spot trade:

Gross PnL = (Exit Price − Entry Price) × Quantity

Then:

Net PnL = Gross PnL − Trading Costs

Suppose you buy:

  • 0.20 BTC
  • Entry price: $60,000
  • Exit price: $66,000

First calculate the price difference:

$66,000 − $60,000 = $6,000

Then multiply by the quantity:

$6,000 × 0.20 = $1,200

Your gross profit is:

$1,200

If total trading fees were:

$35

then:

Net Profit = $1,200 − $35

Net Profit = $1,165

That is the amount remaining after the assumed trading costs in this example.

Crypto Loss Calculation Example

The same formula works when the trade loses money.

Suppose you buy:

  • 5 ETH
  • Entry price: $3,000
  • Exit price: $2,850

Price difference:

$2,850 − $3,000 = −$150

Multiply by the quantity:

−$150 × 5 = −$750

Gross PnL:

−$750

If total fees were:

$20

then:

Net PnL = −$750 − $20

Net Loss = −$770

The fees increase the final loss because they are additional trading costs.

A More Complete Crypto PnL Formula

For a completed spot trade, another useful way to calculate the result is:

Net PnL = Net Sale Proceeds − Total Cost Basis

Where:

Total Cost Basis = Purchase Cost + Entry Fees

and:

Net Sale Proceeds = Sale Value − Exit Fees

Therefore:

Net PnL = (Exit Price × Quantity − Exit Fees) − (Entry Price × Quantity + Entry Fees)

This structure is useful because it separates what the position cost from what you actually received after selling.

Example

Suppose you buy:

  • 10 SOL
  • Entry price: $150
  • Entry fee: $3

Purchase cost:

10 × $150 = $1,500

Total cost basis:

$1,500 + $3 = $1,503

Later, you sell the 10 SOL at:

  • Exit price: $180
  • Exit fee: $3.60

Gross sale value:

10 × $180 = $1,800

Net sale proceeds:

$1,800 − $3.60 = $1,796.40

Net profit:

$1,796.40 − $1,503 = $293.40

Your true result is therefore:

$293.40 profit

rather than simply assuming the price move produced a $300 profit.

Why Trading Fees Must Be Included

Fees reduce your trading return.

Even relatively small transaction costs can matter when:

  • You trade frequently
  • Your profit targets are small
  • Your position size is large
  • You use market orders with higher fees
  • You repeatedly enter and exit the same asset
  • You pay funding, borrowing, gas, or other costs

Investor.gov also reminds investors that fees and expenses reduce investment returns over time. Its broader guidance on how fees affect investment portfolios reinforces why trading costs should not be ignored.

When reviewing a trade, distinguish between:

Gross PnL

and:

Net PnL

Gross PnL measures the result before costs.

Net PnL measures the result after applicable costs.

For practical performance tracking, net PnL is usually the more useful number.

How to Calculate Crypto Profit Percentage

A dollar profit alone does not tell you how efficient the trade was.

For example:

  • Trader A makes $500 from a $1,000 investment.
  • Trader B makes $500 from a $20,000 investment.

Both traders made the same dollar amount.

But their percentage returns are very different.

A simplified return formula is:

Return (%) = Net Profit ÷ Cost Basis × 100

Example

Suppose:

  • Total cost basis: $4,000
  • Net profit: $400

Calculation:

$400 ÷ $4,000 × 100 = 10%

Your return is:

10%

If the result were a $400 loss:

−$400 ÷ $4,000 × 100 = −10%

Your return would be:

−10%

This percentage helps compare trades of different sizes more fairly.

Realized vs Unrealized Crypto Profit and Loss

One of the most important distinctions in crypto PnL is whether the trade has already been closed.

Unrealized PnL

Unrealized PnL is the current profit or loss on a position that is still open.

Suppose you buy:

  • 1 ETH at $3,000

Current market price:

  • $3,300

Your unrealized gross PnL is:

($3,300 − $3,000) × 1 = $300

But you have not sold yet.

The $300 can still increase or disappear as the market moves.

Realized PnL

Realized PnL is the profit or loss recorded when the position is closed.

If you sell the ETH at:

$3,300

the gain becomes realized.

After subtracting applicable fees, you can determine the final net realized result.

This distinction matters because an open position showing a large profit does not guarantee that the trader will ultimately realize that amount.

How to Calculate Unrealized PnL

For a long position:

Unrealized PnL = (Current Price − Entry Price) × Quantity

Example:

  • Entry: $50,000
  • Current BTC price: $53,000
  • Quantity: 0.10 BTC

Calculation:

($53,000 − $50,000) × 0.10 = $300

Unrealized PnL:

+$300

If BTC instead falls to:

$48,000

then:

($48,000 − $50,000) × 0.10 = −$200

Unrealized PnL:

−$200

The number continues changing until the position is closed.

How to Calculate PnL for a Short Crypto Position

A short position is designed to benefit when price falls.

The simplified gross PnL formula for a short is:

Short Gross PnL = (Entry Price − Exit Price) × Quantity

Profitable Short Example

Suppose you short:

  • 2 ETH
  • Entry price: $3,500
  • Exit price: $3,200

Calculation:

($3,500 − $3,200) × 2 = $600

Gross profit:

$600

If total trading and funding costs are:

$25

then:

Net Profit = $600 − $25

Net Profit = $575

Losing Short Example

Suppose you short 2 ETH at:

$3,500

but close at:

$3,800

Calculation:

($3,500 − $3,800) × 2 = −$600

After $25 in total costs:

Net Loss = −$625

Short trades can therefore lose money when the cryptocurrency rises.

How Multiple Crypto Purchases Affect Profit Calculation

Many traders do not buy their full position at one price.

They may buy gradually.

In that case, you need an average entry price or an appropriate cost-basis method.

For simple performance tracking, a weighted average can be useful.

The weighted average entry formula is:

Average Entry Price = Total Amount Spent ÷ Total Quantity Purchased

Example

Suppose you buy:

  • 0.10 BTC at $50,000
  • 0.20 BTC at $55,000

First purchase:

0.10 × $50,000 = $5,000

Second purchase:

0.20 × $55,000 = $11,000

Total spent:

$16,000

Total BTC:

0.30 BTC

Average entry:

$16,000 ÷ 0.30 = $53,333.33

Your approximate weighted average entry is:

$53,333.33 per BTC

If you later sell all 0.30 BTC at:

$60,000

gross PnL becomes:

($60,000 − $53,333.33) × 0.30

Approximately:

$2,000 gross profit

before fees.

Tax accounting can use jurisdiction-specific cost-basis rules. Do not assume a simple weighted average is automatically the correct tax treatment where you live. Consult a qualified tax professional when necessary.

Crypto Profit Calculation With Partial Selling

You may also close only part of a position.

Suppose you hold:

1 BTC

at an average cost of:

$50,000

You sell:

0.25 BTC

at:

$60,000

Gross realized profit on that portion is:

($60,000 − $50,000) × 0.25

$10,000 × 0.25 = $2,500

Only the 0.25 BTC that was sold creates realized PnL.

The remaining 0.75 BTC continues to have unrealized PnL based on its current market value and whatever cost-basis method applies.

How Leverage Affects Crypto Profit and Loss

Leverage does not change how much the underlying cryptocurrency moves.

Instead, leverage allows a trader to control a larger position with a smaller amount of margin.

Suppose:

  • Margin: $1,000
  • Leverage: 5x
  • Position value: $5,000

If the position gains:

2%

the approximate gross position gain is:

$5,000 × 2% = $100

Relative to the $1,000 margin, that is:

10%

before costs.

If the position loses 2%, the approximate gross position loss is also:

$100

Leverage therefore magnifies the account impact of market movements.

The U.S. Commodity Futures Trading Commission warns that leverage can amplify both profits and losses in virtual-currency derivatives. See the CFTC’s customer advisory on virtual currency trading.

For a fuller explanation of leverage, margin, and liquidation, read our Crypto Leverage Explained for Beginners.

Profit and Loss Is Not the Same as Position Size

A common beginner mistake is focusing on potential profit before determining how much should be at risk.

These are different calculations.

PnL calculation asks:

How much did the trade gain or lose?

Position sizing asks:

How large should the trade be before entering?

Before opening a new position, use a risk-based process rather than choosing a size based on the profit you hope to make.

Our Crypto Position Sizing Explained guide explains the relationship between account balance, stop-loss distance, and acceptable risk.

For the actual calculation process, see How to Calculate Crypto Position Size.

Example: Complete Crypto Trade Calculation

Consider this hypothetical spot trade.

Trade Details

  • Account balance: $10,000
  • Asset: BTC
  • Quantity: 0.05 BTC
  • Entry price: $60,000
  • Exit price: $66,000
  • Entry fee: $3
  • Exit fee: $3.30

Step 1: Calculate Purchase Value

0.05 × $60,000 = $3,000

Step 2: Add Entry Fee

$3,000 + $3 = $3,003

Total cost basis:

$3,003

Step 3: Calculate Sale Value

0.05 × $66,000 = $3,300

Step 4: Subtract Exit Fee

$3,300 − $3.30 = $3,296.70

Net sale proceeds:

$3,296.70

Step 5: Calculate Net Profit

$3,296.70 − $3,003 = $293.70

Net profit:

$293.70

Step 6: Calculate Percentage Return

$293.70 ÷ $3,003 × 100

Approximately:

9.78%

The trade therefore produced approximately:

  • $293.70 net profit
  • 9.78% return on the cost basis

under the assumptions used.

Example: Complete Losing Trade Calculation

Suppose instead:

  • Quantity: 0.05 BTC
  • Entry: $60,000
  • Exit: $57,000
  • Entry fee: $3
  • Exit fee: $2.85

Purchase cost:

0.05 × $60,000 = $3,000

Cost basis:

$3,000 + $3 = $3,003

Sale value:

0.05 × $57,000 = $2,850

Net proceeds:

$2,850 − $2.85 = $2,847.15

Net PnL:

$2,847.15 − $3,003 = −$155.85

Percentage result:

−$155.85 ÷ $3,003 × 100

Approximately:

−5.19%

The trade produced approximately:

  • $155.85 net loss
  • −5.19% return

Common Mistakes When Calculating Crypto PnL

1. Ignoring Fees

A trade can appear profitable before costs but produce a much smaller net result after fees.

2. Using Only the Price Difference

The price difference must be multiplied by the actual quantity traded.

A $1,000 BTC move does not mean every trader earns or loses $1,000.

3. Confusing Unrealized and Realized Profit

An open trade showing profit can reverse before it is closed.

4. Forgetting Multiple Entry Prices

When you accumulate an asset at different prices, the correct cost basis matters.

5. Treating Margin as the Position Size

In leveraged trading, margin and market exposure are not the same thing.

6. Ignoring Funding and Borrowing Costs

Perpetual futures and margin trading may involve additional costs beyond entry and exit fees.

7. Calculating Profit but Ignoring Risk

A profitable historical trade does not tell you whether the position was appropriately sized.

A better trading process evaluates both return and risk.

Our Crypto Risk Management for Beginners guide explains how to control risk before entering a trade.

Simple Crypto PnL Formula Cheat Sheet

Situation Formula
Long gross PnL (Exit Price − Entry Price) × Quantity
Short gross PnL (Entry Price − Exit Price) × Quantity
Net PnL Gross PnL − Applicable Trading Costs
Cost basis Purchase Value + Entry Costs
Net sale proceeds Sale Value − Exit Costs
Return % Net PnL ÷ Cost Basis × 100
Unrealized long PnL (Current Price − Entry Price) × Quantity
Weighted average entry Total Purchase Cost ÷ Total Quantity

These formulas provide a practical framework for understanding a trade.

However, actual exchange calculations may differ because of contract type, funding, mark price, fee tiers, collateral currency, rounding, or platform-specific rules.

Always review the calculation method used by your exchange.

Frequently Asked Questions

How do you calculate profit on crypto?

For a simple long trade:

Profit = (Exit Price − Entry Price) × Quantity − Trading Costs

For a more complete calculation, subtract the total cost basis from the net sale proceeds.

How do you calculate a crypto loss?

Use the same formula.

If the result is negative, the trade produced a loss.

Example:

($90 − $100) × 10 = −$100

before fees.

What is PnL in cryptocurrency?

PnL means profit and loss. It measures the monetary gain or loss on a crypto position.

What is the difference between realized and unrealized PnL?

Unrealized PnL belongs to an open position and changes with the market price.

Realized PnL is recorded when the trade is closed.

Should trading fees be included in crypto profit calculations?

Yes.

Fees and other applicable transaction costs reduce the true net result of a trade.

Does leverage increase crypto profit?

Leverage can increase the account impact of a favorable price movement because it allows larger market exposure relative to margin.

But it also increases the effect of losses.

It does not improve the quality or probability of a trade.

Can I calculate crypto profit using only percentage price movement?

You can estimate the gross result by multiplying the percentage move by the position value.

For example:

$5,000 position × 4% move = $200

But the final net result should still account for relevant costs.

Final Thoughts

Calculating crypto profit and loss is one of the most basic skills a trader should understand.

For a simple trade, the core calculation is:

Price Difference × Quantity

But the more accurate result is:

Net Sale Proceeds − Total Cost Basis

That means you should consider not only entry and exit prices, but also quantity, fees, and any other applicable trading costs.

You should also distinguish between unrealized and realized PnL and understand that leverage can magnify both gains and losses.

Most importantly, do not calculate only how much you hope to make.

Calculate how much you are prepared to lose before entering the trade.

If you want to build that process properly, continue with our Crypto Risk Management for Beginners and How to Calculate Crypto Position Size guides.

2 Trackbacks / Pingbacks

  1. Crypto Trading Fees Explained: Maker, Taker & Hidden Costs
  2. Crypto Spot Trading Explained for Beginners (2026 Guide)

Leave a Reply

Your email address will not be published.


*