THE HOME SALE WORKFLOW
Calculate gain before testing the exclusion
Follow the same four steps for both examples. Choose A or B to change the overview facts; both examples remain visible in the detailed sections.
| Fact | Example A | Example B |
|---|---|---|
| Sale price and selling costs | $740,000 sale price and $40,000 costs | Same |
| Original basis | $400,000 | Same |
| Use | Always main home | Main home, then rental from July 2023 until sale |
| Depreciation | $0 | $30,000 allowed or allowable |
Both hypothetical single owners bought a house on January 1, 2020 for $400,000, with no other acquisition costs, improvements or basis adjustments except B’s rental depreciation. Each sells on June 30, 2026 for $740,000 and pays $40,000 eligible selling costs. Neither used a home-sale exclusion in the prior two years. A always uses the house as a main home. B uses it as a main home through June 30, 2023, then rents the whole property until sale and has $30,000 depreciation allowed or allowable. No separate business structure, earlier rental use or other exception is assumed.
Explore an example
Subtract selling expenses, then recover supported adjusted basis.
Check each test separately before you look at the dollar limit.
Apply limits to the right portion of gain and the actual use dates.
Reconcile forms, taxable gain and the owner’s cash separately.
Step 1
Calculate proceeds and adjusted basis
Subtract selling expenses, then recover supported adjusted basis.
Start with supported sale proceeds less eligible selling expenses. Subtract adjusted basis: purchase cost plus qualifying capital improvements and other increases, less depreciation and other required reductions. Depreciation allowed or allowable matters even if a deduction was missed.
IRS Topic 701, sale of your home · IRS Publication 523, selling your home
EXAMPLE A
Always a main home
Net sale proceeds are $740,000 − $40,000 = $700,000. With $400,000 adjusted basis, A has $300,000 gain.
Result and next action
Carry $300,000 gain to the eligibility review.
EXAMPLE B
Rented after last main-home use
The same net proceeds are $700,000. Rental depreciation reduces B’s basis to $400,000 − $30,000 = $370,000, producing $330,000 gain.
Result and next action
Carry the $330,000 gain and $30,000 depreciation separately.
IRS Topic 701, sale of your home · IRS Publication 523, selling your home
Step 2
Test ownership, use and prior exclusions
Check each test separately before you look at the dollar limit.
Section 121 generally requires ownership and main-home use for two of the five years before sale, not necessarily the same two years. You generally cannot use the exclusion if you used it on another home during the two-year period ending on this sale. Do not assume reaching one occupancy milestone meets every test.
IRS Topic 701, sale of your home · IRS Publication 523, selling your home · IRC 121(a), (b)(2) through (5), (c), (d)(2), (d)(6), (d)(9) and (d)(10), main-home gain exclusion · Reg. 1.121-1(c), ownership and use · Reg. 1.121-3, reduced exclusion
EXAMPLE A
Always a main home
A owned and used the property as a main home for at least two years in the five-year period before sale and has not used the exclusion on another home during the two-year period ending on this sale.
Result and next action
A’s single-filer ceiling is $250,000; it is not a deduction from gross price.
EXAMPLE B
Rented after last main-home use
B’s June 30, 2026 closing leaves exactly 730 days of main-home use in the five-year period. Closing on July 1 would leave 729 days and fail the ordinary use test on these facts. Confirm the last qualifying closing date before renting out a former home. A reduced exclusion or special rule requires separate facts.
Result and next action
B meets the same basic tests; now test the rental-related limits.
IRS Topic 701, sale of your home · IRS Publication 523, selling your home · IRC 121(a), (b)(2) through (5), (c), (d)(2), (d)(6), (d)(9) and (d)(10), main-home gain exclusion · Reg. 1.121-1(c), ownership and use · Reg. 1.121-3, reduced exclusion
Step 3
Separate depreciation and nonqualified use
Apply limits to the right portion of gain and the actual use dates.
First identify gain attributable to post-May 6, 1997 depreciation. It cannot be excluded. Then examine nonqualified use and its exceptions for the remaining gain. Nonqualified use generally concerns non-main-home periods after 2008 during ownership, with statutory exceptions.
IRS Publication 523, selling your home · IRC 121(a), (b)(2) through (5), (c), (d)(2), (d)(6), (d)(9) and (d)(10), main-home gain exclusion
EXAMPLE A
Always a main home
There is no rental depreciation or nonqualified use in A. Subtract the $250,000 exclusion from $300,000 gain.
Result and next action
A excludes $250,000 and has $50,000 taxable gain.
EXAMPLE B
Rented after last main-home use
B cannot exclude the $30,000 depreciation component. The rental period after B’s last main-home use, within the five-year lookback, is excepted from nonqualified use. The remaining $300,000 gain can use the $250,000 ceiling.
Result and next action
B excludes $250,000 and has $80,000 taxable gain: $30,000 depreciation-related plus $50,000 remaining gain.
IRS Publication 523, selling your home · IRC 121(a), (b)(2) through (5), (c), (d)(2), (d)(6), (d)(9) and (d)(10), main-home gain exclusion
Step 4
Report the result and retain evidence
Reconcile forms, taxable gain and the owner’s cash separately.
The exclusion applies to eligible gain, not the sale price or cash proceeds. Retain purchase and sale closing statements, qualifying improvement evidence, occupancy history for each spouse, depreciation schedules and any Form 1099-S.
Taxable home-sale gain may also be subject to the 3.8% net investment income tax. The modified adjusted gross income thresholds are $250,000 for joint returns and qualifying surviving spouses, $125,000 for married filing separately, and $200,000 for other individual filers. Gain excluded under section 121 does not enter this tax calculation.
IRS Topic 701, sale of your home · IRS Publication 523, selling your home · IRC 1411(a), (b) and (c), net investment income tax
EXAMPLE A
Always a main home
A has taxable gain and must report the sale. The $700,000 net sale proceeds are cash before any mortgage payoff and taxes, not A’s taxable income.
Result and next action
Retain closing and occupancy records; determine the actual tax and any estimated payment.
EXAMPLE B
Rented after last main-home use
B reports the mixed-use history and taxable gain using the applicable sale forms. Depreciation-related gain can be subject to the unrecaptured section 1250 rate rules, generally up to 25%, rather than automatically being ordinary income or taxed at a flat 25%.
Result and next action
Retain depreciation and use dates; calculate tax by the actual return’s rates and reporting instructions.
A and B each use a $250,000 exclusion, but A has $50,000 taxable gain and B has $80,000. B’s additional taxable $30,000 reflects rental depreciation. Neither taxable amount equals the tax bill or the cash left after a mortgage payoff.
IRS Topic 701, sale of your home · IRS Publication 523, selling your home · IRC 1411(a), (b) and (c), net investment income tax
What to gather
- Purchase and sale closing statements plus improvement records.
- Ownership and occupancy dates for each spouse; prior home-sale exclusion history.
- Rental or business depreciation schedules and any Form 1099-S.
Questions readers ask
Must I buy another home to use the exclusion?
No. Reinvestment is not the current section 121 test. Keep the replacement-home decision separate from the exclusion review. Eligibility instead turns on the sale's facts, including the ownership and use tests, prior exclusion history and any applicable exception. Reinvesting the proceeds does not cure an ineligible sale, and keeping the proceeds in cash does not by itself disqualify an otherwise eligible sale.
Can reporting still be required?
Yes, including when Form 1099-S is issued or gain is not fully excludable. Gather the closing statement and any Form 1099-S even when you expect no taxable gain. The reporting review establishes whether the sale must appear on the return and how the exclusion is reflected. For mixed-use property, retain the allocation and depreciation workpapers so the reported result can be reconciled to the gross proceeds provided to the IRS.
I acquired this home in a 1031 exchange. Can I use the exclusion?
Not for a sale during the five-year period beginning with the exchange acquisition, even if you meet the two-year use test. After that period, the other section 121 requirements still apply. Prior rental use may leave some gain taxable, and depreciation is not excluded.
Official sources
- IRS Topic 701, sale of your home
General $250,000/$500,000 limits, ownership and use tests, reporting and no replacement-home requirement.
- IRS Publication 523, selling your home
Adjusted gain, partial exclusions, depreciation and timing exceptions for nonqualified use.
- IRC 121(a), (b)(2) through (5), (c), (d)(2), (d)(6), (d)(9) and (d)(10), main-home gain exclusion
Section 121 sets the exclusion limits, ownership and use tests, prior-sale restriction, nonqualified-use rules and special exceptions. Regulations 1.121-1 and 1.121-3 explain the use test and reduced exclusion.
- Reg. 1.121-1(c), ownership and use
The ordinary use test requires two years, measured as 24 full months or 730 days. B has 730 days at the June 30 closing and 729 at July 1 on these facts.
- Reg. 1.121-3, reduced exclusion
Work, health and unforeseen circumstances can support a reduced exclusion when their conditions are met.
- IRC 1411(a), (b) and (c), net investment income tax
Taxable home-sale gain may also be subject to the 3.8% net investment income tax. The modified adjusted gross income thresholds are $250,000 for joint returns and qualifying surviving spouses, $125,000 for married filing separately, and $200,000 for other individual filers. Gain excluded under section 121 does not enter this tax calculation.
Where to go next
Rental reporting and restricted losses
Reconcile rental deductions and depreciation that affect the sale calculation.
Stock sales, basis and capital-gain planning
Coordinate any taxable sale gain with other gains, losses and payment planning.
1031 Exchanges
Check the exchange rules and the five-year home-sale restriction before moving into replacement property.
Cost Segregation
If the home was rented, see how faster depreciation can affect the gain on a later sale.
Tax-Loss Harvesting and the Wash-Sale Rule
See when allowable investment losses can offset taxable capital gains and when wash-sale rules postpone the loss.
How BackForty can help
BackForty can calculate the gain, evaluate a supported exclusion and prepare the required reporting. Bring both closing statements, improvement records, occupancy dates and any rental or home-business history. If the sale is still being planned, we can compare the effect of proposed timing and identify missing documentation before the closing makes the transaction final.
