# Capital Gains Tax on Home Sales: What Sellers Need to Know in 2026

Published: 2022-06-22


> Selling your home is an exciting endeavor and hopefully a profitable one, too. However, if your home has increased in value since you purchased it, you could be liable for the capital gains tax, which can eat into your bottom line. Here’s what you need to know about capital gains on a home sale.


## Key Takeaways



Selling a home is one of the largest financial transactions most people will ever make — and it can come with a significant tax bill. **Do you have to pay capital gains tax when you sell your house?** The short answer: it depends on how much profit you made, how long you lived there, and whether you qualify for key exclusions. Many homeowners owe nothing thanks to the home sale tax exclusion, but if your gain exceeds $250,000 (or $500,000 for married couples), you could owe federal capital gains tax — and potentially state taxes, too.

This guide covers everything you need to know about capital gains tax on home sales in 2026, including how to calculate your gain, who qualifies for the Section 121 exclusion, current tax rates, and proven strategies to avoid or reduce what you owe. Whether you're [thinking about selling](https://www.opendoor.com/articles/should-i-sell-my-house) or already have a buyer lined up, understanding these rules can save you thousands.

[Get your offer](#)

## What Is Capital Gains Tax on Real Estate?

Capital gains tax is a federal tax on the profit you earn when you sell an asset — including your home — for more than you originally paid for it. The "gain" is the difference between your **sale price** and your **adjusted cost basis** (what you paid for the home plus qualifying improvements and certain costs).

Not all home sellers owe this tax. The IRS offers a generous exclusion for primary residences, and the rate you pay depends on how long you owned the property. Still, with home values rising sharply in many markets over the past decade, more sellers are finding that their gains exceed the exclusion thresholds — making it essential to understand how the tax works before you list your home.

### How Capital Gains Are Calculated on a Home Sale

The basic formula is straightforward:

&gt; **Capital Gain = Sale Price − Selling Costs − Adjusted Cost Basis**

Your **adjusted cost basis** includes:

- The **original purchase price** of the home
- **Closing costs** from when you bought (title fees, attorney fees, transfer taxes)
- **Capital improvements** made during ownership (kitchen remodel, new roof, additions — not routine maintenance)

Your **selling costs** that reduce the gain include:

- Real estate agent commissions ([who pays these?](https://www.opendoor.com/articles/who-pays-real-estate-agent-commission))
- Title insurance and escrow fees
- Transfer taxes
- Staging, repair, and other [costs of selling a house](https://www.opendoor.com/articles/how-much-does-it-cost-to-sell-a-house)

**Example:** You bought your home for $300,000, spent $50,000 on a kitchen renovation and new HVAC system, and sold it for $550,000 with $35,000 in selling costs. Your capital gain would be:

$550,000 − $35,000 − ($300,000 + $50,000) = **$165,000 gain**

Because this is below the $250,000 single-filer exclusion threshold, you would likely owe no capital gains tax on this sale.

### Short-Term vs. Long-Term Capital Gains Tax Rates

How long you owned the property determines which tax rate applies:

- **Short-term capital gains** (property held one year or less): Taxed at your [ordinary income tax rate](https://www.irs.gov/taxtopics/tc409), which can be as high as 37%.
- **Long-term capital gains** (property held more than one year): Taxed at preferential rates of 0%, 15%, or 20%, depending on your taxable income and filing status.

Most homeowners who sell their primary residence have owned it for well over a year, so long-term rates typically apply.

**2025 Long-Term Capital Gains Tax Rates by Filing Status:**

| **Tax Rate** | **Single Filer** | **Married Filing Jointly** |
| **0%** | Up to $48,350 | Up to $96,700 |
| **15%** | $48,351 – $533,400 | $96,701 – $600,050 |
| **20%** | Over $533,400 | Over $600,050 |

*Source: \[IRS Revenue Procedure 2024-40\](https://www.irs.gov/newsroom/irs-provides-tax-inflation-adjustments-for-tax-year-2025)*

These thresholds are indexed to inflation annually, so the 2026 brackets are slightly higher — more on that below.

## The Home Sale Tax Exclusion (Section 121)

The single most powerful tax benefit for homeowners is the [Section 121 exclusion](https://www.irs.gov/taxtopics/tc701), which allows you to exclude a substantial portion of your home sale profit from federal taxes. This is the primary reason most homeowners pay zero capital gains tax when selling their primary residence.

### Who Qualifies: Ownership and Use Tests

To claim the full exclusion, you must pass **two tests** as outlined in [IRS Publication 523](https://www.irs.gov/publications/p523):

1. **Ownership test:** You owned the home for at least **2 of the 5 years** before the date of sale.

2. **Use test:** You lived in the home as your **primary residence** for at least **2 of the 5 years** before the date of sale.

The two years do not need to be consecutive. For example, if you lived in the home for 2014–2015, rented it out for 2016–2023, and then sold in 2024, you would **not** qualify because you didn't use it as a primary residence for 2 of the 5 years preceding the sale.

Additional rules to know:

- You can only use the exclusion **once every two years**.
- Both spouses must independently meet the use test to claim the $500,000 married exclusion, though only one spouse needs to meet the ownership test.

### Exclusion Amounts: $250,000 / $500,000

If you qualify, you can exclude up to:

- **$250,000** in capital gains if you file as a single taxpayer
- **$500,000** in capital gains if you're married filing jointly

Any gain **above** these thresholds is subject to long-term capital gains tax (assuming you've held the property for more than one year). For many homeowners — especially those who purchased before the recent run-up in home prices — this exclusion covers the entire gain. You can use a tool to estimate [what your home is worth](https://www.opendoor.com/articles/whats-your-home-worth-take-these-steps-to-find-out) before listing, so you can estimate your gain in advance.

### Partial Exclusion: When You Don't Meet the Full Requirements

What if you haven't lived in your home for the full two years? You may still qualify for a **partial exclusion** if you sold due to:

- **A job relocation** (generally 50+ miles farther from your workplace)
- **A health condition** (as documented by a physician)
- **Unforeseen circumstances** (death, divorce, natural disaster, or other qualifying events defined by the IRS)

The partial exclusion is calculated proportionally. For example, if you lived in the home for only 1 year out of the required 2, you could exclude up to 50% of the full amount — or $125,000 for a single filer.

**Example:** A single homeowner buys a home and lives there for 15 months before being transferred to a new city for work. They sell for a $100,000 gain. Their partial exclusion is 15/24 × $250,000 = $156,250. Because $100,000 is less than $156,250, the entire gain is excluded.

## How to Avoid or Reduce Capital Gains Tax on a Home Sale

Even if your profit exceeds the Section 121 exclusion, several legitimate strategies can help you minimize — or completely avoid — capital gains tax when selling your home.

### Use the Primary Residence Exclusion

This is the most straightforward approach. If you've lived in and owned your home for at least 2 of the last 5 years, make sure you file for the Section 121 exclusion. It's not automatic on all tax software, so double-check that you're claiming it. For married couples considering whether to [sell their house](https://www.opendoor.com/articles/how-to-sell-your-house), filing jointly can double the exclusion from $250,000 to $500,000.

### Increase Your Cost Basis With Home Improvements

Every dollar you spend on qualifying capital improvements reduces your taxable gain. This includes renovations like a new roof, a kitchen remodel, an addition, or new HVAC systems — but **not** routine maintenance like painting or fixing a leaky faucet. Keep receipts for all [improvements that increase home value](https://www.opendoor.com/articles/improvements-that-increase-home-value), because they directly lower your tax bill at sale time.

### Time Your Sale Strategically

If you're close to hitting the 2-year ownership or use mark, waiting a few extra months to sell can mean the difference between paying taxes on your full gain and excluding $250,000 or $500,000. Similarly, if selling late in a high-income year would push you into the 20% capital gains bracket, it may make sense to close in January of the following year when your income resets. Knowing the [best time to sell a house](https://www.opendoor.com/articles/best-time-to-sell-a-house) involves more than just market conditions — taxes matter, too.

### Offset Gains With Capital Losses

If you have investment losses from stocks, bonds, or other assets, you can use those losses to **offset** your capital gains from a home sale (specifically, any gain above the Section 121 exclusion). This strategy, known as tax-loss harvesting, can significantly reduce your net taxable gain. Work with a tax advisor to coordinate the timing of asset sales.

### Consider an Installment Sale

If you sell your home directly to a buyer and carry part of the financing yourself (an installment sale), you can spread the capital gain recognition across multiple tax years. This may keep your income in a lower bracket each year, reducing the overall rate you pay. Installment sales are more common with investment properties, but they can apply to primary residences as well. The IRS provides guidance on installment sales in [Publication 537](https://www.irs.gov/publications/p537).

## Capital Gains Tax on Home Sales in 2025 and 2026

Tax rules evolve, and sellers in 2026 face a unique landscape thanks to potential changes from the expiration of certain Tax Cuts and Jobs Act (TCJA) provisions.

### Current Long-Term Capital Gains Tax Brackets (2025–2026)

The 0%, 15%, and 20% long-term capital gains rate structure remains in effect for 2026. The income thresholds are adjusted annually for inflation. For the 2025 tax year, the thresholds published by the [IRS](https://www.irs.gov/newsroom/irs-provides-tax-inflation-adjustments-for-tax-year-2025) are shown in the rate table above. The 2026 thresholds are modestly higher due to inflation adjustments.

**Importantly, the home sale exclusion amounts remain at $250,000 / $500,000 for 2026.** These thresholds are set by statute and are **not** indexed to inflation — meaning they haven't changed since the Taxpayer Relief Act of 1997 established them.

### What May Change in 2026 (TCJA Expiration & Beyond)

Several [TCJA provisions are scheduled to expire](https://www.taxpolicycenter.org/taxvox/what-tax-provisions-are-expiring-after-2025) after December 31, 2025, which could affect your overall tax picture in 2026:

- **Ordinary income tax brackets** may revert to pre-2018 levels, which were generally higher. While this doesn't directly change capital gains rates, it affects short-term gains (taxed as ordinary income) and influences your overall marginal rate.
- **The standard deduction** may decrease, potentially affecting how you file in the year you sell.
- **State and local tax (SALT) deduction cap** of $10,000 may be lifted, giving sellers in high-tax states more deduction flexibility.

Congress may extend, modify, or replace these provisions. If you're planning a sale, consult a tax professional about how the current legislative environment could affect your specific situation.

### The 3.8% Net Investment Income Tax (NIIT)

High-earning sellers should also plan for the **Net Investment Income Tax (NIIT)**, an additional [3.8% surtax](https://www.irs.gov/individuals/net-investment-income-tax) on investment income — including capital gains from home sales — that applies when your modified adjusted gross income exceeds:

- **$200,000** for single filers
- **$250,000** for married filing jointly

This means a high-income couple with a $600,000 gain on a home sale could owe the standard 15% or 20% capital gains rate **plus** the 3.8% NIIT on the $100,000 that exceeds their $500,000 exclusion. Many online calculators omit this tax, so be aware of it when estimating your total liability.

## Taxes on Selling a House: Beyond Capital Gains

Capital gains tax gets the most attention, but it's not the only tax consideration when selling. Understanding the full picture helps you budget accurately for your [closing costs as a seller](https://www.opendoor.com/articles/how-much-are-closing-costs-for-seller).

### Transfer Taxes and Closing Costs

Most states and some municipalities charge a **transfer tax** (sometimes called a documentary stamp tax or deed tax) when real property changes hands. Rates vary widely — from 0.01% in Colorado to over 2% in some parts of New York. These are typically split between buyer and seller or assigned by local custom, and they're deductible from your gain calculation.

### Depreciation Recapture If You Rented Your Home

If you ever rented out your home or claimed a home office deduction, you may have taken depreciation deductions during that period. When you sell, the IRS requires you to "recapture" that depreciation at a rate of [up to 25%](https://www.irs.gov/taxtopics/tc703) — regardless of whether your overall gain qualifies for the Section 121 exclusion. This catches many sellers by surprise, especially those who converted a rental property back to a primary residence.

### Property Tax Proration

At closing, property taxes are prorated between buyer and seller based on the [closing date](https://www.opendoor.com/articles/house-closing-process-for-seller). Depending on when in the tax year you sell, you may owe a prorated amount or receive a credit. This doesn't create a separate "tax event," but it does affect your net proceeds.

## 1031 Exchange: Deferring Capital Gains on Investment Property

### How a 1031 Exchange Works

A [Section 1031 like-kind exchange](https://www.irs.gov/like-kind-exchanges-under-irc-section-1031) allows real estate investors to **defer** capital gains tax by reinvesting the proceeds from a property sale into a similar "like-kind" property. The key timelines are strict:

- You must **identify** a replacement property within **45 days** of selling.
- You must **close** on the replacement property within **180 days**.

A qualified intermediary must hold the funds during the exchange — you cannot take possession of the cash at any point, or the exchange is disqualified.

### Why It Doesn't Apply to Your Primary Residence

A common misconception: **you cannot use a 1031 exchange for your primary residence.** The IRS limits 1031 exchanges to property "held for productive use in a trade or business or for investment." If you own rental or investment property and are thinking about selling, a 1031 exchange is worth exploring — but for your personal home, the Section 121 exclusion is the primary tax benefit.

## Capital Gains Tax on Inherited Property

### How Stepped-Up Basis Works

When you inherit a home, your cost basis is "stepped up" to the property's [fair market value](https://www.opendoor.com/articles/fair-market-value-of-a-home-what-it-means-and-how-to-find-it) on the date of the original owner's death — not what they originally paid for it. This stepped-up basis can dramatically reduce or eliminate capital gains if you sell the inherited property.

### Example: Calculating Gains on an Inherited Home

Your parent bought a home in 1985 for $80,000. At the time of their death in 2025, the home's fair market value was $425,000. Your stepped-up basis is **$425,000** — not $80,000.

If you sell the home six months later for $430,000 (minus $25,000 in selling costs), your capital gain is:

$430,000 − $25,000 − $425,000 = **-$20,000 (a loss)**

In this scenario, you'd owe **zero** capital gains tax — and might even be able to claim the loss on your return. Without the stepped-up basis, you would have owed tax on a $325,000 gain. Getting a professional [home appraisal](https://www.opendoor.com/articles/how-long-does-an-appraisal-take) near the date of inheritance is critical for establishing this basis.

## State Capital Gains Tax on Real Estate

Federal capital gains tax is only part of the equation. Your state may also tax capital gains from home sales.

### States With No Capital Gains Tax

Nine states have **no state income tax**, which means no state capital gains tax: Alaska, Florida, Nevada, New Hampshire (on wages; it does tax dividends and interest), South Dakota, Tennessee, Texas, Washington (with a notable exception below), and Wyoming. Selling in one of these states simplifies your tax picture considerably.

### High-Tax States to Watch

- **California** taxes capital gains as ordinary income, with a top rate of [13.3%](https://www.ftb.ca.gov/file/personal/tax-rates.html) — the highest in the nation.
- **New York** also taxes capital gains as ordinary income, with combined state and city rates reaching over 12% in New York City.
- **Washington** enacted a 7% capital gains tax on gains exceeding $250,000 (after exclusions) for sales of certain assets, [effective 2022](https://dor.wa.gov/taxes-rates/other-taxes/capital-gains-tax).

If you live in a high-tax state and are evaluating whether to sell, factor state taxes into your net proceeds calculation. A local CPA or tax advisor can model your specific situation.

[Get your offer](#)

## Frequently Asked Questions

**Do I have to pay capital gains tax when I sell my house?**

Not necessarily. If you've owned and lived in the home for at least 2 of the last 5 years, you can exclude up to $250,000 in gains ($500,000 if married filing jointly) under the Section 121 exclusion. You only owe tax on gains above those thresholds.

**How do I calculate capital gains on a home sale?**

Subtract your adjusted cost basis (purchase price plus capital improvements) and selling costs from the final sale price. The result is your capital gain. Use the Section 121 exclusion to reduce or eliminate the taxable amount.

**What is the home sale tax exclusion?**

It's a provision under [IRS Section 121](https://www.irs.gov/taxtopics/tc701) that lets qualifying homeowners exclude up to $250,000 (single) or $500,000 (married filing jointly) in profits from a primary residence sale from federal income tax.

**How long do I have to live in my house to avoid capital gains tax?**

You must live in the home as your primary residence for at least 2 of the 5 years preceding the sale. The 2 years do not need to be consecutive. If you sell sooner due to a job change, health issue, or unforeseen circumstances, you may qualify for a partial exclusion.

**What is the capital gains tax rate on real estate in 2026?**

Long-term capital gains (property held over one year) are taxed at 0%, 15%, or 20% depending on your taxable income and filing status. High earners may also owe the 3.8% Net Investment Income Tax. Short-term gains are taxed at ordinary income rates.

**Can I do a 1031 exchange on my primary residence?**

No. A 1031 like-kind exchange applies only to investment or business property. For your primary residence, the Section 121 exclusion is the main way to avoid or reduce capital gains tax.

**Do home improvements reduce my capital gains tax?**

Yes. Capital improvements — such as a [new roof](https://www.opendoor.com/articles/does-a-new-roof-increase-home-value-roi-costs-and-what-sellers-need-to-know), a kitchen remodel, or a room addition — increase your cost basis, which reduces your taxable gain. Routine repairs and maintenance do not qualify.

**What happens with capital gains tax on an inherited home?**

When you inherit a home, your cost basis is "stepped up" to the property's fair market value at the time of the previous owner's death. This often eliminates most or all of the capital gain if you sell relatively soon after inheriting.

**Are there ways to reduce capital gains tax besides the exclusion?**

Yes. You can increase your cost basis with documented improvements, offset gains with capital losses from other investments, time your sale to manage your income bracket, or structure an installment sale to spread gains across multiple tax years.

**Does selling to Opendoor affect my capital gains tax?**

No. Your capital gains tax obligation is the same regardless of whether you sell through a traditional listing, to an iBuyer like Opendoor, or via any other method. What matters is your gain amount, ownership duration, and exclusion eligibility. Learn more about [how selling to Opendoor compares to a traditional sale](https://www.opendoor.com/articles/how-selling-to-opendoor-compares-to-a-traditional-home-sale).

*This article is for informational purposes only and does not constitute tax or legal advice. Tax laws are complex and vary by individual circumstance. Consult a qualified tax professional or CPA for guidance specific to your situation.*

---
*Originally published at [https://www.opendoor.com/articles/what-to-know-about-the-capital-gains-tax-on-home-sales](https://www.opendoor.com/articles/what-to-know-about-the-capital-gains-tax-on-home-sales)*

<!-- structured-data
{
  "@context": "https://schema.org",
  "@type": "Article",
  "@id": "https://www.opendoor.com/articles/what-to-know-about-the-capital-gains-tax-on-home-sales",
  "mainEntityOfPage": "https://www.opendoor.com/articles/what-to-know-about-the-capital-gains-tax-on-home-sales",
  "dateModified": "2026-04-20T16:21:41.497Z",
  "datePublished": "2022-06-22T00:00:00.000Z",
  "image": [
    "https://images.ctfassets.net/bjlp9d7o6h1o/7ylM5LwkoXJ9E4nE2PS7Jz/6888ba5192122b9c2ef98f3fb77489cb/Bankrate_Apr_CapitalGainsTax.jpg",
    "https://images.opendoor.com/source/s3/imgdrop-production/1afd9b4404c54cd5bd4d3737eec0d70d.jpg?preset=square-2048"
  ],
  "inLanguage": "en-US",
  "headline": "Capital Gains Tax on Home Sales: What Sellers Need to Know in 2026",
  "description": "Selling your home is an exciting endeavor and hopefully a profitable one, too. However, if your home has increased in value since you purchased it, you could be liable for the capital gains tax, which can eat into your bottom line. Here’s what you need to know about capital gains on a home sale."
}
-->