avoid capital gains tax on real estate

When you sell a property for a profit, you owe capital gains taxes on it. Maybe. Sometimes. If you don’t know how to avoid real estate capital taxes.

Because real estate investments come with a slew of tax advantages. While you own the property as a rental, you can take nearly two dozen landlord tax deductions. And when it comes time to sell, you can reduce or avoid capital gains taxes on real estate through another half dozen options.

Start thinking about your real estate exit strategies now, long before you’re actually ready to sell. By positioning yourself early, you can dodge the bullet of capital gains taxes on investment properties altogether.

 

Key Takeaways:

    • The IRS taxes your profits on real estate and other investments as capital gains.
    • The tax rate on capital gains is lower than regular income — if you owned the investment for at least a year.
    • Real estate investors have many options to reduce, defer, or avoid capital gains taxes.

 

In This Article:

What Are Capital Gains Taxes on Real Estate?

The IRS requires you to pay taxes on your profits when you buy low and sell high. Capital gains taxes apply whether you earn a profit buying and selling stocks, collectibles, or anything else of value — including real estate.

Uncle Sam calculates your capital gain by subtracting your cost basis (the amount you paid) from the sale price, minus any expenses such as Realtor fees. As with all income and profits, you must report these gains to the IRS.

You can sometimes increase your cost basis to lower your capital gains. For example, you can add some purchase closing costs to your cost basis. Likewise, you can add the cost of property improvements to lift your cost basis and reduce your taxable gain.

Nt all capital gains are treated equally. Capital gain taxes depend on how long you owned the asset, whether you lived in the property as your primary residence, and any adjustments you can make to your cost basis. Homeowners get a special exemption from capital gains taxes, up to $250,000 per spouse (more on that shortly).

Lower capital gains taxes apply to assets you owned for at least a year, referred to as long-term capital gains.

 

How Much Is Capital Gains Tax in Real Estate?

If you own an asset for less than a year, you’ll owe short-term capital gains tax on it. The IRS taxes these short-term profits at the regular income tax bracket rates. For example, if you pay taxes at the 24% tax bracket, you’ll owe Uncle Sam 24% of your short-term capital gains from that year.

If you hold an asset longer than a year, the IRS taxes your gains at a lower tax rate. Expect to pay 0-20% (exact tax tables below).

Another crucial difference between how capital gains are taxed versus ordinary income: you don’t pay different tax rates for different income segments. If your total taxable income is above the threshold for paying 15% capital gains tax, all of your capital gains are taxed at 15%.

For example, say you earned $150,000 last year, of which $50,000 were long-term capital gains. You pay 15% of the total capital gains, rather than paying 0% on one portion and 15% on another (the way that ordinary income tax brackets work. You’d pay a total capital gains tax bill of $7,500 for the year.

 

Short-Term vs. Long-Term Capital Gains

Before diving into individual strategies to avoid real estate capital gains taxes, you first need a baseline understanding of short-term versus long-term capital gains.

If you own an asset — any asset — for less than a year and then sell it for a profit, the IRS classifies that profit as a short-term capital gain, taxed at your regular income tax rates. For example, say you flip a house and earn a $50,000 profit on top of your $85,000 salary. As a single person, you would pay taxes on that extra $50,000 in income at the 24% federal tax rate.

Regular income tax rates, and therefore short-term capital gains tax rates, read as follows in 2023:

Tax RateSingleMarried Filing JointlyHead of Household
10%$0 – $11,000$0 – $22,000$0 – $15,700
12%$11,001 – $44,725
$22,001 – $89,450
$15,701 – $59,850
22%$44,726 – $95,375
$89,451 – $190,750
$59,851 – $95,350
24%$95,376 – $182,100
$190,751 – $364,200
$95,351 – $182,100
32%$182,101 – $231,250
$364,201 – $462,500
$182,101 – $231,250
35%$231,251 – $578,125
$462,501 – $693,750
$231,251 – $578,100
37%$578,126 and up
$693,751 and up$578,101 and up

But when you own an asset for more than a year and sell it for a profit, the IRS classifies that income as a long-term capital gain. Instead of taxing it at your regular income tax rate, they tax it at the lower long-term capital gains tax rate (15% for most Americans).

Here are the long-term capital gains tax brackets for tax year 2022:

Capital Gains Tax RateSingleMarried Filing JointlyHead of Household
0%$0 – $47,025$0 – $94,050$0 – $63,000
15%$47,026– $518,900$94,051 – $583,750$63,001 – $551,350
20%518,901 and up$583,751 and up$551,351 and up
Additional Net Investment Income Tax
3.8%MAGI above $200,000MAGI above $250,000MAGI above $200,000

And the long-term capital gains brackets for 2023:

Capital Gains Tax RateSingleMarried Filing JointlyHead of Household
0%$0 – $44,625$0 – $89,250$0 – $59,750
15%$44,626 – $492,300$89,251 – $553,850$59,751 – $523,050
20%$492,301 and up$553,851 and up$523,051 and up
Additional Net Investment Income Tax (NIIT)
3.8%MAGI above $200,000MAGI above $250,000MAGI above $200,000

The easiest way to lower your capital gains taxes is simply to own the asset, whether real estate or stocks, for at least a year.

 

Capital Gains Tax on Home Sales vs. Rental Properties

The short version: homeowners get an exemption on capital gains tax (under some circumstances). Landlords don’t.

Single homeowners can avoid capital gains tax on the first $250,000 of profits; married homeowners can dodge capital gains tax on up to $500,000. They must have lived in the property for at least two of the last five years however. That means second homes or vacation homes don’t qualify (more on the Section 121 exclusion below). House hackers who live in a property with up to four units, or a single-family property with an accessory dwelling unit, do qualify for the exclusion.

Real estate investors don’t get this homeowner exclusion for capital gains tax. So how can they avoid capital taxes on real estate?

 

When Do You Pay Capital Gains Tax on a Home Sale?

You typically pay capital gains taxes on sold properties along with the rest of your tax return on April 15.

However the IRS may hit you with a penalty if you owe a large capital gains tax bill and fail to make estimated tax payments throughout the same tax year. Specifically, the IRS says “Generally, you must make estimated tax payments for the current tax year if both of the following apply:

    • You expect to owe at least $1,000 in tax for the current tax year after subtracting your withholding and refundable credits, and
    • You expect your withholding and refundable credits to be less than the smaller of:
      • 90% of the tax to be shown on your current year’s tax return, or
      • 100% of the tax shown on your prior year’s tax return. (Your prior year’s tax return must cover all 12 months.)”

Speak to your tax advisor about estimated tax payments if you expect a large profit on the sale of a property.

 

How to Avoid Capital Gains Tax on Real Estate

No one wants to pay more taxes than they have to. But as a real estate investor, you have far more options than the average American to lower your taxes, at least on the profits from your investment properties.

Beyond owning the property for at least a year, try the following tax tactics to reduce or eliminate your real estate capital gains taxes entirely.

 

1. Avoid Capital Gains Tax on Your Primary Residence

When you sell a property that you’ve lived in for at least two of the last five years, you qualify for the homeowner exemption (also known as the Section 121 exclusion) for real estate capital gains taxes.

Single homeowners pay no capital gains taxes on the first $250,000 in profits from the sale of their home. Married homeowners filing jointly pay no taxes on their first $500,000 in profits.

You don’t have to live in the property for the last two years, either. Any two of the last five years qualifies you for the homeowner exclusion.

Consider doing a live-in flip, where you live in the property for two years as you renovate it, then sell it for a profit. It makes for a fun way to house hack, if you’re handy and enjoy fixing up old homes.

Alternatively, you could house hack a multifamily property, then either sell it after two years or keep it as a rental. Either way, you get to live for free and pay no real estate capital gains taxes! Toy around with our house hacking calculator to plug in any property’s cash flow numbers.

You can use the homeowner exemption repeatedly, moving as frequently as every two years and avoiding capital gains taxes. But you can’t use it twice within a two-year period.

 

2. Check If You Qualify for Other Homeowner Exceptions

Had to move in under two years? You may still qualify for a partial exemption from capital gains taxes on your primary residence.

The IRS offers several exceptions for homeowners who were forced to move, whether for a change of job, health issue, or other unforeseeable events. If you lived in the property for less than two years and were forced to move, speak with your accountant about any partial capital gains exemptions you might qualify for.

 

3. Raise Your Cost Basis by Documenting Expenses

Here’s a quick terminology lesson for non-accountants: your cost basis is what you paid for a property or other asset, including renovation costs.

Say you buy a property for $100,000, put $40,000 of repairs into it, then sell it for $200,000. You’d calculate your profit by subtracting your $140,000 cost basis from your $200,000 sales price, for a taxable profit of $60,000. (In the real world you’d have all kinds of other deductible expenses, such as the real estate agent’s commission, but they distract from the point at hand so we’re ignoring them.)

It’s easy enough to keep your receipts, invoices, and contracts when you’re flipping a house over the course of a few months. But what about when you own a rental property for 30 years? All those receipts, invoices, and contracts tend to get lost over the years, but they can help lower your capital gains tax bill when it comes time to sell.

The cost of every “capital improvement” you make to the property can add to your cost basis, reducing your taxable gains. Returning to the example above, you buy a rental property for $100,000, and over the next 30 years you pay $500 here and $1,500 there in capital improvements such as new windows, roof repairs, kitchen updates, landscaping, new driveways, and so forth. It adds up to $40,000 in total capital improvements, but it’s spread out over 30 years.

When you sell the property for $200,000, you can raise your cost basis by that $40,000 and pay capital gains on $60,000 rather than $100,000 — but only if you kept all those receipts and invoices. Save digital copies of all cost documents in a folder specifically for that property that you can pull up when it comes time to sell. It can save you tens of thousands of dollars in taxes!

Real estate investments? Awesome. Being a landlord? Less fun.

Learn how to earn 15-30% on passive real estate investments in one free class.

Katie earning passive income from real estate syndications

4. Do a 1031 Exchange

The IRS lets you swap or exchange one investment property for another without paying capital gains on the one you sell. Known as a 1031 exchange, it allows you to keep buying ever-larger rental properties without paying any capital gains taxes along the way.

It works like this. You scrimp and save the minimum down payment for a rental property, buying a property for $100,000 and setting aside the cash flow for a few years. The property builds equity, appreciating in value to $120,000 even as you pay down the mortgage, and after a few years you’ve set aside more cash to boot. You sell the property, and instead of paying capital gains taxes on the profits, you put them toward a down payment on a $200,000 multifamily rental.

A few years later you buy a $350,000 multifamily property, and a few years after that a $600,000 property, each of which produces more real estate cash flow than the last. Eventually, you reach financial independence, with enough cash flow to live on — and you never had to pay a cent in real estate capital gains taxes.

 

5. Sell in a Year When You’ve Taken Other Losses

Capital losses cancel out capital gains. So if you get hit with losses one year, that year makes a great time to sell your property so your losses offset your gains.

Imagine the stock market dips 10% and you sell off some stocks, hoping to avoid further losses from market correction or bear market. You take $20,000 in losses from selling those stocks.

Meanwhile you own a rental property that you’ve been meaning to sell. You decide to sell it now, knowing you can offset your capital gains on it with the losses you took on your stocks. You sell the property for a profit of $30,000, and you pay capital gains taxes on $10,000 after subtracting the $20,000 in losses from stocks.

Perhaps you even luck out with the timing, putting that $30,000 back into the stock market at its low point and riding the recovery upward.

 

6. Ladder Real Estate Syndications

When you invest in real estate syndications, you tend to show paper losses for the first few years. You can use those paper losses to offset other passive income and gains. 

Why do syndications typically report losses on paper for the first few years, even as they pay you hefty distributions and cash flow? Because syndicators often perform a “cost segregation study” when they buy the property, to recategorize as much of the building as possible to other tax categories with shorter depreciation periods. 

Of course, once the property sells and you get your big payday, you’ll owe both capital gains taxes and depreciation recapture. Which is precisely why it helps to keep investing in new real estate syndications every year, so you continue offsetting gains with paper losses from depreciation. 

Hence the term “ladder” — the new syndication you buy this year helps offset taxable gains from the syndication you bought four years ago. 

 

7. Harvest Losses

Sometimes, investors strategically sell for a loss, and use that loss to offset their capital gains. It’s called harvesting losses, and it makes sense when you have assets you don’t like or that underperform for you.

Say you bought a portfolio of five rental properties. You find yourself short on cash and want to raise a little capital by selling one, but don’t want to pay capital gains taxes on it.

One of the properties turned out to be a lemon, and has caused you nothing but headaches and negative cash flow. To offset the gains of selling a property with some equity, you decide to harvest some losses by getting rid of the lemon at the same time. It’s just costing you money anyway, so now makes a great time to sell it.

You sell both properties, and the loss from the lemon washes out the gains from a “good” property. You ditch the underperformer that was costing you money each month, and you avoid property gains taxes on the property you sold for a profit.

A more common example involves stocks. Say you buy a stock that consistently underperforms, and you have no reason to believe it will leap up in value in the future. Rather than letting your investing capital languish in the no-man’s-land of bad returns, you cut your losses by selling it, and put the money toward investments that will generate higher returns.

 

8. Convert Your Home into a Rental Property

If the homeowner exemption leaves you still owing capital gains taxes, you could always just keep the property as a long-term rental. As long as the property cash flows well, there’s no reason to ever sell it!

Let it generate passive income for you, month after month, year after year. As a buy-and-hold property, you can keep depreciating it for accounting purposes even as it appreciates in value.

Before converting your home into a rental property, run the numbers through a rental cash flow calculator. You may find your money could perform better for you by buying a property specifically as a rental, or even in the stock market, rather than sitting tied up in your ex-home.

That goes doubly when you can avoid capital gains taxes on the first $250,000 or $500,000 in profits.

 

9. Convert Your Home into a Short-Term Rental

No one says you have to rent the property out to long-term tenants.

Run the numbers to calculate how it would perform as a vacation rental on Airbnb instead. You might just find it cash flows better.

Just watch out for local regulations designed to restrict short-term rentals — some cities effectively ban Airbnb rentals.

investment property loansWhat do lenders charge for a rental property mortgage? What credit scores and down payments do they require?

How about fix-and-flip loans?

We compare the best purchase-rehab lenders and long-term landlord loans on LTV, interest rates, closing costs, income requirements and more.

10. Move to a State with Lower Taxes

Uncle Sam isn’t the only one after your tax dollars. Most state governments actually take a harder stance than the IRS on capital gains from real estate, charging income taxes at the normal tax rate.

Nine states charge a lower long-term capital gains tax rate however, similar to the federal government: Arizona, Arkansas, Hawaii, Montana, New Mexico, North Dakota, South Carolina, Vermont, and Wisconsin. Another seven states charge no income taxes at all: Alaska, Florida, Nevada, South Dakota, Texas, Washington, and Wyoming. Finally, New Hampshire and Tennessee don’t charge regular income taxes, but do tax investment income.

Consider moving to a state with a lower tax burden to keep more of your money where it belongs: in your own pocket.

 

11. Pull Out Your Equity by Borrowing, Not Selling

You don’t have to sell your investment property in order to cash out its equity. Why not pull out the equity and keep the property to boot?

When you own a rental property free and clear, it does cash flow better. But you can still take out a rental property loan or a HELOC against your investment properties to access the equity, all while the property continues to appreciate in value and generate income for you each month.

Your tenants pay off your loan for you, and all the while you keep benefiting from cash flow, appreciation, and investment property tax advantages.

 

12. Pass the Property to Your Heirs as Part of Your Estate

No one says you have to sell your property. Ever.

Why not keep it until the day you die, and pass the golden goose on to your heirs? It can keep generating passive income for them too.

And they probably won’t pay any inheritance taxes on your rental property either. Your heirs get a free pass on the first $11.7 million you leave them in tax year 2021, so unless you die with 30 properties, they probably won’t get hit with gnarly inheritance taxes.

Best of all, the cost basis resets upon your death. Again, cost basis is what you paid for the property plus any capital improvement costs, and it’s the “basis” on which any profits are taxed. When you die, it resets to the property value at the time of your death.

For instance, say you buy a property for $100,000, and over the next 30 years you put another $60,000 in capital improvements into it. Then you die and leave the property to your favorite child (we both know you have one).

At the time of your death, the property is worth $500,000. If your child were to sell the property, their cost basis for tax purposes would be $500,000 rather than the $160,000 in purchase price and improvement costs that you actually paid.

You avoid real estate capital gains tax entirely, your child avoids inheritance taxes, their cost basis resets so they wouldn’t owe capital gains taxes on all the equity you built, and they get an income-producing property. Win-win-win-win.

 

13. Buy or Transfer the Property to a Self-Directed Roth IRA

With a self-directed IRA, you get to invest in any assets you like, within a few constraints from the IRS. That makes self-directed IRAs a darling of real estate investors across the county.

And with a Roth IRA, of course, your assets grow tax-free so you don’t pay taxes on profits and returns.

Still, proceed with caution when it comes to self-directed IRAs. They come with setup and administration expenses, and add another layer of complications. Self-directed IRAs add particular challenges when you use real estate leverage to finance with a rental property loan.

Do your homework thoroughly, speak with your financial advisor, and consider leaving your IRA investments to stocks — real estate comes with plenty of its own cooked in tax advantages, after all.

 

14. Donate the Property to Charity

You could leave your property to your children. Or you could tell the spoiled brats to go earn their own fortune, and give your property to charity instead.

Not only do you not have to pay real estate capital gains taxes, but you also get a juicy tax deduction. For your entire equity in it, based on the current market value of your property.

As a nonprofit organization, the charity doesn’t pay any capital taxes on the property either. Again, both you and the recipient win, and the only party losing out is the IRS.

 

How to Calculate Capital Gains Tax on Real Estate

Long-term capital gains don’t add on to your regular income or push you into a higher income tax bracket. Instead, the IRS calculates them on a totally separate schedule.

If you earn $50,000 in regular income in 2023 and another $20,000 in long-term capital gains, the IRS taxes you like this. For your regular income taxes, you’d pay 10% on the first $11,000 you earned, 12% on the next $34,725, and 22% on the remaining $5,250.

Because you earned more than $44,625 in total income, you’d owe long-term capital gains tax at the 15% rate.

 

Capital Gains Tax Calculator for Real Estate

Sometimes you just want capital gains tax calculated for you. 

Try playing around with this capital gains tax calculator for real estate investment properties:

As a quick note on depreciation, beware that you owe the IRS depreciation recapture regardless of whether you actually deduct for property depreciation while owning it. So make sure you take depreciation on your investment properties in every tax return!

 

FAQs on Capital Taxes on Real Estate

Still have questions? Here are a few common ones.

Can home sales be tax-free?

Yes, if you lived in the property as your primary residence for at least two of the last five years, you qualify for the homeowner exclusion (Section 121 exclusion). Single taxpayers are exempt from paying capital gains tax on the first $250,000 in gains, and married filers get the first $500,000 tax-free. 

Do you pay capital gains taxes when you sell a second home?

Yes. Unless you utilize one of the tax strategies above, that is.

Do you pay capital gains tax if you lose money on a home sale?

No — capital gains tax applies to gains (profits). If you lose money on a bad investment, the loss can offset other investment gains. You may be able to offset up to $3,000 in active income as well (speak to an accountant!), and you can carry losses forward to future years as well.

Do house flippers pay capital gains tax?

Yes, and usually at the short-term capital gains rate, assuming they own the property for less than a year. If the renovation goes long, and they own the property for over one year, they owe capital gains taxes at the long-term tax rate.

When do I pay the capital gains tax on real estate?

You pay capital gains taxes on properties as part of your annual income tax return due on April 15.

Can you avoid capital gains by buying another home?

If you do a 1031 exchange, also known as a like-kind exchange, to buy a new investment property after selling an old investment property, then you can defer capital gains taxes. When and if you ever sell the replacement property, you’ll owe capital gains taxes at that time, unless you do another like-kind exchange.

You don’t need to buy another property to qualify for the homeowner exclusion on your primary residence.

Do I have to pay capital gains tax if I sell a second home or rental property?

Yes, unless you do a 1031 exchange, which defers it until you sell the new replacement property.

 

Final Thoughts

When you own an investment property for decades, as so many buy-and-hold investors do, you can rack up some serious equity. Equity that the IRS would love to tax you on, when you go to sell.

So? Outfox them by using one of the dozen strategies above to avoid capital gains tax on real estate. For the price of a little foresight, you can dodge the taxman’s grasping claws, and in the process leave greater wealth behind for your children or favorite charities.

 

What tactics do you use to avoid real estate capital gains tax? What questions or concerns do you have about capital gains taxes moving forward?

 

 

More Real Estate Investing Reads:

About the Author

G. Brian Davis is a landlord, real estate investor, and co-founder of SparkRental. His mission: to help 5,000 people reach financial independence by replacing their 9-5 jobs with rental income. If you want to be one of them, join Brian, Deni, and guest Scott Hoefler for a free masterclass on how Scott ditched his day job in under five years.

FREE Webinar: Open $250K in Credit Lines for Investing

On Wed. 3/23/22 at 2pm & 8pm EST, Deni & Brian are hosting Fund&Grow for a free webinar to show you how to open up to $250,000 in unsecured business credit lines for real estate investing.

Free Background Check

Run a FREE housing & identity check!

Credit, criminal, eviction reports also available.

Want to create passive income?

 

We’ll email a series of videos in our free course,

to help you start earning income from rentals.

[mc4wp_form id=”501″]

Privacy Policy: Your info will never be shared or sold to a 3rd party. Even if Dr. Evil offers us 1 million dollars 🙂

Rental ROI Ebook

Want to earn more from your rentals?

 

Download our free Ultimate Guide to Higher ROI and be dazzled by the charming wit, disarming frogs and invaluable tips for higher profits and less work.

 

[mc4wp_form id=”501″]

Free Mini-Course: Passive Income from 2-4 Unit Multifamilies

Free Mini-Course: Passive Income from 2-4 Unit Multifamilies

 

Ready to build passive income from small multifamily properties?

Over the next week, we'll email you a free series of videos, so enter your best email and let's get started!

You're in! Check your email to confirm, and you can email us directly at [email protected] with any questions :-)

Free Webinar: Earn 15-50% on Passive Real Estate Syndications

LIVE masterclass on Tues. 10/25 @ 8pm EST

Your seat is reserved! Check your email to confirm.

Inside a group real estate investment

Here's a quick video breakdown of a past group investment — and how it's performed since our Co-Investing Club invested in it in early 2023.

You got it! Check your email for the link, and some other fun freebies.

Ready to Build Passive Income?

Ready to Build Passive Income?

 

We'll email you the course videos over the next week, so enter your best email!

You're in! Check your email to confirm.

Ditch Your Day Job: Free 8-Video Course

 

Our brand new course on how to reach financial independence and retire early (FIRE) with rental properties is open for one week from Oct. 23-30!

You're in! Check your email for the link, or click here for the 1st video!

How do group real estate investments work?

If you want the cash flow, appreciation, and tax benefits of real estate without hassling with loans or landlording, learn how to invest passively. 

Awesome! Check your email :-)

learn private equity real estate investing

Hack the Rich: 7 Secrets We've Learned from Private Equity Real Estate

In a live online meetup, we'll be sharing and discussing 7 secrets we've learned from the rich over the last few years of investing in private equity real estate syndications.

Awesome! Check your email :-)