Can I sell my rental to my own S corp to use the Section 121 exclusion?

So I've lived in my house for about 4 years, using part of it as a rental for the last 2.5 years. I'm thinking about transferring it into an S corp I already own for asset protection purposes. Someone told me I could sell my rental to my own S corp to use Section 121 exclusion before the transfer so I don't pay tax on the gain. I've been in the house long enough to meet the 2-of-5-year rule, but I'm not sure if selling to an entity I control even counts as a real sale for 121 purposes, or if the IRS would just call it a sham transaction. Has anyone actually done this or know how the IRS looks at it?

36 comments

Went down this rabbit hole last year. The short answer most tax attorneys gave me was: a sale to your own S corp is still a sale, technically, but it has to be a bona fide arm's-length transaction at fair market value or the IRS can recharacterize it. The 121 exclusion itself doesn't prohibit related-party sales, but the substance-over-form doctrine is what gets people. If there's no real economic change and you're the 100% shareholder, they may argue nothing actually changed hands in a meaningful way.

Hannah H.

Author

That's the part that worries me. I am the 100% shareholder, so it really does look like I'm just moving money from one pocket to the other. Did your attorney say anything about how the IRS actually challenges these?

They said the IRS looks at whether you actually received the proceeds and whether the S corp assumed real debt or paid real cash. If you just did a paper transfer and recorded a note payable to yourself, that's the fact pattern they flag.

I uploaded my deed, my purchase contract, and the draft transfer agreement to taxr.ai and asked it to flag every place where the transaction structure could blow up the 121 exclusion. It pulled out three issues I hadn't thought about: the allocated basis between the residential and rental portions, depreciation recapture that survives 121 regardless, and the step-transaction doctrine. Really useful starting list before I took it to my CPA.

Hannah H.

Author

The depreciation recapture piece is the one I keep forgetting about. Even if 121 covers the gain, recapture on the depreciation I've claimed over the years still gets taxed as ordinary income, right?

Exactly. Section 1250 recapture isn't sheltered by the 121 exclusion. That part is taxable no matter what, so the exclusion only helps on the appreciation above your adjusted basis.

Section 121 requires that you owned and used the property as your principal residence for at least 2 of the 5 years before the sale. The sale to an S corp you control can still qualify if it's structured correctly, but you also have to allocate the gain. The portion attributable to nonqualified use periods after December 31, 2008 and any depreciation you claimed after May 6, 1997 isn't eligible for the exclusion. So even a clean sale won't shelter everything.

Hannah H.

Author

So the gain gets split between the residential use portion and the rental use portion, and 121 only covers the residential side? I hadn't realized the allocation was that strict.

Right. Publication 523 walks through the nonqualified use calculation. The fraction of the gain that falls in the nonqualified use period is taxable before you even apply the exclusion.

My accountant told me the step-transaction doctrine is the real trap here. If the IRS can show that the sale to the S corp and the eventual sale of the S corp shares (or the property by the S corp) are really just one transaction, they collapse the steps and treat it as if you never did the 121 sale. The intermediary step gets ignored.

Hannah H.

Author

So if I sell to my S corp now using 121, then the S corp sells the property a year later, they could potentially look through the whole thing?

That's the scenario. The intent and timing matter a lot. If the S corp sells shortly after acquiring it, the step-transaction argument gets much stronger. Keeping the property in the corp for a real business purpose for a substantial period is what weakens it.

There's also a basis problem people don't mention. When you sell property to an S corp and you're the sole shareholder, the S corp takes a cost basis equal to what it paid (if you contribute it instead, the S corp takes your carryover basis). If that's FMV and you excluded the gain under 121, the S corp now has a stepped-up basis. But if the IRS recharacterizes the transaction, the S corp could be stuck with your original carryover basis plus depreciation recapture on a future sale. Gets complicated fast.

I had Taxr read through my Schedule E going back three years and the draft sale contract to the S corp, and it listed every line where the rental period depreciation would affect my adjusted basis and what the recapture exposure looked like. That list made the conversation with my enrolled agent about an hour shorter. Worth doing before you pay someone to explain the same math.

Hannah H.

Author

How far back did it go on the depreciation? I've been claiming it for about two and a half years, so the recapture number isn't huge, but I want to make sure I'm not missing anything.

It went back to the first year I placed it in service as a rental and totaled the section 1250 recapture exposure. You'd want to check that your basis adjustments reflect all the depreciation actually claimed, not just what you remember claiming.

Honestly, the asset protection argument for putting a primary residence into an S corp is not as strong as people think, and the tax cost can be significant. An LLC taxed as a disregarded entity or a trust might give you similar protection with a much simpler tax picture. Worth asking your attorney whether the S corp is actually the right vehicle before you try to structure around 121.

Hannah H.

Author

That's a fair point. I hadn't really compared the entity options. I just already had the S corp sitting there for my business.

Even if the 121 exclusion applies cleanly, the S corp will start depreciating the property from scratch at its new cost basis. Residential rental property depreciates over 27.5 years under MACRS. So the future depreciation deductions belong to the S corp, and those deductions flow through to your personal return as an S corp shareholder. That's a small offset to the recapture pain, but it's real.

The 27.5-year clock also resets. So whatever you already depreciated, the S corp starts fresh at the purchase price it paid, which could be a meaningful step-up if the property appreciated.

The IRS has successfully challenged related-party sales where the taxpayer couldn't show actual cash changed hands, the note was never serviced, or the FMV appraisal was done after the fact. If you do this, get a qualified appraisal dated before the closing, make sure the S corp actually funds the purchase through its own account or a real loan, and document everything as if you expect an audit.

What's your expected gain on the property? If the exclusion amount is enough to cover everything after the nonqualified-use haircut and you strip out the recapture, the math might not favor this structure at all. Sometimes the complexity costs more in professional fees and audit risk than the tax you're trying to avoid.

Hannah H.

Author

That's a really good point. The gain is probably around $90k, but once I subtract the recapture and the nonqualified-use portion, the amount actually sheltered by 121 might be modest. I should run the numbers before I go any further.

Exactly. And once you add the appraisal fee, the legal fees to properly document the sale, and the ongoing S corp compliance costs for holding real estate, the break-even is higher than most people expect.

I ran into this same question last year and had Taxr go through my actual Schedule E, the depreciation schedule from Form 4562, and my cost basis worksheet together. It flagged that my adjusted basis was lower than I thought because of depreciation I had claimed in year one that I'd forgotten about, which bumped up my recapture exposure. I took that summary to a CPA and it saved a lot of back-and-forth.

Hannah H.

Author

The Form 4562 piece is something I glossed over. I should pull those from the last two years and check the cumulative depreciation before I assume I know my basis.

For anyone considering the S corp path: S corps holding real estate also create complications on a future sale because the built-in gains tax can apply if the S corp used to be a C corporation and sells former C corp assets within the recognition period after it converted. That's separate from 121 entirely, and property you put in as an individual isn't subject to it, but your tax advisor needs to check whether it applies to your situation based on whether the S corp was ever a C corp and when it converted.

Built-in gains is a real issue people sleep on when the corp used to be a C corp. It can effectively eliminate the tax benefit of the structure if the corp sells former C corp assets within the recognition period. The instructions for Form 1120-S (Schedule D, Part III) and your advisor can tell you whether the window has closed.

Practical step: before you do anything, get a written opinion from a CPA or tax attorney that the transaction will be respected as a bona fide sale. That opinion isn't cheap, but if you get audited it's the difference between a correctable position and a fraud allegation. The IRS takes a hard look at any transaction where the buyer and seller are the same economic person.

My situation was slightly different — I sold to an LLC I controlled, not an S corp — but the substance-over-form analysis was identical. My attorney made sure the LLC had its own operating account, got its own financing, and that I actually received the proceeds before the closing settled. The paper trail was treated as seriously as any third-party sale.

Hannah H.

Author

That level of documentation makes sense. I think I was underestimating how seriously these need to be treated even when both sides of the deal are you.

My closing took twice as long as a normal sale just because of the documentation requirements my attorney insisted on. It felt excessive but she said that was the whole point.

Worth noting: the passive activity rules don't disappear just because you use 121 on the gain. If you have suspended passive losses from the rental years sitting on Form 8582, those get freed up when you dispose of the property in a fully taxable transaction to an unrelated party. A sale to your S corp at FMV won't trigger that release, because your own S corp is a related party, so confirm how the transaction is treated under the passive activity rules — your basis in the S corp stock complicates this.

Good point. The passive loss release depends on whether it's treated as a fully taxable disposition to an unrelated party. A sale to a related party — which your own S corp is — may not trigger the release. The instructions to Form 8582 and Publication 925 describe the related-party exception.

Bottom line from someone who ended up not doing this: the transaction is legally possible but the number of things that have to go exactly right for it to hold up is long. Related-party sale at FMV, real cash or real debt, appraisal beforehand, no step-transaction risk, correct basis allocation, recapture still owed regardless, passive loss complications, built-in gains only if the S corp was once a C corp. I hired an enrolled agent to model it out and decided the tax savings didn't justify the exposure.

Hannah H.

Author

This thread has basically convinced me to at least get a full analysis done before I move forward. I think I was treating this as simpler than it is. Going to bring all the documents to a CPA who handles real estate transactions specifically.