← Back to all posts
Tax & CGT5 min read

How to Calculate ASX Capital Gains Tax (FIFO) & Claim the 50% CGT Discount

Every time you sell ASX-listed shares for more—or less—than their cost base, you trigger a CGT event (Event A1) under Australian Taxation Office (ATO) rules. While a single buy and sell is easy to tally in a spreadsheet, multi-year partial buys, dividend reinvestments, and brokerage fees quickly make manual tax tracking error-prone.

This guide walks through the core mechanics Australian retail investors need to understand before lodging their annual tax return, including a worked First-In, First-Out (FIFO) calculation you can automate in seconds with the MyASX CGT Calculator.


1. The Core ASX Capital Gains Formula

For each parcel of shares you dispose of, the ATO calculates your capital gain or loss using:

Capital Gain / (Loss) = Capital Proceeds − Cost Base

Where:

Because MyASX's CGT Calculator tracks unit brokerage on both buy and sell confirmations from CommSec, NABTrade, and ShareWealth CSV exports, brokerage is deducted accurately even when a large buy parcel is sold across several partial sell orders.


2. Parcel Matching: FIFO vs Specific Identification

When you buy shares in the same ASX company at different prices across multiple dates and later sell only part of your holding, you must determine which buy parcel was sold.

The ATO generally permits two methods for listed shares:

  1. First-In, First-Out (FIFO): Assumes the earliest shares you purchased are the first shares sold. It is simple, consistent, easy to audit, and the standard baseline used by MyASX CGT Calculator.
  2. Specific Identification: Allows you to nominate exact parcels sold (for example, choosing a parcel held over 12 months or one with a higher cost base) provided you keep clear contemporaneous records linking each sale to the nominated parcel.

Worked FIFO Example (ASX: BHP)

Suppose an Australian investor executes the following trades in BHP:

DateActionUnitsPrice (AUD)BrokerageParcel Notes
10 Jan 2025BUY100$40.00$19.95Parcel A — Cost base $4,019.95 ($40.20/unit)
15 Aug 2025BUY100$44.00$19.95Parcel B — Cost base $4,419.95 ($44.20/unit)
20 Feb 2026SELL150$48.00$19.95Net proceeds $7,180.05 ($47.87/unit)

Under FIFO matching:

Remaining open holding: 50 units from Parcel B with a cost base of $2,209.98.


3. Applying the ATO 12-Month 50% CGT Discount

For Australian tax-resident individuals (and trusts, with super funds receiving a 33.33% discount), shares held for more than 12 months (strictly > 365 days, excluding both the acquisition and disposal dates under ATO rules) qualify for the 50% CGT discount.

Crucial Ordering Rule: Losses Offset Gross Gains Before the Discount

If you have capital losses (from the current financial year or carried forward from prior years), the ATO requires this exact sequence:

  1. Sum all gross capital gains for the financial year (1 July – 30 June).
  2. Subtract capital losses (typically offsetting non-discounted short-term gains first to preserve the 50% discount on eligible long-term gains).
  3. Apply the 50% discount only to the remaining eligible long-term gain.
  4. Add the resulting Net Capital Gain to your assessable income, where it is taxed at your marginal income tax rate.
Scenario (Assume $1,000 Gain, 32% Marginal Rate incl. Medicare)Held ≤ 12 MonthsHeld > 12 Months (50% Discount)
Gross Capital Gain$1,000.00$1,000.00
Taxable (Net) Capital Gain$1,000.00$500.00
Estimated Tax Payable (at 32%)$320.00$160.00
After-Tax Profit Retained$680.00$840.00

This is also why the MyASX Strategy Backtester tracks holding periods across simulated trades—frequent short-term trading must outperform buy-and-hold enough to overcome both brokerage costs and the loss of the 50% CGT discount.


4. How to Automate Your ASX CGT Schedule in 60 Seconds

  1. Export your transaction history CSV from your broker (CommSec guide | NABTrade guide).
  2. Open the MyASX CGT Calculator and drop your CSV file into the upload zone (by default, parsing and FIFO matching run 100% locally in your browser).
  3. Inspect matched buy/sell parcels grouped by Australian Financial Year (FY2024-25, FY2025-26, FY2026-27), verify holding days for the 50% discount, and review your open holdings cost base.

Next Steps

Test Before You Invest & Automate Your Tax

Simulate rules-based trading plans on 2,000+ ASX stocks with our free Strategy Backtester, scan daily signals, or automate your end-of-year tax reporting with our CGT Calculator.