< Back to IRS

Nora Bennett

S-corporation owns real estate property - tax implications when selling while keeping the S-corp?

Back in 2018, my business partner and I took our lawyer's advice and formed an S-corporation to purchase some commercial property along with a small retail business. Fast forward to today, and we're planning to sell both the business operations and the real estate, but want to maintain the S-corp structure for some other ventures we have in mind. Looking back, I realize putting the real estate inside the S-corp was probably a huge mistake. I was completely new to business ownership and trusted our attorney without consulting an accountant first. The properties were valued at around $145K when we bought them, but we've since developed part of the land for a second small business. We're expecting the combined properties to sell for about $320K (not including the value of the business operations themselves). From what I understand, we'll face capital gains on the entire difference between purchase and sale price - roughly $175K in gains that we'll owe taxes on after this tax year ends. I'm wondering if there are strategies to minimize this tax hit. We actually own another parcel of land that we're planning to develop for a third business venture (yes, still using the S-corp - I know, I know). The development costs for this new project will be approximately $130-190K. Can these development expenses offset our capital gains in the same tax year? Also, our S-corp is carrying about $80K in negative accumulated adjustments (on the 1120-S Schedule M-2) from losses we took during the pandemic. Will this negative balance help reduce our tax liability at all? I'd typically ask my accountant these questions, but after going through three different accountants in the last few years (each worse than the last), I'm trying to educate myself before finding a new tax professional. Any guidance would be greatly appreciated!

Your situation is actually pretty common - many business owners put real estate in their S-corps based on attorney advice without realizing the tax implications. For your capital gains situation, the S-corporation will recognize the gain on the sale of the real estate, and that gain will flow through to your personal tax returns based on your ownership percentages. It's considered ordinary income rather than capital gains when it flows through an S-corp. Regarding offsetting the gain - the development costs for your third property won't directly offset the gains from selling the other properties. Those development costs will generally be capitalized (added to the basis of the new property) rather than expensed immediately. Some portions might be deductible, but most will be depreciated over time. The negative accumulated adjustments account (AAA) of $80K represents previous losses that flowed through to shareholders. This doesn't directly offset new gains, but it affects your stock basis, which is important for determining taxable income on distributions. My suggestion would be to explore a 1031 exchange if you haven't closed the sale yet. This would allow you to defer the gain if you purchase similar replacement property. There are strict timelines and rules, so you'd need to act quickly. Another option might be an installment sale, where you recognize the gain over multiple years as you receive payments, potentially keeping you in lower tax brackets.

0 coins

Thanks for the detailed response. I had a feeling that development costs would be capitalized rather than expensed immediately. That's disappointing but makes sense. I've heard of 1031 exchanges but thought they were only for straight real estate transactions, not property owned inside an S-corp. Is that really an option even though the real estate is owned by the S-corp entity?

0 coins

1031 exchanges can work with S-corporation-owned real estate, but there are some important caveats. The replacement property must be acquired by the same entity (your S-corp) that sold the original property. You can't personally acquire the replacement property. Also, the properties must be held for investment or business use, which sounds like it applies in your case. The strict timelines still apply - you must identify potential replacement properties within 45 days of selling your current property and complete the purchase within 180 days. I should note that the Tax Cuts and Jobs Act limited 1031 exchanges to real property only, but that works for your situation. You'll still recognize gain on the business assets portion of the sale, just not the real estate portion if you properly execute the 1031 exchange.

0 coins

After struggling with a similar situation last year, I found this amazing service called taxr.ai (https://taxr.ai) that really helped clarify my options for S-corp real estate sales. I was freaking out about a potential six-figure tax bill after selling commercial property held in my S-corp, and my accountant wasn't giving me clear answers. The taxr.ai system analyzed my situation and showed me several strategies I hadn't considered - including the implications of installment sales versus 1031 exchanges for S-corps. They even helped me understand how my basis in the S-corp affected the tax consequences of the sale. What I really liked was that it wasn't just generic advice - the analysis was specific to my exact situation including the corporation structure, property values, and basis calculations. Saved me thousands and gave me so much more confidence going into the transaction.

0 coins

How exactly does this service work? Do you upload your tax documents or something? I'm not really comfortable sharing all my financial info with some random website.

0 coins

I've heard mixed things about AI tax tools. Did it actually give you specific actionable advice that was different from what a regular CPA would tell you? I need something that can deal with the S-corp/real estate complication specifically.

0 coins

It works by analyzing your documents and tax situation through a secure system. You upload relevant docs (like previous returns, property info, etc.), and their AI reviews everything to identify opportunities. Everything is encrypted and they have strict privacy practices. What made it different from my previous CPA experience was the depth of analysis specific to S-corps holding real estate. My accountant gave general advice, but taxr.ai showed me exact calculations for different scenarios - like how an installment sale would affect my taxes over 5 years versus taking the hit all at once. They even identified depreciation recapture issues my CPA missed.

0 coins

Just wanted to follow up about my experience with taxr.ai from my question above. I was skeptical but decided to try it after continuing to get conflicting advice about my S-corp property sale. Their system actually identified that I had been miscalculating my basis in the S-corp because of how the previous losses were handled, which directly affected how much tax I'd owe on the property sale. It showed me that I had about $43K more in basis than I thought, which directly reduced my taxable gain. The analysis also showed me exactly how a 1031 exchange would work with my S-corp structure and gave me a step-by-step timeline to avoid missing any deadlines. I'm working with a qualified intermediary now and feel much more confident. Wish I'd known about this tool years ago before making the original mistake of putting real estate in the S-corp!

0 coins

My advice - don't even bother trying to call the IRS about this. I spent literally WEEKS trying to get through to someone who could answer S-corp real estate questions. It was absolute hell. Then I found Claimyr (https://claimyr.com) which got me through to an actual IRS agent in about 15 minutes. You can see how it works here: https://youtu.be/_kiP6q8DX5c I needed specific guidance on how to handle an S-corp property sale with significant depreciation recapture issues. The agent I spoke with walked me through the entire process and confirmed exactly which forms I needed to file. They even sent me to a specialized department that handles S-corp issues. Before using this service I had wasted hours on hold just to get disconnected. This was literally the only way I could get actual answers directly from the IRS about my specific situation.

0 coins

Wait how does this actually work? They somehow get you to the front of the IRS phone queue? That sounds too good to be true.

0 coins

I don't buy it. The IRS phone system is completely broken - no service can magically get you through. And even if you do get through, most agents give terrible advice anyway. I've been given wrong information by IRS agents multiple times.

0 coins

It uses an automated callback system that continuously redials and navigates the IRS phone tree until it secures a spot in line. Then it calls you and connects you directly with the agent. It's not skipping the line - it's basically handling the frustrating redial process for you. The IRS phone system is definitely broken, but the agents themselves can be incredibly helpful once you actually reach them. I was connected to a specialist in the business tax department who had specific knowledge about S-corporation property sales. She gave me detailed guidance about how to report the sale and how to properly handle the depreciation recapture. This was information I couldn't find anywhere else.

0 coins

I have to admit I was completely wrong about Claimyr in my comment above. After continuing to get nowhere with my S-corp tax questions, I gave it a try last week. The service actually did exactly what it claimed - got me through to an IRS business tax specialist in about 20 minutes without me having to do anything. The agent confirmed that my accountant had been calculating the basis in my S-corp incorrectly for years, which would have caused major issues with the property sale reporting. The IRS agent walked me through the correct way to handle the accumulated losses on my Schedule M-2 and how they affected my ability to take distributions after the property sale. She also sent me specific IRS publications that addressed my situation. I'm still shocked this actually worked. The IRS guidance probably saved me from a future audit. Worth every penny just for the peace of mind.

0 coins

One option not mentioned yet - have you considered a cost segregation study before selling? If you haven't been maximizing depreciation on the properties, you might be able to do a "catch-up" depreciation through a cost seg study and bonus depreciation. This could potentially create losses to offset some of the gains. It's a bit late in the game if you're selling soon, but might be worth looking into. You'd need a specialized engineering firm to conduct the study, but it can identify components of the real estate that qualify for shorter depreciation periods.

0 coins

That's really interesting. We've just been doing standard depreciation on the properties. Would a cost segregation study still be worth it if we're planning to sell within the next 6 months? And would the study itself be deductible?

0 coins

Yes, it could still be valuable even if selling within 6 months. The catch-up depreciation from prior years would be taken in the current year (the year you implement the cost segregation study), potentially creating a large deduction that could offset some of the gain from the sale. The cost of the study itself is deductible as a business expense. Typically costs run between $5,000-$15,000 depending on property size and complexity, but the tax benefits often far exceed this amount.

0 coins

I made a similar mistake putting property in my S-corp years ago. When we sold, we got KILLED on taxes because of depreciation recapture. All that depreciation we'd been deducting for years got recaptured at ordinary income rates (not capital gains rates). If I could do it over, I would have: 1. Done a cost segregation study years earlier 2. Maximized my basis in the S-corp before the sale 3. Considered an installment sale to spread the tax hit Talk to a GOOD tax attorney who specializes in real estate transactions, not just a regular accountant. The fees will be worth it compared to the tax savings.

0 coins

Agree with this 100%. A specialized tax attorney saved me about $70k when selling property from my S-corp last year. The depreciation recapture is where they really get you - it's taxed at 25% federal plus state taxes, not the preferential capital gains rates.

0 coins

This is a complex situation that many S-corp owners face with real estate holdings. A few additional considerations that haven't been fully addressed: The $80K negative AAA balance won't directly offset your gains, but it's important for distribution purposes. Once you have positive earnings from the property sale, you'll need to be careful about how distributions are handled to avoid creating taxable income beyond the flow-through gains. Regarding timing strategies - if you haven't already signed a purchase agreement, consider whether you can structure the closing to occur early in the next tax year. This would give you more time to implement offsetting strategies and potentially spread estimated tax payments. Also, don't forget about state tax implications. Depending on your state, you might face additional taxes on the S-corp gains that could significantly impact your total tax liability. The suggestion about cost segregation is solid, but given your timeline, focus on whether you've been properly accounting for any land improvements or tenant improvements that might qualify for accelerated depreciation. One last thought - if you're keeping the S-corp for future ventures, make sure you understand how this large gain will affect your basis calculations for future years. It's not just about minimizing this year's taxes, but also positioning yourself properly for future tax planning. Definitely invest in a qualified tax professional who specializes in S-corp real estate transactions before you close. The complexity here warrants professional guidance beyond general advice.

0 coins

I've been through a similar situation with S-corp owned real estate, and I want to emphasize how critical it is to act quickly on the 1031 exchange option if you're considering it. The 45-day identification period starts the moment you close on your current property, not when you start thinking about doing an exchange. Here's what I learned the hard way: you need to have your qualified intermediary (QI) in place BEFORE you sign any purchase agreements. The QI needs to be a party to the original sale contract, or you'll need to assign your rights in the contract to them. You can't just decide to do a 1031 exchange after closing - the IRS is very strict about this. For finding a good QI, look for someone who is a member of the Federation of Exchange Accommodators (FEA) and has specific experience with entity-owned exchanges (not just individual exchanges). Ask them directly about their experience with S-corp exchanges and request references from similar transactions. One thing that hasn't been mentioned yet - if your S-corp has been taking depreciation on the properties, you'll face depreciation recapture at ordinary income tax rates (up to 25%) rather than capital gains rates, regardless of whether you do a 1031 exchange or not. The exchange defers the gain but doesn't eliminate the recapture entirely. Given your $175K projected gain and the complexity of S-corp taxation, I'd strongly recommend getting both a tax attorney AND a QI involved immediately. The consultation fees will be minimal compared to your potential tax savings, and time is working against you here. Don't make the same mistake I did of waiting too long to get professional help. The window for tax planning strategies closes quickly once you're committed to a sale timeline.

0 coins

This is exactly the kind of detailed, actionable advice I needed to hear! Thank you for sharing your experience and the specific warnings about timing. I had no idea that the QI needs to be involved from the contract stage - that's a crucial detail that could have completely derailed any exchange opportunity if I'd waited much longer. We haven't signed anything yet, so there's still time to get this structured properly. The point about depreciation recapture is particularly sobering. Even with a 1031 exchange, we'd still face recapture taxes on all the depreciation we've claimed over the years. That's probably going to be substantial given that we've owned the properties since 2018. I'm definitely taking your advice about getting both a tax attorney and QI involved immediately. Do you have any recommendations for how to find a tax attorney who specializes in this area? I'm worried about ending up with another generalist who doesn't fully understand the S-corp complications. Also, when you mention FEA membership for qualified intermediaries - is there a directory or search function on their website to find members in my area? I want to make sure I'm vetting candidates properly and not just going with the first one I find online. The timeline pressure is real, but at least now I have a clear action plan instead of just spinning my wheels trying to figure this out alone.

0 coins

For finding a qualified tax attorney, I'd recommend starting with your state bar association's lawyer referral service - most have specialty categories for tax law. You can also search the American College of Tax Counsel directory (actconline.org) for attorneys who specialize in business taxation. When interviewing potential attorneys, ask specifically about their experience with S-corp real estate transactions and 1031 exchanges. A good tax attorney in this area should be able to immediately identify the key issues like depreciation recapture timing, basis calculations, and distribution implications post-sale. For QIs, yes - the FEA website (1031.org) has a "Find an Accommodator" search function where you can filter by location and specialties. When calling potential QIs, ask about their experience with entity exchanges specifically, not just total transaction volume. You want someone who has handled S-corp exchanges before and understands the additional compliance requirements. One more critical timing point - if you do move forward with a 1031 exchange, make sure your replacement property search is realistic for your market and budget. I've seen people get locked into exchanges only to struggle finding suitable replacement properties within the 180-day window, which can force them into bad investment decisions just to complete the exchange. Given your timeline constraints, I'd suggest getting initial consultations scheduled with both a tax attorney and 2-3 qualified intermediaries within the next week. Even if you ultimately decide against the 1031 route, you'll have professional guidance on structuring the sale to minimize your tax impact through other strategies.

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
43,509 users helped today