Sell rental to your own S corp to lock in section 121 exclusion — does this actually work?

So I've been living in my house for the last three years and I want to convert it to a rental, but I'm worried I'll lose the section 121 exclusion if I wait too long. Someone at my real estate meetup said I could sell it to my own S corp right now to lock in the exclusion and then the S corp holds it as a rental going forward. I've been trying to figure out if this actually works. The house has about $400k in gain, so the exclusion matters a lot. I already have an S corp I use for my consulting business. I know there are related-party rules somewhere in the code but I don't know if they'd blow this up. Has anyone actually done this or looked into it seriously? My CPA is on vacation and I wanted to get a sense of whether this is even worth bringing to her when she's back.

31 comments

I looked into this exact structure a few years ago. The short answer from every professional I talked to was: technically you can sell to your own S corp and claim the 121 exclusion on the sale, but the IRS scrutinizes it heavily and there are several ways it falls apart. The related-party rules under section 267 don't directly block the sale, but they do disallow losses if the deal ever goes sideways. The bigger issue is that the IRS could recharacterize the whole thing as a sham transaction if there's no economic substance — meaning if you funded the S corp purchase with your own money through a loan or contribution, they may argue nothing really changed hands.

Kevin W.

Author

Thanks, this is helpful. The funding piece is exactly what I was worried about — I'd probably have to loan the S corp the money to buy it, which does feel circular.

I ran into almost this same question when I inherited a property with a stepped-up basis and wanted to move it into my S corp cleanly. I uploaded my operating agreement, the draft purchase agreement, and my prior year 1120-S to taxr.ai and it flagged that my S corp had no retained earnings and no outside financing, so a purchase at fair market value would immediately require a shareholder loan that showed up as debt basis — it laid out exactly how that would affect my Form 7203 going forward. That framing helped me ask my CPA much sharper questions. For your 121 situation specifically: the exclusion applies to the seller (you), so yes, the gain on the sale to the S corp can be excluded if you meet the ownership and use tests. The issue is what happens after.

Kevin W.

Author

The Form 7203 angle is something I hadn't thought about at all. If I loan the S corp the purchase price, that creates debt basis, which then affects how losses flow through. That's actually useful context before I talk to my CPA.

The 7203 piece is real. Debt basis from a shareholder loan is tracked separately from stock basis and it doesn't increase your stock basis — it only protects loss deductions up to the loan amount. The IRS instructions for Form 7203 walk through the ordering rules.

The 121 exclusion part can work — you meet the two-of-five-year ownership and use test, you sell, you exclude the gain. The IRS doesn't care who the buyer is for purposes of 121 as long as you're the seller and you qualify. What people miss is the depreciation recapture piece: any depreciation you took while it was your primary residence or a rental before the sale is still taxable as section 1250 gain even if the rest is excluded.

Kevin W.

Author

I haven't taken any depreciation on it yet since it's still my primary residence, so I think recapture is zero at this point. That's actually one reason I want to do this now rather than after converting it to a rental.

That's the right instinct. Once you convert and start depreciating, recapture builds up. Selling before conversion keeps it clean on that front. The harder question is whether the S corp purchase price is supportable with an independent appraisal.

The economic substance problem is the one that keeps this from being a slam dunk. If you contribute cash to the S corp, then the S corp pays you, then you get the cash back — a court could say the sale lacked substance. The structure works better if the S corp has independent financing, like a real mortgage from a bank, so money actually flows in a way that makes sense. I've seen practitioners do this with a commercial lender involved and it holds up much better.

Agreed on the financing piece. A related-party sale with no third-party debt is a red flag in an audit. Getting an appraisal and actual financing makes the transaction look arm's length even if the buyer is an entity you own.

I dealt with a version of this when I sold a condo to my S corp and had to figure out whether the installment sale rules under section 453 applied since I was taking back a note instead of cash. I gave Taxr my draft purchase agreement and the prior two years of my 1120-S and it spotted that electing out of installment sale treatment might be better given my basis situation — it drafted a comparison showing the tax in each year under both approaches so I could bring actual numbers to my attorney. For your situation: if you take back a note from the S corp instead of cash, the 121 exclusion still applies, but section 453(g) generally denies installment treatment on a sale of depreciable property (which the house becomes once the S corp rents it out) to an entity you control. Any gain that isn't excluded is generally reported all in the year of sale even though you're paid over time.

Kevin W.

Author

Thanks — taking back a note is actually what I was planning. I didn't realize that a note from my own S corp generally can't get installment treatment at all when the property will be depreciated. I'll flag this for my CPA.

For a sale to a controlled S corp of property it will depreciate, section 453(g) generally takes installment treatment off the table, so there usually aren't two scenarios to choose between. Worth having your CPA run the year-of-sale numbers before you decide.

One structural risk people don't mention: after the sale, the S corp owns the rental and all the rental income and expenses flow through to you on Schedule K-1 anyway. So you haven't really separated the asset from yourself for liability purposes unless the S corp is properly capitalized and operated. If you're doing this partly for liability protection, make sure the entity is actually treated as separate.

Kevin W.

Author

Liability protection is a secondary goal. The main goal is locking in the 121 exclusion now. But you're right that I'd need to run it properly as a separate entity.

The two-of-five-year use test is worth double-checking if you've been renting out any portion of the property. If you rented a room within the house, you don't have to allocate the gain, but any depreciation you took on that space isn't excluded. If the rented part was separate from the dwelling unit, the gain gets allocated and you may not exclude the portion attributable to that space. The nonqualified use rule in section 121(b)(5) separately covers periods after 2008 when the home wasn't your main residence.

I'm a little skeptical of the whole structure just because rentals often throw off losses in the early years, and the passive activity rules apply whether the property sits in an S corp or a partnership. Those losses flow to your Schedule E but you still need to clear the passive activity rules. An LLC taxed as a partnership can give you more basis flexibility, since entity-level debt can add to a partner's basis, though it doesn't change the 121 analysis on the front end.

Worth being clear that the passive rules hit S corps and partnerships the same way. Rental losses are passive by default unless you're a real estate professional. If your consulting income is your main income, those losses are probably suspended anyway. The entity choice matters for what comes after the sale.

Right, and suspended passive losses carry forward to offset passive income in later years, with whatever's left released when you dispose of the activity in a fully taxable transaction. If the S corp holds the property indefinitely and there's no other passive income, those losses just sit there.

Definitely get a formal appraisal before closing this. If the IRS audits and decides the sale price was above fair market value, they can recharacterize the excess as a distribution to you rather than sale proceeds, and if it was below, the shortfall can be treated as a capital contribution to the S corp. That could affect how much gain qualifies for the exclusion in the first place.

Kevin W.

Author

Got it — appraisal is non-negotiable. I'll make sure it's from a licensed appraiser with no connection to either side of the deal.

The 121 exclusion has a cap — the instructions for Schedule D and Form 8949 reference the limits, and the IRS has a worksheet in Publication 523 that walks through the exact calculation. If your gain is right at the edge of the exclusion limit, running the worksheet before you price the sale is important so you know exactly how much headroom you have.

Something worth asking your CPA: does your S corp have only one class of stock? The S corp eligibility rules require that, and issuing any instrument that could be treated as a second class — like a note with equity-like features — can terminate the election. A straight promissory note at a market interest rate is generally fine, but the terms matter.

Kevin W.

Author

My S corp just has common shares, all with identical rights. I'll make sure any note I take back is structured as plain debt with market-rate interest and a fixed repayment schedule.

Market-rate interest is key. Below-market interest on a shareholder loan has its own imputed interest rules under section 7872, and you don't want to add that complexity to an already complicated transaction.

I work in commercial real estate and we see related-party sales reviewed closely by lenders too, not just the IRS. If your S corp ever needs to refinance the property, the lender will want to see that the original purchase was at arm's length with a real appraisal and clean financing. The paper trail you build now matters years later.

Circling back to the substance question: the IRS can invoke the step transaction doctrine to collapse a series of steps that have no independent purpose. If you fund the S corp with a capital contribution today and it immediately buys the house, that could be treated as if you just contributed the house directly — which is not a sale and gets no 121 exclusion. Timing and genuine separate financing really do matter here.

The step transaction doctrine is exactly what practitioners try to work around by putting time between the capitalization and the purchase. But the IRS looks at the overall plan, not just the calendar. This is the kind of thing that needs a tax attorney, not just a CPA.

Worth noting: Form 1120-S due date is March 15 for a calendar-year S corp, with a six-month extension available on Form 7004. If you close the sale near year-end, make sure your S corp return is filed on time so the Schedule K-1 you receive reflects the rental activity correctly from day one.

Kevin W.

Author

Good reminder on timing. I hadn't thought about the K-1 implications for the first year the S corp holds the property.

Bottom line from everything here: the 121 exclusion can apply to a sale to your own S corp, but the transaction needs to be real — arm's length price, independent appraisal, genuine financing, and separate operation of the S corp afterward. The IRS has the tools to unwind it if any of those pieces are missing. Get a tax attorney involved before you sign anything, not after.