How to avoid capital gains taxes on real estate

Image by Freepik

Real estate can quietly generate one of the largest tax bills most people ever face, because the IRS treats profit on property as a capital gain. With the right planning, however, I can often reduce, defer, or even eliminate that tax hit by using a mix of exemptions, timing strategies, and specialized transactions that are built into the tax code.

The key is to understand which rules apply to my situation before I sell, then structure the deal so the IRS sees less taxable gain. That usually means combining several tools, from the home sale exclusion to 1031 exchanges and installment sales, instead of relying on a single tactic at the closing table.

Know when your home sale is tax free

The most powerful break most owners ever get is the primary residence exclusion, which can shelter a large chunk of profit when I sell the home I actually live in. If I meet the ownership and use tests, I can exclude up to a set dollar amount of gain from federal tax, which often wipes out the entire capital gain on a typical house. The rule generally requires that I have owned the home and used it as my main residence for at least two of the five years before the sale, and that I have not claimed the exclusion on another home in the prior two years, conditions that are laid out in IRS guidance on the home sale exclusion.

Where people get into trouble is assuming every dollar they receive is profit, or that the exclusion applies no matter how they used the property. My taxable gain is the selling price minus my adjusted basis, which includes what I paid plus certain closing costs and capital improvements, and I can also subtract selling expenses such as commissions and transfer taxes, all of which reduce the gain the IRS sees. If I rented out a room, used part of the home as a dedicated office, or claimed depreciation, the rules get more complex and some of the gain may be taxable or subject to depreciation recapture, as the IRS explains in its Publication 523 on selling a home.

Use 1031 exchanges to defer tax on investment property

Once I move beyond my primary residence, the main way to avoid an immediate capital gains bill is to swap one investment property for another using a like kind exchange under Section 1031 of the Internal Revenue Code. In a properly structured 1031 exchange, I sell a rental or commercial property and reinvest the proceeds into another qualifying property, and the IRS lets me defer the capital gains tax as long as I follow strict timing and documentation rules. The basic framework, including the 45 day identification window and 180 day closing deadline, is spelled out in IRS rules on like kind exchanges.

Deferral is not the same as permanent avoidance, but it can be extremely powerful when I repeat exchanges over time and keep rolling my basis into larger properties. If I eventually sell without exchanging, I will owe tax on all the deferred gain, and if I have taken depreciation, I may also face depreciation recapture at higher rates, as described in IRS material on depreciation recapture. However, if I hold the property until death, current law allows my heirs to receive a step up in basis to fair market value, which can effectively wipe out decades of deferred gain, a result that estate planners often highlight using IRS guidance on the basis of inherited property.

Turn big profits into smaller annual tax bites

When I cannot or do not want to use a 1031 exchange, I can still soften the tax impact by spreading the gain over several years with an installment sale. Instead of taking the entire sale price in cash at closing, I agree to receive payments over time, and I report a portion of the gain each year as I collect principal, which can keep me in a lower tax bracket and reduce exposure to the 3.8 percent net investment income tax. The IRS explains this method, including how to calculate the gross profit percentage and allocate interest, in its guidance on installment sales.

Installment reporting is not available in every situation, and I need to be careful about exceptions that can trigger immediate tax. For example, if I sell to a related party and that buyer disposes of the property within a certain period, I may have to accelerate the remaining gain, a risk the IRS flags in its topic on installment sales. I also need to weigh credit risk, since I am effectively acting as the lender, and make sure the note is properly secured, documented, and priced at a commercially reasonable interest rate so the IRS does not recharacterize part of the payments.

Convert short term gains into lower long term rates

Not all capital gains are taxed the same way, and the holding period can make a dramatic difference in what I owe. If I sell a property I have held for one year or less, the profit is a short term capital gain taxed at my ordinary income rate, which can be far higher than the long term capital gains rate that applies once I cross the one year mark. The IRS defines these categories and their treatment in its capital gains topic, which is why timing the sale by even a few weeks can change the tax bill.

For investors who buy, renovate, and quickly resell properties, the IRS may treat the activity as a trade or business, with profits taxed as ordinary income and potentially subject to self employment tax, rather than as capital gains at all. That distinction, which the IRS addresses in its guidance on small business income, means I need to be realistic about how often I flip properties and how I present the activity on my return. In some cases, holding a property as a rental for more than a year before selling can shift the gain into the more favorable long term category, although I then have to account for rental income and depreciation along the way using the rules in Publication 527 on residential rental property.

Layer in retirement and estate strategies to reduce or erase tax

Beyond transaction timing, I can use retirement and estate planning tools to keep real estate gains out of my current taxable income. One option is to hold property inside a self directed individual retirement account, where gains and rental income can grow tax deferred or tax free, depending on whether the account is traditional or Roth, as long as I follow the prohibited transaction rules the IRS outlines in IRA guidance. Another is to contribute appreciated property to certain charitable vehicles, such as a charitable remainder trust, which can sell the asset without immediate capital gains tax and then pay me an income stream, a structure described in IRS material on charitable remainder trusts.

Estate planning can also turn what would have been a large capital gains bill into a nonissue for my heirs. Under current rules, when someone dies owning real estate, the tax basis of that property generally steps up to its fair market value at the date of death, so unrealized gains during the owner’s lifetime are not taxed if the heirs sell soon after, a feature the IRS details in its topic on the basis of inherited property. That reality is one reason some investors choose to hold highly appreciated rentals or land rather than selling late in life, while using other assets or borrowing against the property to meet cash needs, a strategy that estate planners often coordinate with the federal estate tax thresholds described in IRS estate tax guidance.

More From TheDailyOverview