← All articles Crypto

What Is PnL? Meaning, Formula and Crypto PnL Calculator

November 16, 2026 · By Tony A. · 10 min read
What Is PnL? Meaning, Formula and Crypto PnL Calculator

PnL is the profit or loss on a trade. Check yours with our crypto PnL calculator for long and short trades with leverage, then see the formulas behind it.

Every trading app shows a PnL number next to your positions, and it moves with every tick of the price. Read correctly, it tells you what you have actually earned, what is still only on paper, and how much risk a leveraged position carries. This guide explains the term, gives the formulas with worked examples, and shows the mistakes that make a PnL figure look better than it is.

Key takeaways

  • PnL (also written P&L or PNL) is the difference between what you paid for a position and what it is worth or sold for.
  • Realized PnL comes from closed trades. Unrealized PnL is the result of open positions and changes until you close them.
  • Long PnL = (exit price − entry price) × size. Short PnL = (entry price − exit price) × size.
  • With leverage, PnL is calculated on the full position size, so the same price move has a larger effect on your margin. ROE shows that effect as a percentage.
  • Fees, funding payments and slippage reduce PnL. A figure without them is a gross number, not your real result.

Crypto PnL Calculator

Enter your margin, leverage, entry price and exit price to see the PnL in USDT and the ROE of a long or short position. The calculator also shows the position size and the price change, and counts the trading fee on both the opening and the closing trade.

PnL–
ROE–
Position size–
Price change–

Estimate before funding and slippage. Fees are applied to both the opening and closing trade. If the loss reaches the margin, the position is liquidated. On real exchanges this happens a little earlier, at the maintenance margin.

The numbers follow the same formulas as the worked examples in how to calculate PnL below. Funding payments and slippage are not included, so treat the result as an estimate.

What Does PnL Mean?

PnL stands for profit and loss. In trading it is the net result of a position: positive when the position gained value, negative when it lost value. You will see it written as PnL, PNL or P&L. All three mean the same thing.

The term comes from accounting. A company's profit and loss statement (the "P&L") shows revenue minus costs over a quarter or a year. A trader's PnL applies the same idea to a single position, a day of trading, or a whole portfolio. When an app shows "Total PnL", it adds up the results of every position over the period you selected.

A PnL figure on its own is an amount, for example +$250 or −$80. To compare trades of different sizes, traders also look at PnL as a percentage, such as ROI on spot trades or ROE on leveraged ones. Both are covered below.

Realized vs Unrealized PnL

Realized PnL is the profit or loss from positions you have already closed. It is final: the money has moved into or out of your balance, and it is the figure that matters for your account history and, in many countries, for tax reporting.

Unrealized PnL is the profit or loss of positions that are still open. It is calculated from the current market price, so it changes all the time. It is often called paper profit or paper loss, because nothing is locked in until you close the position.

Realized PnLUnrealized PnL
Position statusClosedOpen
Changes with priceNoYes, every tick
Affects your balanceYes, already added or subtractedOnly when you close
Main useMeasuring resultsManaging open risk

An example: you buy 0.5 BTC at $60,000. The price drops to $58,000. Your unrealized PnL is (58,000 − 60,000) × 0.5 = −$1,000. If the price recovers to $61,000 and you sell, the loss never becomes real, and your realized PnL is (61,000 − 60,000) × 0.5 = +$500 before fees.

When you close only part of a position, the closed part becomes realized PnL and the rest stays unrealized.

How to Calculate PnL

You need four inputs: the entry price, the exit price (or the current price for an open position), the position size, and the costs of the trade.

Long position (you profit when the price rises):

PnL = (exit price − entry price) × position size

Short position (you profit when the price falls):

PnL = (entry price − exit price) × position size

Then subtract trading fees and any other costs to get net PnL.

Example 1: spot trade

You buy 0.5 BTC at $60,000, which costs $30,000. Later you sell it at $63,000 for $31,500.

  • Gross PnL: (63,000 − 60,000) × 0.5 = +$1,500
  • Fees, assuming 0.1% on each side: $30 when you buy + $31.50 when you sell = $61.50
  • Net PnL: 1,500 − 61.50 = +$1,438.50
  • ROI: 1,438.50 / 30,000 = 4.8%

The 0.1% fee is only an example. Use the real fee rates of your platform.

Example 2: short trade

You open a short on 2 ETH at $3,000 and close it at $2,850.

  • PnL: (3,000 − 2,850) × 2 = +$300 before fees

If ETH had risen to $3,150 instead, the same formula gives (3,000 − 3,150) × 2 = −$300.

Example 3: averaging into a position

If you buy in several parts, use the weighted average entry price. You buy 0.2 BTC at $60,000 and another 0.2 BTC at $55,000. Your average entry is (0.2 × 60,000 + 0.2 × 55,000) / 0.4 = $57,500. At a price of $59,000, your unrealized PnL is (59,000 − 57,500) × 0.4 = +$600.

PnL With Leverage: ROE and Liquidation

On leveraged products such as perpetual contracts, you put up margin and control a larger position. PnL is calculated on the full position size, while your risk is the margin. That is why traders also track ROE (return on equity):

ROE = PnL / initial margin × 100%

Example 4: a 10x long

You open a long on BTC with $500 of margin and 10x leverage. The position size is $5,000, or 0.1 BTC at an entry price of $50,000.

BTC pricePrice movePnLROE
$51,000+2%+$100+20%
$49,000−2%−$100−20%
$46,000−8%−$400−80%

At 10x, every 1% move in the price changes your ROE by about 10%. A move of roughly 10% against you would use up the whole margin. In practice the position is liquidated earlier, because platforms require a maintenance margin. Our guide to crypto leverage trading explains how liquidation prices are set.

The PnL formula stays the same with leverage. What changes is how much of your margin each price move uses up, whichever way the price goes.

What Reduces Your PnL: Fees, Funding and Slippage

The PnL number that matters is net PnL. These costs sit between the gross and the net figure:

  • Trading fees. Most platforms charge a fee when you open and when you close a position. On leveraged trades the fee is charged on the full position size, not on your margin.
  • Funding payments. Perpetual contracts usually have periodic funding payments between longs and shorts. Depending on the market, you either pay or receive them while the position is open.
  • Slippage. A market order can fill at a slightly worse price than the one you saw, especially in fast markets. See our guide to slippage.
  • Spread. The gap between the buy and sell price is a small cost on every round trip.

Many apps show unrealized PnL before closing fees, so the amount you receive when you close can be slightly lower than the number on screen.

See how PnL moves on a live position without risking your own money: open a Walbi demo account with $10,000 in virtual funds.

Common PnL Mistakes

  1. Counting unrealized gains as profit. A large open gain can disappear before you close the position. Decide in advance where you take profit.
  2. Ignoring fees. Frequent small trades can show a positive gross PnL and a negative net PnL.
  3. Looking only at ROE. A +50% ROE on a tiny position is a few dollars. Look at the amount and the percentage together.
  4. Judging a strategy by one trade. Track total PnL over many trades, together with the largest losing streak.
  5. Moving the stop because of unrealized PnL. Watching a loss grow and widening the stop is how small losses turn into large ones. With a stop-loss order placed in advance, you make that decision before the trade, not while the loss is growing.

How to Use PnL to Manage Risk

Tracked over weeks rather than minutes, PnL shows whether your approach works. A few habits help:

  • Set a maximum loss per trade as a share of your account, then size the position so that a stop at that level matches it.
  • Review realized PnL weekly, not every hour. Short windows are mostly noise.
  • Keep a trade journal with entry, exit, size, fees and the reason for the trade. Patterns in your PnL often show up there first.
  • Compare net PnL with the risk you took. A strategy that earns a little with small drawdowns can be better than one with large swings.

For more on position sizing and stop placement, see our risk management tips for crypto trading.

PnL on Walbi

On Walbi you trade crypto perpetuals with leverage up to 500x, and you can set take profit and stop loss on a position, so the risk side of your PnL is defined before you enter. If you use AI agents, the marketplace lists each agent with its PnL, turnover and number of traders, so you can compare strategies on their numbers.

High leverage magnifies losses as much as gains. Starting with low leverage, or on the demo account, is the simplest way to learn how PnL behaves before real money is involved.

Frequently Asked Questions

Is there a PnL calculator for crypto?

Yes. The PnL calculator at the top of this page works for crypto futures and perpetuals: choose long or short, enter margin, leverage, entry and exit price, and it shows PnL in USDT, ROE, position size and the price change, with fees on both sides.

What does PnL mean in trading?

PnL means profit and loss. It is the net result of a trade or a portfolio: the difference between the value of a position when you close it (or now, if it is open) and what you paid for it, minus costs.

What is the difference between realized and unrealized PnL?

Realized PnL comes from closed positions and is final. Unrealized PnL belongs to open positions, is based on the current price, and changes until you close them.

How do I calculate PnL on a short position?

Subtract the exit price from the entry price and multiply by the position size: (entry − exit) × size. If you shorted 2 ETH at $3,000 and closed at $2,850, your PnL is +$300 before fees.

Does PnL include fees?

It depends on the app. Some show gross PnL and deduct fees only when you close. Check whether your platform's figure is gross or net, and treat net PnL as your real result.

What is the difference between PnL and ROE?

PnL is an amount, such as +$100. ROE is that amount as a percentage of the margin you used. On a 10x position with $500 margin, a +$100 PnL is a +20% ROE.

What does total PnL mean?

Total PnL is the sum of all your realized and, in some apps, unrealized results over a chosen period. Check the period and whether open positions are included before you compare two numbers.

About the Author

Written by the Walbi Editorial team. Reviewed November 2026. Walbi is a no-code platform where anyone can build and run AI trading agents for crypto markets.

To try these formulas on a real position, start trading on Walbi. Set your stop loss and take profit before you enter and keep leverage low while you learn.

Put these ideas to work, let an AI agent trade for you.

Get started →