Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet (2024)

MORE LIKE THISTax Strategy and PlanningSelling a HomeTaxes

It feels great to get a high price for the sale of your home, but in some cases, the IRS may want a piece of the action. That’s because capital gains on real estatecan be taxable. Here’s how you can minimize or even avoid a tax bite on the sale of your house.

How do capital gains taxes on real estate work?

When you sell a house for more than what you paid for it, you could be subject to a capital gains tax on the profit you make from the sale. The good news is that many people avoid paying capital gains tax on the sale of their primary home because of an IRS rule that lets you exclude a certain amount of the gain from your taxable income.

Generally, people who qualify for the home sale capital gain exclusion can exclude:

  • $250,000 of capital gains if single.

  • $500,000 of capital gains if married and filing jointly.

This exemption is formally called the Section 121 exclusion.

But if you want to take advantage of the capital gains tax exclusion on home sales, you need to know the rules. Not all types of properties are eligible, and certain ownership factors can disqualify you from taking the exclusion.

» Considering selling? Learn tips for any market.

Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet (1)

Simple tax filing with a $50 flat fee for every scenario

With NerdWallet Taxes powered by Column Tax, registered NerdWallet members pay one fee, regardless of your tax situation. Plus, you'll get free support from tax experts. Sign up for access today.

Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet (2)

Transparent pricing

Hassle-free tax filing* is $50 for all tax situations — no hidden costs or fees.

Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet (3)

Maximum refund guaranteed

Get every dollar you deserve* when you file with this tax product, powered by Column Tax.

Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet (4)

Faster filing

File up to 2x faster than traditional options.* Get your refund, and get on with your life.

*guaranteed by Column Tax

Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet (5)

When do you pay capital gains tax on a home sale?

If you sell a house and any of the following factors are true, you are not eligible for the exclusion and may owe capital gains taxes on the whole gain of the sale:

1. The home wasn’t your principal residence

The IRS defines "home" broadly — your home could be a condo, a co-op, a mobile home or even a houseboat. The key to being eligible for the real estate capital gains tax exclusion is that it must be your primary (what the IRS calls "principal") home, meaning the place where you spend most of your time.

If you own more than one home, you should conduct a "facts and circ*mstances" test to make sure the home you're selling will be recognized as a principal residence by the IRS.

Details that strengthen your home's status as primary include that the home's address is used in your official documents (tax returns, driver's license, voting registration, and with the Postal Service) and that the residence is close by to certain day-to-day needs, such as your bank, your workplace, or any types of organizations you are part of.

2. You owned the home for fewer than two years

The agency requires that you have owned the home for at least two years in the five-year period before you sold it. You may catch a break here if you're married and filing jointly — only one of the spouses is required to meet this test.

3. You didn’t live in the house for at least two years in the five-year period before you sold it

Owning the home isn't enough to avoid capital gains on the sale —the IRS also wants to make sure that you actually intended to live in the house, at least for a certain period of time. Living in the home for at least two of the five years helps to establish this. The IRS is flexible here — the 24 months don't have to be consecutive, and temporary absences, such as vacations, also don't count as being "away."

🤓Nerdy Tip

The primary home sale exclusion does not apply to rental properties. If you're planning to sell a rental property, a more complex set of rules apply. For example, depreciation recapture comes into play, and long- or short-term capital gains tax will apply, depending on how long you owned the rental property.

» Own a rental property? Five big property tax deductions to know about

People who are disabled or needed outpatient care, and people in the military, Foreign Service or intelligence community also may get an exception to this rule. See IRS Publication 523 for details.

4. You already claimed the home sale capital gains exclusion

You can't claim the exclusion if you already took it for another home in the two-year period before the sale of this home.

5. You bought the house through a like-kind exchange

Your home is not qualified for the exclusion if you purchased it through a like-kind exchange, also sometimes called a 1031 exchange, in the past five years. This kind of purchase basically means swapping one investment property for another.

6. You're subject to expatriate tax

The expatriate tax is a fee levied by the IRS on certain people who have given up their citizenship, or who have given up their U.S. residency status as a result of living abroad for an extended period of time. If you are subject to this tax, you can't take the exclusion.

» Still not sure whether you qualify for the exclusion? Our tool below might help. Otherwise, scroll down for ways to avoid capital gains tax on a home sale.

Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet (6)

Simple tax filing with a $50 flat fee for every scenario

With NerdWallet Taxes powered by Column Tax, registered NerdWallet members pay one fee, regardless of your tax situation. Plus, you'll get free support from tax experts. Sign up for access today.

for a NerdWallet account

Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet (7)

Calculating capital gains tax on a home sale

The capital gains tax on your home sale depends on how much profit you make from the sale of your home. Profit is generally defined as the difference between how much you paid for the home and how much you sold it for.

Let's say, for example, that you bought a home 10 years ago for $200,000 and sold it today for $800,000. Your net profit would be $600,000. If you’re married and filing jointly, $500,000 of that gain might not be subject to the capital gains tax — but $100,000 of the gain could be.

If it turns out that all or part of the money you made on the sale of your house is taxable, you need to figure out which capital gains tax rate applies:

  • Short-term capital gains tax rates typically apply if you owned the asset a year or less. The rate is equal to your ordinary income tax rate, also known as your income tax bracket.

  • Long-term capital gains tax rates typically apply if you owned the asset for more than a year. The rates are much less onerous; many people qualify for a 0% tax rate. Everybody else pays either 15% or 20%. It depends on your filing status and income.

2023 long-term capital gains tax rates and brackets

Tax-filing status

0% tax rate

15% tax rate

20% tax rate

Single

$0 to $44,625.

$44,626 to $492,300.

$492,301 or more.

Married, filing jointly

$0 to $89,250.

$89,251 to $553,850.

$553,851 or more.

Married, filing separately

$0 to $44,625.

$44,626 to $276,900.

$276,901 or more.

Head of household

$0 to $59,750.

$59,751 to $523,050.

$523,051 or more.

Short-term capital gains are taxed as ordinary income according to federal income tax brackets.

Will you owe capital gains taxes on your home sale?

» Not sure what federal tax bracket you're in? Take a look at our tax bracket and tax rate breakdown.

How to avoid capital gains tax on real estate

1. Live in the house for at least two years

The two years don’t need to be consecutive, but house flippers should beware. If you sell a house that you didn’t live in for at least two years, the gains can be taxable. Selling in less than a year is especially expensive because you could be subject to the short-term capital gains tax, which is higher than the long-term capital gains tax.

2. See whether you qualify for an exception

If you have a taxable gain on the sale of your home, you might still be able to exclude some of it if you sold the house because of work, health or “an unforeseeable event,” according to the IRS. Check IRS Publication 523 for details.

3. Keep the receipts for your home improvements

The cost basis of your home typically includes what you paid to purchase it, as well as the improvements you've made over the years. When your cost basis is higher, your exposure to the capital gains tax may be lower. Remodels, expansions, new windows, landscaping, fences, new driveways, air conditioning installs — they’re all examples of things that might cut your capital gains tax.

Is there an over-55 home sale exemption?

No. Homeowners aged 55 and above used to be eligible for a one-time $125,000 capital gains tax exclusion on the sale of their home, but this tax law expired in 1997 and was replaced by the current $500,000 exclusion cap, which is applicable to a wider range of taxpayers.

Advertisem*nt

Facet
Vanguard Personal Advisor
Harness Wealth

Fees

$2,400 and up

per year (free initial consultation)

Fees

0.35%

management fee

Fees

Up to 1%

per year

Account minimum

$0

Account minimum

$50,000

Account minimum

$250,000

Promotion

Get $300 reward

into Facet brokerage account for new members who transfer at least $5,000 within the first 90 days of their Facet membership.*

Promotion

None

no promotion available at this time

Promotion

$250 off

one year of financial or tax planning

Learn More
Learn More
Learn More

AD

Paid non-client promotion

AD

Paid non-client promotion

AD

Paid non-client promotion

Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet (2024)

FAQs

Capital Gains Tax on Home Sales: How It Works, How to Avoid It - NerdWallet? ›

The capital gains tax on your home sale depends on the amount of profit you make from the sale. Profit is generally defined as the difference between how much you paid for the home and how much you sold it for. If you owned the home for a year or less before selling, short-term capital gains tax rates may apply.

Is there a way to avoid capital gains tax on the selling of a house? ›

Is there a way to avoid capital gains tax on the selling of a house? You will avoid capital gains tax if your profit on the sale is less than $250,000 (for single filers) or $500,000 (if you're married and filing jointly), provided it has been your primary residence for at least two of the past five years.

What is a simple trick for avoiding capital gains tax? ›

Hold onto taxable assets for the long term.

The easiest way to lower capital gains taxes is to simply hold taxable assets for one year or longer to benefit from the long-term capital gains tax rate.

How do I protect my home sale proceeds from taxes? ›

You can avoid capital gains tax when you sell your primary residence by buying another house and using the 121 home sale exclusion. In addition, the 1031 like-kind exchange allows investors to defer taxes when they reinvest the proceeds from the sale of an investment property into another investment property.

Do I pay capital gains if I reinvest the proceeds from sale? ›

Do I Pay Capital Gains if I Reinvest the Proceeds From the Sale? While you'll still be obligated to pay capital gains after reinvesting proceeds from a sale, you can defer them. Reinvesting in a similar real estate investment property defers your earnings as well as your tax liabilities.

How do you beat capital gains tax on property? ›

How to avoid capital gains tax on home sales
  1. Live in the house for at least two years. The two years don't need to be consecutive, but house flippers should beware. ...
  2. See whether you qualify for an exception. ...
  3. Keep the receipts for your home improvements.
Mar 20, 2024

How long do I have to buy another house to avoid capital gains? ›

Thankfully, you can defer capital gains tax should you purchase another rental property within 180 days of the original investment property sale. There are also a variety of other options to lower your tax liabilities or avoid paying capital gains tax on your rental properties altogether.

Are there any loopholes for capital gains tax? ›

A few options to legally avoid paying capital gains tax on investment property include buying your property with a retirement account, converting the property from an investment property to a primary residence, utilizing tax harvesting, and using Section 1031 of the IRS code for deferring taxes.

At what age do you not pay capital gains? ›

Capital Gains Tax for People Over 65. For individuals over 65, capital gains tax applies at 0% for long-term gains on assets held over a year and 15% for short-term gains under a year. Despite age, the IRS determines tax based on asset sale profits, with no special breaks for those 65 and older.

Do you have to pay capital gains after age 70? ›

As of 2022, for a single filer aged 65 or older, if their total income is less than $40,000 (or $80,000 for couples), they don't owe any long-term capital gains tax. On the higher end, if a senior's income surpasses $441,450 (or $496,600 for couples), they'd be in the 20% long-term capital gains tax bracket.

What is the 6 year rule for capital gains? ›

The capital gains tax property six-year rule allows you to treat your investment property as your main residence for tax purposes for up to six years while you are renting it out. This means you can rent it out for six years and still qualify for the main residence capital gains tax exemption when you sell it.

Can you deduct closing costs from capital gains? ›

In addition to the home's original purchase price, you can deduct some closing costs, sales costs and the property's tax basis from your taxable capital gains. Closing costs can include mortgage-related expenses. For example, if you had prepaid interest when you bought the house) and tax-related expenses.

Does selling an inherited house count as income? ›

If you sell inherited property, is it taxable? If you sell an inherited property in California, it's generally not taxable.

What happens if you sell a house and don't buy another? ›

The short answer is that profit (after paying a mortgage and sale-related costs) is yours to keep when you sell real estate. You're not required to use the proceeds to buy another property.

Do I have to report the sale of my home to the IRS? ›

Report the sale or exchange of your main home on Form 8949, Sale and Other Dispositions of Capital Assets, if: You have a gain and do not qualify to exclude all of it, You have a gain and choose not to exclude it, or. You received a Form 1099-S.

Do I have to report the sale of a second home to the IRS? ›

Answer: Your second residence (such as a vacation home) is considered a capital asset. Use Schedule D (Form 1040), Capital Gains and Losses and Form 8949, Sales and Other Dispositions of Capital Assets to report sales, exchanges, and other dispositions of capital assets.

Can I reinvest capital gains to avoid taxes? ›

Reinvest in new property

The like-kind (aka "1031") exchange is a popular way to bypass capital gains taxes on investment property sales. With this transaction, you sell an investment property and buy another one of similar value. By doing so, you can defer owing capital gains taxes on the first property.

Top Articles
Latest Posts
Article information

Author: Errol Quitzon

Last Updated:

Views: 6207

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.