Sold Your Home? Why the IRS Says You Owe Tax on It
You sold your home, figured it was tax-free, and now the IRS wants tax on the whole sale price. Here's how the § 121 exclusion works and how to win it.
You sold your house. You'd lived there for years, you figured the profit was tax-free, and you didn't put it on your return. Now a notice from the IRS says you owe tax on the entire sale price—as if every dollar that came out of closing was pure profit. It isn't, and the number on that notice is almost certainly wildly too high.
Here's the reassuring part first. There is a real tax break for selling your home—it's called the § 121 exclusion, and it lets most people shield up to $250,000 of gain ($500,000 for a married couple) from tax. The problem isn't usually that you don't qualify. The problem is that "tax-free" is not the same as "invisible to the IRS." If the sale got reported on a form and you stayed silent on your return, the IRS's computer fills in the blanks with the worst possible assumptions—and the bill it spits out can be many times the real tax, or many times nothing. This is one of the most common automated notices the IRS sends, and one of the most routinely resolved.
This is the substantive guide to winning that fight: how the home-sale exclusion works, how to prove you qualify, and how to collapse a scary six-figure proposed bill down to what's actually owed—often zero. It pairs with How To Respond to a CP2000 Notice, which owns the step-by-step response procedure, and Cost Basis: How To Fight a 1099-B or Crypto Gain in Tax Court, which owns the deep discipline of proving what you paid for something. This article owns the home piece. (One routing note: if the home was lost to foreclosure or a short sale rather than sold outright, the tax rules are different—start with Cancellation of Debt: How To Fight a 1099-C in Tax Court.)
Which notice are you holding? Two different documents bring people here. A CP2000 is an automated proposed change—the IRS's computer matched a sale you didn't report and is proposing extra tax. No Tax Court clock has started, and you can still head it off. A Notice of Deficiency—the "90-day letter"—is the IRS's formal determination, and it starts the clock—you have 90 days to petition Tax Court. Figure out which one is in your hands first, because it sets both your deadline and your options.
Why This Happens: The 1099-S and the $0 Trap
When you sell real estate, the closing agent usually files a Form 1099-S, Proceeds From Real Estate Transactions, with the IRS. Box 2 of that form reports the gross proceeds—the total sale price, with no subtraction for what you paid for the home or what you spent fixing it up. The IRS matches that number against your return, the same way it matches a W-2 or a 1099. If your return doesn't account for the sale, the match fails, and out comes a notice.
Now here's the trap that makes the bill so frightening. The automated notice takes the gross proceeds from box 2, assumes your basis is $0, assumes your exclusion is $0, and proposes tax on the whole sale price as capital gain. None of those assumptions are true—the computer simply doesn't know your numbers because you didn't report them.
So a home you sold for $600,000 can generate a notice proposing tax on $600,000 of gain, when your real taxable gain might be $100,000—or nothing. The entire fight is filling in the two numbers the IRS's computer left blank: your basis (what the home cost you) and your exclusion (the § 121 break).
"Tax-Free" Doesn't Mean "Don't Report"
This is the single most important sentence in this article, so read it twice. If a Form 1099-S was filed, you have to report the sale—even if every dollar of gain is excludable. The IRS says so directly in Topic No. 701, Sale of Your Home:
"If you receive an informational income-reporting document such as Form 1099-S, Proceeds From Real Estate Transactions, ... you must report the sale of the home even if the gain from the sale is excludable."
You report the sale on Schedule D and Form 8949 and affirmatively claim the exclusion—that's how you tell the IRS the gain is covered. Skipping the sale entirely because you "knew" it was tax-free is exactly what produces the automated notice.
There is a flip side worth knowing. Per Publication 523, Selling Your Home, you do not have to report the sale if all of these are true: your entire gain is excludable, you did not receive a Form 1099-S, and you have no business/rental or other complication. That second condition explains why some fully-tax-free sales never trigger a notice—and it ties to a quiet form you may have signed at closing.
The Certification You May Have Signed at Closing
The closing agent is not required to file a 1099-S if, at closing, you signed a written certification—under penalties of perjury—that the full gain is excludable under § 121. That certification (the standard "Certification for No Information Reporting" form) asks you to confirm the price was at or under the cap, that you owned and used the place as your main home for 2 of the last 5 years, that you haven't excluded another home sale in the prior 2 years, and so on. The authority for this is the broker-reporting rules under IRC § 6045(e) and the Form 1099-S instructions—not any special revenue procedure.
Three practical takeaways:
- If you signed it, no 1099-S was issued, which is why some excludable sales never get matched.
- If you didn't sign it—because the price was over the cap, or the agent never offered it—a 1099-S was filed, and you must report the sale even if you ultimately owe nothing.
- Signing it is not a get-out-of-tax-free card. The certification doesn't prove you qualify—it just keeps the sale off the IRS's radar. If you certified wrongly, you still have a tax problem; you've only delayed when it surfaces.
Do You Actually Qualify? The § 121 Eligibility Test
The exclusion lives in IRC § 121. At its core are two tests you have to clear—ownership and use—measured over the 5-year period ending on the date you sold.
- Ownership test: you owned the home for at least 24 months (two years) out of those five.
- Use test: you used it as your principal residence—your main home—for at least 24 months out of those same five.
The two periods don't have to overlap. Treasury Regulation § 1.121-1(c) and Pub. 523 both make this explicit: someone who rented a home for a couple of years and then bought it can count the rental-period use and the later ownership separately. You just need 24 months of each, somewhere inside the five-year window.
Pub. 523 frames qualifying as a five-step Eligibility Test, and it's a clean checklist to run yourself:
- Automatic disqualifiers — you acquired the home in a like-kind (§ 1031) exchange within the past 5 years, or you're subject to expatriate tax. Either one ends the inquiry.
- Ownership — owned 24 of the last 60 months.
- Residence/use — lived in it as your main home 24 of the last 60 months. For a married couple, the use test is individual—each spouse is measured separately (this matters for the cap, below).
- Look-back — you didn't exclude gain on another home sale in the 2 years before this one (§ 121(b)(3)). The break is once every two years.
- Exceptions — special rules for divorce, death, service members, and more that can rescue a claim that looks like it fails. We cover the big ones below.
What "Principal Residence" Means—and How To Prove It
"Principal residence" isn't defined by a single bright line. Under Treas. Reg. § 1.121-1(b), whether a home is your principal residence "depends upon all the facts and circumstances." If you split time between two homes, the one you use "a majority of the time during the year" is ordinarily the principal residence.
The regulation lists the factors the IRS weighs, and this is exactly the checklist you should assemble to prove a contested residency—it's the same list that shows up in Pub. 523 and on the IRS's residency-proof form, Form 886-H:
- where you work;
- where your family members live;
- the address on your federal and state tax returns, driver's license, car registration, and voter registration;
- the mailing address for your bills and correspondence;
- where your banks are; and
- where your religious organizations and recreational clubs are.
A "residence" can even be a houseboat, a trailer, or a co-op apartment. And "use" means actually living there—but short, temporary absences (a two-month summer vacation, a seasonal trip) still count as use, even if you rent the place out while you're gone. A long absence, like a year-long sabbatical, does not count.
The Dollar Caps and What's Actually Taxable
Clear the tests, and you can exclude gain up to the cap:
- $250,000 for a single filer (or married filing separately).
- $500,000 for a married couple filing jointly—available if either spouse meets the ownership test, both spouses meet the use test, and neither is blocked by the once-every-two-years rule.
If you're married but only one spouse meets the use test, you don't lose everything—the couple gets the sum of each spouse's separately figured limit, so the qualifying spouse can still shelter $250,000. That's why the use test being individual matters.
One hard truth to set expectations honestly: these caps are not inflation-indexed. They've been frozen at $250,000 and $500,000 since 1997. In a market where homes have doubled, the slice of gain above the cap is real and fully taxable. (You may have seen headlines about a proposal to remove the caps—the "No Tax on Home Sales Act" introduced in July 2025. It was referred to committee and has not advanced. It is a proposal, not law; don't plan around it.)
The Gain Math
Here's the equation the whole dispute turns on:
Amount realized − adjusted basis − exclusion = taxable gain
- Amount realized = your sale price minus selling expenses (commissions, advertising, legal fees, transfer taxes you paid).
- Adjusted basis = what the home cost you—covered next.
- Exclusion = the § 121 break, up to your cap.
Run the example from before. You sold for $600,000, single, with a real basis of $250,000. Your gain is $600,000 − $250,000 = $350,000. Subtract the $250,000 exclusion, and your taxable gain is $100,000—not $600,000. Basis and exclusion together erased two-thirds of the phantom number. That's the case in one line.
Home Basis at a Working Level
Basis is everything you put into the home. You need enough of it to shrink the gain; the deep "my records are gone, how do I reconstruct this" discipline lives in Cost Basis: How To Fight a 1099-B or Crypto Gain in Tax Court. For a home, Pub. 523 builds basis like this:
- Start with what you paid to buy it (or, if you built it, the cost of the land plus construction—materials, labor you paid for, the contractor, architect's fees, permits, utility-connection charges, and legal fees tied to building). Your own unpaid labor doesn't count.
- Add improvements that add value or prolong the home's life: additions (a room, deck, garage), systems (new heating, central air, wiring, a security or sprinkler system), exterior work (new roof, siding, storm windows), insulation, interior upgrades (built-in appliances, a kitchen remodel, new flooring, a fireplace), and grounds (landscaping, a driveway, a fence, a pool). Routine repairs with a short life don't add to basis—but repairs done as part of a larger remodel can.
- Add buying costs from your closing statement: title and abstract fees, recording fees, survey fees, transfer and stamp taxes, owner's title insurance, and legal fees. Not in basis: loan costs like points, the appraisal, and the credit report—those are mortgage costs, not basis.
- Subtract anything that reduces basis: depreciation you claimed (business or rental use), casualty losses you deducted, insurance reimbursements, certain energy credits—and mortgage debt that was canceled and excluded under the QPRI rule (see Cancellation of Debt). Leaving these out overstates basis, and the IRS will catch it.
Three special situations can swing the gain enormously, and each is worth checking before you assume you owe anything:
- Inherited home → stepped-up basis. If you inherited the home, your basis is its fair market value on the date the previous owner died under IRC § 1014—not what they paid decades ago. A home inherited and sold soon after often has almost no taxable gain, because the step-up resets basis to roughly the sale price. (In the nine community-property states, a surviving spouse generally gets a step-up on both halves of the home.)
- Gifted home → carryover basis. A home given to you generally carries over the giver's basis (IRC § 1015).
- Home received in a divorce → you take your former spouse's basis, with no gain or loss on the transfer itself (§ 1041).
(The cost-basis guide goes deep on all three—follow the link if one applies.)
The Escape Hatch: The Partial Exclusion
What if you don't clear the two-year tests—you lived there only a year before life forced a move? You may not lose the exclusion entirely. Under IRC § 121(c) and Treas. Reg. § 1.121-3, if the primary reason you sold was a change in employment, a health problem, or an unforeseen circumstance, you get a prorated cap instead of nothing. This is the most important rescue in the whole statute for the reader who didn't quite make two years.
The proration is simple. Take the months you did qualify, divide by 24, and multiply by your cap:
12 months of use → 12 ÷ 24 × $250,000 = $125,000 of exclusion.
That's often more than enough to wipe out the gain on a home held a short time. Three pathways open the door, each with a safe harbor—a fact pattern that automatically qualifies so you don't have to argue "facts and circumstances":
- Employment change — Reg. § 1.121-3(c): you automatically qualify if your new workplace is at least 50 miles farther from the home you sold than your old workplace was. Keep the relocation letter and a mileage map.
- Health — Reg. § 1.121-3(d): you qualify if the primary reason for the move was to get or provide medical care for a disease, illness, or injury. A move that's "merely beneficial to the general health or well-being" of the seller doesn't count—but there's a clean safe harbor if a doctor recommends a change of residence for health reasons. Get that letter in writing.
- Unforeseen circumstances — Reg. § 1.121-3(e): an event you "could not reasonably have anticipated" before buying. The regulation lists specific qualifying events: a casualty to the home from a disaster, a death in the family, loss of a job making you eligible for unemployment, a change in employment leaving you unable to pay basic living costs, divorce or legal separation, or multiple births from the same pregnancy. Note what does not count: simply wanting a nicer home, or an improvement in your finances like a raise or a windfall.
This partial-exclusion door is exactly what kept a pro se taxpayer's case alive in Webert v. Commissioner, T.C. Memo. 2022-32. The Weberts bought a Washington home in 2005, then serious health problems and big medical bills led them to move out and rent the place from 2009 on; they sold in 2015. On their own returns, they'd reported using the home personally for no more than 14 days in 2010 and zero days after—so on paper, they clearly failed the two-year use test. The IRS asked the court to rule against them on that basis before trial.
The court split the ruling. It granted the IRS's motion on the use test—the Weberts' own returns showed they had failed it—but denied it on the separate question of whether Mrs. Webert's health was the "primary reason" for the sale, which could open the § 121(c) pathway and a prorated exclusion. That health question was left open for further argument rather than decided against them.
Read Webert for what it actually teaches, not as a guaranteed win: the use test failing isn't always the end, because the health/employment/unforeseen partial exclusion is a separate defense you can keep alive—but you have to raise it and back it with a timeline, a doctor's letter, and the facts tying the circumstance to the sale. It also carries a warning: your own filed returns are evidence against you. The Weberts' reported personal-use days are what sank their use test in the first place.
And note the proration's hard edge: the § 121(c) fraction runs on the time you actually owned and used the home within the five-year window before the sale. If you rented the place out for that entire window, the numerator is zero—and even the partial exclusion computes to nothing. The escape hatch rescues the seller who fell short of two years, not the one with no recent use at all.
Special Situations a Pro Se Seller Hits
Several wrinkles in § 121 routinely decide these cases:
- Divorce. A spouse who keeps the home tacks on the other spouse's ownership period under § 121(d)(3). And a spouse who moved out is still treated as using the home during any period the ex-spouse lives there under the divorce decree—so the out-spouse can still meet the use test.
- Surviving spouse. An unmarried surviving spouse gets the full $500,000 cap if the home is sold within 2 years of the spouse's death (and the couple would have qualified just before the death). Miss that two-year window and the cap drops to $250,000.
- Nonqualified use (you rented it out). Periods after 2008 when the home was not your principal residence—say, years you rented it out—make part of the gain non-excludable. The formula is a simple fraction: nonqualified-use time ÷ total time you owned the home, applied to the gain. Two reader-favorable carve-outs: time before January 1, 2009 never counts as nonqualified use, and neither does time after you moved out that falls within the final five-year window. This is the trap the Weberts walked into by renting for years before selling—renting the home out doesn't just risk the use test; it can carve a slice of gain out of the exclusion entirely.
- Home office or business use. If you took a home-office deduction, you still get § 121 on the home—but not on the gain equal to depreciation you claimed after May 6, 1997 (§ 121(d)(6)). That depreciation slice is taxable at up to 25%. The mechanics live in Home Office Deduction Disputes in Tax Court. One sharp distinction: that no-allocation treatment applies to business space within your home. If the business or rental part was separate from the dwelling—a working farm, a storefront with the apartment upstairs, a separate building on the land—you must allocate: only the residential portion gets § 121, and the rest is a fully taxable sale reported on Form 4797.
- Nursing home or assisted living. If you became physically or mentally incapable of self-care, the use test drops from two years to one: as long as you owned and used the home as your principal residence for at least 1 year of the five before the sale, time spent in a licensed care facility (a nursing home, for example) counts as time living in your home (§ 121(d)(7)). A family selling a parent's home after a move into care should check this rule before assuming the use test fails.
- Service members. If you're on qualified extended duty (military, Foreign Service, intelligence), you can suspend the 5-year test for up to 10 years, which can stretch the window to 15 years. This rescues a lot of sales that look like they fail the use test.
- A teardown and rebuild can destroy the exclusion. This is the cautionary tale of Gates v. Commissioner, 135 T.C. 1 (2010). The Gateses owned and lived in a small Santa Barbara house for years, then demolished it and built a new one on the same lot—but never lived in the new house before selling it for about $1.1 million. They didn't report the gain; the IRS issued a deficiency for the $500,000 they later claimed as excludable. The Tax Court held that "principal residence" means the dwelling you actually lived in, not the bare land—and because they never resided in the new house they sold, it was never their principal residence. The $500,000 exclusion was denied. The court, construing the exclusion narrowly, noted that exclusions from income "must be construed narrowly, and taxpayers must bring themselves within" the statute. The decision split the court—five judges dissented—but the majority's rule stands: selling the home you lived in is what § 121 rewards.
What You're Really Facing: The Full Exposure Picture
A home-sale notice is rarely just the tax on the gain. Build the whole picture so nothing blindsides you—and so you can see exactly how much claiming basis and the exclusion is worth.
- The deficiency itself. Capital-gains tax on the slice of gain above your exclusion. Long-term rates are 0%, 15%, or 20% depending on your income. On the phantom $0-basis number, that's tax on the whole sale price; on the real number, it's often tax on nothing.
- Net investment income tax—3.8%. A large gain can push a higher-income seller over the IRC § 1411 threshold, adding 3.8% on the taxable investment gain.
- Depreciation recapture—up to 25%. If you ever claimed depreciation (home office or rental), that slice doesn't get the exclusion and is taxed at up to 25%.
- The accuracy-related penalty—20%. IRC § 6662 adds a penalty of 20% of the underpayment for a substantial understatement or negligence. There's a real defense here: reasonable cause and good faith under IRC § 6664(c). A taxpayer who genuinely believed a fully-excludable home sale didn't need reporting often has a strong reasonable-cause argument—especially once the correct tax turns out to be small or zero. See How To Fight the IRS Accuracy Penalty.
- Interest. Interest runs on any deficiency from the original due date of the return until it's paid (IRC § 6601) and compounds daily. Unlike the penalty, it can't be waived for reasonable cause—which is one more reason to fix the number fast. See How Interest Works on Your IRS Tax Debt.
The flip side of all of this: because the penalty and interest are computed on the deficiency, shrinking the gain with basis and the exclusion shrinks everything below it too. Win the gain number and the penalty and interest follow it down.
Can the IRS even still do this? Generally the IRS has 3 years from when you filed to assess more tax—but if you omitted income adding up to more than 25% of the gross income shown on your return, IRC § 6501(e) stretches the window to six years. An unreported home-sale gain is often exactly that kind of large omission, so a notice arriving three or four years after the sale can still be timely. Check the dates on your notice against Understanding IRS Statutes of Limitations.
How To Verify and Rebut the IRS's Number
Before you argue, pin down exactly what the IRS used—because the $0 assumptions are hiding inside a number that looks official. Every step here is something you can do yourself.
Pull your Wage & Income transcript. This shows the actual Form 1099-S the IRS received under your SSN—the proceeds figure and who filed it. This is how you confirm what triggered the notice and the exact dollar amount you need to rebut. You can pull it yourself through IRS.gov; you don't need a practitioner. See How To Get and Read Your IRS Transcripts.
Check the proceeds against your closing statement. The box 2 figure should match the gross proceeds on your Closing Disclosure (or older HUD-1). If it's wrong—a duplicate, the wrong taxpayer, or proceeds that include something they shouldn't—that's a separate error to flag.
Pull your Account transcript to see what's been assessed and how the notice posted.
Rebuild your basis. Gather the original purchase/closing statement, receipts for improvements, and—for an inherited or gifted home—the date-of-death value or the giver's basis. The general "records are gone, reconstruct it" discipline (and the limits of getting a court to estimate basis) is owned by the cost-basis guide—contemporaneous proof beats estimates every time.
Recompute the gain yourself. Pub. 523 includes three worksheets: Worksheet 1 figures your maximum exclusion (including the partial-exclusion proration), Worksheet 2 figures your gain or loss, and Worksheet 3 figures how much, if any, is taxable. Running them produces the clean, documented number you put in front of the IRS. (One thing the worksheets confirm: a loss on a personal home is never deductible—but it's also not taxable, so a sale at a loss owes nothing.)
The burden is on you. In Tax Court the IRS's notice is presumed correct, and the exclusion is a matter of legislative grace you have to affirmatively establish—that's the lesson baked into Gates. Under Tax Court Rule 142(a), you carry the burden of proving both your basis (to cut the gain) and your ownership and use (to claim the exclusion), plus any § 121(c) primary-reason facts. IRC § 7491 can shift that burden, but only if you first produce credible evidence and meet your recordkeeping and cooperation duties—so plan on the burden being yours and win it with documents.
What To Do Now
If a home-sale notice is in front of you, here's the sequence:
- Identify the deadline on the notice. If it's a 90-day letter (Notice of Deficiency), you have 90 days to file in Tax Court (150 days if it was addressed outside the US). It cannot be extended.
- Pull your Wage & Income transcript and confirm the exact 1099-S proceeds the IRS has under your SSN.
- Run the § 121 Eligibility Test (ownership, use, look-back) and check whether the partial exclusion applies if you fell short of two years.
- Rebuild your basis and recompute the gain using your closing statement, improvement receipts, and Pub. 523's worksheets. Assemble your residency proof from the Form 886-H / Reg. § 1.121-1(b) list.
- If the dispute is still at the proposed stage, it likely started as a CP2000 notice—respond there with your corrected gain, basis proof, and exclusion claim, and head off the deficiency. If the deficiency is already assessed and you missed the Tax Court window, audit reconsideration is the fallback. An amended return is not a substitute for a timely petition.
- Decide whether to petition Tax Court. A timely petition preserves your right to fight before paying. Filing is $60, with a waiver available. Watch the threshold: a home-sale gain often runs over $50,000, so a $100,000 taxable-gain case is too big for the simplified "S case" procedure and goes the regular route. See How To File Your Tax Court Petition.
- Expect to resolve before trial. Most (76%) of Tax Court cases close by formal settlement, and more than 99% close without a trial on the merits. The IRS routinely concedes once you put a documented gain computation and exclusion claim in front of it—as in Webert, these often turn on a motion or a stipulation, not a courtroom. See How To Settle Your Tax Court Case.
One more thing to plan for: a change to your federal gain usually changes your state tax too, since most states pick up a federal adjustment automatically.
Around 89% of petitioners represent themselves, though the win rate trails represented petitioners (about 12% pro se versus about 23% represented in the most recent NTA data). And if your income is at or below 250% of the poverty line and your dispute is at or below $50,000, a Low Income Taxpayer Clinic may handle your Tax Court case for free.
Resources
Statutes and regulations:
- IRC § 121 — Exclusion of gain from sale of principal residence
- IRC § 1014 — Basis of property acquired from a decedent
- IRC § 1015 — Basis of property acquired by gifts
- IRC § 1411 — Net investment income tax
- IRC § 6045 — Returns of brokers (1099-S certification)
- IRC § 6601 — Interest on underpayments
- IRC § 6662 — Accuracy-related penalty
- IRC § 6664 — Reasonable cause and good faith
- IRC § 7491 — Burden of proof
- Treas. Reg. § 1.121-1 — Principal residence; ownership and use
- Treas. Reg. § 1.121-3 — Reduced (partial) exclusion safe harbors
- Tax Court Rule 142(a) — Burden of proof
IRS guidance, forms, and publications:
- Pub. 523 — Selling Your Home
- Topic No. 701 — Sale of Your Home
- Instructions for Form 1099-S — Proceeds From Real Estate Transactions
- About Schedule D (Form 1040)
- About Form 8949 — Sales and Other Dispositions of Capital Assets
Companion articles on TaxCourtHelp:
- Cost Basis: How To Fight a 1099-B or Crypto Gain in Tax Court
- Home Office Deduction Disputes in Tax Court
- Unreported Income Disputes in Tax Court
- Cancellation of Debt Disputes in Tax Court
- How To Respond to a CP2000 Notice
- How To Fight the IRS Accuracy Penalty
- How Interest Works on Your IRS Tax Debt
- How To Get and Read Your IRS Transcripts
- You Just Got a 90-Day Letter From the IRS — Here's What It Means
- How To File Your Tax Court Petition
- How To Settle Your Tax Court Case
- How To Request Audit Reconsideration
- How To File an Amended Return
- How To Find and Use a Low Income Taxpayer Clinic
Cases cited:
This article is for informational purposes only and does not constitute legal or tax advice. For advice specific to your situation, consult a qualified tax professional or attorney.