By John H. Robinson, Financial Planner (May 2025)
Many homeowners are drawn to the idea of renting out a portion of their primary residence to generate extra income. While this can be a smart way to offset mortgage payments or other expenses, it’s important to understand the potential tax consequences-specifically, how it can impact your eligibility for the capital gains tax exclusion when you sell your home.
The Capital Gains Exclusion for Primary Residences
Under current IRS rules, homeowners can exclude up to $250,000 of gain from the sale of their primary residence (or $500,000 for married couples filing jointly) if they meet the ownership and use tests:
- You must have owned the home for at least two years, and
- You must have lived in it as your main residence for at least two of the five years preceding the sale[1][2].
This exclusion can save homeowners tens or even hundreds of thousands of dollars in taxes when selling their home.
The Impact of Renting Out Part of Your Home
When you rent out a portion of your home, that part is considered a rental property for tax purposes. This can have several consequences:
- Loss of Exclusion for the Rented Portion: The IRS does not allow you to exclude the gain attributable to the part of your home used for rental or business purposes[3][4]. When you sell, you may have to allocate the gain between the portion used as your primary residence and the portion used as a rental. Only the gain from the residential portion is eligible for the exclusion; the gain from the rental portion is taxable.
- Depreciation Recapture: If you claimed depreciation deductions on the rented portion, you must “recapture” that depreciation when you sell. This means paying tax on the amount of depreciation you claimed, at a rate up to 25%[3][4].
- Prorated Exclusion: If you rented out a portion of your home for a significant period, the exclusion may be prorated based on the length of time each portion was used as your primary residence versus as a rental[4][5].
Example
Suppose you lived in your home for five years, but for three of those years, you rented out the basement. When you sell, you’ll only be able to exclude the gain on the portion of the home you used as your primary residence. The gain on the basement, plus any depreciation recapture, will be subject to tax[3][4].
Key Takeaways
- Renting out part of your home can reduce or eliminate your eligibility for the capital gains exclusion on that portion when you sell[3][4].
- Any depreciation claimed on the rental portion must be recaptured and taxed at sale[3][4].
- Careful record-keeping and tax planning are essential to avoid costly surprises.
Conclusion
Before deciding to rent out a portion of your home, weigh the short-term benefits against the potential long-term tax costs. You should also run the idea past your CPA or tax professional first to understand how your plans could affect your ability to claim the valuable capital gains exclusion when you eventually sell your home and to help you map out the most tax effective way to handle the rental.
John H. Robinson is the owner/founder of Financial Planning Hawaii and Fee-Only Planning Hawaii. He is also a co-founder of fintech software maker Nest Egg Guru and the new personal finance website NestEggPF.com.
⁂
- https://www.irs.gov/publications/p523
- https://kb.drakesoftware.com/kb/Drake-Tax/14896.htm
- https://www.irs.gov/faqs/capital-gains-losses-and-sale-of-home/property-basis-sale-of-home-etc/property-basis-sale-of-home-etc-5
- https://www.exeterco.com/article_changes_to_section_121
- https://www.thetaxadviser.com/issues/2024/aug/converting-a-rental-or-vacation-home-into-a-primary-residence/