Gain is not the sale price and is not the cash left after paying the mortgage. Start with amount realized minus adjusted tax basis. Then determine which exclusion or tax treatment applies.
Jump to: Build the gain calculation · Example: gain versus cash · When can a main-home gain be excluded? · What about rental use and depreciation? · Check your understanding
Build the gain calculation
| Step | Simplified relationship |
|---|---|
| Amount realized | Sale price − qualifying selling expenses |
| Adjusted basis | Starting tax basis + qualifying increases − required decreases |
| Realized gain | Amount realized − adjusted basis |
| Cash received | A separate settlement calculation that can include mortgage payoff and other adjustments |
Basis can differ from current market value and from the down payment. Capital improvements may increase basis; allowed or allowable depreciation can reduce it. Inherited, gifted, exchanged, and converted property can have special basis rules. A mortgage payoff reduces cash received but is not an additional deduction in the simplified gain formula.
Example: gain versus cash
Assume a $420,000 sale, $25,000 of qualifying selling expenses, $280,000 adjusted basis, and a $150,000 mortgage payoff. No other items apply.
- Amount realized: $420,000 − $25,000 = $395,000.
- Realized gain: $395,000 − $280,000 = $115,000.
- Cash after those selling costs and mortgage payoff: $395,000 − $150,000 = $245,000.
The three figures answer three different questions. A different mortgage balance changes cash received without automatically changing tax basis or gain.
When can a main-home gain be excluded?
A qualifying taxpayer may exclude up to $250,000 of gain, or up to $500,000 for qualifying married taxpayers filing jointly. Generally, ownership and use tests require two years within the five years before sale, and a two-year look-back limits repeated use of the exclusion. For the full joint exclusion, at least one spouse must meet ownership and both must meet use and look-back requirements. Exceptions and reduced exclusions exist; marriage alone is not sufficient.
The limit applies to eligible gain, not the selling price. In the example, assume a single seller meets every requirement and no gain is ineligible. The $115,000 gain is within the $250,000 limit. That conclusion follows the supplied eligibility facts, not merely the fact that the seller lived in a house.
What about rental use and depreciation?
Do not automatically apply the main-home exclusion to an investment property. Business or rental use, nonqualified-use periods, and depreciation can change the result. Gain attributable to depreciation after May 6, 1997 generally cannot be excluded under the home-sale exclusion. The tax character and rate require separate analysis; avoid memorizing one flat tax rate for every property sale. See tax depreciation and adjusted basis.
These examples teach the calculation sequence. Use current IRS guidance and a qualified tax professional for an actual return, including reporting obligations even when a gain is excluded.
Check your understanding
- Price $500,000; qualifying selling costs $30,000; adjusted basis $350,000. What is gain?
- Does paying a $200,000 mortgage reduce that gain by another $200,000?
- Is every married seller automatically entitled to exclude $500,000?
Answers and explanations
- $120,000. $500,000 − $30,000 − $350,000.
- No. Mortgage payoff and adjusted basis are different.
- No. Filing status and all applicable eligibility requirements matter.
Sources and next steps
Sources checked October 20, 2026. Use current law and program guidance when applying these concepts to a transaction.
- IRS Publication 523: basis, gain, rental use, and worksheets
- IRS Topic 701: home-sale exclusion and eligibility
Continue with the broker study guide. Submit a support request with your course, lesson or practice-question number, and the step you want explained. These are original study exercises.
Comments
0 comments
Article is closed for comments.