Taxes on Selling a House in 2026

Selling the house does not mean the IRS sits this one out.

Most owners focus on the sale price. The tax return focuses on the gain. Those are not the same number.

You may be able to exclude up to $250,000 of gain, or up to $500,000 on a joint return. But a home office, a rental period, a high-income year, or state tax can still leave you with a bill.

This guide explains the federal rules in plain English. It is educational, not tax advice. Use a CPA who can see your full return before you close.

How taxes on selling a house work

Start with the gain, not the check you receive at closing.

Gain = amount realized – adjusted basis

Your amount realized is usually the sale price minus selling costs. Selling costs can include broker commissions, transfer taxes paid by the seller, title and escrow fees, legal fees, and seller-paid credits.

Your adjusted basis usually starts with what you paid for the home. Add eligible purchase costs and capital improvements. Then subtract depreciation that was allowed or allowable for rental or business use, plus certain other basis reductions.

What raises your basis

A capital improvement adds value, extends the home’s useful life, or changes how you use it. Common examples include an addition, a new roof, a full kitchen remodel, new HVAC, replacement windows, or a deck.

Normal repairs and upkeep do not raise basis. Painting a room, fixing a leak, or replacing one broken part usually does not count. A repair can count when it is part of a larger remodel. Keep the invoices and proof of payment.

Special basis rules

  • Inherited property generally receives a new basis based on fair market value at death, though exceptions apply. DailyDime’s inheritance tax guide explains why the step-up can matter more than estate tax for many families.
  • Gifted property usually keeps the donor’s basis. A special dual-basis rule can apply when the property’s value was below the donor’s basis on the gift date.
  • A transfer between spouses or incident to divorce is usually not taxable at the time of transfer. The receiving spouse generally takes the prior basis.

The Section 121 home sale exclusion

Section 121 is the main federal tax break for a home sale. You can usually exclude up to $250,000 of gain if you meet these tests:

  • Ownership test: You owned the home for at least 24 months during the five years before the sale.
  • Use test: You lived in it as your main home for at least 24 months during the same five-year window. The months do not have to be continuous.
  • Look-back test: You did not exclude gain from another home sale during the two years before this sale.

How married couples reach $500,000

A married couple filing jointly can claim up to $500,000 when either spouse meets the ownership test, both spouses meet the use test, and neither spouse used the exclusion on another home during the prior two years.

If one spouse fails a test, the answer is not always a flat $250,000. The couple may be able to add the exclusion each spouse could claim on a separate return. That calculation depends on who owned the home, who lived there, and whether either spouse used a prior exclusion.

A surviving spouse may still use the $500,000 cap if the sale closes within two years of the spouse’s death, the survivor has not remarried, and the other requirements are met.

A partial exclusion may save the deal

You may qualify for part of the exclusion when work, health, or an unforeseen event forces an early sale.

  • For work, the new job location generally must be at least 50 miles farther from the home than the old job location was. A first job at least 50 miles from the home can also qualify.
  • Health reasons can include a move needed to diagnose, treat, or care for a qualifying person.
  • Unforeseen events can include death, divorce, job loss, multiple births from one pregnancy, or other facts that make the home no longer workable.

The limit is prorated. If the shortest qualifying period is 12 months, the maximum exclusion is generally half of the normal cap.

Other rules that change the exclusion

  • Qualified members of the military, Foreign Service, and intelligence community can suspend the five-year test period for up to 10 years during certain extended-duty periods.
  • A personal loss on the sale of your main home is not deductible.
  • Selling a second home or rental does not qualify just because you own another home that would pass the test. The property sold must be your main home.

The IRS home-sale guide includes worksheets for the ownership, use, gain, and exclusion calculations.

A simple home sale tax example

Assume a married couple files jointly, qualifies for the full $500,000 exclusion, and used part of the home for an office. They claimed $20,000 of depreciation after May 6, 1997.

Calculation

Amount

Sale price

$1,200,000

Less selling costs

($72,000)

Amount realized

$1,128,000

Basis before depreciation

$550,000

Less depreciation allowed or allowable

($20,000)

Adjusted basis

$530,000

Total gain

$598,000

Depreciation-related gain that cannot be excluded

$20,000

Remaining gain eligible for Section 121

$578,000

Less Section 121 exclusion

($500,000)

Other taxable long-term gain

$78,000

Total taxable gain

$98,000

Why the taxable gain is $98,000: The $20,000 depreciation slice cannot be excluded. The couple can exclude $500,000 of the remaining $578,000, leaving another $78,000 taxable. This is a simplified federal example. State tax and NIIT may add more.

What tax rate applies after the exclusion

If you owned the home for more than one year, the remaining gain is generally long-term capital gain. Your total taxable income sets the rate. The threshold is not based on the home gain by itself.

For 2026, the main federal long-term capital-gain brackets are:

  • 0%: taxable income up to $49,450 for single filers or $98,900 for married couples filing jointly.
  • 15%: taxable income from $49,451 to $545,500 for single filers or $98,901 to $613,700 for joint filers.
  • 20%: taxable income above $545,500 for single filers or $613,700 for joint filers.

These are bracket cutoffs. Part of one gain can fall into more than one rate band. If you owned the home for one year or less, taxable gain is short-term capital gain and is taxed at ordinary income rates, which reach 37% in 2026.

The IRS 2026 inflation adjustments publish the official capital-gain thresholds.

The 3.8% Net Investment Income Tax

The 3.8% Net Investment Income Tax, or NIIT, can apply when modified adjusted gross income exceeds $200,000 for single or head-of-household filers, or $250,000 for married couples filing jointly.

The tax applies to the lesser of net investment income or the amount by which modified AGI exceeds the threshold. Gain excluded under Section 121 is not net investment income. Taxable gain can be.

The IRS NIIT examples show how the home exclusion and the income threshold work together.

Depreciation is its own tax problem

Gain tied to depreciation allowed or allowable after May 6, 1997 cannot be excluded under Section 121. It may fall into the unrecaptured Section 1250 gain bucket, with a maximum federal rate of 25%. That does not mean every dollar is taxed at 25%. The actual rate depends on the rest of your return.

Home offices and rental periods

A home office inside the same dwelling does not always require you to split the sale into two properties. You still must account for depreciation. A detached office, separate rental unit, or other space outside the living area may require a separate gain calculation and Form 4797.

Rental use before the home became your main residence

For periods after 2008, time when the property was not your main home can create nonqualified-use gain. That share of the gain cannot be excluded even if you later live there for two years.

The rule has exceptions. Time after your last use as a main home before the sale is generally not treated as nonqualified use. Certain temporary absences and qualified-duty periods also receive special treatment. Do not estimate this piece from memory. Use the IRS worksheet.

Second homes, rentals, and planning tools

A second home or pure rental does not receive the Section 121 exclusion. The full gain may be taxable, including the depreciation-related portion.

A 1031 exchange

A Section 1031 exchange can defer gain on real property held for investment or business use. It does not apply to the personal-use part of your main home. Mixed-use property and a home converted to rental use can create a split calculation, so the structure must be in place before closing. The IRS like-kind exchange guide explains the basic federal limits.

An installment sale

If the buyer pays over time, the installment method may spread taxable gain across the years you receive principal. It does not spread every tax item. Depreciation recapture is generally reported in the year of sale, and interest is taxed as interest. Read DailyDime’s guide to seller financing before trading cash at closing for a buyer’s promise to pay.

Converting a rental to a home

Moving into a rental and living there for two years can create an exclusion. It does not erase prior depreciation or nonqualified-use gain. The longer rental history can make the available exclusion much smaller than $250,000 or $500,000.

State and local taxes

Many states begin with federal income, which often carries the Section 121 exclusion into the state return. But state rules, rates, and deductions differ. The taxable part of the gain may be taxed at the state’s regular income-tax rate.

Alaska, Florida, Nevada, New Hampshire, South Dakota, Tennessee, Texas, Washington, and Wyoming do not impose a broad individual income tax. Washington has a separate capital-gains tax, but real estate is excluded from that tax.

A closing can also include transfer or conveyance tax, local charges, property-tax prorations, and nonresident withholding. These are different from income tax. Some selling costs reduce your amount realized, while withholding is a prepayment that you settle on a state return.

How to report the sale

You generally must report the sale when any gain is taxable, when you choose not to claim the exclusion, or when you receive Form 1099-S. A taxable personal-residence sale usually flows through Form 8949 and Schedule D. A separate business or rental portion may also require Form 4797.

If all gain is excluded and you did not receive Form 1099-S, you generally do not report the sale.

Foreign sellers face a separate rule called FIRPTA. The buyer generally must withhold 15% of the amount realized, though exceptions and reduced withholding rules can apply. That is withholding on gross proceeds, not the final tax bill. See the IRS FIRPTA withholding rules before closing.

Why this hits business owners harder

A W-2 employee may have a steady income line. Owners often do not. One large K-1, a strong Schedule C year, or the sale of another asset can push home-sale gain into the 20% capital-gain bracket and trigger NIIT.

The timing can matter even when the gain does not change. If you receive pass-through income, review how K-1 income, capital accounts, and basis affect the rest of your tax return before you pick a closing date.

A home office adds another trap. The business deduction may have saved tax for years, but the depreciation-related gain comes back into the sale calculation even when the rest fits under the exclusion.

The home sale tax checklist

  1. Start with the closing price and subtract eligible selling costs.
  2. Rebuild basis from the purchase records, eligible closing costs, and capital improvements.
  3. Subtract all depreciation allowed or allowable for rental and business use.
  4. Test ownership, use, and the two-year look-back for Section 121.
  5. Separate depreciation-related gain and any nonqualified-use gain.
  6. Estimate federal capital-gain tax, NIIT, and state tax using your full-year income.
  7. Review 1031 or installment-sale options before closing if the property qualifies.
  8. Keep Form 1099-S, state withholding forms, closing statements, invoices, and basis records.

The bottom line

The sale price does not tell you the tax bill. Basis, the Section 121 exclusion, depreciation, rental use, income, and state rules do.

Run the numbers with a CPA before you choose a closing date if the gain is near the exclusion cap, you ever rented the property, or you claimed home-office depreciation. For a business owner, moving the sale into a lower-income year can be worth more than shaving another point off the commission.




Content on this site is for educational and informational purposes only and is not intended as financial, tax, legal, investment, or accounting advice. No professional-client relationship is formed by your use of this site. Always consult a licensed professional for your specific business needs.

Terms of Service & Privacy Policy