Metrics

What is Calculation Method (FIFO vs Average)?

Reviewed by Karthikeyan Anbarasan (Founder, TradeLyser) · Updated 19 Oct 2026 · Editorial policy

DefinitionThe calculation method is the rule a journal or broker uses to match buys with sells when you add to or trim a position, usually FIFO (first in, first out) or average cost. Buying 100 shares at ₹1,000 and 100 at ₹1,100, then selling 100 at ₹1,150, books +₹15,000 under FIFO but +₹10,000 under average cost, although the total profit once you are flat is the same.
Formula
Realised P&L on a sale = (Sell price − Matched cost per unit) × Quantity sold, where matched cost depends on the method
Example
FIFO: (₹1,150 − ₹1,000) × 100 = +₹15,000. Average cost: (₹1,150 − ₹1,050) × 100 = +₹10,000

The three matching methods

MethodWhich buy a sale is matched withWhere it is used
FIFOThe oldest open lot firstIndian tax computation for demat shares; most broker P&L reports
Average costA blended price across all open lotsMany trading platforms’ position view; helpful when scaling often
LIFOThe most recent lot firstRare for Indian retail reporting; mostly seen elsewhere

Worked example: a stock bought twice

Illustrative NSE large-cap. Buy 100 shares at ₹1,000, then 100 more at ₹1,100. Sell 100 at ₹1,150. Later, sell the remaining 100 at ₹1,150 as well.

MethodFirst sale realisedCost of remaining 100Total once flat
FIFO+₹15,000₹1,100 each+₹20,000
Average cost+₹10,000₹1,050 each+₹20,000
LIFO+₹5,000₹1,000 each+₹20,000

The method only moves profit between the trade you closed and the position you still hold. Once the position is flat, every method arrives at +₹20,000. What changes is the realised P&L in a given month or year, the open P&L you see on screen, and, for shares, which purchase date sets the holding period. That last point has real money attached for investors: if the ₹1,000 lot was bought more than 12 months before the sale and the ₹1,100 lot less than 12 months before, FIFO makes the first sale a long-term gain while average cost would mix the two. Intraday traders who are flat every evening see the same daily total under any method, but their trade-level statistics still differ.

Worked example: scaling in and out of an option

Illustrative Nifty option, lot of 65. Buy 1 lot at ₹100, add 1 lot at ₹80, sell 1 lot at ₹95, sell the last lot at ₹110. Before charges, the position makes ₹1,625 in total. How that is split into “trades” depends on the method.

FIFO

1 win, 1 loss
First lot ₹100 → ₹95: −₹325. Second lot ₹80 → ₹110: +₹1,950. Total +₹1,625; win rate 50%.
Matched lot by lot

Average cost

2 wins
Average entry ₹90. Exit at ₹95: +₹325. Exit at ₹110: +₹1,300. Total +₹1,625; win rate 100%.
Matched to the blended price

Whole position

1 win
Treated as one trade from first entry to final exit: +₹1,625; win rate 100% on one trade.
Matched by position

Same fills, same money, three different win rates and average-win figures. For anyone who scales in and out, the calculation method shapes almost every statistic in the journal, so it matters more than it first appears. Average cost is the most flattering when you add to losing positions: every add lowers the blended price, so a later exit above that price records a win even though the first lot was underwater. Reviewing by whole position, from first entry to flat, removes that effect and shows whether adding was part of the plan or a way of avoiding a stop.

Choosing and keeping a method

  1. Check what your broker’s P&L and tax statements use, and default to the same method so the totals reconcile.
  2. Pick one method per account at the start of the financial year and write it in your trading plan.
  3. If you scale in and out often, also review results by whole position, so averaging into losers cannot hide as several small wins.
  4. If you must change method, do it at the start of a new financial year and note the date in the journal, so earlier and later statistics are not compared directly.
  5. Once a month, reconcile the journal’s realised P&L with the broker’s P&L statement for the same dates. If they differ, check the method, the charges and any positions carried over from the previous month before assuming an error.
  6. For positions carried across a month or year end, note the open quantity and its cost under your method, since that cost decides the P&L booked on the eventual exit.
For Indian traders
For shares held in a demat account, Indian tax practice applies first-in, first-out (from a 1998 CBDT circular), which also decides which purchase date counts for the 12-month long-term holding test. Broker tax P&L statements generally follow FIFO. Confirm the treatment of your own case with a tax professional.

Reference guide

ContextValueReading
One method, used for the whole financial yearComparableMonth-to-month numbers and broker statements reconcile cleanly
Method switched mid-yearBroken comparisonWin rate and average win change without any change in trading
Journal method differs from the broker’s tax statementExpect gapsTotals agree once flat; individual trades and open P&L will not

Questions

What is FIFO in trading P&L?

First in, first out: each sale is matched with the oldest open purchase. Buying at ₹1,000 and then ₹1,100 and selling at ₹1,150 books the profit against the ₹1,000 lot.

Which calculation method is used for tax in India?

FIFO for shares held in a demat account, and broker tax statements generally follow it. Confirm your situation with a tax professional.

Does the calculation method change my total profit?

No. Once the position is fully closed, every method gives the same total. It changes the realised P&L in each period, the open P&L and per-trade statistics such as win rate.

FIFO or average cost: which is better for a trading journal?

Match your broker’s statements for reconciliation, which usually means FIFO. If you scale in and out a lot, also review results by whole position so the method does not flatter your win rate.

Related terms