How to avoid capital gains tax on a home sale (2024)

If you’re a homeowner, finding out your place has gone up in value can feel like you’ve hit the jackpot. But if you sell a home for a profit, capital gains taxes may take a big bite out of your earnings.

Fortunately, whether you’re selling your primary residence or an investment property, you can use tax exclusions and deductions to lower how much you’ll owe the IRS and maximize your profit.

What are capital gains taxes?

Key terms

  • Capital gain: Profit on an investment’s sale minus any losses you’ve had from the asset.
  • Primary residence: The house you live in for most of the year.
  • Investment property: A property you buy to earn income through a rental or a rise in the home’s value.

Capital gains taxes are what you owe when you sell an asset (in this case, a home) for a net profit. For instance, say you bought a home for $500,000 and sell it for $600,000. In that case, your capital gain—would be $100,000.

That amount is taxable when you file your federal 1040 for the year you make the sale. But there are ways to lessen the blow. For example, you may be able to lower your profit by deducting money you put into the home: If you had a $100,000 capital gain but spent $40,000 on improvements, you’ll owe taxes on just $60,000 (the profit minus your expenses).

Like ordinary income taxes, capital gains taxes are progressive—your tax rate increases as your income does. Which tax rate applies to your gains depends on how long you owned the home before you sold:

  • Long-term capital gain: Profit from a home sold after owning it for over a year
  • Short-term capital gain: Profit from a home sold after owning it for up to a year

How much are capital gains taxes?

With a home sale, your capital gains tax rate will depend on four key factors:

  • Household income. Generally, you owe more in taxes if your household income (HHI) is high.
  • Marital status. If you file a joint return, you may be able to deduct more of your capital gains than someone who’s single.
  • Type of property. You may be able to exclude capital gains tax if you sell a primary home. (Investment properties generally don’t qualify for this.)
  • Holding period. Long-term capital gains usually trigger lower tax rates than short-term gains. If you sell a home within a year of owning it, the tax is calculated like your regular income tax (up to 37%). But if you’ve owned the home for over a year, you usually owe no more than 20% of the profit you make from the sale.

What are the current capital gains tax rates?

Uncle Sam usually taxes short-term capital gains at the same rates as regular income (10%–37% for 2023). For long-term gains, three rates—including 0%—can apply:

Long-term capital gains tax rates for 2023–2024

0% rate

15% rate

20% rate

Filing status

Taxable income

Single

$44,625 or below

$44,626 to $492,300

$492,300 or above

Married filing jointly

$89,250 or below

$89,251 to $553,850

$553,850 or above

Married filing separately

$44,625 or below

$44,626 to $276,900

$276,900 or above

Head of household

$59,750 or below

$59,750 to $523,050

$523,050 or above

Example: Suppose you file a joint return with your spouse, and your household income is $200,000. If you earned $100,000 in long-term capital gains, you’d fall in the 15% tax bracket, so you’d owe $15,000 on the gain.

How to avoid capital gains tax when selling your primary home

You may not have to pay as much, if any, tax if you’ve profited from selling your “primary residence”—the home you’ve lived in for most of the tax year. (This can be anything from an apartment to a houseboat.) Thanks to the IRS’s "Section 121," single tax filers can deduct up to $250,000 of a capital gain, while joint filers can write off up to $500,000.

Even so, to qualify you must pass an “ownership and use” test: You must have lived in your home for at least two years over a five-year period before selling. (You don’t have to live in the home for two consecutive years, though. For instance, you can alternate between renting and living there during the five-year time window.)

Also, if you sell two properties, you can’t use the exclusion on both homes in the same two-year period. And if the home was an investment property—that is, you didn’t live there for at least two of the five years before the sale—you can’t snag the tax break at all.

This doesn’t mean that real estate investors can’t tame capital gains taxes—but they may have to go an extra mile to do so.

How to avoid capital gains tax on an investment property

Investment properties like rentals and commercial buildings aren’t eligible for the same exclusions as primary residences. Because of this, real estate investors can pay a lot in taxes. However, tax-savvy homesellers may have several ways to avoid capital gains:

Make the home your own for two years

Even if you rely on a home mainly for income, you can use the primary residence exclusion if you live there for two out of the five years before you plan to sell to qualify.

The amount you save could be substantial. For example, say you’ve lived in the home for two of the five years before you sell. If you make a $300,000 net profit, you can exclude $120,000 (two-fifths of $300,000) from your capital gain and only owe tax on the other $180,000.

Reinvest in new property

Thelike-kind (aka "1031") exchangeis 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. In fact, you can do this over and over.

The types of properties don’t matter—one can be a penthouse, another a plot of land—but they must pass directly to the new owner with each sale. The benefit: Eventually, you’ll face a lower tax rate on a long-term capital gain than you would on a short-term gain.

A key caveat: If youdownsize—swap your property for a cheaper one—you’ll likely owe tax on the gains you receive during the exchange.

Also, while it may seem simple, this strategy can get complicated, especially if you claim depreciation (and a tax deduction) on a property that later sells at a profit. In that case, the IRS can“recapture” the depreciation —basically, the government takes back the money from your old deduction and taxes it as ordinary income.

For instance, say you bought a property for $300,000 and claimed $50,000 in depreciation, lowering the home’s value to $250,000. If you sell in a like-kind exchange, the $50,000 you’d claimed in depreciation is subject to recapture and taxed as regular income. That’s usually at a higher rate than on long-term capital gains.

Nuances like this are why you should speak to a tax advisor before picking a strategy for lowering your capital gains taxes.

Take qualifying deductions

You may be able to lower your capital gains taxes by deducting expenses such as for major home improvements before you sell or costs you incurduring the sale.

For example, if you spent $75,000 on a new kitchen and made $300,000 on your home sale, only your $225,000 profit will be taxed.

Time your sale strategically

By spreading your income from a home sale across multiple tax years, you can stay within your current tax bracket or even move to a lower one. If you and the buyer agree to aninstallment sale, they’ll buy the property with multiple payments instead of a single sum. To get a tax break, though, you must receive at least one paymentfollowingthe tax year of your home sale. (You’d report the gain under the “installment method” using IRS Form 6252 when you file your taxes for the year in which the sale occurred, along with each year of the installments.)

These two scenarios illustrate how capital gains taxes apply with and without an installment sale:

Scenario 1: Single-payment sale

John’s ordinary income is $100,000, and he makes $80,000 in profit (capital gain) from the home sale. This brings his taxable income up to $180,000—and puts him in the 15% tax bracketfor this transaction. So, he owes $12,000 in capital gains tax ($80,000 x 15%) on it.

Scenario 2: Installment sale

Alice’s ordinary income is also $100,000, and she gets $80,000 in capital gains from the home sale. However, she spreads the sale equally across two years (the buyer makes a $40,000 payment in each tax year). In the first year, Alice’s taxable income totals $140,000 ($100,000 in ordinary income plus a partial capital gain of $40,000). She still lands in the 15% tax bracket, so she owes $6,000 ($40,000 x 15%) in capital gains tax for that year.

The following year, she receives the second $40,000 payment. But let’s say Alice also chooses to retire that year. Because she hasn’t yet claimed Social Security benefits, her onlytaxableincome for the year will come from that second $40,000 in capital gains. In this case, she’d fall to the0%tax bracket and won’t owe any federal taxes. Result: By taking installment payments, Alice saves more than half in capital gains taxes versus a single-payment sale.

One note: Real estatedealersales—made by someone in the business of selling propertiesother than their primary residencewith the purpose of making a profit (think real estate flippers)—don’t qualify for the installment method.

Offset your capital gains with losses

Tax-loss harvestingis a tactic that involves selling investments at a loss to offset capital gains from other investment sales. In this case, if you made a profit on your home sale, you can use losses from other investments to reduce your taxes. For example, if you earn $300,000 in capital gains on a home sale but lose $100,000 after sellingotherassets, only $200,000 will be taxed.

Also, be aware of limitations like thewash-sale rule: You can’t claim an investment as a loss if you repurchase it within 30 days.

Navigating capital gains taxes can be challenging, especially if you’re selling an investment property. You should speak to a tax advisor to ensure you make the most effective move for your financial situation.

Prudential doesn’t provide tax or legal advice. Please consult your tax and legal advisors for guidance on your situation.

Author details

Alani Asis has covered topics like taxes, investing, and insurance for AARP, Forbes, and others.


For Compliance Use Only:1075064-00001-00

How to avoid capital gains tax on a home sale (2024)

FAQs

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.

Do I have to buy another house to avoid capital gains? ›

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.

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

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

At what age do you not pay capital gains? ›

Whether you're 65 or 95, seniors must pay capital gains tax where it's due. This can be on the sale of real estate or other investments that have increased in value over their original purchase price, which is known as the “tax basis.”

What is a simple trick for avoiding capital gains tax on real estate investments? ›

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.

How can I legally avoid capital gains tax? ›

Here are four of the key strategies.
  1. Hold onto taxable assets for the long term. ...
  2. Make investments within tax-deferred retirement plans. ...
  3. Utilize tax-loss harvesting. ...
  4. Donate appreciated investments to charity.

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.

How do capital gains work when selling a house? ›

In California, capital gains from the sale of a house are taxed by both the state and federal governments. The state tax rate varies from 1% to 13.3% based on your tax bracket. The federal tax rate depends on whether the gains are short-term (taxed as ordinary income) or long-term (based on the tax bracket).

Is profit from the sale of a house considered taxable income? ›

Any gain over $250,000 is taxable.

Does sale of home get reported to IRS? ›

Reporting the Sale

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 pay capital gains tax immediately? ›

It is generally paid when your taxes are filed for the given tax year, not immediately upon selling an asset. Working with a financial advisor can help optimize your investment portfolio to minimize capital gains tax.

What is the one time capital gains exemption? ›

You can sell your primary residence and be exempt from capital gains taxes on the first $250,000 if you are single and $500,000 if married filing jointly.

Do you pay capital gains when you're over 65? ›

The capital gains tax over 65 is a tax that applies to taxable capital gains realized by individuals over the age of 65. The tax rate starts at 0% for long-term capital gains on assets held for more than one year and 15% for short-term capital gains on assets held for less than one year.

Is there a once in a lifetime capital gains exclusion? ›

The capital gains exclusion applies to your principal residence, and while you may only have one of those at a time, you may have more than one during your lifetime. There is no longer a one-time exemption—that was the old rule, but it changed in 1997.

What is the 6 year rule for capital gains tax? ›

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.

What lowers capital gains tax? ›

Long-term investing offers a significant advantage in minimizing capital gains taxes due to the favorable tax treatment for investments for longer durations. When investors hold assets for more than a year before selling, they qualify for long-term capital gains tax rates, typically lower than short-term rates.

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.

References

Top Articles
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 5753

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.