PSX TrackerKNOW MORE. EARN MORE.Log in

Calculator

FIFO versus average cost

Enter two buy lots, oldest first, and a partial sale. The tool closes the oldest shares first, then shows the gain you would get from a single blended price. The difference is why a broker’s average and a FIFO ledger disagree.

By PSX Tracker · Updated 23 September 2026

Start freeAll tools

What is being compared

FIFO asks which shares you sold. Average cost asks what the remaining pile cost in total and spreads that across every share. On a partial sale those are different gains. Neither figure files your tax. They explain a personal book.

The default shape of the example in the FIFO guide is 100 shares at 200, then 100 at 170, selling 50 at 225. Oldest-lot cost is 200, so the FIFO gain is driven by 225 minus 200. The blended price is lower, so the average-cost gain is larger. Type those numbers if you want to see it move.

Common questions

Which method does NCCPL use?

Do not take a calculator’s method as the filing method. Ask the official material and your adviser. This page only shows that the two personal methods diverge.

Can I enter more than two lots?

This public form takes two. The app’s ledger handles a longer stack, including transfers and same-day buys.

What if I sell more than I bought?

The tool stops. It will not invent a cost for shares that were not in the lots.

Read the guides →