Taxes, Real Estate

The Tax-Savvy Home Seller: Exclusion of Gain Made Simple

Share this post on

Arin Gregoryona, CPA

December 11, 2025

Selling your home can have significant tax implications, especially when it comes to determining whether you owe taxes on the gain from the sale. The Internal Revenue Service (IRS) provides a valuable exclusion of gain on the sale of a primary residence, which can help homeowners reduce or eliminate their tax liability. This article will provide a comprehensive overview of the tax implications of selling your home, focusing on the exclusion of gain, eligibility requirements, and examples to illustrate how the rules apply.

Understanding the Exclusion of Gain on the Sale of a Home

The IRS allows homeowners to exclude up to $250,000 of gain from the sale of their primary residence if they are single, or up to $500,000 if they are married and filing jointly. This exclusion is governed by Section 121 of the Internal Revenue Code and is designed to provide tax relief to individuals who sell their main home.

Key Points of the Exclusion

Maximum Exclusion Amounts:

    • Single Filers: Up to $250,000 of gain can be excluded
    • Married Filing Jointly: Up to $500,000 of gain can be excluded

    Frequency of Use:

    • The exclusion can generally only be used once every two years. If you sold another home and excluded the gain within the two years prior to the current sale, you are not eligible for the exclusion.

    Ownership and Use Tests:

    • To qualify for the exclusion, you must meet both the ownership test and the use test:
      • Ownership Test: You must have owned the home for at least 2 years out of the 5 years preceding the sale
      • Use Test: You must have lived in the home as your main residence for at least 2 years out of the 5 years preceding the sale
    • The 2 years do not need to be consecutive, and partial years count toward the total.

    Special Rules for Married Couples:

    • Only one spouse needs to meet the ownership test, but both spouses must meet the use test to qualify for the $500,000 exclusion.

    Partial Exclusion:

    • If you do not meet the full ownership and use tests, you may still qualify for a partial exclusion if the sale was due to a change in employment, health, or unforeseen circumstances.

    Eligibility Requirements for the Exclusion

    To claim the exclusion, you must pass the following tests:

    1. Ownership Test

    You must have owned the home for at least 24 months (2 years) during the 5-year period ending on the date of the sale. The ownership period does not need to be continuous.

    2. Use Test

    You must have used the home as your main residence for at least 24 months (2 years) during the same 5-year period. The use period also does not need to be continuous.

    3. Look-Back Rule

    You cannot have excluded gain from the sale of another home during the 2-year period before the date of the current sale.

    4. Exceptions to the Eligibility Tests

    Even if you do not meet the ownership and use tests, you may still qualify for a reduced exclusion if the sale was due to:

    • A change in place of employment (the new job must be at least 50 miles farther from the home than the previous job).
    • Health reasons, such as a doctor’s recommendation to move for medical care.
    • Unforeseen circumstances, such as natural disasters, divorce, or multiple births from the same pregnancy.

    How to Calculate the Gain on the Sale of Your Home

    To determine whether you have a taxable gain, you need to calculate the gain or loss on the sale of your home. Here’s how:

    1. Determine the Selling Price: This is the total amount you received from the sale, including cash, the value of other property, and any liabilities assumed by the buyer.
    2. Subtract Selling Expenses: Deduct expenses such as real estate agent commissions, advertising fees, legal fees, and closing costs.
    3. Calculate the Adjusted Basis: The adjusted basis is the original purchase price of the home, plus the cost of any improvements, minus any depreciation or casualty losses claimed for tax purposes.
    4. Calculate the Gain: Subtract the adjusted basis and selling expenses from the selling price. The result is your gain.
    5. Apply the Exclusion: If your gain is less than the exclusion amount ($250,000 or $500,000), you owe no taxes on the sale. If your gain exceeds the exclusion amount, the excess is taxable.

    Examples of How the Exclusion Applies

    Example 1: Single Homeowner

    Scenario: Sarah, a single taxpayer, bought her home in 2018 for $200,000. She sold it in 2025 for $500,000. She lived in the home as her main residence for 3 years before renting it out for 2 years.

    Calculation:

    • Selling Price: $500,000
    • Adjusted Basis: $200,000
    • Gain: $500,000 – $200,000 = $300,000
    • Exclusion: $250,000
    • Taxable Gain: $300,000 – $250,000 = $50,000

    Result: Sarah must report $50,000 as taxable capital gain.

    Example 2: Married Couple Filing Jointly

    Scenario: John and Mary, a married couple, bought their home in 2015 for $300,000. They sold it in 2025 for $800,000. They both lived in the home as their main residence for 4 years before selling it.

    Calculation:

    • Selling Price: $800,000
    • Adjusted Basis: $300,000
    • Gain: $800,000 – $300,000 = $500,000
    • Exclusion: $500,000
    • Taxable Gain: $500,000 – $500,000 = $0

    Result: John and Mary owe no taxes on the sale.

    Example 3: Partial Exclusion

    Scenario: Lisa, a single taxpayer, bought her home in 2023 for $250,000. She sold it in 2025 for $400,000 due to a job relocation. She lived in the home for only 18 months.

    Calculation:

    • Maximum Exclusion: $250,000
    • Partial Exclusion: (18 months / 24 months) × $250,000 = $187,500
    • Gain: $400,000 – $250,000 = $150,000
    • Taxable Gain: $150,000 – $187,500 = $0

    Result: Lisa qualifies for a partial exclusion and owes no taxes on the sale.

    Special Considerations

    1. Depreciation Recapture: If you used part of your home for business or rental purposes, you must recapture depreciation. This means you cannot exclude the portion of the gain equal to the depreciation deductions you claimed.
    2. Nonqualified Use: Periods of nonqualified use (e.g., renting out the home) may reduce the amount of gain you can exclude. However, nonqualified use does not include time after you moved out of the home, provided it was your main residence before the move.
    3. Reporting Requirements: If you receive a Form 1099-S (Proceeds from Real Estate Transactions), you must report the sale on your tax return, even if the gain is fully excludable. Use Schedule D (Form 1040) and Form 8949 to report the sale.

    The exclusion of gain on the sale of a home is a valuable tax benefit that can help homeowners reduce or eliminate their tax liability. By understanding the eligibility requirements, calculating your gain, and applying the exclusion, you can ensure compliance with IRS rules while minimizing your tax burden. Always keep detailed records of your home’s purchase price, improvements, and selling expenses to accurately calculate your gain and exclusion.

    Arin Gregoryona, CPA

    Related articles

    Master Your Money: A Step-by-Step Guide to Budgeting

    Creating and adhering to a personal budget is a cornerstone of financial stability and success.…

    Arin Gregoryona, CPA

    5 min

    January 8, 2026

    Financial Statements Made Simple: How to Analyze and Prepare for Tax Season

    Financial statement analysis is a critical tool for understanding the financial health of a business.…

    Arin Gregoryona, CPA

    6 min

    January 1, 2026

    Turning Losses into Opportunities: Tax-Loss Harvesting Explained

    Tax-loss harvesting is a strategic approach to managing your investment portfolio while minimizing your tax…

    Arin Gregoryona, CPA

    6 min

    December 25, 2025

     Grow your business

    Take the financial stress off your business’ shoulders

    Let CFOmate handle your finances so you can enjoy peace of mind while focusing on growing your business.