How can parents avoid capital gains tax on a house their child lives in?

My parents bought a house about 15 years ago and my brother has been living in it rent-free the whole time. They're thinking about selling it now and realized the gain is pretty large. Someone mentioned they might be able to avoid capital gains on it somehow since a family member lives there, but I'm not sure if that's actually a thing. They've never used it as their main home — they have their own house. I tried reading through Topic 409 on irs.gov and Publication 523 but it honestly went over my head. Is there any strategy here that actually works legally, or are they just stuck paying tax on the full gain? Their situation isn't super complicated but the numbers are big enough that I want to make sure we're not missing something.

41 comments

Publication 523 is the right place to look but unfortunately it won't help them here. The main home exclusion — the one that lets a married couple exclude a large chunk of gain — requires the sellers to have owned AND used the property as their own residence for at least 24 months out of the 5 years before the sale. Your parents living elsewhere disqualifies them from that exclusion entirely. A child living there doesn't count. The gain will be taxable, and since they've held it over a year it'll be long-term capital gain reported on Form 8949 and Schedule D.

Amara C.

Author

That's what I was afraid of. So the exclusion is purely based on the owners' use, not whoever is living there?

Exactly. The IRS looks at the owners' own occupancy. The child's use is irrelevant to the exclusion test.

Schedule D is where it ends up, but walk through the steps: they'll need to know their adjusted basis — what they paid, plus any capital improvements made over 15 years. Improvements like a new roof or addition get added to basis, which reduces the taxable gain. Depreciation they may have taken (if they ever rented it out) would reduce basis. Worth gathering every receipt and improvement record they have before assuming the worst on the gain number.

Amara C.

Author

They never rented it, so no depreciation issue. But I didn't think about improvements — there have been a few over the years. Good point.

Adjusted basis really can move the needle. Even landscaping that counts as a capital improvement chips away at the gain.

One thing people explore in this situation is gifting the house to the child rather than selling it. But that creates its own issues. Under the gift rules in Publication 551, the child takes the donor's adjusted basis — not the fair market value at the time of the gift. So if they gift it and the child sells later, the child owes capital gains on the same built-up gain. The step-up in basis you'd get if the parents held it until death is usually far more valuable.

The stepped-up basis at death is a big deal here. If the parents hold the property and it passes through their estate, the heir's basis generally becomes the fair market value at the date of death. That's in Publication 551. The whole 15 years of appreciation could disappear for tax purposes.

Amara C.

Author

So gifting it now would actually hurt my brother in the long run because he'd inherit the low basis?

Right. He'd carry the parents' original purchase price as his gain basis. The hold-and-inherit route typically wins if the parents don't need the sale proceeds now.

Form 8971 is something to be aware of if the estate eventually has to file Form 706 — the estate tax return. In that case the beneficiary's basis is tied to the value reported to the IRS on Schedule A of Form 8971, not whatever they think the FMV was. I ran my own family's property situation past taxr.ai last year. I uploaded our deed, the basis worksheet my dad had kept, and a rough gain estimate, and Taxr flagged that our improvement records were incomplete and listed exactly what documentation we'd want to have ready. Saved us from going into a CPA meeting unprepared.

Amara C.

Author

I didn't know about the Form 8971 tie-in. My parents' estate probably won't be large enough to require Form 706 but good to know that rule exists.

Another angle: a 1031 like-kind exchange would let them defer the gain if they sell and reinvest the proceeds into another investment property. But there are strict timing rules and they can't just take the cash. And note that Publication 523 specifically says a home acquired through a 1031 exchange in the past 5 years isn't eligible for the main home exclusion even if they moved in later. So that path only works if they want to stay in the investment property game, not cash out.

1031 also doesn't help if they want to give the money to the child. The whole point is to roll it into a replacement property.

Exactly, it defers, it doesn't eliminate. And the rules around identifying replacement property within 45 days are unforgiving.

Worth clarifying: if the parents' net capital losses from other investments exceed their gains in the same year, losses can offset the gain from this sale on Schedule D. And if total capital losses exceed total capital gains, the deductible amount against ordinary income is limited — it's the lesser of $3,000 ($1,500 if married filing separately) or the net loss on Schedule D line 16, claimed on Form 1040 line 7a. Any excess carries forward. So if they have loss positions in a brokerage account, timing the sale with harvesting those losses could help.

Amara C.

Author

They do have some stocks that are down. That's actually worth thinking about — harvesting losses in the same year as the house sale.

Loss harvesting is real but watch the wash sale rules if they plan to rebuy any of those positions within 30 days. A disallowed loss won't help them offset the house gain.

Has anyone looked at whether the parents could move into the house themselves before selling? If they lived there as their main home for at least 24 months out of the 5 years before the sale, they'd qualify for the exclusion. It's a real option if they're flexible and the numbers justify it. Two years of living there could shelter a significant gain for a married couple filing jointly.

Publication 523 is clear that the 24 months don't have to be a single continuous block, just within the 5-year window. So they could potentially split the time if circumstances required, though two straight years is simpler to document.

Amara C.

Author

This is actually something we hadn't considered. It's a lifestyle change but if the numbers are large enough it might be worth it.

Worth running the math with a CPA before they commit. The gain they'd shelter has to outweigh whatever moving costs and disruption they'd take on.

Installment sale is another way to spread the gain across years rather than recognizing it all in one shot. Under an installment sale the gain is recognized as the payments come in, which might keep them in a lower bracket each year than a lump sum would. This works if the buyer — in this case potentially the child buying the house from the parents — agrees to pay over time. Form 6252 is what gets filed each year. The interest rules are also involved so a tax professional should map it out.

Form 6252 spreads the reporting but doesn't eliminate the total gain, just the timing. Still taxable, just smoother.

Charitable remainder trust is sometimes floated for situations like this but it's complex, irrevocable, and usually only worth the overhead for very large gains. The parents would need a trust attorney and a CPA working together. Not a DIY situation.

Form 3921 keeps getting mentioned in other threads but that's for ISOs — not relevant here. What IS relevant is making sure the basis calculation is airtight before they sell. I had a similar question about a property my parents were planning to sell. I gave Taxr the closing disclosure from when they bought, a list of improvements with rough dates, and the county assessment records, and Taxr built out a basis worksheet and flagged two improvements we hadn't accounted for. Went into the CPA meeting with actual numbers instead of guesses.

Amara C.

Author

Getting the basis paperwork pulled together before the CPA meeting is clearly our next step. We have some of the original closing documents but I'm not sure we have all the improvement records.

Even partial records help. A contractor invoice with a date establishes that an improvement happened; the CPA can work with that.

Depreciation recapture can come up even if they never rented it, right? Or does that only apply to rental property?

Depreciation recapture under Section 1250 applies only to the extent depreciation was actually taken or allowed. If they never rented it and never claimed depreciation, there's nothing to recapture. Personal-use property that was never placed in service as rental has zero depreciation history.

Ok that makes sense. I was worried they'd have a hidden recapture issue but sounds like they're clear on that.

One thing that changes the whole picture: state taxes. Capital gains treatment varies a lot by state. Some states don't have a capital gains preference and tax it as ordinary income. This thread is covering federal correctly but make sure they check their state rules too — the state bite on a large gain can be significant.

Going back to the stepped-up basis idea from earlier — the hold-and-inherit path really is the cleanest option if the parents' health and finances allow it. I was trying to figure out how basis works when property passes through an estate versus a gift, and I uploaded Publication 551 along with our family's property records to Taxr and it walked through both scenarios side by side, showing the different basis outcomes and how each would flow onto Form 8949. Made the tradeoff really concrete to look at.

The gift basis versus inherited basis comparison really is the crux of this whole decision. Gifting now almost always loses to inheriting later unless the parents urgently need the proceeds out of their estate.

Amara C.

Author

This thread has been incredibly helpful. The hold-and-inherit path seems like the strongest option unless my parents decide to move in themselves before selling. I think we need a CPA to run the actual numbers.

Form 8949 is where the final sale gets reported regardless of which path they take. If they sell, proceeds go in column (d), adjusted basis in column (e), and long-term gain flows to Schedule D Part II. The box they check (D, E, or F) depends on whether the sale was reported on a Form 1099-B and whether that 1099-B reports basis. For a real estate sale reported on a 1099-S rather than a 1099-B, they'll likely be in box F — no Form 1099-B received — and they enter the correct basis themselves.

Box F is right for most direct real estate sales. The 1099-S shows gross proceeds but isn't a Form 1099-B, so box F applies; the IRS won't have basis on file and the parents have to supply it on Form 8949.

One scenario nobody's mentioned: if the parents sell at a loss compared to adjusted basis, that loss on a personal-use property is not deductible. Publication 550 and Topic 409 both confirm that losses on personal-use property aren't deductible. Since they've never rented it, it's personal-use property, so a loss would just disappear. Given 15 years of likely appreciation that's probably not their situation, but worth knowing the asymmetry: gains are taxable unless an exclusion like the main home exclusion applies, losses are never deductible for personal property.

That asymmetry trips people up. No matter how much basis they establish, if it's always been personal use, a loss does them no good at all.

Pulling this together: the main home exclusion is off the table as the parents stand now. Real options are (1) parents move in for two years then sell, (2) hold and let the property pass through the estate for a stepped-up basis, (3) installment sale to the child to spread the gain, (4) harvest capital losses in the same year to offset the gain, or (5) 1031 into another investment property if they want to stay invested. Each path has tradeoffs and a CPA who does real estate should model them out before deciding.

Amara C.

Author

Having all five paths laid out side by side with their tradeoffs makes this so much easier to think about. Thank you. Taking this to a CPA with all of it laid out.