If you sell your longtime home to move somewhere smaller, federal law lets you exclude up to $250,000 of the profit from capital gains tax as a single filer, or up to $500,000 if you’re married and file jointly. You qualify as long as you owned the home and used it as your main residence for at least two of the five years ending on the sale date.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Most downsizers who’ve been in the same house for years fall inside those limits and owe nothing. The tax question turns serious when the profit runs above the exclusion, when part of the home was ever rented or used for business, or when divorce, death, or an inheritance changed how the property was owned.
How to Figure Your Actual Gain
The number the IRS taxes isn’t sale price minus purchase price. Start with your cost basis: what you paid for the home plus certain closing costs from the original purchase. Add every capital improvement you’ve made over the years — a new roof, a kitchen remodel, an added bathroom, a replacement HVAC system. Routine repairs like patching drywall or fixing a leaky faucet don’t count. That gives you your adjusted basis.
On the sale side, subtract selling expenses from the gross price. Agent commissions, title insurance, legal fees, and transfer taxes all qualify. Commissions alone typically run 5% to 6% of the sale price, so on a $600,000 home that’s $30,000 to $36,000 shaved off the top before you even apply the exclusion. What’s left after subtracting your adjusted basis from that net figure is your taxable gain.
If the result is under $250,000 for a single filer or $500,000 for a joint filer, you owe no federal capital gains tax on the sale. If it’s over, only the overage is taxed. A single filer with a $320,000 gain, for example, pays capital gains tax on $70,000. Every documented improvement and selling cost reduces that overage dollar for dollar, so old receipts and closing statements are worth digging out.
Rates That Apply to Any Taxable Gain
Profit above your exclusion is taxed as a long-term capital gain because you’ve held the home more than a year. For 2026, the federal rates are:2Tax Foundation. 2026 Tax Brackets and Federal Income Tax Rates
- 0% on taxable income up to $49,450 (single), $98,900 (married filing jointly), or $66,200 (head of household).
- 15% on taxable income above those figures up to $545,500 (single), $613,700 (joint), or $579,600 (head of household).
- 20% on taxable income above those upper thresholds.
Most downsizers who owe anything at all fall in the 15% bracket. Retirees with modest other income sometimes land in the 0% bracket, which is worth checking against the year you plan to close. Many states tax capital gains as ordinary income, which can add several percentage points on top.
The 3.8% Surtax on Higher Incomes
Downsizers with large profits may hit an additional 3.8% net investment income tax. It applies when modified adjusted gross income exceeds $200,000 (single), $250,000 (joint), or $125,000 (married filing separately), and it’s calculated on the smaller of your net investment income or the amount by which your income exceeds the threshold.3Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax Gain that you successfully exclude under the primary residence rules doesn’t count. Only the portion above your $250,000 or $500,000 ceiling is included as investment income. Stacked with the 15% or 20% capital gains rate, the effective rate on the excess can reach 18.8% or 23.8%.
Selling Before You’ve Been There Two Years
If you sell before hitting the two-year ownership or use mark, you may still get a prorated exclusion when the move is driven by a job relocation, a health condition, or certain unforeseen circumstances such as a natural disaster or involuntary conversion.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence The math: divide the months (or days) you did meet the requirement by 24 months (or 730 days), then multiply by the maximum exclusion.4Internal Revenue Service. Publication 523, Selling Your Home A single filer who lived in the home 18 months before a qualifying job transfer would get 18 ÷ 24 × $250,000, or $187,500.
The Two-Year Frequency Limit
Even with perfect ownership and use records, you can’t claim the exclusion if you already used it on another home sale within the past two years.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence If you sold a prior primary residence 18 months ago and excluded the gain, this sale doesn’t qualify no matter how long you’ve owned and lived in the current home. For anyone selling again within roughly two years of a prior exclusion, delaying the closing date a few months can be the difference between a fully sheltered gain and a large tax bill.
Surviving Spouses
A widow or widower selling the family home can still claim the full $500,000 joint exclusion, but only if the sale closes within two years of the date of death and the surviving spouse has not remarried by the sale date. The deceased spouse’s ownership and residency count toward the tests.4Internal Revenue Service. Publication 523, Selling Your Home After two years, the exclusion drops back to the $250,000 single-filer amount.
A second benefit usually stacks on top: the home’s cost basis steps up to fair market value as of the date of death.5Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent In community property states the whole home typically gets the adjustment; elsewhere, only the deceased spouse’s half. Either way, the calculable gain shrinks sharply, and most surviving spouses who sell within the two-year window owe no federal tax on the home.
Divorce Situations
Divorce complicates both the ownership test and the use test. If the home was transferred to you from a spouse or former spouse as part of the divorce, you inherit their ownership period. The use test is harder for a spouse who moved out, because the two-of-five-year clock runs out three years after moving. The statute provides a fix: if a divorce decree or separation agreement gives the former spouse use of the home, you’re treated as still using it as your principal residence during that time.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Without that language in the agreement, the non-resident ex-spouse eventually loses their share of the exclusion.
Inherited Homes
If the home you’re now downsizing from was inherited, your basis isn’t what the original owner paid. It’s the fair market value on the date the prior owner died.5Office of the Law Revision Counsel. 26 USC 1014 – Basis of Property Acquired From a Decedent A house a parent bought for $80,000 in 1985 and worth $400,000 at their death gives you a basis of $400,000. Decades of prior appreciation are wiped clean for tax purposes.
To claim the Section 121 exclusion on gain that has accrued since you inherited, you still need to meet the ownership and use tests yourself. Move in and live there for two years and the exclusion applies to gain above the stepped-up basis. Sell sooner without a qualifying reason and any gain above the stepped-up basis is taxable at long-term capital gains rates.
If You Ever Rented the Home or Used It for Business
Depreciation you took (or were entitled to take) after May 6, 1997 has to be “recaptured” when you sell, and the exclusion doesn’t cover it. That portion of the gain is taxed at a maximum rate of 25%, no matter your income bracket.4Internal Revenue Service. Publication 523, Selling Your Home6Internal Revenue Service. Treasury Decision 8836 – Unrecaptured Section 1250 Gain It applies whether the depreciation came from a home office, a rented-out room, or a period when the whole property was a rental, and the IRS uses what was “allowed or allowable,” so skipping the deduction back then doesn’t help you now.
A separate rule targets “nonqualified use.” Any period after 2008 during which the property wasn’t your primary residence — a stretch as a rental, for instance — reduces the excludable portion of your gain. The taxable share equals the nonqualified use period divided by your total ownership period, multiplied by your total gain.1Office of the Law Revision Counsel. 26 USC 121 – Exclusion of Gain From Sale of Principal Residence Three periods are carved out and don’t count against you: any time after the last date the home served as your principal residence, up to ten years of qualified military service, and up to two years of temporary absence for a job change, health reasons, or unforeseen circumstances. The first exception matters most for typical downsizers: if the home was your primary residence right up until you listed it, the gap between moving out and closing isn’t nonqualified use.
Reporting the Sale
Whether you have to report the sale depends on the gain and on whether the closing agent issued a Form 1099-S. If the entire gain is covered by the exclusion and no 1099-S was issued, you don’t need to report the sale.7Internal Revenue Service. Important Tax Reminders for People Selling a Home Many closing agents skip the form when you sign a written certification that the home was your principal residence and the gain is fully excludable.8Internal Revenue Service. Instructions for Form 1099-S
If a 1099-S was issued, report the sale even when no tax is owed. List the details on Form 8949 and carry the totals to Schedule D of your Form 1040.9Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets The same forms handle a partially taxable gain. Wrong basis figures and unreported sales when a 1099-S was issued are among the more common triggers for IRS notices, so cross-check every number against your closing statement and improvement records before filing.