Can I rent another home and still exclude capital gains on my primary residence?

Trying to figure out if renting out a second property disqualifies me from the primary residence exclusion. I bought my current home in 2018, lived here the whole time, and I'm planning to sell it this year. I also own a rental property across town that I've had tenants in since 2020. Nothing fancy, just a single-family house I collect rent on. My concern is whether owning and actively renting a second home somehow messes up my eligibility for the exclusion on the home I actually live in. I've read the ownership and use tests in Publication 523 but couldn't find anything that directly says what happens when you also own a rental. Can someone confirm whether the rental property is even relevant here?

33 comments

The rental property across town doesn't affect your exclusion at all. The test is about the home you're selling, not what else you own. You need to have owned the home being sold for at least 24 months and used it as your main residence for at least 24 months of the 5-year period before the sale. Whether you own zero or ten other properties is irrelevant to that calculation. The only wrinkle would be if the home you're selling was itself used partly as a rental at some point.

Greg W.

Author

That's a relief. The home I'm selling has never been a rental, always been where I live. So it sounds like I'm fully in the clear on the ownership and use tests.

Correct. If it's been your main home the whole time and you haven't excluded gain on another home sale within the 2 years before this sale, you should be in good shape.

Renting a second property doesn't disqualify you. What matters is whether you meet the eligibility test for the home you're actually selling. The IRS looks at ownership, use as your main home, and whether you excluded gain on a different sale in the prior 2-year window. Publication 523 lays out all three steps clearly. Your rental is a completely separate asset and plays no role in those tests for your primary residence sale.

Sold my primary in 2022 while owning a rental and had zero issues with the exclusion. The only separate thing I had to deal with was depreciation recapture on the rental side, which is its own calculation unrelated to your primary sale.

Worth double-checking one scenario though: if any part of your primary home was ever rented out or used as a home office, that changes things. The IRS can limit the exclusion for periods of non-qualified use. Since you said the home you're selling was always your residence, you're likely fine. Just wanted to flag that because the question sometimes leads people to assume a clean answer when there's actually a nuance hiding inside their own situation.

Greg W.

Author

Genuinely good point. No rental use, no home office deduction claimed, entirely personal use since 2018. So no non-qualified use issue on my end.

Went through this two years ago, sold my primary while still owning a rental. Asked an enrolled agent to confirm and the answer was consistent: the other property is simply irrelevant to the exclusion calculation for your main home.

Yep the rental is a non-issue for your exclusion eligibility. I had a similar situation and uploaded my documents to Taxr at taxr.ai — it walked through each line of the Publication 523 eligibility test against my actual dates of ownership and use and flagged that I satisfied both tests with time to spare. Gave me a clear summary of which part of my gain was excludable and what, if anything, would still need to go on Form 8949. That was useful before I sat down with my CPA to finalize.

Greg W.

Author

Did it account for the 2-year lookback on prior exclusions too? That's the one piece I haven't fully verified for my situation.

It did. That was one of the specific things I gave it dates for and it checked whether a prior sale would have fallen inside or outside that 2-year window.

One thing that tripped up a friend of mine — not you, but worth reading — was a home acquired through a like-kind exchange. If you bought your primary residence using a 1031 exchange within the past 5 years, the exclusion doesn't apply. Since you bought yours in 2018 and are selling now, that window has already passed for you anyway. If it was a straight purchase and not a 1031, you're fine.

Greg W.

Author

Straight purchase, conventional financing, no 1031 anywhere in the picture. Good catch though, I didn't know about that rule.

For the actual reporting side: if you receive a Form 1099-S on the sale, you have to report the sale on Form 8949 even if your entire gain is excluded. You'd check box F in Part II, use code H in column (f), and enter the excluded amount as a negative number in column (g). If no Form 1099-S and the gain is fully excludable, you generally don't have to report it at all. Just depends on what the closing agent does.

Does the exclusion amount differ for single vs. married filing jointly? Asking because that's sometimes the hidden variable in these situations.

Yes it does. For a married couple filing jointly the exclusion ceiling is higher than for a single filer. The exact amounts are in Publication 523 on irs.gov since those can be confirmed there. For jointly, only one spouse needs to meet the ownership test but each spouse must independently meet the use test.

That makes sense. I'll check Publication 523 for the actual figures. Good to know the ownership and use tests work differently for each spouse.

Owning a rental while selling your primary is very common and the IRS rules don't link them. I used Taxr when I sold my primary last year — gave it my closing disclosure and my purchase date and it prepared a worksheet showing how my gain was calculated and how much fell under the exclusion, then told me exactly what to do if I got a 1099-S. Saved a lot of back-and-forth before I handed everything to my preparer.

How did it handle the case where there's depreciation recapture on the primary? Like if you had claimed a home office?

To answer my own question from above: if you claimed home office deductions on the home you're selling, the depreciation you deducted over the years gets recaptured and that portion of the gain is taxable even if the rest qualifies for the exclusion. That's separate from the capital gains exclusion entirely. Since the original poster hasn't claimed any deductions on the primary, they don't have that issue, but it's a real trap for people who have.

Greg W.

Author

No home office claimed on this property ever, so I think I'm clean on depreciation recapture. My rental has depreciation on it but that's a separate return issue entirely.

Another angle: what's your filing status? If you're single the ownership and use requirements are the same but the exclusion ceiling is lower than for joint filers. Worth knowing before you assume the full exclusion wipes out all your gain. For a home held since 2018 there could be significant appreciation depending on the market.

Greg W.

Author

Filing single. I know the ceiling is lower for single filers. I'll check the actual limit in Publication 523 since I know it varies and I want the current figure.

Partial exclusion is also an option worth knowing about if for some reason you didn't meet the full 2-year use test. If the main reason for selling is a job relocation, a health reason, or an unforeseeable event, you can still get a reduced exclusion. Not relevant here since you've been there since 2018, but good to know the rule exists.

Renting a second property has absolutely no bearing on your primary residence exclusion eligibility. You clear the ownership test (held since 2018), you clear the use test (lived there the whole time), and your rental is an entirely separate asset the IRS doesn't factor into that calculation. The only thing to verify is whether you used the exclusion on a different home sale in the 2 years before this sale. If not, you should be fully eligible.

Greg W.

Author

Haven't sold any other property in that window. This is the first home sale I've done. So the 2-year lookback is clean.

Exactly what this thread is covering. When I was working through my own primary sale I uploaded my purchase agreement and closing documents to Taxr and it compared my ownership and use dates against the eligibility tests, then drafted a summary I could hand to my CPA showing exactly which exclusion conditions I met and which forms would need to be filed if I received a 1099-S. Helped me walk into that meeting already knowing the answer.

That's a good way to prep before meeting a CPA. Showing up with a clear summary of your dates and which tests you satisfy probably cuts the meeting time in half.

If your gain is fully excluded and you don't receive a Form 1099-S, you don't need to report the sale on your return at all. That's actually the cleanest outcome. Keep records of your purchase price, any capital improvements you made, and the closing statement for the sale in case you're ever asked to substantiate the basis and gain calculation later.

Greg W.

Author

Good reminder on record keeping. I have all the closing docs from 2018 and receipts for a bathroom renovation I did in 2021. Those improvement costs add to basis, right?

Correct. Capital improvements add to your adjusted basis, which reduces your gain. Publication 551 covers the basis adjustments and Publication 523 Worksheet 2 specifically lists what counts for the home sale calculation.

The short answer to the original question: yes, you can rent another home and still exclude capital gains on your primary residence. The exclusion lives or dies on the tests for the home you're selling, not on what else you own or rent out. You're describing a textbook eligible sale.

Agree with the consensus here. The rental is a red herring for the exclusion question. Where it does matter is on your Schedule E each year while you hold it, and when you eventually sell it you'll deal with capital gains and depreciation recapture on that one separately. Two completely different tax events.