How selling your home can affect your taxes
Clients sell homes every day, but few understand the tax rules that apply. Many assume any gain is tax-free and any loss is deductible. As a tax professional, you know the truth is more nuanced. The tax result depends on whether the property is the client’s main home, whether the client qualifies for the §121 exclusion, and whether the sale produces a gain or a loss.
Focus on a personal residence
Section 121 applies to the sale of a taxpayer’s main home. That is the first and most important filter. A personal residence is not the same as a rental property, second home or even a vacation property. Remember that a client may own multiple properties, but only one can be the primary residence at a time.
When a client sells a home, start with the facts. Ask where the client lived most of the time. Confirm whether the property was used for business purposes, including any rental activity. These questions help determine whether the property qualifies as a main home and help identify reporting issues.
Review the client’s claim that the home they sold was their main home. For example, review where the client received mail or registered to vote. These details may not be required for every return, but they support the conclusion and strengthen your file if questions arise.
Do not overlook mixed use. A home can be a main residence and still have business use or rental activity. Clients may have rented out a room or used part of the home as an office. Additionally, the client may have rented the home for a period before selling. These facts can affect the basis, gain calculations, and the amount of gain from a sale that qualifies for exclusion. The most common mistake is assuming that because a property was “a home,” the entire gain qualifies. Your job is to confirm the type of home and how it was used.
Evaluate if the gain is eligible for exclusion
Once you confirm the sale involves a personal residence, evaluate whether the gain qualifies for exclusion. If the client is eligible, they may exclude up to $250,000 of gain from income. Married couples filing jointly may exclude up to $500,000 if they meet the requirements.
To qualify for the full exclusion, the client must generally meet two tests during the five-year period ending on the sale date.
- Ownership test: The client must have owned the home for at least two years.
- Use test: The client must have lived in the home as their primary residence for at least two years.
The two years do not need to be continuous. However, they must total at least 24 months. Create a timeline if needed. When dates are close, you can avoid costly errors by confirming the move-in, move-out, and sale dates.
For married couples filing jointly, confirm the details. The larger exclusion generally requires that both spouses meet the use test and that at least one meets the ownership test. Make sure to confirm neither spouse claimed the exclusion on another home sale during the two years before this sale. Clients often forget prior moves, especially when they have bought and sold multiple times in a short period.
Calculate gain before applying the exclusion
You cannot apply the exclusion until you calculate the gain. Start with the amount realized. That generally includes the sales price minus selling expenses, such as real estate commissions and fees. Then subtract the home’s adjusted basis.
Adjusted basis begins with the purchase price. It generally increases for qualifying improvements. It may decrease for depreciation claimed for business use. Clients often do not track improvements or do not know what qualifies. Ask for settlement statements, contractor invoices and proof of capital improvements the client made to the property during their ownership.
If the home has any business or rental use, basis and gain calculations may require additional care. If so, any depreciation claimed can reduce the basis and change how gain is reported. The gain attributable to depreciation taken after May 6, 1997, for periods of business or rental use is not eligible for exclusion under §121 and must be recaptured as unrecaptured §1250 gain, taxed at a maximum rate of 25%.
Example: How §121 exclusion works
A single taxpayer bought a home in 2016 for $300,000 and lived in it as their main home through the date of sale in 2026. During ownership, the taxpayer spent $50,000 on qualifying capital improvements, such as a kitchen remodel and a new roof. The taxpayer sold the home in 2026 for $520,000 and paid $30,000 in selling expenses, including real estate commissions.
Step 1: Calculate adjusted basis.
$300,000 purchase price + $50,000 improvements = $350,000 adjusted basis
Step 2: Calculate the amount realized.
$520,000 sales price − $30,000 selling expenses = $490,000 amount realized
Step 3: Calculate gain.
$490,000 amount realized − $350,000 adjusted basis = $140,000 gain
Because the taxpayer owned and lived in the home as their main home for at least two years during the five-year period ending on the sale date, the taxpayer qualifies for the §121 exclusion. The taxpayer can exclude the full $140,000 gain because it is below the $250,000 exclusion limit for single filers. As a result, the taxpayer reports no taxable gain from the sale of the home.
Consider partial exclusion rules
Many clients sell before meeting the two-year requirement. In those cases, a partial exclusion may be available when the sale is tied to qualifying circumstances. When this situation arises, document the reason for the sale, create a clear timeline and calculate the reduced exclusion using the required method.
Partial exclusion rules often apply to clients who have relocated, experienced health issues, or experienced other major changes. These clients may assume they do not qualify at all or assume they qualify for the full amount. A clear, calm explanation helps them understand how the law applies and sets realistic expectations.
Members of the uniformed services, the Foreign Service or the intelligence community may also qualify for an extended exclusion if the sale of their personal home resulted from permanent change-of-station (PCS) orders. The suspension of the five-year test period is available for qualified members of the uniformed services. The suspension can be for up to 10 years but is not limited to PCS orders. Reference Publication 523 for more information if your client is eligible for this suspension.
Consider installment sale issues
If the home is sold using the installment method, the §121 exclusion may still apply. This matters when a client receives payments over time or uses seller financing. You will still need a complete gain calculation and eligibility analysis, even if the cash is received later.
What if the home sells at a loss?
Clients often ask whether a loss on the sale of a home is deductible. For a personal residence, the general rule is no. Losses on personal-use property are typically non-deductible. This is one of the most important clarifications you can provide.
Clients may compare a home loss to a stock loss and assume they can deduct it on Schedule D. They may also believe that because gains can be excluded, losses must be deductible. That is not how the law works. If the home is used for personal purposes, the loss is generally not deductible for tax purposes.
Why a loss still matters for return preparation
Even though the loss is not deductible, you still need the facts. Ask whether the property was ever converted to rental or business use. Conversion can change the analysis and can potentially allow a deductible loss depending on timing, basis and use. If the client rented the home before selling it, you may need to determine whether the property was still a personal residence at the time of sale.
Ask about business use and depreciation. Depreciation claimed for business use can affect reporting even when there is no overall gain. A sale that appears simple on paper may require additional reporting if the home has mixed use.
Finally, be prepared to manage expectations. Clients selling at a loss are often stressed. A clear explanation, delivered in plain language, helps clients understand the rules and prevents bad advice from online sources from driving reporting decisions.
Practical takeaway for tax pros
A strong home sale analysis starts with three steps.
First, confirm the property is a personal residence and document how it was used. Second, calculate gain accurately, then apply Section §121 only after confirming the ownership, use, and timing rules. Third, explain clearly that a sale at a loss is typically nondeductible when the home is for personal use, while still gathering facts that might change the conclusion.
Most home sales are straightforward, but exceptions occur when mistakes happen. A strong process and clear documentation protect your client and your practice.