The calendar decides whether the biggest tax break in homeownership applies to your sale — and it is a different question from how the gain itself is figured. This page is general information, not tax advice — talk to a CPA or tax professional on your own facts, especially on a large gain. The companion guides are Do you pay capital gains tax when you sell your house?, which works the tax itself, and What counts as a capital improvement?, which covers the work that adds to basis before the exclusion is figured.
Under Section 121 of the Internal Revenue Code — explained by the IRS in Topic No. 701 and Publication 523, Selling Your Home — a homeowner who passes both tests can exclude up to $250,000 of gain from income, or up to $500,000 on a married filing jointly return. The two tests are an ownership test and a use test, and each one asks for at least 2 years. Pass both, and gain up to the limit is not taxed at all; miss both, and the exclusion is generally lost — with one important exception, the partial exclusion covered in section 4 below.
Both tests are measured over the 5 years ending on the date of the sale. The ownership test requires that you owned the home for at least 2 years — 24 months, or 730 days — during that window. The use test requires that you lived in the home as your main home for at least 2 years during the same window. The 2 years in each test do not have to be consecutive: periods of ownership and periods of use can be built up in pieces across the 5 years, and the ownership period and the use period do not have to overlap — a home you rented out first and moved into later, or lived in first and rented out later, can still pass, as long as each total reaches 2 years inside the window.
Time away does not automatically break the use clock. Short temporary absences — vacations and similar brief trips — generally still count as use, even if the home is rented out during the absence. What ends use is genuinely moving your main home somewhere else: the test is about where your main home actually was during the window.
Married filing jointly raises the ceiling to $500,000 only when three conditions all hold: at least one spouse meets the ownership test, both spouses meet the use test, and neither spouse used the Section 121 exclusion on another sale within the prior 2 years. That last condition is also a general bar for every filer: the exclusion generally cannot be used if you used it on another home sale during the 2-year period before this sale. It is the condition most often missed in planning, because it follows each spouse separately — a prior sale by one spouse can hold the joint amount down even when the home being sold was owned and lived in together for years.
Selling before both tests are met does not always mean the exclusion is zero. If the main reason for the sale is a change in place of employment, health, or unforeseen circumstances, a partial (prorated) exclusion can still apply. The partial amount is a fraction of the full $250,000 or $500,000 limit, figured from the shortest qualifying period — how long you owned the home, how long you used it as your main home, and how long it has been since you last used the exclusion — so a qualifying sale a year into the tests can still shelter up to roughly half the full amount, applied against the actual gain. Publication 523 works the fraction and the qualifying circumstances in detail; because the reason for the sale is what carries the claim, keep the record of it — the job letter, the medical recommendation — with the sale file.
Waiting longer changes only whether the exclusion is available; it does not change the gain the exclusion is applied to. The gain is still the amount realized minus your adjusted basis — what you paid, adjusted over the years you owned the home — and that arithmetic runs the same in year one as in year five, as Do you pay capital gains tax when you sell your house? works in full. Whatever gain sits above the exclusion is taxable, generally at long-term capital gains rates when the home was owned more than a year. So the real planning question is two numbers, not one date: how large the gain has grown, and whether the calendar has unlocked the exclusion that covers it.
In Homeowner HQ, the monthly value and equity line shows what your home is worth and how much equity you hold as both move, and your agent's fix-my-facts record keeps the facts behind those numbers corrected — so the size of a likely gain is visible well before a listing date is chosen, not discovered at the closing table. The timing decision itself belongs to you, made with your own agent and your tax professional on your full facts: whether to sell now, wait out the tests, or sell under the partial-exclusion rules is a decision about your move, your gain and your taxes together.
Homeowners are always free. Realtors pay $25/mo all-in and lenders pay $25/mo to join, at any book size, with no setup fee; messaging is included free for realtors, and lender messaging is $100/mo ($125/mo total for lenders). A lender-sponsored realtor joins for $0.
Two years of use, alongside two years of ownership. Under Section 121 of the Internal Revenue Code (IRS Topic No. 701 and Publication 523), you can exclude up to $250,000 of gain when you sell your main home — up to $500,000 if you are married filing jointly and meet the joint conditions — if, during the 5 years ending on the sale date, you owned the home for at least 2 years and lived in it as your main home for at least 2 years. The 2 years do not have to be consecutive, the ownership and use periods do not have to overlap, and short temporary absences such as vacations generally still count as use. The exclusion generally cannot be used if you used it on another sale within the prior 2 years. This page is general information, not tax advice.
The exclusion is not always lost in full. If the main reason for the sale is a change in place of employment, health, or unforeseen circumstances, a partial, prorated exclusion can apply: the full $250,000 or $500,000 limit is multiplied by a fraction based on the shortest qualifying period — the time you owned the home, the time you used it as your main home, and the time since you last used the exclusion. Gain above whatever exclusion applies is taxable, generally at long-term capital gains rates if you owned the home more than a year. If none of the qualifying reasons fits, selling before both tests are met generally means no exclusion on that sale — which is why the sale date is worth checking against the 5-year window before a listing goes live.
For the full $500,000 on a married filing jointly return, the conditions are split: at least one spouse must meet the ownership test — owning the home for at least 2 of the 5 years before the sale — both spouses must meet the use test — living in the home as their main home for at least 2 of those 5 years — and neither spouse may have used the Section 121 exclusion on another sale within the prior 2 years. If any one of the three fails, the full joint amount is not available on that sale, even if the home was owned and lived in jointly for most of the window. A spouse's recent prior sale is the condition couples most often miss, because the 2-year bar follows each spouse separately.