Enter your figures
The fields start with sample figures. Replace them with your own; nothing is sent to a server.
Loading the calculator…
Reviewed by CA Nikhil Gupta · Last reviewed 11 October 2026
List your buys and sells and see your average cost, the realised gain under two cost methods and the unrealised profit at a price you enter.
The fields start with sample figures. Replace them with your own; nothing is sent to a server.
Loading the calculator…
The weighted-average acquisition cost is based on the quantity and cost of successive buys, including explicitly entered allowable purchase expenses. When a sale occurs, average cost is deducted from net sale proceeds to show an indicative weighted-average result. The second view tracks the oldest available purchase lots and computes a FIFO economic gain. Keeping both avoids conflating a broker portfolio average with the tax lot evidence required for certain dematerialised securities.
Enter transactions chronologically using ISO dates (YYYY-MM-DD), with one transaction per CSV line. Quantity must be positive, and a sale cannot exceed available shares in the model. The example purchases 100 shares at ₹250 and 50 shares at ₹300, then sells 80 at ₹330. One-time fees are allocated to the purchase or sale shown; the engine does not silently insert taxes or other transaction charges.
This is not a final capital-gains return working. The model does not determine the holding period, wash sales, bonus/split effects, rights allotments, off-market transfers, FIFO rules for every account type, STT deductibility, tax slab, loss set-off, or grandfathering. Reconcile the rows against the securities ledger, demat statement, broker tax-P&L report and relevant law.
The remaining shares and capital employed can be combined with a manually entered current price to produce unrealised appreciation or depreciation. A gain is not cash until the position is actually sold. Brokerage, exchange charges and STT must be classified according to their actual nature; do not automatically include every trade levy in tax cost.
Keep contract notes, broker turnover statement, ledger entries, demat movement records, corporate-action notifications, acquisition documents and supporting price data. If a trade history is incomplete or includes transactions through multiple demat accounts, do not use the resulting average as a final tax figure.
Consider two purchases: 100 shares at ₹250 with ₹25 allowable buy expense, and 50 shares at ₹300 with ₹15 allowable expense. The combined book cost is ₹40,040 for 150 shares, an economic average of approximately ₹266.93 per share. A sale of 80 at ₹330, less ₹20 disposal expenses, generates net proceeds of ₹26,380. Under the pooled average method the realised P&L is approximately ₹5,025.33; under FIFO, the earliest 80 units have a cost of ₹20,020 and the economic gain is ₹6,360. The unsold 70 shares have an illustrative market value of ₹22,750 at a manually assumed quote of ₹325. These differences explain why separate basis methods must not be interchanged.
The batch model assumes one security, one account, valid chronological trades and no share splits, bonuses, transfers, short selling, derivatives or corporate reorganisations. Broker statements sometimes present average cost for display even where the tax basis uses particular lot rules. Validate demat FIFO cost, timing of transfer and special grandfathering evidence separately. An incorrect fee classification is another common source of large returns discrepancies; securities transaction tax has its own capital-gains treatment.
Ensure opening holdings equal the closing balance of the prior broker statement. Match each contract-note number to trade dates and share quantities. Reconstruct corporate actions before beginning the calculation, verify whether fees are deductible, compare realised gains with tax P&L, and match unsold holdings with the depository closing balance. Keep the working as supporting evidence rather than treating the current quote as proof of profit.
No. Average cost pools purchase amounts; FIFO allocates earlier lots to later sales.
No. It calculates economic gains and a tax-relevant lot illustration, not tax due.
Convert it into the listed CSV columns and check the field mapping before importing.
Reconstruct the correct historical quantities and acquisition costs separately.
Rates and rules were checked against these sources on 11 October 2026. Notifications and standards change; confirm on the official site before you file, book or advise.
Educational working tool. Results follow the scope and assumptions above and the figures you enter; they are not tax, audit, legal or accounting advice. Tax and accounting treatment depends on facts and on the law or standard in force for the relevant period, so verify the official source or consult a professional before you rely on a result.
Background, worked examples and the rules behind these numbers.