Why Does a Perpetual Futures Position Show an Unrealized Loss After a Profitable Trade?
When you close a perpetual futures trade at a profit but see an unrealized loss on your remaining position, the cause is almost always the funding rate mechanism. Funding payments accumulate continuously, and if you hold the position through multiple funding settlement intervals, the fees you pay (or receive) can offset or reverse your paper gains. The profit on the closed portion is real; the loss on the remaining portion is a snapshot distorted by unpaid funding costs.
How funding rates create the mismatch
Perpetual futures use a periodic funding payment - typically every eight hours on centralized exchanges, or up to every hour on some decentralized platforms - to keep the contract price aligned with the spot market. When you open a long position and the funding rate is positive (longs pay shorts), your unrealized profit and loss (PnL) shown in the exchange interface includes an estimate of the funding you will have to pay or receive if you close the position right now. This estimate is recalculated in real time.
The problem arises because the unrealized PnL displayed is a single number that combines: - The price-based profit or loss from the difference between your entry price and the current mark price. - The accumulated funding you have already paid or received since the last settlement. - A projection of the funding you will owe or gain until the next settlement.
If you just executed a profitable partial close - say you sold half your position at a gain - the remaining half still carries the cumulative funding cost from the entire time you have held it. If funding has been consistently positive (you paying), that cost may be large enough to push the displayed unrealized PnL into negative territory, even though the price has moved in your favor.
Step-by-Step Example
- You open a long position of 10 BTC at $20,000 with 10x leverage.
- Over three days, the price rises to $21,000. The price-based profit on your full position is $10,000 (10 BTC × $1,000 gain).
- During those three days, funding is settled every eight hours - nine settlements total. Each settlement charges 0.05% of your position size. Total funding paid: 10 BTC × 0.05% × 9 = 0.045 BTC, worth $945 at $21,000.
- Your displayed unrealized PnL is $10,000 (price gain) minus $945 (paid funding) = $9,055. Still positive.
- You close 5 BTC at $21,000, realizing a profit of $5,000 and collecting the proceeds.
- The remaining 5 BTC position still has $945 in cumulative funding paid attached to it. The price-based profit on those 5 BTC is $5,000. The displayed unrealized PnL becomes $5,000 - $945 = $4,055.
- Now assume the funding rate was much higher - 0.1% per settlement - or you held for a week. The cumulative funding on the remaining 5 BTC could exceed its price gain. If funding paid totals 0.15 BTC and the price gain is only 0.1 BTC, the displayed unrealized PnL is negative, even though you just locked in a profitable partial close.
The exchange does not split the funding cost between closed and open portions. It deducts the total accrued funding from the remaining position’s displayed balance. Your realized profit on the closed part is safe; the unrealized loss on the remainder is an accounting artifact.
Other causes to check
- Mark price versus last traded price. If you closed a portion at a favorable last price but the mark price (used for unrealized PnL calculation) has since moved against you, the remaining position will show a loss. This is separate from funding.
- Liquidation price shift. After a partial close, the liquidation price for the remaining position recalculates. If you reduced leverage on the remaining size, the liquidation price might move closer to the current price, making the position appear riskier even though the trade was profitable. The displayed “unrealized PnL” does not change because of liquidation distance, but some interfaces show a warning or color change that can be misinterpreted as a loss.
- Borrow or custody fees. Some exchanges charge a daily fee for holding the position. These are deducted from unrealized PnL similarly to funding.
What to Do
- Check the funding history. Most exchanges provide a funding payment log. Compare total funding paid on the position against the price-based gain.
- Look at the closed trade separately. Your trade history will show the profit from the closed portion. That figure is final and unaffected by unrealized calculations.
- Recalculate manually. If you hold 5 BTC, your entry price was $20,000, and the current mark price is $21,000, your price-based gain is $5,000. Subtract total funding paid since opening. If the result is negative, the displayed loss is real but caused by funding, not by price movement.
- Close the remaining position. Once you exit, the cumulative funding cost is fully realized and subtracted from your total profit. The unrealized loss disappears.
Why this confuses traders
Most interfaces show a single “unrealized PnL” line. They do not break out funding costs as a separate line item in the position summary. Traders see a profitable trade execution followed by a red number and assume the exchange made an error or the trade was not actually profitable. In reality, the profitable close stands; the remaining position is simply carrying the accumulated cost of staying in the trade.
Understanding that funding is a continuous cost, not a once-per-settlement surprise, is essential for managing perpetual futures positions. If you plan to hold for days or weeks, factor the expected funding rate into your breakeven price. The displayed unrealized PnL is a snapshot that includes that cost, not a measure of whether your most recent trade was good or bad.
Not financial advice. myrowifhatsol.xyz publishes market data and general information about digital assets. Crypto assets are volatile and you can lose everything you put in. Nothing here is a recommendation to buy, sell or hold, and we make no price predictions.
Prices are sourced from third parties and may be delayed or wrong. Verify anything you intend to act on against a primary source.