Most homeowners pay no federal capital gains tax on a home sale because the Section 121 exclusion shelters up to $250,000 of profit for single filers and $500,000 for married couples filing jointly. Anything above the exclusion is taxed at long-term capital gains rates of 0, 15, or 20 percent when you’ve owned the home more than a year, and a 3.8 percent surtax can apply on top of that at higher income levels. What you actually owe turns on how long you owned the place, whether it was your main home, and how carefully you tracked your costs.
The Section 121 Exclusion
This is the rule that spares most sellers from any tax bill. To use it, you must have owned the property and lived in it as your primary residence for at least two of the five years ending on the sale date. The two years don’t need to be consecutive; they just need to add up to 24 months inside that five-year window.1Internal Revenue Service. Topic No. 701, Sale of Your Home
Pass both tests and a single filer excludes up to $250,000 of gain. Married couples filing jointly can exclude up to $500,000 if at least one spouse meets the ownership test, both meet the use test, and neither claimed the exclusion on another home sale in the prior two years.2Office of the Law Revision Counsel. 26 U.S. Code 121
You can only use the exclusion once every two years. Sell before hitting the ownership and use marks and the full profit is generally taxable, unless you qualify for a partial exclusion.
Partial Exclusion When Life Forces an Early Sale
If you sell before the two-year point because of a work-related move, a health issue, or an unforeseeable event like divorce or a natural disaster, you may still claim a reduced exclusion. Take the months (or days) you lived in the home, divide by 24 months (or 730 days), and multiply by $250,000 or $500,000.3Internal Revenue Service. Publication 523, Selling Your Home
A single filer who lived in the home 18 months before a qualifying job transfer, for example, gets 18 ÷ 24 × $250,000, or $187,500 of exclusion. The IRS also considers other facts and circumstances outside those three buckets if the sale still makes continued ownership impractical. Publication 523 has the worksheets.
Surviving Spouse Rule
A surviving spouse can still claim the full $500,000 exclusion if the sale closes within two years of the date of death. The couple must have met the ownership and use tests immediately before the death, and the surviving spouse must not have remarried before the sale.2Office of the Law Revision Counsel. 26 U.S. Code 121
Wait three years to sell and the exclusion drops back to the $250,000 single-filer amount. In a market where the home has appreciated sharply, that timing can swing tens of thousands of dollars in tax.
Figuring Your Gain
Taxable gain isn’t just sale price minus purchase price. The IRS uses “adjusted basis,” which starts with what you paid and gets modified by certain costs and improvements over the years.
Building Adjusted Basis
Start with the purchase price and add closing costs you paid at buying: title insurance, recording fees, legal fees, transfer taxes. Then add capital improvements — projects that add value, extend the home’s useful life, or adapt it to a new use. A new roof, a kitchen remodel, an added bathroom, a replaced HVAC system, or a finished basement all qualify.
Routine upkeep doesn’t count. Painting, drywall patches, fixing a faucet, servicing the furnace: those are maintenance and don’t move your basis. The line between improvement and repair trips up many homeowners, and it can shift thousands of dollars in or out of the taxable number. When in doubt, ask whether the project made the home materially better, made it last longer, or gave it a new purpose.
Subtracting Selling Expenses
From the sale price, subtract selling expenses: agent commissions, title search and insurance fees, escrow fees, transfer taxes, attorney fees, recording fees, advertising costs. That gives you the amount realized. Then subtract adjusted basis. The result is your realized gain. If it falls under your exclusion amount, no federal capital gains tax is due. If it exceeds the exclusion, only the excess is taxable.
Federal Capital Gains Rates for 2026
Any gain above your exclusion is taxed based on how long you owned the home and your total taxable income.
Short-Term Versus Long-Term
Owned it a year or less? The profit is a short-term capital gain, taxed at ordinary income rates up to 37 percent.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses That’s uncommon for a primary residence because Section 121 already demands two years, but it comes up with investment properties or homes sold quickly without qualifying for the exclusion.
Homes held more than a year get preferential long-term rates of 0, 15, or 20 percent. For tax year 2026, the income thresholds are:5Internal Revenue Service. Rev. Proc. 2025-32
- 0% rate: taxable income up to $49,450 single, $98,900 joint, $66,200 head of household, $49,450 married filing separately.
- 15% rate: income above those thresholds up to $545,500 single, $613,700 joint, $579,600 head of household, $306,850 married filing separately.
- 20% rate: taxable income above the 15% ceiling.
Most homeowners with any taxable gain land in the 15 percent bracket. The 0 percent rate helps retirees and others with modest income the year they sell. The 20 percent rate only reaches genuinely high earners.
The 3.8 Percent Net Investment Income Tax
Higher earners face a 3.8 percent surtax on net investment income, and gain above the Section 121 exclusion counts. The tax applies to the lesser of your net investment income or the amount by which your modified adjusted gross income tops the statutory thresholds, which are not adjusted for inflation: $200,000 single, $250,000 joint, $125,000 married filing separately.6Internal Revenue Service. Net Investment Income Tax
Combined, the top possible federal rate on a long-term home sale gain is 23.8 percent. Reaching it requires both high overall income and a gain above the exclusion — a pairing most sellers never encounter.
Depreciation Recapture for Home Office or Rental Use
If you claimed depreciation on any part of the home — because of a home office, a rented-out room, or a period as a rental — Section 121 does not shelter the gain tied to that depreciation. This is “unrecaptured Section 1250 gain,” taxed at a maximum 25 percent rate.4Internal Revenue Service. Topic No. 409, Capital Gains and Losses
The catch: even if you were entitled to claim depreciation but didn’t, the IRS treats it as though you did. The code uses a “greater of allowed or allowable” rule, so skipping the deduction on your returns won’t help you dodge recapture at sale.3Internal Revenue Service. Publication 523, Selling Your Home
Recapture only applies to depreciation attributable to periods after May 6, 1997. Expect a portion of your gain to be carved out and taxed at 25 percent before Section 121 applies to the rest.
Inherited Homes and Step-Up in Basis
Inherit a home and your basis isn’t what the deceased paid. It’s the property’s fair market value on the date of death. This step-up can dramatically reduce or eliminate taxable gain when you sell.7Office of the Law Revision Counsel. 26 USC 1014
Say a parent bought a home for $150,000 and it was worth $400,000 at death. Your basis is $400,000. Sell for $420,000 and the taxable gain is $20,000, not $270,000. In community property states, the surviving spouse gets a step-up on both halves of community property, not just the deceased spouse’s share.
An inherited home automatically qualifies for long-term rates no matter how briefly you hold it. But Section 121 still requires two of the past five years of ownership and use as a primary residence. Inherit and sell immediately without moving in and you keep the step-up but not the $250,000 exclusion.
Selling at a Loss
If the home sells for less than your adjusted basis, you can’t deduct the loss on your federal return. A primary residence is personal-use property, and losses on personal-use property are not deductible.8Internal Revenue Service. Capital Gains, Losses, and Sale of Home You won’t owe tax on a money-losing sale, but you also can’t use the loss to offset other capital gains or ordinary income.
Reporting the Sale
Whether you report depends on two things: whether the full gain is covered by Section 121, and whether you received a Form 1099-S at closing.
If the entire gain is excluded and no 1099-S was issued, you generally don’t need to report the sale at all. That’s the outcome for most homeowners.1Internal Revenue Service. Topic No. 701, Sale of Your Home
If a 1099-S was issued, you need to report the sale even when no tax is owed. The IRS has a record of the gross proceeds, and ignoring it on your return creates a mismatch that can trigger a notice. Use Form 8949 to list the sale details, and the totals flow to Schedule D of Form 1040.9Internal Revenue Service. About Form 8949 If you’re unsure whether a 1099-S was filed, ask the escrow company or closing attorney.10Internal Revenue Service. Instructions for Form 1099-S
Pull together the original purchase settlement statement, receipts for every capital improvement, the closing statement from the sale, and any 1099-S. The IRS can request documentation years after the sale, and reconstructing improvement records at tax time is much harder than keeping them as you go.