Sold Your Irvine Home After Renting It Out? The Tax Rules That Change Everything

by Dar Mardan

Two-story Irvine townhome with a for-sale sign out front, a tidy front yard and a tree-lined residential street

Here is a situation I see all the time in Irvine. A family buys a home, lives in it for several years, then takes a job in another city or moves up to a bigger house. Instead of selling, they rent the old place to a UCI faculty family, a grad student household or a young professional. A few years later, they decide to sell.

But the moment a home has been rented out, or used partly for business, the tax rules on the sale change. The familiar "$500,000 tax-free" rule may only cover part of your gain, some of it may be taxed at a different rate, and the date you close can swing the bill by six figures. As a CPA and Realtor, I want you to see these numbers before you list, not after an offer is on the table.

This article is general education, not tax or legal advice. Confirm your own numbers with a CPA or tax attorney before you sell.

Start with the Basic Exclusion, Then See What Rental Use Changes

The basic home-sale exclusion lets you exclude up to $250,000 of gain (or $500,000 for most married couples filing jointly) if you owned and lived in the home for at least 2 of the 5 years before the sale. I cover the general rules, California's treatment and the 3.8% Net Investment Income Tax in my complete guide to capital gains tax on a California home sale, so I won't repeat them here.

This post is about what happens when the home was not used as your residence the whole time. There are 3 rules that matter:

  1. Depreciation recapture. Any depreciation from the rental years is taxable, even if the rest of your gain is excluded.
  2. The 2-out-of-5-year window. Once you move out, a clock starts. Sell too late and you lose the exclusion entirely.
  3. The "nonqualified use" rule. If the home was a rental before you lived in it, part of your gain cannot be excluded, even if you pass the 2-out-of-5 test.

Rule 1: Depreciation Recapture Is Never Covered by the Exclusion

When you rent out a home, the IRS treats the building (not the land) as wearing out over time. Under IRS Publication 946, residential rental property is depreciated straight-line over 27.5 years. Land is never depreciated.

The catch comes at the sale. According to IRS Publication 523, you cannot exclude the part of your gain equal to depreciation allowed or allowable after May 6, 1997. That portion is called "unrecaptured Section 1250 gain," and IRS Topic 409 confirms it is taxed at a maximum federal rate of 25%, compared with the 15% or 20% rate on most long-term gains.

"Allowed or allowable" means you owe it even if you didn't claim it

Some owners never take depreciation on their tax return. The IRS still reduces your basis by the depreciation you could have taken. Publication 946 says basis is reduced by the greater of the depreciation allowed or allowable. Skipping the deduction doesn't help you at sale. Talk to your CPA about correcting it before you sell.

Home office or business use

Business use works similarly. If you used a room inside your home as an office, Publication 523 says you don't have to split the gain between personal and business portions, but any depreciation you took on that office is still taxable. If the business or rental use was in a separate unit, such as a detached casita, an ADU or the other half of a duplex, the gain on that portion generally has to be allocated out and cannot be excluded unless you also lived in that portion for 2 of the 5 years.

Rule 2: The Clock Starts When You Move Out

The exclusion requires 24 months of living in the home within the 5 years ending on your closing date. The months don't have to be consecutive. For a married couple to get the full $500,000, each spouse must meet the residence test.

Here is what that means in practice: if you lived in your Irvine home for at least 2 years and then turned it into a rental, you generally need to close the sale within 3 years of moving out. Close one month late and your 5-year window may hold only 23 months of residence, which can mean no exclusion at all.

Rental time after you move out does not count as nonqualified use. The tax code (26 U.S.C. Section 121) specifically excludes any period after your last day of residence within the 5-year window. So if you sell inside that 3-year window, you keep the full exclusion on the non-depreciation part of your gain.

Rule 3: Nonqualified Use When the Rental Came First

Since 2009, the rules have been tougher on owners who rent a home first and move in later. Any period after 2008 when the home was not your main residence counts as nonqualified use, unless it falls into an exception such as the period after you moved out, qualified official extended duty, or a temporary absence of up to 2 years for a job change, health or unforeseen circumstances.

The gain tied to nonqualified use is calculated as a ratio: total time of nonqualified use divided by total time you owned the property. That share of the gain cannot be excluded. Depreciation is handled first and separately, so the ratio applies to the gain left after the depreciation portion is set aside.

A Worked Irvine Example

The numbers below are illustrative only, rounded for clarity, and assume a married couple filing jointly. Real calculations use exact days and your actual depreciation records.

Scenario A: Lived first, rented after, sold within 3 years

The Parks buy an Irvine townhome for $900,000 and later add $60,000 of capital improvements. They live there for 6 years, then rent it to a UCI family for 2.5 years. The depreciable building portion is $440,000, so annual depreciation is $16,000, about $40,000 over the rental period. They sell for $1,600,000 with $80,000 of selling costs.

Line Amount
Sale price $1,600,000
Less selling costs ($80,000)
Amount realized $1,520,000
Purchase price + improvements $960,000
Less depreciation ($40,000)
Adjusted basis $920,000
Total gain $600,000
Depreciation portion (max 25% federal) $40,000
Remaining gain $560,000
Exclusion (passed 2-of-5 test; no nonqualified use) ($500,000)
Taxable at regular long-term rates $60,000

The Parks pay federal tax on $40,000 at up to 25% and on $60,000 at 15% or 20%, plus California tax. The FTB states plainly that California has no lower rate for capital gains, so both pieces are taxed as ordinary income at the state level.

Scenario B: Same home, but they waited too long

Now suppose the Parks rent for 4 years instead of 2.5. Depreciation grows to about $64,000, their adjusted basis drops to $896,000, and with the same sale price their gain is $624,000. But in the 5 years before closing, they lived in the home for only 1 year. They fail the residence test, so there is no exclusion. The full $624,000 is taxable: $64,000 at up to 25% federal, $560,000 at regular long-term rates, plus California tax on all of it. Waiting 18 more months turned a $60,000 taxable gain into a $624,000 taxable gain.

Scenario C: Rented first, then moved in

The Chens buy a home in 2019, rent it for 3 years, then move in and live there for 3 years before selling. Their total gain is $700,000, including $45,000 of depreciation. They pass the 2-out-of-5 test. But 3 of their 6 years of ownership were nonqualified use, so 50% of the remaining $655,000, or $327,500, cannot be excluded. The other $327,500 is fully covered by the $500,000 exclusion. Taxable: $45,000 at up to 25% federal and $327,500 at regular long-term rates, plus California tax.

An accurate adjusted basis drives every line above. If your records are thin, see my post on documenting your cost basis before a large home sale, and my guide to Irvine home improvements for which projects count. Your Orange County selling costs also reduce your amount realized.

If It's Purely a Rental Now: The 1031 Exchange Option

If you moved out long ago and have no plan to live in the home again, the property may now be an investment rather than a residence. In that case, a 1031 like-kind exchange can defer the gain, including the depreciation portion, by rolling the proceeds into another investment property. A personal residence does not qualify, and the rules are strict.

According to the Form 8824 instructions:

  • You must identify replacement property in writing within 45 days of transferring the property you give up.
  • You must receive the replacement property within 180 days, or by your tax return due date including extensions, whichever comes first.
  • Both properties must be held for business or investment use, not primarily for resale.

IRS Publication 544 adds that any cash or other non-like-kind property you receive (called "boot") is taxable. Most exchanges use a qualified intermediary, who holds the sale proceeds so you never take receipt of the cash. The exchange must be set up before you close the sale, so this decision needs to be made early.

A 1031 exchange defers tax; it does not erase it. The deferred gain carries into the replacement property. For owners who want to stop being landlords, paying the tax and moving on may make more sense.

Practical Steps Before You List a Former Rental in Irvine

  1. Find your move-out date. Count forward 3 years. That is roughly your deadline to close if you lived there 2 full years beforehand.
  2. Pull every tax return from the rental years. Your CPA needs the depreciation schedule, or needs to rebuild one.
  3. List any home office or separate-unit use. ADUs and casitas get different treatment than a room in the main house.
  4. Decide: sell or exchange. If a 1031 exchange is on the table, line up a qualified intermediary before you open escrow.
  5. Plan the timeline backward. A typical prep and marketing period can take 6 to 10 weeks. My 8-week plan for preparing an Orange County home for sale shows how to fit it inside your deadline, especially with a tenant in place.

Withholding at closing is a separate topic. I explain how it works in capital gains, FIRPTA and the tax side of selling. And if you're a business owner thinking about how your home fits into a bigger plan, read how to turn your home into tax-free income.

Frequently Asked Questions

If I rented out my Irvine home, can I still use the $250,000 or $500,000 exclusion?

Often, yes. If you lived in the home for at least 2 of the 5 years before closing, you can usually still exclude gain up to the limit. The depreciation from the rental years is still taxable, and if the rental period came before you lived there, part of the gain may not qualify.

What tax rate applies to depreciation recapture on a home sale?

Unrecaptured Section 1250 gain is taxed at a maximum federal rate of 25%. California taxes it, like all capital gains, as ordinary income.

I never claimed depreciation when I rented my house. Do I still owe recapture?

Generally, yes. The IRS reduces your basis by depreciation that was allowable, even if you didn't claim it. Ask your CPA whether you can correct prior returns to get the deductions you missed.

How long after moving out can I sell and keep the exclusion?

If you lived in the home for exactly 2 years before moving out, you generally need to close within 3 years of your move-out date. The 5-year window ends on your closing date, not your listing date.

Does renting the home after I move out reduce my exclusion?

No. Time after your last day of residence, within the 5-year window, is not counted as nonqualified use. Only rental periods before you lived there (after 2008) trigger the proration rule.

Can I do a 1031 exchange on a home I used to live in?

If the property is now held for investment, it may qualify. You must identify replacement property within 45 days and close within 180 days, usually through a qualified intermediary. In some cases both the exclusion and an exchange can play a role, so get advice before you sign a listing agreement.

Does a home office affect my exclusion?

A home office inside your living space doesn't require splitting the gain, but any depreciation you claimed on it is taxable. A separate unit, like an ADU or casita used as a rental or office, may need its own allocation.

Let's Map Out Your Sale Before the Clock Runs Out

If your Irvine home has been a rental, the timing of your sale matters as much as the price. Vida and I can help you work out your deadline, coordinate with your tenant, and connect you with a CPA or exchange intermediary we trust. Book a complimentary consultation or call 714-612-3870.

Dar Mardan, CPA, MBA | Vidar Group Real Estate – REAL Broker

Dar Mardan
Dar Mardan

Agent License ID: 02121982

+1(714) 612-3870 | dar@vidargroupre.com

GET MORE INFORMATION

Name
Phone*
Message