• Market Cap: $2,418,160,157,835.35
  • 24h Vol: $108,433,118,919.67
  • BTC Dominance: 56.67%
XBT.Market
Advertisement
  • Home
  • Coins MarketCap
  • Crypto Exchanges
  • Crypto Calculator
  • Top Gainers and Loser
  • News
  • Contact Us
No Result
View All Result
XBT.Market
No Result
View All Result
Home Bitcoin

What is profit and loss (PnL) and how to calculate it

Jon Hartney by Jon Hartney
May 5, 2023
in Bitcoin, Blockchain, Business, Market
0
What is profit and loss (PnL) and how to calculate it
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter

PnL refers to the financial gain or loss from buying and selling cryptocurrencies. To calculate it, use various method like the FIFO, LIFO, YTD, and more!

Anyone who has dealt with trading in traditional finance is likely to be aware of profit and loss (PnL). But is PnL in the cryptocurrency world the same? The ability to comprehend terms like mark-to-market (MTM), realized PnL and unrealized PnL will help develop a better understanding of the cryptocurrency a person holds.

Without a well-defined process to get insight into profit or loss, cryptocurrency trading may be overwhelming, and traders may struggle with what they are doing. PnL reflects the change in the value of a trader’s positions over a specific period. 

Related articles

Bitcoin falls under $80K but four-month high in weekly BTC ETF inflows may curb selling

May 7, 2026
Altcoins Aren’t Going Anywhere — Even After Brutal Crashes: Arthur Hayes

Altcoins Aren’t Going Anywhere — Even After Brutal Crashes: Arthur Hayes

May 7, 2026

To gain a clearer understanding, let’s examine it in the context of cryptocurrency trading.

Understanding the basics of PnL

PnL in crypto refers to the calculation of the profit or loss made on a cryptocurrency investment or trading position. It is a metric used to evaluate the financial performance of a trader or investor in the crypto market.

To begin, here are some key terms in PnL terminology:

MTM

MTM refers to the process of valuing an asset or financial instrument based on its current market price or fair value. For example, in the context of crypto trading, if an investor holds a certain amount of Bitcoin (BTC), the value of that Bitcoin will fluctuate based on the current market price.

The general formula for calculating PnL is:

Suppose the MTM price for Ether (ETH) today is $1,970, while the MTM price yesterday was $1,950. In this case, the PnL is $20. It indicates a profit of $20. On the contrary, if the MTM price of ETH was $1,980 yesterday, it indicates a loss of $10.

Future value

Future value indicates the value of a digital coin at a future point in time.

For example, if a trader stakes Tron (TRX) worth $1,000 with a 4% yearly reward, how much will the person get back after a year? The answer is $1,040. At the time of staking, the present value will be $1,000, while the future value will be $1,040.

There will be a present value at the point when the trader stakes, but if the person considers the future as a whole, there could be countless future values.

There is a different way to use future value as well. Traders could ask how much to stake to get $1,040 in a year. If they know the present and future values, they could calculate the discount factor. The formula for calculating the discount factor is:

For the example given above, the discount factor will be:

Realized PnL

Realized PnL is calculated after traders have closed their position (sold the cryptocurrency they hold). Only the executed price of the orders is taken into account in realized PnL, and it has no direct relation to the mark price.

The mark price is the price at which a derivatives contract is valued based on the current market price of the underlying asset rather than the price at which the contract is being traded.

The formula for realized PnL is:

An example will help understand how to calculate realized PnL. If the entry price for buying X number of Polkadot (DOT) is $70 and the exit price is $105, the PnL for the period is $35, which refers to a profit of $35. However, if the closing price of the trade was $55, the PnL will be $15, but it will reflect a loss.

Unrealized PnL

Unrealized PnL refers to the profit or loss that is currently held in open positions but has not yet been realized through closing the position. The formula for determining unrealized PnL is:

Donald has purchased ETH contracts with an average entry price of $1,900. The mark price of ETH is currently $1,600. The unrealized PnL for Donald is the difference between the average entry price and the mark price.

Unrealized PnL = $1,900 – $1,600 = $300

How to do PnL calculation

To determine PnL in cryptocurrency, a trader needs to find the difference between the initial cost of acquiring a digital coin and the current market value of the same coin. Various methods to calculate PnL in cryptocurrency are as follows:

First-in, first-out (FIFO) method

The FIFO method requires the seller to use the price of the asset from when it was first bought. Here is the process to calculate PnL using the FIFO method:

1) To settle on the initial cost of the cryptocurrency, multiply the purchase price per unit by the number of units sold.

2) To determine the current market value of the asset disposed of, multiply the current market price per unit by the number of units sold.

3) To find the PnL, deduct the initial cost from the current market value.

Suppose Bob first bought 1 ETH at $1,100 and a few days later bought 1 ETH at $800. A year later, he sold 1 ETH at $1,200. As he had first bought ETH at $1,100, this price will be considered the initial cost. Applying the FIFO method, Bob could calculate PnL as follows:

Bob’s initial cost = (1 ETH x $1,100) = $1,100

Current market value = (1 ETH x $1,200) = $1,200

PnL = $1,200 – $1,100 = $100 (profit)

Last-in, first-out (LIFO) method

The LIFO method requires the seller to use the most recent purchase price of an asset in the calculation. The other aspects are just like the FIFO method. Here is the PnL using the LIFO method using the same example as above:

Bob’s initial cost = (1 ETH x $800) = $800

Current market value = (1 ETH x $1,200) = $1,200

PnL = $1,200 – $800 = $400 (profit)

Weighted average cost method

The weighted average cost method requires traders to determine the average cost of all units of a digital currency in their portfolio to arrive at the initial cost. Here are the steps to calculate PnL using this method:

1) Determine the total cost of all units of the cryptocurrency. Multiply the purchase price per unit for each transaction by the number of units of the asset and add the numbers.

2) To arrive at the weighted average cost per unit of the digital coin, divide the total cost of all units by the number of units.

3) Find the current market value of the cryptocurrency sold. Multiply the current market price per unit by the number of units sold.

4) To determine PnL, subtract the average cost per unit from the current market value.

Suppose Alice bought 1 BTC at $1,500 and a few days later bought 1 BTC at $2,000. She later sold 1 BTC at $2,400. Here is the PnL using the weighted average cost method:

Total cost = (1 BTC x $1,500) + (1 BTC x $2,000) = $3,500

Weighted average cost = $3,500 / 2 BTC = $1,750

Current market value = (1 BTC x $2,400) = $2,400

PnL = $2,400 – $1,750 = $650 (profit)

Profits/losses from opening and closing positions

Analyzing open and closed positions at regular intervals is an efficient way to monitor performance. An initial purchase a person makes in the market is an open position, while selling the cryptocurrency is termed closing the position. If a trader buys 10 DOT, it is an open position. When the trader sells those DOT, the position gets closed.

For example, if a trader bought 10 DOT for $70 and sold them for $100, the person’s PnL would be $30 ($100 – $70). Regular analysis of trades in line with open and closed positions helps a person trade in an organized manner.

Year-to-date (YTD) calculation

YTD is a way to measure the performance of investments made in cryptocurrency from the start of the year to the current date. Investors who regularly buy and hold cryptocurrencies for years can know their unrealized profits with a YTD calculation. The trader just needs to calculate the value of the portfolio at the beginning and end of a year and compare these values. This could be a calendar year or fiscal year, depending on the person’s preference or requirements.

Suppose someone holds $1,000 worth of Cardano (ADA) on Jan. 1, 2022 and $1,600 of ADA on Jan. 1, 2023. In this case, $600 is the unrealized profit. Unrealized profit denotes returns that haven’t yet been converted into cash or cash equivalents such as term deposits.

Transaction-based calculation

A transaction-based calculation requires a person to calculate the PnL for each specific transaction. For instance, if a person bought 1 ETH for $1,000 and sold it for $1,500, the PnL for the transaction would be $500 profit ($1,500 – $1,000). If the number of transactions is small and a trader needs to calculate PnL for these transactions separately, a transaction-based calculation is an ideal method.

Percentage profit

The percentage profit method reflects the PnL as a percentage of the initial cost. An example will help understand better. Suppose a trader buys 1 Binance Coin (BNB) for $300 and sells it for $390. In this case, the person’s PnL would be $90 profit ($390 – $300). To arrive at the percentage profit, the trader needs to divide the PnL by the purchase price and multiply the amount by 100 (($90 / $300) x 100). This amounts to 30%.

However, please note that these are simplified examples that do not factor in variables such as taxes, trading fees paid to the platform, market volatility, etc. In real-life situations, a trader will need to take into account the specific context when calculating PnL.

How to calculate PnL of perpetual contracts

Perpetual contracts are a type of futures contract with no fixed settlement time or expiration date. Traders can hold their long or short positions indefinitely, provided they have sufficient maintenance margin, which is the minimal amount of collateral needed for maintaining open trading positions.

When traders calculate the PnL of perpetual contracts in cryptocurrencies, they need to calculate both realized and unrealized PnL and then add them to determine the total PnL.

Here are the steps to measure PnL of perpetual contracts:

Again, this is a simplified way to explain the concept of calculating PnL for crypto perpetual contracts. When calculating total PnL in real life, a trader needs to take into account factors like trading fees and funding rates.

PnL calculations and associated tools

Understanding crypto PnL helps people know if their cryptocurrency portfolio is in profit or in loss. Gaining an insight into key parameters like cost basis, quantity, price of each trade and profitability of the portfolio helps traders assess the efficiency of their strategies and make necessary adjustments. Precise knowledge of the funds they have made or lost on a particular trade influences their upcoming trading decisions for the better.

Apart from PnL calculations, there are tools like specialized spreadsheets and automated trading bots that could help traders analyze their performances and zero in on profitable trading opportunities, regardless of their experience.

Read Entire Article
Tags: CointelegraphCryptocurrencyInvestmentMining Bitcoin
Share76Tweet47

Related Posts

Bitcoin falls under $80K but four-month high in weekly BTC ETF inflows may curb selling

by Jon Hartney
May 7, 2026
0

Bitcoin hit resistance at $82,800, triggering a drop below $80,000, but a $1105 billion weekly inflow into spot BTC ETFs...

Altcoins Aren’t Going Anywhere — Even After Brutal Crashes: Arthur Hayes

Altcoins Aren’t Going Anywhere — Even After Brutal Crashes: Arthur Hayes

by Jon Hartney
May 7, 2026
0

Privacy concerns tied to artificial intelligence may be one of the strongest cases yet for owning certain altcoins or cryptocurrencies...

Bitcoin Faces Massive Long Liquidation Imbalance As $15 Billion Sits Below Price

Bitcoin Faces Massive Long Liquidation Imbalance As $15 Billion Sits Below Price

by Jon Hartney
May 7, 2026
0

Bitcoin is approaching a critical juncture as market data reveals a massive long liquidation imbalance, with an estimated $15 billion...

Kalshi see valuation double to $22B after $1B raise as prediction markets boom

by Jon Hartney
May 7, 2026
0

Fresh capital from top Wall Street and Silicon Valley firms signals increasing confidence in regulated event trading and retail prediction...

Samson Mow defends Strategy selling portions of its Bitcoin treasury

by Jon Hartney
May 7, 2026
0

The Bitcoin advocate spoke up after Michael Saylor signaled that the company might sell some BTC, a major departure from...

Load More
  • Trending
  • Comments
  • Latest
SUI Price Hits All-Time High – But Questions About Valuation Remain

SUI Price Hits All-Time High – But Questions About Valuation Remain

October 17, 2024
Solana Targets $160 Resistance As TVL Hits New Yearly Highs

Solana Targets $160 Resistance As TVL Hits New Yearly Highs

October 17, 2024
Dogecoin Holder Base Falls To 6-Month Low, But Analyst Believes DOGE Price Is Headed To $10

Dogecoin Holder Base Falls To 6-Month Low, But Analyst Believes DOGE Price Is Headed To $10

October 17, 2024
Bitcoin Price Holds Firm: Can It Power Toward New Gains?

Bitcoin Price Holds Firm: Can It Power Toward New Gains?

October 17, 2024
All aboard! Elon Musk’s Vegas Loop now taking Dogecoin payments

All aboard! Elon Musk’s Vegas Loop now taking Dogecoin payments

0
Crypto owners banned from working on US Government crypto policies

Crypto owners banned from working on US Government crypto policies

0
Korean startup Uprise lost $20M shorting LUNC

Korean startup Uprise lost $20M shorting LUNC

0
Ethereum testnet Merge mostly successful — ‘Hiccups will not delay the Merge.’

Ethereum testnet Merge mostly successful — ‘Hiccups will not delay the Merge.’

0

Bitcoin falls under $80K but four-month high in weekly BTC ETF inflows may curb selling

May 7, 2026
Altcoins Aren’t Going Anywhere — Even After Brutal Crashes: Arthur Hayes

Altcoins Aren’t Going Anywhere — Even After Brutal Crashes: Arthur Hayes

May 7, 2026
Bitcoin Faces Massive Long Liquidation Imbalance As $15 Billion Sits Below Price

Bitcoin Faces Massive Long Liquidation Imbalance As $15 Billion Sits Below Price

May 7, 2026

Kalshi see valuation double to $22B after $1B raise as prediction markets boom

May 7, 2026

XBT.Market

This website is an automated news feed powered by the Nebulome cloud system. The site is made possible by YYC TECH Consulting and Alberta Digital Mining Company. As a team with major crypto and bitcoin enthusiasm, we have curated major sources of news, trading and financial data to bring you, our viewer, an unbiased source of truth.

Recent Posts

  • Bitcoin falls under $80K but four-month high in weekly BTC ETF inflows may curb selling May 7, 2026
  • Altcoins Aren’t Going Anywhere — Even After Brutal Crashes: Arthur Hayes May 7, 2026
  • Bitcoin Faces Massive Long Liquidation Imbalance As $15 Billion Sits Below Price May 7, 2026
  • Kalshi see valuation double to $22B after $1B raise as prediction markets boom May 7, 2026
  • Samson Mow defends Strategy selling portions of its Bitcoin treasury May 7, 2026

News Categories

  • Bitcoin
  • Blockchain
  • Business
  • Market
  • Uncategorized

Tags

bitcoinMagzine Cointelegraph Cryptocurrency insidebitcoins Investment Mining Bitcoin NewsBTC

Quicklinks

  • Home
  • Coins MarketCap
  • Crypto Exchanges
  • Crypto Calculator
  • Top Gainers and Loser
  • News
  • Contact Us

© 2022 Xbt.Market - Powered by YYC Tech Consulting & ADMCO.

No Result
View All Result
  • Home
  • Coins MarketCap
  • Crypto Exchanges
  • Crypto Calculator
  • Top Gainers and Loser
  • News
  • Contact Us

© 2022 Xbt.Market by Nebulome.

  • Steakhouse EURCV Morpho VaultSteakhouse EURCV Morpho Vault(STEAKEURCV)$0.000000-100.00%
  • FibSwap DEXFibSwap DEX(FIBO)$0.0084659.90%
  • TruFin Staked APTTruFin Staked APT(TRUAPT)$8.020.00%
  • bitcoinBitcoin(BTC)$84,372.003.58%
  • ethereumEthereum(ETH)$1,885.365.68%
  • tetherTether(USDT)$1.000.00%
  • rippleXRP(XRP)$2.186.84%
  • USDEXUSDEX(USDEX)$1.07-0.53%
  • binancecoinBNB(BNB)$617.995.03%
  • Wrapped SOLWrapped SOL(SOL)$143.66-2.32%
  • solanaSolana(SOL)$128.974.23%
  • usd-coinUSDC(USDC)$1.000.01%
  • dogecoinDogecoin(DOGE)$0.1736117.78%
  • cardanoCardano(ADA)$0.687.61%
  • tronTRON(TRX)$0.2342340.79%
  • staked-etherLido Staked Ether(STETH)$1,884.065.48%
  • Gaj FinanceGaj Finance(GAJ)$0.0059271.46%
  • Content BitcoinContent Bitcoin(CTB)$24.482.55%
  • USD OneUSD One(USD1)$1.000.11%
  • wrapped-bitcoinWrapped Bitcoin(WBTC)$84,309.003.84%
  • ToncoinToncoin(TON)$4.157.66%
  • UGOLD Inc.UGOLD Inc.(UGOLD)$3,042.460.08%
  • ParkcoinParkcoin(KPK)$1.101.76%
  • chainlinkChainlink(LINK)$14.027.76%
  • leo-tokenLEO Token(LEO)$9.211.17%
  • stellarStellar(XLM)$0.2743585.70%
  • avalanche-2Avalanche(AVAX)$19.647.71%
  • Wrapped stETHWrapped stETH(WSTETH)$2,256.395.40%
  • USDSUSDS(USDS)$1.00-0.01%
  • SuiSui(SUI)$2.429.03%
  • shiba-inuShiba Inu(SHIB)$0.0000137.71%
  • hedera-hashgraphHedera(HBAR)$0.17284810.00%
  • Yay StakeStone EtherYay StakeStone Ether(YAYSTONE)$2,671.07-2.84%
  • polkadotPolkadot(DOT)$4.257.34%
  • litecoinLitecoin(LTC)$85.265.04%
  • bitcoin-cashBitcoin Cash(BCH)$314.248.23%
  • mantra-daoMANTRA(OM)$6.301.94%
  • Pundi AIFXPundi AIFX(PUNDIAI)$16.000.00%
  • PengPeng(PENG)$0.60-13.59%
  • Bitget TokenBitget Token(BGB)$4.664.95%
  • wethWETH(WETH)$1,884.285.66%
  • Ethena USDeEthena USDe(USDE)$1.00-0.04%
  • Binance Bridged USDT (BNB Smart Chain)Binance Bridged USDT (BNB Smart Chain)(BSC-USD)$1.00-0.18%
  • MurasakiMurasaki(MURA)$4.23-13.71%
  • Black PhoenixBlack Phoenix(BPX)$3.351,000.00%
  • Pi NetworkPi Network(PI)$0.714.53%
  • HyperliquidHyperliquid(HYPE)$13.729.80%
  • Wrapped eETHWrapped eETH(WEETH)$2,003.675.53%
  • WhiteBIT CoinWhiteBIT Coin(WBT)$28.350.76%
  • moneroMonero(XMR)$217.841.31%
  • Zypto TokenZypto Token(ZYPTO)$0.037139-3.47%
  • uniswapUniswap(UNI)$6.217.66%
  • AptosAptos(APT)$5.395.79%
  • PepePepe(PEPE)$0.00000811.37%
  • daiDai(DAI)$1.00-0.01%
  • nearNEAR Protocol(NEAR)$2.635.26%
  • XT.comXT.com(XT)$3.08-1.65%
  • Layer One XLayer One X(L1X)$23.35454.66%
  • sUSDSsUSDS(SUSDS)$1.050.05%
  • okbOKB(OKB)$48.762.12%
  • gatechain-tokenGate(GT)$22.883.58%
  • crypto-com-chainCronos(CRO)$0.1015853.46%
  • Coinbase Wrapped BTCCoinbase Wrapped BTC(CBBTC)$84,342.003.68%
  • MantleMantle(MNT)$0.814.44%
  • Tokenize XchangeTokenize Xchange(TKX)$33.460.86%
  • internet-computerInternet Computer(ICP)$5.517.85%
  • ethereum-classicEthereum Classic(ETC)$17.074.81%
  • OndoOndo(ONDO)$0.817.47%
  • First Digital USDFirst Digital USD(FDUSD)$1.00-0.12%
  • aaveAave(AAVE)$168.6110.19%
  • Aerarium FiAerarium Fi(AERA)$7.14-13.11%
  • Ethena Staked USDeEthena Staked USDe(SUSDE)$1.170.30%
  • BSCEXBSCEX(BSCX)$237.310.49%
  • Official TrumpOfficial Trump(TRUMP)$10.354.36%
  • vechainVeChain(VET)$0.0233636.04%
  • cosmosCosmos Hub(ATOM)$4.538.09%
  • fantomFantom(FTM)$0.70-1.56%
  • BittensorBittensor(TAO)$231.277.72%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • EthenaEthena(ENA)$0.3616194.37%
  • render-tokenRender(RENDER)$3.6710.91%
  • filecoinFilecoin(FIL)$2.927.72%
  • CelestiaCelestia(TIA)$3.181.75%
  • Black AgnusBlack Agnus(FTW)$0.000183423.46%
  • Lombard Staked BTCLombard Staked BTC(LBTC)$84,465.004.02%
  • POL (ex-MATIC)POL (ex-MATIC)(POL)$0.2063993.13%
  • KaspaKaspa(KAS)$0.0682239.38%
  • STAUSTAU(STAU)$0.17397910.95%
  • FasttokenFasttoken(FTN)$4.020.01%
  • Sonic (prev. FTM)Sonic (prev. FTM)(S)$0.5212.98%
  • algorandAlgorand(ALGO)$0.1896979.65%
  • ORA CoinORA Coin(ORA)$4.885.92%
  • ArbitrumArbitrum(ARB)$0.3397526.22%
  • Arbitrum Bridged USDT (Arbitrum)Arbitrum Bridged USDT (Arbitrum)(USDT)$1.000.07%
  • GGTKNGGTKN(GGTKN)$0.1121180.75%
  • kucoin-sharesKuCoin(KCS)$11.231.19%
  • Solv Protocol SolvBTCSolv Protocol SolvBTC(SOLVBTC)$84,076.003.32%
  • fetch-aiArtificial Superintelligence Alliance(FET)$0.4856098.68%
  • optimismOptimism(OP)$0.776.43%
  • StoryStory(IP)$4.75-2.68%