ebotCPA — The Entrepreneur's CPA

    What are the rules for Home Sale Exclusion?

    Check whether the rules fit your situation, then review the worked example, requirements and records.

    Depends on your facts

    CPA sign-off in progress.

    How it works

    01

    Check eligibility

    Match the strategy to your facts, entity, timing, and the rules that apply.

    02

    Work through the numbers

    Use the stated assumptions and compare the tax result with the cost and trade-offs.

    03

    Document and file

    Keep contemporaneous records. Your external tax preparer handles return preparation and filing; this is not a tax-preparation service.

    Which sounds like you?

    Terms used in this guide

    A deduction reduces taxable income; a credit reduces calculated tax; deferral changes when tax is due.

    The Internal Revenue Code (IRC) is federal tax law; Treasury regulations explain its rules; IRS publications explain the agency's guidance.

    basis:
    the tax amount used to measure gain, loss or allowable deductions.
    depreciation:
    deducting an asset's cost under the applicable tax recovery rules.
    exclusion:
    an amount the applicable law permits you to leave out of taxable income.

    In brief

    When you sell your main home, up to $250,000 of gain is excluded from tax, or $500,000 for a married couple filing jointly. At the 15% long-term capital gain rate alone, a full $500,000 exclusion keeps $75,000 of cash in your pocket.

    Who it fits

    • Homeowners who have owned and lived in the home at least two of the last five years
    • Long-time owners with large appreciation
    • Couples planning a downsize in retirement
    • Owners moving early for a new job, health, or unforeseen circumstances, who may get a partial exclusion

    Who it's not for

    • Investment or rental property that was never your main home
    • Second homes and vacation homes
    • Anyone who excluded gain on another home sale within the past two years

    How the rule applies

    You must own the home and use it as your main residence for at least two of the five years before the sale. The two years do not have to be consecutive.

    Married couples get $500,000 if either spouse meets the ownership test, both meet the use test, and neither used the exclusion in the prior two years. A surviving spouse can still use $500,000 if the home is sold within two years after the death.

    Gain is the sale price minus selling costs, minus your basis. Basis is what you paid plus capital improvements, such as additions, a new roof, or a remodel. Keep those receipts for as long as you own the home.

    If you sell early because of a job change, health, or certain unforeseen events, a partial exclusion is available in proportion to the time you lived there.

    Depreciation you claimed for a home office or rental use after May 6, 1997 is not excluded and is taxed at up to 25%. Time after 2008 when the home was a rental before you moved in can also reduce the exclusion.

    Worked example

    Illustrative: a married couple bought their home in 2012 for $400,000 and spent $100,000 on improvements. They sell in 2026 for $1,150,000, with $60,000 of selling costs. Their other income is $200,000.

    1. Amount realized: $1,150,000 − $60,000 = $1,090,000
    2. Basis: $400,000 + $100,000 = $500,000
    3. Gain: $1,090,000 − $500,000 = $590,000
    4. Exclusion: $500,000; taxable gain: $90,000
    5. Capital gain tax at 15%: $90,000 × 15% = $13,500
    6. Net investment income tax: MAGI $290,000 − $250,000 = $40,000 × 3.8% = $1,520
    1. Total federal tax: $13,500 + $1,520 = $15,020

    The couple pays $15,020 instead of tax on the full $590,000 gain; the exclusion keeps at least $75,000 of tax off the return.

    Illustration only; not a promise or projection of your results.

    The rules

    RuleCitation
    Up to $250,000 of gain ($500,000 joint) on a main home is excluded if owned and used two of the last five years.IRC §121(a), (b)
    A partial exclusion applies for sales due to a change in employment, health, or unforeseen circumstances.IRC §121(c)
    Gain from depreciation claimed after May 6, 1997 is not excluded.IRC §121(d)(6)
    Periods of nonqualified use after 2008 reduce the excluded gain.IRC §121(b)(5)

    Watch-outs

    • Missing improvement records can cost real money. Without them, basis is just the purchase price.
    • Converting a rental into your residence does not make all the gain excludable; the rental years can reduce it.
    • Gain above the exclusion counts toward the 3.8% net investment income tax threshold.
    • Selling one month short of two years can cost the full exclusion unless a partial-exclusion reason applies.

    What we do

    We rebuild your basis from closing statements and improvement records, compute the excluded and taxable gain, and plan the sale date when the two-year test or a partial exclusion is close. Texas has no state income tax, so the federal return is the whole calculation.

    Questions

    Do I have to buy another home to get the exclusion?

    No. That was the old rule. The exclusion applies whether or not you buy again.

    I rented my home out for a year before selling. Do I lose the exclusion?

    Not if you still meet the two-of-five-year test. Rental after you move out generally does not reduce it, but depreciation from that year is taxed.

    Can we each use $250,000 if only one spouse owns the home?

    On a joint return, $500,000 applies if either spouse owns it and both lived there two of the five years.

    General education under 2026 federal law. Examples are illustrative, not client results. Not tax advice for your situation.

    Want the detail?

    Free — Free Notice Decoder / free path. Pull your own IRS transcripts (free through your IRS Online Account at IRS.gov) and send them to us. Our notice engine reads them and gives you a free report on what they show. Requires your written §7216 consent. $97 — Notice Review. Send us your IRS notice along with your own transcripts. We tell you what the notice is, what it means, and what the issues appear to be at a high level. This is information, not tax advice. $497 — Case Analysis. We pull your transcripts, analyze your whole situation, and give you a written do-it-yourself plan. $1,000 — Representation. Power of attorney (Form 2848) and we represent you before the IRS. Flat $1,000. The $97 Notice Review is credited toward the $497 Case Analysis. Fixed fees, confirmed in writing before work begins. Not a guarantee of any IRS outcome. We never charge a percentage of tax saved.

    General information, not tax, legal, or investment advice for your situation. Results depend on your facts; no outcome is guaranteed. Reading this page does not create a client relationship.

    Ebotagborndang Mbi, CPA d/b/a ebotCPA · Ebot Mbi, CPA (Texas License #127163), Enrolled Agent · 4425 W Airport Fwy, Ste 595, Irving, TX 75062

    Last updated: