Profit & Loss (PnL) and How It's Calculated | English | Margex (2024)

Profit and Loss (PnL) indicator reflects the Profit or Loss of a deal. PnL is calculated in two different ways, depending on if a deal is still currently open or if it has already been closed.

The Profit and Loss (PnL) indicator reflects the Profit or Loss of a position. PnL is calculated in 2 different ways, depending on if a position is still currently Open or if it has already been Closed.

For open positions Realized PnL and Unrealized PnL are taken into account. The potential profit from the deal refers to the Unrealized PnL. Realized PNL in open positions equals already paid commissions (i.e. trade fees and funding).

  • PnL is not reflected in Open positions. It can be calculated by adding Realized PnL + Unrealized PnL.

  • Calculating Unrealized PnL of Open positions requires the use of AskPrice and BidPrice, while calculating Unrealized PnL of Closed positions requires the use of ClosePrice

Below are examples of calculation of PnL in Open Positions and in Closed Positions:

How to calculate PnL in OPEN positions

The general formulas for calculating PnL of OPEN positions:

PnL = Realized PnL + Unrealized PnL, where:

Note: CloseOrderCommision is NOT included in PnL until a position has been closed.

EXAMPLE:

Parameters of an OPEN position: Open position, 0.01 BTC, opened with Limit order, Long, OpenOrderCommission, Funding charged 1 time.

First, we must calculate the OpenOrderCommission and Funding:

  • OpenOrderCommission = SizeBTC * MakerFee = 0.01 * 0.001 = 0.00001

  • Funding = SizeBTC * FundingFee = 0.01 * 0.005 = 0.00005

Next, must calculate Realized PnL and Unrealized PnL:

  • Realized PnL = -OpenOrderCommission - Funding = -0.00001 - 0.00005 = -0.00006

  • Unrealized PnL (Long) = SizeUSD * Multiplier * (BidPrice- OpenPrice)/OpenPrice = 100 * 0.0001 * (11000 - 10000)/10000 = 0.001

Finally, the last step is calculating PnL. As seen above, the Realized PnL= -0.00006 and Unrealized PnL = 0.001;

  • PnL(Long) = Realized PnL + Unrealized PnL = -0.00006 + 0.001 = 0.00094

How to calculate PnL in CLOSED positions

The general formulas for calculating PnL of CLOSED positions:

PnL = Realized PnL + Unrealized PnL - CloseOrderCommission , where:

  • Unrealized PnL (Long) = SizeUSD * Multiplier * (ClosePrice- OpenPrice)/OpenPrice

  • Unrealized PnL (Short) = SizeUSD * Multiplier * (OpenPrice - ClosePrice)/OpenPrice

  • CloseOrderCommission = TakerFee * SizeBTC

EXAMPLE:

Parameters of a CLOSED position: Сlosed position, opened at Market, closed with a Market order, Long, Funding charged 1 time

Firstly, we must calculate the CloseOrderCommission:

  • CloseOrderCommission = TakerFee * SizeBTC = 0.06% * 0.01 = 0.000006 Secondly, we must calculate Realized PnL and Unrealized PnL:

  • Realized PnL = -OpenOrderCommission - Funding = -(TakerFee * SizeBTC) - Funding = 0.06% * 0.01 - 0.005 = -0.000006 - 0.00005 = -0.000056

  • Unrealized PnL (Long) = SizeUSD * Multiplier * (ClosePrice - OpenPrice)/OpenPrice = 100 * 0.0001 * (11000-10000)/10000 = 0.001

FInally, the last step is calculating PnL. As seen above, the Unrealized PnL = 0.001 and Realized PnL = -0.000056:

  • PnL = Realized PnL + Unrealized PnL - CloseOrderCommission = -0.000056 + 0.001 - 0.000006 = 0.000938

The PnL for open and closed positions is calculated automatically and reflected in the Open Positions and Position History sections of the Trade page for your convenience.

Last updated

Profit & Loss (PnL) and How It's Calculated | English | Margex (2024)

FAQs

Profit & Loss (PnL) and How It's Calculated | English | Margex? ›

The general formulas for calculating PnL of CLOSED positions: PnL = Realized PnL + Unrealized PnL - CloseOrderCommission , where: Unrealized PnL (Long) = SizeUSD * Multiplier * (ClosePrice- OpenPrice)/OpenPrice. Unrealized PnL (Short) = SizeUSD * Multiplier * (OpenPrice - ClosePrice)/OpenPrice.

How do you calculate profit in P&L? ›

Profit = Selling Price - Cost Price. Similarly, in the case of loss, the cost price is more than the planned selling price.

How is PnL calculated? ›

PNL is calculated using a formula similar to traditional financial markets: PNL = (Exit Price × Number of Sold Units) – (Entry Price × Number of Bought Units) – Fees. Therefore, the PNL is $9 900. The WhiteBIT calculator can also help calculate PNL based on the trading position, asset price, and amount.

What is profit & loss and identify the formula? ›

When the selling price and cost price are known, the basic formulas for calculating the profit and loss are: Profit = Selling price (S.P.) - Cost price (C.P.) Loss = Cost price (C.P.) - Selling price (S.P.)

How is the daily P&L calculated? ›

Daily P&L calculation: (current price - prior day's closing price) x (total number of outstanding shares) plus New Position calculation for all new positions.

What is the accounting formula for P&L? ›

To calculate accounting profit and see whether your company made money or lost money, you will use a special formula: Total Revenues–Total Expenses = Accounting Profit/Loss.

What are the five key components to a P&L statement? ›

Key Components of a Profit and Loss Statement
  • Revenue. Revenue is reported first on a profit and loss statement and includes all income items. ...
  • Cost of Goods Sold (COGS) A company that sells goods must figure the cost of goods sold (COGS). ...
  • Expenses. ...
  • Gross Profit. ...
  • Net Profit or Loss.
Apr 25, 2024

What are the main formulas for profit and loss? ›

Now let us learn some tricks or formulas to solve maths problems based on gain and loss.
  • Profit, P = SP – CP; SP>CP.
  • Loss, L = CP – SP; CP>SP.
  • P% = (P/CP) x 100.
  • L% = (L/CP) x 100.
  • SP = {(100 + P%)/100} x CP.
  • SP = {(100 – L%)/100} x CP.
  • CP = {100/(100 + P%)} x SP.
  • CP = {100/(100 – L%)} x SP.

How are profits and losses calculated? ›

Your business's profit (or loss) is the difference between your income and your expenses. Put simply, that's the amount that comes into your business and the amount that goes out.

What is the most commonly used measure of profitability? ›

Gross profit margin, also known as gross margin, is one of the most widely used profitability ratios. Gross profit is the difference between sales revenue and the costs related to the products sold, the aforementioned COGS.

How do you read a P&L for dummies? ›

The report is divided into two sections: income and expenses. Your total revenue is listed under the income section, while your total expenses are listed under the expenses section. To calculate your net profit or loss, simply subtract your total expenses from your total revenue.

How to learn P&L? ›

How to Read a Profit and Loss Statement
  1. Net Sales (or Revenue) – Cost of Sales (or Cost of Goods Sold) = Gross Profit (or Gross Margin)
  2. Gross Profit – Operating Expenses = Net Operating Profit.
  3. Net Operating Profit + Other Income – Other Expenses = Net Profit Before Taxes.

How do I do a profit and loss statement? ›

How to Write a Profit and Loss Statement
  1. Step 1 – Track Your Revenue. ...
  2. Step 2 – Determine the Cost of Sales. ...
  3. Step 3 – Figure Out Your Gross Profit. ...
  4. Step 4 – Add Up Your Overhead. ...
  5. Step 5 – Calculate Your Operating Income. ...
  6. Step 6 – Adjust for Other Income and/or Expenses. ...
  7. Step 7 – Net Profit: The Bottom Line.

What is the formula for calculating profit? ›

The basic formula that is used to calculate the profit in a business or a financial transaction, is: Profit = Selling Price - Cost Price. Here, Cost Price (CP) of a product is the cost at which it was originally bought. Selling Price (SP) of the product is the cost at which it was is sold.

How do you calculate profit margin in P&L? ›

To determine the net profit margin, we need to divide the net income (or net profit) by the total revenue for the year and then multiply by 100. To determine the operating profit margin, we need to divide the operating income or operating profit by the company's total revenue and then multiply by 100.

How do you calculate profit on an income sheet? ›

Gross profit appears on a company's income statement and is calculated by subtracting the cost of goods sold (COGS) from revenue or sales. Gross profit should not be confused with operating profit. Operating profit is calculated by subtracting operating expenses from gross profit.

Where is profit shown in profit and loss account? ›

It begins with an entry for revenue, known as the top line, and subtracts the costs of doing business, including the cost of goods sold, operating expenses, tax expenses, and interest expenses. The difference, known as the bottom line, is net income, also referred to as profit or earnings.

Top Articles
Latest Posts
Article information

Author: Edwin Metz

Last Updated:

Views: 5697

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Edwin Metz

Birthday: 1997-04-16

Address: 51593 Leanne Light, Kuphalmouth, DE 50012-5183

Phone: +639107620957

Job: Corporate Banking Technician

Hobby: Reading, scrapbook, role-playing games, Fishing, Fishing, Scuba diving, Beekeeping

Introduction: My name is Edwin Metz, I am a fair, energetic, helpful, brave, outstanding, nice, helpful person who loves writing and wants to share my knowledge and understanding with you.