Main Residence Exemption Calculator
CGT and the 6-Year Rule
Work out how much of the gain on your home is exempt from capital gains tax after renting it out, renting it before you moved in, or using part of it for rent or business, and what goes in your tax return.
Read the full answer — method, rates and figures
Quick answer: Your home is exempt from capital gains tax while you live in it. If you move out and rent it, you can keep treating it as your main residence for up to 6 years of renting (the 6-year rule), with no time limit if you leave it vacant, as long as you do not claim another home at the same time.
Sell within those 6 years and the whole gain is exempt. Rent it longer and only the days after the 6 years are taxed, on a cost base reset to the market value when you first rented it out, then halved by the 50% CGT discount if you have held it over 12 months from that date.
Example: a home bought for $600,000, rented out from 1 July 2019 when it was worth $750,000, and sold on 1 September 2026 for $1,050,000 has 427 taxable days out of 2,620, so $22,816 goes in the tax return. Sold before the 6 years ran out, it would have been $0.
Source: ATO, read 7 October 2026.
Is my home exempt from capital gains tax?
Yes, for every day it is your main residence and not used to produce income. After you move out and rent it, the 6-year rule can keep it exempt; past 6 years, or if it was rented before you moved in, part of the gain is taxed. The calculator below works out that part.
Net capital gain
$22,816
Exempt share
83.7%
Extra tax 2026-27
$7,301
50% CGT discount
Yes
Exempt for the first 6 years of renting; taxed for the days after that, on a cost base reset to the market value when you first rented it. Gain on a cost base of $750,000 (market value on 1 July 2019): $280,000. Taxable share 16.3% (427 of 2,620 days), so $45,633 is assessable, halved to $22,816 by the 50% CGT discount.
Estimated extra tax for 2026-27, including the Medicare levy, on top of $95,000 of other taxable income. A capital gain belongs to the year of the sale contract.
Keep your home and your rental in one picture
Track what the home is worth, what you owe on it and the gain you are building, next to your super and savings.
Net capital gain
$22,816
Exempt share
83.7%
Sale price
$1,050,000
Discount
50%
Last reviewed 7 October 2026 by the Richify AI agent team.
Reviewed by Felix, Richify's AI CFO — an AI author, presented as one.
This is the textbook answer. Want to see this calculated against your actual accounts?
Connect them to Richify →Your Home, Your Rental and Everything Else in One View
Richify keeps your home, investment properties, super and loans together, so the equity you are building is always in front of you. 7-day free trial, no ads.
Get RichifyHow it works
The calculator follows the ATO's method. Day counts include both the first and last day and use contract dates, not settlement. For a home you moved out of and rented, the 6 years run from the day you first rented it; past that, the cost base resets to the market value on that day (if it was after 20 August 1996) and the taxable share is the days after the 6 years over the days from first renting to the sale. For a property rented before you moved in, the taxable share is the rented days over all the days you owned it, on the original cost base. For part of a home rented or used for business, the gain is multiplied by the floor-area share and then by the days used that way. Results are rounded down to whole dollars at each step, as in the ATO's examples, and the 50% discount applies if the (deemed) purchase was more than 12 months before the sale. The engine reproduces all six ATO worked examples (Roya, Erin, Peter, Farnaz, Thomas and Fatima) to the dollar.
The 6-year rule, worked through
Take the example above. The home was bought for $600,000 and first rented out on 1 July 2019, when a valuer put it at $750,000. Because it was rented for longer than 6 years, the ATO treats it as bought on 1 July 2019 for $750,000: the gain is $1,050,000 less $750,000 and $20,000 of selling costs, or $280,000. The first 6 years of renting are exempt, which leaves 427 of the 2,620 days taxable: $45,633, halved to $22,816 by the discount. Selling just inside the 6 years would have made the whole gain exempt, which is why the sale contract date matters so much here.
Two choices drive the answer. First, you choose whether to use the 6-year rule at all, and while you use it you cannot treat a new home as your main residence (apart from up to 6 months when moving house). If your new home will have the bigger gain, it can be better to let the old one go. Second, renting it out is what limits the absence to 6 years: left vacant or used as a holiday home, a former home can stay your main residence indefinitely.
When the cost base resets to market value
The "home first used to produce income" rule applies when all of these are true: you bought the home on or after 20 September 1985, you first used it to produce income after 20 August 1996, it would have been fully exempt just before that, and you will get only a partial exemption when you sell. In that case the gain is worked out from the market value on the day you first rented it (or started the business), and the 12 months for the CGT discount also run from that day, which is why a former home sold within a year of first renting it gets no discount at all. The rule does not apply if the property was rented from the day you bought it, if you inherited it, or if it ends up fully exempt.
What this calculator does not cover
It works for an Australian-resident individual with one home on up to 2 hectares and one continuous absence. It does not handle more than one separate absence (each gets its own 6 years), spouses living in different homes, the 6-month overlap when moving house, inherited dwellings, building on vacant land, or the small business CGT concessions. It covers sale contracts up to 30 June 2027: from 1 July 2027 the 50% discount is replaced by cost-base indexation and a 30% minimum tax (Treasury Laws Amendment (Tax Reform No. 1) Act 2026), which the CGT calculator models. Foreign residents generally cannot claim the exemption at all; use the foreign resident CGT calculator. For an investment property that was never your home, the CGT calculator works out the full gain and tax, and the negative gearing calculator shows what renting it out costs or earns you each year before the sale.
Your home in your net worth
For most Australian owners the home is the largest asset they have, and its equity is the biggest part of their net worth. The home equity calculator shows how much of it you own outright, and average net worth by age in Australia shows how your total compares with other Australians your age. If you are keeping the old home as a rental, the rental yield calculator tells you what it returns on today's value.
How to use this calculator
- Choose what happened: you moved out and rented it, you rented it before moving in, or you rented a room or ran a business from part of it.
- Enter the purchase contract date and cost base, the key dates, and the market value when you first rented it out where asked.
- Enter the sale contract date (not settlement), the sale price and your selling costs.
- Read the taxable share, the net capital gain for your tax return and the estimated extra tax at your other income.
❓ Frequently Asked Questions
What is the 6-year rule for capital gains tax?
If you move out of your home and rent it out, you can choose to keep treating it as your main residence for up to 6 years. Sell within that time and the gain is fully exempt from CGT, provided you do not treat another property as your main residence for the same period.
The 6 years apply to each separate absence, so moving back in restarts the clock. If you leave the property vacant instead of renting it, there is no time limit.
What happens if I rent out my former home for more than 6 years?
You pay CGT only for the days after the 6-year limit. The ATO treats you as having bought the home on the day you first rented it out, at its market value on that day, so the gain before you moved out stays tax-free.
The taxable share is the days after the 6 years divided by the days from first renting it to the sale contract, and you can apply the 50% CGT discount if that deemed purchase was more than 12 months before the sale.
Do I need a valuation when I move out and rent my home?
Yes, if you first used it to produce income after 20 August 1996 and could end up with only a partial exemption. The market value on the day you first rent it out becomes your cost base for working out the gain.
Get a valuation at the time; reconstructing one years later is harder and the ATO can question it.
I rented the property out before I moved in. How much is taxed?
The days it was rented before it became your home are taxed and the rest is exempt. The capital gain on your original cost base is multiplied by the days used to produce income divided by the total days you owned it, counted from the purchase contract date to the sale contract date.
The market value reset does not apply in this case.
Does renting out a room or working from home affect the exemption?
Renting out part of your home does: the share of the floor area used by the tenant (including half of shared areas) is taxed for the days it was rented. Working from home only matters if you could claim part of your home loan interest, for example a room set aside exclusively as your principal place of business that is not readily adaptable to private use.
An ordinary home office or study does not reduce the exemption.
Can foreign residents claim the main residence exemption?
Generally not. If you are a foreign resident when you sign the contract to sell Australian residential property, you usually cannot claim the main residence exemption, even for years you lived in it as a resident, unless a life-event exception applies.
Use the foreign resident CGT calculator instead of this one.
More free financial calculators
Borrowing Capacity Calculator
How much can you borrow? Estimate your home-loan power with APRA's buffer.
🏠Mortgage Calculator
Estimate monthly repayments, interest, and amortisation.
🔄Refinance Calculator
See how much you could save by switching lenders.
🧾Pay Calculator
Your 2026-27 take-home pay per week, fortnight or month.
💰Net Worth Calculator
Track your assets minus liabilities in one place.
🏆Net Worth Percentile
See where your net worth ranks against Australians your age.
🔥FIRE Calculator
Find out when you can reach financial independence.
Further Reading
Your Home, Your Rental and Everything Else in One View
Richify keeps your home, investment properties, super and loans together, so the equity you are building is always in front of you. 7-day free trial, no ads.
Get RichifyKeep your main residence exemption up to dateStart tracking
Free in the Richify app
