How to Avoid Taxes on a Home Sale

January 20, 2017

Someone recently asked me if they were going to have to pay taxes on the sale of their home. They were downsizing out of a big house and were going to move into the “in-law quarters” of one of their children’s homes. This person was absolutely 100% convinced that he was going to have to pay taxes on the gains from the sale of his house since he wasn’t “rolling the gains” into a bigger house.

When I told him what the tax code says about capitals gains tax, he told me I was wrong. So with him in the office, I called a friend (on speaker) who is a CPA and asked what the tax implications were for selling a home. The CPA said exactly what I said, without prompting, and the soon-to-be-seller was still dubious.

So what is the real story on how the gains from selling a home are treated? According to IRS Topic Guide 701, you can exclude up to $250,000 (single) or $500,000 (married) of gains from the sale of your house IF it has been your primary residence for 2 out of the last 5 years. That’s it. It’s that simple.

There is no rule today about what you have to do with the proceeds. There were things like that in the tax code in the past, but the tax code is an ever-evolving entity. The biggest test is the 2 out of 5 years, which is very easy for most home sellers. IF the house has been your primary residence for the last 2 years, you’ve got a $250,000 or $500,000 tax-free gain.

If you’re married and your home has appreciated by $600,000, CONGRATULATIONS!!! The tax on the sale of your home will be $600,000 (gain) – $500,000 (exclusion) = $100,000 (taxable gain) * 15% (capital gains rate) for a $15,000 tax upon sale. You can buy a house, watch it go up in value by $600,000 and only pay $15,000 in taxes!  The tough part is finding a house that goes up in value by $600,000!

Here’s how you could possibly use this piece of the tax code creatively and to your advantage in a time when housing prices are rising. It’s a hypothetical situation and I can’t imagine anyone really doing this, but it illustrates the tax code’s interesting nature. You’d have to live as a bit of a minimalist to make this work. Moving a bunch of “stuff” can be time consuming and expensive, so the less you have to transport from one place to the next, the easier this is.  This only works if your home value increases regularly……

Step 1 – Buy a house.

Step 2 – Live in it for 2 years.

Step 3 – Buy a second house, move into it and rent out house #1.

Step 4 – Live in house #2 for 2 years and buy house #3, renting out houses #1 & #2.

Step 5 – Sell house #1 by the end of year 5 and the gains are tax-free since it was your home in years 1 and 2.  You could sell house #2 as well and pocket the tax-free gains.

With this example, you can see that if you’re willing to move A LOT and housing prices rise quickly, you could potentially never pay taxes on the gain from the sale of a house. In the real world, though, the IRS code allows most of us to sell a home with zero or a very small capital gains tax in comparison to our overall gain. Fortunately, for the dubious person in the meeting recently, he used his own laptop, went to www.irs.gov and was able to find that my answer was indeed factually correct. By the time the meeting ended, he was a surprised and happy home seller.