Selling a home is more than just a real estate milestone; it’s a significant tax event. Under Internal Revenue Code Section 121, many homeowners can exclude a substantial portion of their gain from taxable income. However, once you introduce home offices, rental units, or frequent moves, the math gets complicated.
This guide breaks down how to determine eligibility, calculate your gain, and navigate the tricky waters of “mixed-use” properties.
1. Is It Truly Your “Main Home”?
The Section 121 exclusion applies only to the sale of your primary residence. It does not apply to second homes, vacation properties, or strictly rental real estate.
Gathering the Facts
To substantiate that a property is your main home, the IRS looks at the “facts and circumstances.” Key indicators include:
- Time: Where did you spend the majority of your year?
- Documentation: Where are you registered to vote? What address is on your driver’s license? Where do you receive your mail?
- Business Use: Was any part of the home used for business or rental purposes?
Pro Tip: While the IRS doesn’t always ask for it upfront, keeping records of utility bills and voter registration can be a lifesaver if your return is ever questioned.
2. The Eligibility Tests: Ownership and Use
To qualify for the full exclusion—$250,000 for single filers or $500,000 for married couples filing jointly—you must pass two primary tests within the five-year period leading up to the sale:
- Ownership Test: You owned the home for at least two years.
- Use Test: You lived in the home as your primary residence for at least two years (24 months).
The 24 months do not need to be consecutive. For married couples, only one spouse needs to meet the ownership test, but both must meet the use test to claim the full $500,000.
Partial Exclusions
If you sell your home before hitting the two-year mark due to a change in employment, health issues, or “unforeseen circumstances,” you may qualify for a partial exclusion. Additionally, service members may suspend the five-year test period for up to 10 years during qualified official extended duty.
3. Calculating Your Gain
Before you can exclude gain, you have to know what that gain actually is. The basic formula is:
{Gain} = {Amount Realized} – {Adjusted Basis}
- Amount Realized: The selling price minus selling expenses (commissions, legal fees, advertising).
- Adjusted Basis: Your original purchase price plus the cost of capital improvements (e.g., a new roof, a remodeled kitchen).
Note: Routine repairs, like painting or fixing a leak, do not increase your basis.
4. The “Mixed-Use” Complication
A home can be both a residence and a place of business. If you rented out a room or used a portion of the home as an office, you must account for Depreciation Recapture.
What is Depreciation Recapture?
If you claimed (or were entitled to claim) depreciation on a home office or rental unit after May 6, 1997, that amount is not eligible for the Section 121 exclusion. This portion of the gain is taxed as unrecaptured Section 1250 gain at a maximum rate of 25%.
Separate Structures vs. Interior Space
- Inside the home (e.g., Home Office): You generally don’t need to allocate the gain between business and personal use. However, you must still recapture the depreciation.
- Separate structures (e.g., a detached rental cottage): You must treat this as two separate sales. You allocate the basis, sales price, and expenses between the personal residence and the business portion—typically based on square footage or Fair Market Value (FMV).
| Portion of Gain | Reporting Form | Max Tax Rate |
| Depreciation Recapture | Form 4797, Part III | 25% |
| Gain up to Exclusion Limit | Generally not reported | N/A (Excluded) |
| Gain above Exclusion Limit | Schedule D & Form 8949 | 0%, 15%, or 20% |
5. Understanding Depreciation Recapture for Home Office Use
If you’ve utilized a portion of your home as a dedicated office, you may have benefited from annual depreciation deductions to offset your business income. However, the IRS essentially views this as a “loan” on your property’s basis that must be repaid upon sale.
Even if the home office is located within the same structure as your living area, any depreciation claimed (or “allowable”) after May 6, 1997, is subject to depreciation recapture. This specific portion of your profit is excluded from the Section 121 tax-free limit and is instead taxed as unrecaptured Section 1250 gain at a maximum rate of 25%. It is a common pitfall for taxpayers to assume the entire gain is tax-free; in reality, you must “give back” the tax benefit of those prior depreciation deductions before the remaining exclusion is applied.
6. Summary of the Allocation Process
When dealing with a multi-unit property (like a duplex where you live in one half), follow these steps to ensure compliance:
- Allocate the Basis: Divide the original cost and improvements between the two units (e.g., 50/50 if they are equal size).
- Allocate the Sales Price: Split the final sale price based on FMV at the time of sale.
- Allocate Selling Expenses: Divide commissions and fees using the same ratio as the sales price.
- Calculate Separately: Determine the gain/loss for the rental portion (reported on Form 4797) and the personal portion (reported on Schedule D).
A Final Word on Losses
While we all hope for a gain, sometimes homes sell for less than their basis. Losses on the sale of a personal residence are not deductible. However, if the home was partially used for rental purposes, the loss attributable to the rental portion may be deductible.
Navigating Section 121 requires a clear timeline and meticulous records. If you are preparing to sell a property that has served multiple purposes, gathering your contractor invoices and settlement statements now is the best way to ensure you don’t pay a penny more in tax than necessary.
