Rented Before You Moved In? Part of Your Gain May Be Taxable.
A single filer excludes up to $250,000 of gain on the sale of a principal residence, and $500,000 on a joint return, if the ownership and use tests are met. Depreciation you claimed, rental use before you moved in, business use of part of the property, and how the home is titled can each shrink that number.
Who this is for: Owners who have rented part or all of their home, claimed a home-office deduction, or hold residential real estate inside a company or limited liability company (LLC).
Excludable does not mean invisible to the return.
What are the tests for the home sale exclusion?
You must own and live in the home for 24 full months, or 730 days, within five years before the sale. Joint filers: either spouse may meet ownership, but both must meet use. Generally, you cannot claim the exclusion if you excluded gain on another home in the prior two years.
How does prior depreciation reduce the exclusion?
The exclusion does not apply to gain up to the depreciation you claimed for periods after May 6, 1997. In the regulation's own example, a $40,000 gain with $14,000 of depreciation left only $26,000 excluded, with the $14,000 recognized as unrecaptured section 1250 gain.
What if you rented the home before you moved in?
Rental use before you moved in can be taxable. Under the Internal Revenue Code (IRC) §121(b)(5), periods of nonqualified use are carved out of the exclusion. Nonqualified use is any period the home is not your principal residence, or your spouse's or former spouse's. Only periods on or after January 1, 2009 count.
The gain is allocated by time: nonqualified-use periods divided by the total period you owned the home. Take a home owned 10 years, rented for the first 2 and lived in for the last 8. Then 20% of the gain is allocated to nonqualified use and is taxable. Depreciation claimed after May 6, 1997 is taken out first. It is recognized under IRC §121(d)(6) and is not part of the time-based split.
The statute excludes from nonqualified use only the part of the five-year window ending on the sale date that falls after you last lived there. Renting after you move out, inside that window, does not count against you. A rental that ended more than five years before the sale stays in the nonqualified-use count.
What if part of the property was used for business?
Location matters. Inside the same dwelling unit, no allocation is required, though the depreciation you claimed is still recognized. Separate space, such as a barn or guesthouse, requires the gain split. Your accountant should confirm which side of that line your space falls on before you list the home.
- Separate from the unit: a taxpayer who used a stable and 28 acres for business sold at a $24,000 gain, recognized $14,000, and excluded $10,000.
Does holding the home in an LLC or trust change the answer?
The regulation attributes ownership in two situations only: a grantor trust, and an entity with a single owner that is disregarded for federal tax purposes. Whether an LLC fits depends on its federal tax classification. Review ownership structure before a sale is under contract.
What should an owner do next before listing?
Pull the depreciation history from prior returns and confirm how the title and entity classification line up with the two attribution rules. Then get the excludable gain estimated in writing before you sign a listing agreement. Doing this before listing keeps the choice with you.
- Total the depreciation claimed since May 6, 1997.
- Check the deed and entity classification against the grantor-trust and disregarded-entity rules.
- Confirm the 24-month use record, including any rental period before you moved in.
For the December 31 decisions, see our year-end planning article.
Frequently asked questions
If I rent my home for a few months a year, do I still meet the two-year use test?
Yes, for short absences. The regulation counts a short temporary absence as use, including a seasonal absence accompanied by rental. A longer absence is different. The regulation's own example denies the exclusion for a one-year sabbatical abroad, so the length of the absence matters.
We converted the basement into a separate apartment and rented it. Does that matter?
Yes. The regulation requires an allocation of gain between the part you lived in and the part you rented. Its example splits an $18,000 gain into $6,000 recognized and $12,000 excluded. Ask your accountant to document how the rented share was measured before you list.
Do we still have to report the sale if the whole gain is excluded?
Yes, if you received Form 1099-S. Reporting is typically on Schedule D and Form 8949, even when the gain is fully excludable. Your accountant can confirm which forms apply to your sale before you file. Keep the depreciation history with your return.
Sources
- Internal Revenue Service: Tax Topic No. 701, Sale of your home
- 26 U.S.C. §121, Exclusion of gain from sale of principal residence (statute, §121(b)(5), read on the Cornell LII mirror)
- 26 CFR 1.121-1, Exclusion of gain from sale or exchange of a principal residence
Educational information only, not individualized tax, legal or real-estate advice. Eligibility, the excludable amount, and treatment of entity-held property depend on the deed, the entity's tax classification, depreciation history, and use facts specific to the property and taxpayer.
Financial Strategy, Executed. A Strategic Consultation is a focused conversation about your financial world, priorities, and the next actions worth considering. Book a Strategic Consultation →