Skip to content

General education, not advice for your situation.

Carry Forward Learning Search the site

Selling Your Home

Selling Your Home: rentals, home offices and depreciation

Same facts. Pro adds the full authority stack under each answer.

Does depreciation on a rental or home office affect my exclusion?

Yes. Any gain up to the depreciation you took (or could have taken) on the home after May 6, 1997 can't be excluded. It's taxed at up to 25%. The rest of the gain can still be excluded, up to the cap.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Code I.R.C. § 1(h)(1)(E), (h)(6)
  3. Regulation Treas. Reg. § 1.121-1
  4. Publication IRS Publication 523 (2025), Selling Your Home
Section 121(d)(6); Reg. 1.121-1(d); unrecaptured section 1250 gain under 1(h)(6). Section 1016(a)(2) reduces basis by depreciation 'allowed or allowable', so the amount is figured whether or not you claimed it.

I used a room as a home office. Do I lose the exclusion?

No. If the office is inside your home, you don't have to split the sale into a home part and a business part. You just can't exclude the gain equal to the depreciation you took (or could have taken) after the cutoff date, which is taxed. If you used the simplified method (a flat rate of $5 per square foot, up to 300 square feet), there was no depreciation in those years, so nothing to tax for them. Years you used actual expenses are different.
Sources

Authority, strongest first

  1. Regulation Treas. Reg. § 1.121-1
  2. Rev. Proc. Rev. Proc. 2013-13, § 4.06
  3. Publication IRS Publication 523 (2025), Selling Your Home
Reg. 1.121-1(e)(1) (no allocation within the same dwelling unit) and (e)(4) Examples 5 and 6. Pub. 523's example (from Reg. Example 5) is a law office inside a single dwelling unit. Rev. Proc. 2013-13, section 4.06: depreciation for a year in which the safe harbor is used is deemed to be zero; section 4.07 governs a later year using actual expenses. Depreciation allowed or allowable in actual-expense years still matters under 121(d)(6).

What if part of my property is a rental or business apart from my living space?

That part is handled separately. If you lived in one half of a duplex and rented the other, or lived above a store, you must split the sale between the home and the business part. The business part isn't eligible for the exclusion unless you also lived in it for the required time.
Sources

Authority, strongest first

  1. Regulation Treas. Reg. § 1.121-1
  2. Rev. Proc. Rev. Proc. 2005-14
  3. Case Wickersham v. Commissioner, T.C. Memo. 2011-178
  4. Publication IRS Publication 523 (2025), Selling Your Home
Reg. 1.121-1(e)(1)-(3): use the same allocation method used for depreciation; Rev. Proc. 2005-14 section 2.04 accepts square footage. 'Dwelling unit' has the section 280A(f)(1) meaning (Reg. 1.121-1(e)(2)). The business part is reported on Form 4797 (Pub. 523).

I moved out and rented the house before selling. Can I still exclude the gain?

Usually yes, as long as you lived there at least 2 of the last 5 years. The rental years after you moved out don't count against you. The depreciation you took for the rental, though, is taxed.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Regulation Treas. Reg. § 1.121-1
  3. Publication IRS Publication 523 (2025), Selling Your Home
Section 121(b)(5)(C)(ii)(I): the portion of the five-year window after the last date of use as a principal residence is not nonqualified use. Reg. 1.121-1(c)(4) Example 1 (rented for more than two years after moving out, still qualified). Pub. 523 examples (Taylor, Cartier).

I rented the house for years before I moved in. How is that taxed?

A slice of the gain, matching the share of your ownership time when it wasn't your main home, can't be excluded. Only time on or after January 1, 2009 counts. The depreciation you took is carved out first and taxed separately.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Publication IRS Publication 523 (2025), Selling Your Home
Section 121(b)(5)(A)-(C) and (D): nonqualified-use time over total ownership time, applied after the 121(d)(6) depreciation rule. Pub. 523's Finley example allocates two years of rental out of five. The denominator is the whole period of ownership, including years before 2009.

Are there exceptions to the nonqualified use rule?

Yes, three. Time after you last lived in the home (in the 5-year window) doesn't count. Up to 10 years of qualified extended duty (military, Foreign Service, intelligence) doesn't count. And up to 2 years of temporary absence for a job change, health, or an unforeseen event doesn't count.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Case Webert v. Commissioner, T.C. Memo. 2022-32
  3. Publication IRS Publication 523 (2025), Selling Your Home
Section 121(b)(5)(C)(ii)(I)-(III). The temporary-absence exception only helps a taxpayer who already meets the use test; Webert (T.C. Memo. 2022-32) reads it that way.

I turned my vacation home into my main home. What now?

You can use the exclusion once you've lived there 2 years, but the years it was a vacation home or rental on or after January 1, 2009 are nonqualified use, so part of the gain is taxed. The more years you lived there compared with how long you've owned it, the smaller the taxed share.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Publication IRS Publication 523 (2025), Selling Your Home
Section 121(b)(5). The ratio uses total ownership time, which includes the years of residence after the conversion.

Can I do a like-kind exchange into a rental, then move in and use the exclusion?

Not right away. If you got the property in a 1031 exchange, you can't use the exclusion unless you wait 5 years from the date you acquired it. And a main home can't be the starting point of a 1031 exchange to begin with.
Sources

Authority, strongest first

  1. Code I.R.C. § 121
  2. Rev. Proc. Rev. Proc. 2005-14
  3. Publication IRS Publication 523 (2025), Selling Your Home
Section 121(d)(10). Pub. 523 notes a converted main home can involve both sections 121 and 1031, with section 121 applied first; see Rev. Proc. 2005-14 for the mechanics.

I rent a room or use Airbnb while I live there. Does that hurt me?

A room inside your home doesn't need to be split out, so the exclusion generally stays. The catch is depreciation: if you took it, or were allowed to take it, you'll owe tax on that amount at sale. 'Allowed or allowable' means skipping the deduction doesn't avoid it.
Sources

Authority, strongest first

  1. Code I.R.C. § 1016(a)(1), (a)(2)
  2. Regulation Treas. Reg. § 1.121-1
  3. Publication IRS Publication 523 (2025), Selling Your Home
Reg. 1.121-1(e)(1): no allocation when residential and nonresidential portions are within the same dwelling unit. Pub. 523 lists a rented spare bedroom as space within the living area.

More questions

Where the numbers come from

Checked

Every figure above comes from the source listed here, with the date we checked it and the date it is due for a re-check.

  • Home office: simplified maximum sq ft
    Rev. Proc. 2013-13 checked 2026-10-19, review by 2027-01-19
  • Home office: simplified rate per sq ft
    Rev. Proc. 2013-13 checked 2026-10-19, review by 2027-01-19
  • Home sale: depreciation cutoff date
    IRC 121(d)(6) checked 2026-10-19, review by 2027-01-19
  • Home sale: like kind holding years
    IRC 121(d)(10) checked 2026-10-19, review by 2027-01-19
  • Home sale: nonqualified use extended duty maximum years
    IRC 121(b)(5)(C)(ii)(II) checked 2026-10-19, review by 2027-01-19
  • Home sale: nonqualified use start date
    IRC 121(b)(5)(C)(i) checked 2026-10-19, review by 2027-01-19
  • Home sale: ownership use test years
    IRC 121(a) checked 2026-10-19, review by 2027-01-19
  • Home sale: temporary absence maximum years
    IRC 121(b)(5)(C)(ii)(III) checked 2026-10-19, review by 2027-01-19
  • Capital gains: rates
    26 U.S.C. sec. 1(h) checked 2026-09-24, review by 2027-01-22