To qualify for the IRS home sale gain exclusion ($250,000 for single filers, $500,000 for married joint filers), homeowners must meet the Ownership Test and the Use Test. Both tests require that during the five-year period ending on the date of the sale, you owned and lived in the home as your main residence for at least two years (or 730 days, which do not need to be consecutive).
Qualifying for the exclusion
You're eligible for the exclusion if you have owned and used your home as your main home for a period aggregating at least two years out of the five years prior to its date of sale. You can meet the ownership and use tests during different 2-year periods.
Ownership test — You must own the home for at least two of the last five years, ending on the date of sale. Use test — You must live in/use the home as your main home for at least two of the last five years, ending on the date of sale.
To prove the IRS's 2-out-of-5-year rule, you must show you owned and lived in your home as your primary residence for at least 24 months (two years) (not necessarily consecutive) within the five years before the sale, using documentation like utility bills, driver's license, voter registration, tax returns, bank statements, and mail all showing the home address. This proves you meet both the ownership and use tests for excluding capital gains on the sale, requiring documentation to back up your claim of residency during that period.
Which tests for the exclusion of gain on the sale of a home may a servicemember suspend if the servicemember is on qualified official extended duty? They may not suspend either the ownership test or the use test. They may suspend the use test, but not the ownership test.
What are the two rules of the exclusion on capital gains for homeowners? That the exclusion can be used once every two years and that the house was occupied by the seller two of the last five years. Beginning basis + capital improvements - exclusions, credits, or other amounts received.
Subject to the other provisions of section 121, a taxpayer may exclude gain only if, during the 5-year period ending on the date of the sale or exchange, the taxpayer owned and used the property as the taxpayer's principal residence for periods aggregating 2 years or more.
Determine whether you meet the residence requirement.
If you owned the home and used it as your residence for at least 24 months of the previous 5 years, you meet the residence requirement.
Exceptions to the 2-Out-of-5-Year Rule
If you became physically or mentally unable to care for yourself and spent time in a facility, that time still counts towards your 2-year residence requirements. The facility must be licensed to care for people with the same condition.
Thankfully, that rule is long gone. The modern answer is reassuring: the current tax rules (specifically the Section 121 exclusion) do not set a timeline requirement for buying your replacement home. To understand why, we need to focus entirely on the home you sold and the two rules that truly matter.
Unlike business expenses, you can't simply write off a kitchen renovation or new flooring on your current tax return. However, this doesn't mean your improvements provide no tax benefit. They may impact your capital gains tax when selling the home.
To qualify for the capital gains tax exemption on a home sale, you generally must have owned and lived in the home as your primary residence for at least two of the past five years—and not used the exemption on another home in the last two years.
Overview of IRC §121 and §1031
§121: Excludes up to $250,000 (or $500,000 if married filing jointly) of gain from the sale of a principal residence. §1031: Allows deferral (not exclusion) of capital gains tax if investment or business property is exchanged for like-kind property.
Want to lower the tax bill on the sale of your home? There are ways to reduce what you owe or avoid taxes on the sale of your property. If you own and have lived in your home for two of the last five years, you can exclude up to $250,000 ($500,000 for married people filing jointly) of the gain from taxes.
Live in the house for at least 2 years
One of the most effective ways to avoid capital gains taxes is by meeting the ownership and use test. If you live in your home for at least 2 out of the 5 years before selling, you may qualify for the Section 121 exclusion.
You can claim exemption from withholding only if both the following situations apply: For the prior year, you had a right to a refund of all federal income tax withheld because you had no tax liability. For the current year, you expect a refund of all federal income tax withheld because you expect to have no liability.
To avoid capital gains tax on a rental property, you can use a 1031 Exchange to defer taxes by reinvesting in a similar property, convert the rental to your primary residence for the Section 121 exclusion, offset gains with losses (tax-loss harvesting), donate the property to charity via a Charitable Remainder Trust, or hold it until death (stepping up the basis). Each strategy has specific rules and timelines, with 1031 exchanges requiring you to find a replacement property within 45 days and close within 180 days.
If you sell your house and don't buy another, you receive the cash proceeds (after paying off the mortgage and selling costs) and can use it for renting, moving in with family, buying a new place later, or other investments, but you may owe capital gains tax on profits above the $250k (single) / $500k (married) exclusion if you don't meet the ownership/use tests (2 of last 5 years as main home). You'll need a new living arrangement, like renting temporarily, and must handle the logistics of moving your belongings and finances.
The IRS uses a few factors to verify your primary residence. For example, the IRS will check the address on your tax return, your voter registration, and where your home is compared to your employer. If the IRS can't verify that a home is your primary residence, it may ask for supporting documents or other proof.
One of the simplest yet most expensive mistakes is misunderstanding the difference between short-term and long-term capital gains taxes. Short-term gains — profits from assets held less than a year — are subject to typical income tax rates, which can reach 37% for high earners.
To prove the IRS's 2-out-of-5-year rule, you must show you owned and lived in your home as your primary residence for at least 24 months (two years) (not necessarily consecutive) within the five years before the sale, using documentation like utility bills, driver's license, voter registration, tax returns, bank statements, and mail all showing the home address. This proves you meet both the ownership and use tests for excluding capital gains on the sale, requiring documentation to back up your claim of residency during that period.
The $250,000/$500,000 home sale tax exclusion - If you have a capital gain from the sale of your main home, you may qualify to exclude up to $250,000 of that gain from your income, or up to $500,000 of that gain if you file a joint return with your spouse.
The main residence exemption 6-year rule in Australia allows you to treat a former home as your main residence for up to 6 years after you stop living in it and start generating income (like renting it out), potentially avoiding Capital Gains Tax (CGT) when you sell. This rule offers flexibility, as the 6-year limit only applies to income-producing periods, and the "clock" resets if you move back in, allowing for multiple periods of exemption.