Skip to content
Solar Account.
Real Estate & Mortgages

Do You Pay Capital Gains on Home Sale? Key Rules for 2026

In most cases, you do not pay capital gains tax on the sale of your primary residence, provided the profit falls below specific thresholds. As of 2026, the Internal Revenue Service (IRS) allows individuals to exclude up to $250,000 of gain, while married coupl...

Do You Pay Capital Gains on Home Sale? Key Rules for 2026

In most cases, you do not pay capital gains tax on the sale of your primary residence, provided the profit falls below specific thresholds. As of 2026, the Internal Revenue Service (IRS) allows individuals to exclude up to $250,000 of gain, while married couples filing jointly can exclude up to $500,000, provided they meet specific ownership and residency requirements.

Contents

Understanding Capital Gains in the 2026 Real Estate Market

When you sell a piece of real estate for more than its "adjusted basis"—essentially what you paid for it plus the cost of major improvements—the resulting profit is considered a capital gain. For most assets, such as stocks or bonds, these gains are taxable in the year the asset is sold. However, the United States tax code provides a significant "safe harbor" for homeowners to encourage residential stability and wealth building.

Under Internal Revenue Code Section 121, the gain from the sale of a main home is often partially or entirely tax-free. To benefit from this, you must understand the distinction between a "capital gain" and "equity." Equity is the value of the home minus your mortgage balance; capital gain is the value of the home minus what you originally invested in it. You are only potentially taxed on the gain, not the equity.

If your profit exceeds the $250,000 or $500,000 exclusion limits, the excess is typically taxed at long-term capital gains rates. For 2026, these rates remain 0%, 15%, or 20%, depending on your total taxable income and filing status. Additionally, high-income earners may be subject to the 3.8% Net Investment Income Tax (NIIT) on the portion of the gain that exceeds the exclusion.

The Section 121 Exclusion: Primary Eligibility Rules

Capital Gains Tax When Selling Your Home | Wealth Management at UW ...

The primary mechanism that allows sellers to avoid capital gains tax is the Section 121 exclusion. To qualify for the full exclusion in 2026, you must pass three primary tests: the ownership test, the use test, and the look-back rule.

The Ownership Test

You must have owned the home for at least two years during the five-year period ending on the date of the sale. These 24 months do not need to be consecutive. For married couples filing jointly, only one spouse needs to meet the ownership requirement to qualify for the full $500,000 exclusion.

The Use Test

You must have lived in the home as your primary residence for at least two years (730 days) out of the five years leading up to the sale. Unlike the ownership test, both spouses must meet the use test to claim the full $500,000 exclusion. If only one spouse meets the use test, the exclusion is generally limited to $250,000.

The Look-Back Rule

You can generally only claim the Section 121 exclusion once every two years. If you sold another home within the two-year period prior to the current sale and excluded the gain from that sale, you generally cannot exclude the gain from the current sale. This prevents "house flipping" from being used as a tax-free investment strategy.

Calculating Your Adjusted Cost Basis

The amount of tax you owe depends entirely on your "basis." Many homeowners mistakenly believe their basis is simply the price they paid for the home. In reality, the adjusted basis is often much higher, which works in your favor by reducing the taxable gain.

Elements of the Initial Basis

Your starting point is the purchase price. To this, you add specific settlement fees and closing costs, such as:

  • Title insurance and legal fees.
  • Recording fees and survey costs.
  • Transfer taxes paid by the buyer.
  • Any amounts you paid to the seller for back taxes or interest.

Capital Improvements vs. Repairs

You can increase your basis by the cost of "capital improvements." These are projects that add value to the home, prolong its useful life, or adapt it to new uses. General repairs, such as fixing a leak or painting a room, do not increase your basis. However, if those repairs are part of a larger remodeling project (like a new roof or a complete kitchen overhaul), they may be included.

Common improvements that increase basis include:

  • Additions: Bedrooms, bathrooms, decks, or garages.
  • Systems: New HVAC units, security systems, or central vacuuming.
  • Exterior: New siding, windows, or landscaping.
  • Interior: Built-in appliances, flooring, or fireplace installs.

It is vital to maintain receipts and records for these improvements for the entire duration of your homeownership. When you sell in 2026, these records will be your primary evidence to lower your tax liability if your gain is near the exclusion limits.

Summary of Home Sale Exclusion Rules

The following table summarizes the requirements and limits for the home sale capital gains exclusion for the 2026 tax year.

Requirement/Limit Single Filer Married Filing Jointly
Maximum Exclusion $250,000 $500,000
Ownership Test 2 of last 5 years 1 spouse must meet 2 of last 5
Use Test 2 of last 5 years Both spouses must meet 2 of last 5
Frequency Limit Once every 2 years Once every 2 years
Primary Residence Required Required
Tax on Excess Gain 0%, 15%, or 20% 0%, 15%, or 20%

Partial Exclusions and Special Circumstances

The IRS recognizes that life events can force a sale before you meet the two-year ownership or use requirements. In 2026, you may still qualify for a "partial exclusion" if the primary reason for your sale is one of the following:

Work-Related Move

If you move because of a change in your place of employment, or your spouse's, you may qualify for a partial exclusion. Generally, the new place of work must be at least 50 miles farther from your old home than your old workplace was.

Health Reasons

If you sell your home to obtain, provide, or facilitate diagnosis, cure, or treatment for a disease or injury for yourself or a family member, you may qualify. This also applies if a doctor recommends a change in residence for health reasons.

Unforeseen Circumstances

The IRS allows partial exclusions for "unforeseen circumstances," which include events like divorce or legal separation, death of a spouse or co-owner, multiple births from the same pregnancy, or natural disasters resulting in a casualty loss to the home.

The partial exclusion is calculated based on the portion of the two-year period you actually met the requirements. For example, if you lived in the home for 12 months (50% of the required 24 months) and had to move for a job, a single person could exclude up to $125,000 of the gain (50% of $250,000).

Rules for Military, Foreign Service, and Intelligence Officers

Members of the uniformed services, Foreign Service, and the intelligence community have more flexible rules regarding the use test. Because these professionals are often deployed or stationed away from home, they can elect to "suspend" the five-year test period for up to 10 years.

This means a service member could live in a home for two years, be deployed for 10 years, and still sell the home and claim the full exclusion, even though they haven't lived there in a decade. This rule ensures that those serving the country are not penalized by the tax code for their mandatory relocations. Detailed guidance on these exceptions can be found in IRS Publication 523.

Investment Properties and Depreciation Recapture

It is important to distinguish a primary residence from an investment property. If you sell a rental property or a second home that was never your primary residence, you generally cannot use the Section 121 exclusion. You will owe capital gains tax on the entire profit.

Furthermore, if you used a portion of your home for business (like a home office) or rented it out, you likely claimed depreciation on your tax returns in prior years. When you sell, the IRS requires you to "recapture" that depreciation. Depreciation recapture is taxed at a maximum rate of 25% and cannot be excluded under the $250,000/$500,000 rules. This ensures the IRS recovers the tax benefits you received while the home was being used for income-producing purposes.

Reporting the Sale to the IRS

If you meet all the criteria for the exclusion and your gain is below the limit, you generally do not need to report the sale on your tax return at all. However, you must report the sale if:

  1. You received a Form 1099-S, Proceeds From Real Estate Transactions.
  2. Your gain exceeds the exclusion limit ($250,000 or $500,000).
  3. You do not meet all the eligibility requirements and have a taxable gain.
  4. You are choosing to "opt out" of the exclusion for strategic reasons (rare).

If reporting is required, use Schedule D (Form 1044) and Form 8949 to calculate and report the transaction.

FAQ: Key Rules for Capital Gains on Home Sales

What if I inherited the home I am selling?

When you inherit a home, you typically receive a "step-up in basis." This means your cost basis becomes the fair market value of the home on the date of the original owner's death, rather than what they originally paid for it. If you sell the home shortly after inheriting it, there is often little to no capital gain to tax. If you move into the home and make it your primary residence, you can eventually qualify for the Section 121 exclusion after meeting the two-year use and ownership tests.

Can I use the exclusion if I sold my home at a loss?

No. Capital losses on the sale of personal property, including your main home, are not deductible. If you sell your home for less than your adjusted basis, you cannot use that loss to offset other capital gains (like stock market profits).

Does the exclusion apply to vacant land?

Generally, no. The exclusion applies to your "dwelling unit." However, if you sell vacant land that is adjacent to your home and was used as part of your home, you may be able to include it in the exclusion if the sale occurs within two years before or after the sale of the house itself.

How does divorce affect the two-year rule?

If a home is transferred to you as part of a divorce settlement, you can count the time your former spouse owned the home as your own ownership period. Additionally, if your former spouse is allowed to live in the home under a divorce or separation agreement, their use of the home is treated as your use for the purpose of the use test.

What happens if I own a multi-family property?

If you own a duplex and live in one unit while renting out the other, you can only apply the Section 121 exclusion to the portion of the gain attributable to the unit you lived in. The gain on the rental portion is fully taxable and subject to depreciation recapture rules.

Strategic Actions for 2026 Home Sellers

To minimize your tax burden when selling a home, begin by gathering all documentation related to the original purchase and any capital improvements made over the years. Even if you believe your gain is well below the $250,000 or $500,000 threshold, having these records is essential in the event of an IRS audit or if market appreciation unexpectedly pushes your gain above the limits.

If you are approaching the two-year mark for residency, it is often financially beneficial to delay your closing date until you have officially crossed the 730-day threshold. Missing this mark by even a few days can result in losing the entire exclusion unless you qualify for a partial exclusion due to unforeseen circumstances. Finally, consult with a tax professional if you have used your home for business or rental purposes, as depreciation recapture can create a complex tax scenario that requires precise calculation.

Written by

Elizabeth Ward

Real Estate & Housing Analyst