S-corp owning real estate property - Tax implications when selling?
Back in 2015, my husband and I worked with an attorney to purchase a small business. They recommended setting up an S-corporation to acquire both the business assets and the real property from the previous owner. Now we're planning to sell the business and property but keep the S-corp for other ventures. I've since learned that putting the real estate into the S-corp was probably a huge mistake. I was following the attorney's advice since I have zero accounting background, and being completely inexperienced, I trusted a lawyer instead of consulting with a CPA. Lesson learned the hard way. The real estate was valued at $145k when we purchased it, but we've developed part of the land to add another small business. We're expecting both properties combined to sell for around $320k (plus whatever we can get for the business operations themselves). From what I understand, we'll face capital gains tax on the entire difference between purchase and sale prices - about $175k in capital gains due after this tax year ends. Is there any way to reduce this tax liability? We own another parcel of land and were planning to develop it for a new business (yes, still under the S-corp, I know I'm digging myself deeper), so could those development costs (estimated at $130-190k) offset the capital gains in the same tax year? What about our negative balance in accumulated adjustments (1120-S Schedule M-2)? We're carrying approximately -$85k there from losses during the pandemic. I should be asking my regular accountant these questions, but honestly, I've had terrible experiences with our last two CPAs, so I'm trying to educate myself as much as possible now. Any advice would be greatly appreciated!
19 comments


Amara Okafor
The S-corporation real estate situation is definitely tricky, but you have some options to consider. When you sell property held within an S-corp, the gain passes through to your personal tax return based on your ownership percentage. This means you'll pay capital gains tax at your individual rate, not the corporate rate. For the $175k gain you're anticipating, you'll likely be subject to long-term capital gains tax (assuming you've held the property over a year). Regarding offsetting the gain: Development costs on your third lot wouldn't directly offset capital gains from selling the other properties. Development costs are typically capitalized and depreciated over time rather than expensed immediately. However, your negative AAA balance of $85k is relevant - this represents previously taxed income that wasn't distributed, which could potentially offset some of the gain recognition. One strategy to consider is a 1031 exchange (like-kind exchange) which allows you to defer capital gains tax if you reinvest the proceeds in similar property. However, this gets complicated with S-corps because the corporation, not you personally, would need to do the exchange.
0 coins
CosmicCommander
•Thanks for the detailed explanation. For the 1031 exchange option, does the new property also have to be purchased through the S-corp? And what if we wanted to move any new property purchases to an LLC instead - is there a way to restructure before selling?
0 coins
Amara Okafor
•Yes, for a 1031 exchange, the S-corporation must be the entity that both sells the old property and purchases the new property. The ownership structure has to remain consistent throughout the exchange process. Regarding restructuring to an LLC, you could potentially convert your S-corp to an LLC before selling, but this itself might trigger tax consequences depending on how it's done. Any conversion would need to be completed well before you have a sale agreement in place to avoid step-transaction doctrine issues where the IRS might view it as one connected transaction. A tax professional should definitely guide this process as the timing and structure are critical.
0 coins
Giovanni Colombo
After struggling with a similar S-corp property sale situation last year, I discovered an amazing tool that saved me thousands in taxes. I was seriously stressed about capital gains until I came across https://taxr.ai and uploaded my S-corp documents. The AI analyzed everything and showed me several legitimate strategies I'd never considered. In my case, they identified that I could use cost segregation to accelerate depreciation on components of my property before selling, reducing my overall gain. They also helped me understand how my AAA affected the calculation, which none of my previous accountants had properly explained.
0 coins
Fatima Al-Qasimi
•Does this actually work for S-corps specifically? I thought most tax software doesn't handle S-corps well, especially with real estate involved. Did you still need to work with an accountant afterward or could you just DIY with the information?
0 coins
Dylan Cooper
•I'm curious - how did the taxr.ai system handle the specifics of your negative AAA balance? That's the part I'm most confused about with my own S-corp issues. Did they provide actual documentation you could use if audited?
0 coins
Giovanni Colombo
•Yes, it absolutely works for S-corps - that's actually where I found it most helpful since other tax software tends to oversimplify S-corp situations. The analysis specifically addressed S-corp taxation and real estate holdings, which was perfect for my situation. I did still consult with an accountant afterward, but I was WAY more prepared and actually taught him a few things! Regarding the negative AAA balance question, they provided a detailed explanation of how it factors into basis calculations and created a custom report showing exactly how it affects tax liability when selling assets. They include detailed citations to relevant tax code and IRS guidance, which gives you solid documentation if ever questioned. The system even flagged sections of my operating agreement that could create tax issues during the sale that I hadn't considered.
0 coins
Dylan Cooper
Just wanted to update everyone here - I took the leap and tried the taxr.ai service mentioned above. It was seriously eye-opening for my S-corp situation. The analysis found that my negative AAA actually created an opportunity to restructure how we're selling the business versus the real estate. They recommended selling the business assets separately from the real estate and provided the exact tax code references to show how this reduces our overall tax liability. The document they created was comprehensive enough that my new CPA implemented their strategy with only minor adjustments. Worth every penny and saved us from making an $80K mistake!
0 coins
Sofia Ramirez
After being in your exact situation, I can tell you the IRS is absolutely brutal about S-corps selling appreciated real estate. When I called to get clarity on my options, I spent literally DAYS trying to get through to someone who could actually help. Eventually I found https://claimyr.com which got me through to an actual IRS agent in under an hour - you can see how it works at https://youtu.be/_kiP6q8DX5c if you're curious. The agent confirmed that we could partially offset gains with losses from other business ventures within the same S-corp, which saved us a ton. Getting definitive answers directly from the IRS gave me much more confidence in our approach instead of just hoping we were interpreting the tax code correctly.
0 coins
Dmitry Volkov
•How does this Claimyr thing actually work? The IRS phone system is a nightmare so I'm skeptical anything can really help. Did the IRS agent actually give you specific advice about your situation or just general information?
0 coins
StarSeeker
•Sounds like a scam to me. The IRS agents aren't supposed to give tax advice - they only clarify existing rules. No way they told you how to "partially offset gains" as that would be actual tax planning advice. I'd be careful taking action based on a phone call that isn't documented.
0 coins
Sofia Ramirez
•The service works by using technology to navigate the IRS phone system for you. Instead of you sitting on hold for hours, their system handles that part and calls you once an agent is about to come on the line. It's basically a sophisticated hold system so you don't waste your day. You're right that IRS agents don't provide specific tax planning advice. What the agent did was clarify how the tax code applies to S-corporation property sales and confirmed that business losses within the same entity can affect the net income passed through to shareholders. This wasn't personalized planning advice but rather confirmation of how existing rules apply to S-corps specifically. I took detailed notes during the call which I shared with my accountant, who then incorporated this information into our strategy.
0 coins
StarSeeker
I have to admit I was completely wrong about Claimyr. After my skeptical comment above, I decided to try it myself since I had my own IRS questions about S-corp asset sales. Not only did I get connected to an IRS representative in about 45 minutes (versus the 3+ hours I spent last time), but the agent was able to direct me to specific IRS publications and clarify exactly how basis adjustments work when selling property from an S-corporation. They didn't give "tax advice" but they did explain the rules clearly enough that my accountant and I could make informed decisions. For anyone dealing with complex S-corp property sales, getting straight answers from the actual IRS is invaluable - even when the answer isn't what you hoped for, at least you know exactly where you stand.
0 coins
Ava Martinez
One strategy nobody's mentioned yet is potentially doing an installment sale. If you sell the property and receive payments over multiple tax years, you can spread the capital gain recognition over those years rather than taking the full hit in one year. This could keep you in lower tax brackets. The buyer would need to agree to this structure, of course, but many are willing if it makes the purchase more affordable for them.
0 coins
Liam Sullivan
•That's an interesting approach I hadn't considered. Would this work even within an S-corp structure? And would we still be able to fully exit the real estate ownership immediately, or would we essentially be acting as the bank until they finish paying?
0 coins
Ava Martinez
•Yes, installment sales definitely work with S-corps since the gain passes through to your personal return anyway. The S-corp reports the sale on Form 6252 and then the recognized portion flows to your personal return each year. You would technically still have a financial interest until fully paid, effectively acting as the lender. The property ownership would transfer immediately to the buyer (they'd get the deed), but you'd have a security interest in the property similar to a mortgage company. This means you're not responsible for property taxes, insurance, or maintenance, but you do have the risk of buyer default. Many sellers require a substantial down payment (20-30%) to mitigate this risk. You can also charge interest on the remaining balance, creating an additional income stream.
0 coins
Miguel Ortiz
Why has nobody mentioned the potential for depreciation recapture? If you've been taking depreciation deductions on the commercial property (which you should have been), part of your gain will be subject to depreciation recapture at a rate of 25% rather than the lower capital gains rate. This can significantly impact your total tax bill.
0 coins
Zainab Omar
•Good point about depreciation recapture. Another issue is that if the S-corp distributes the proceeds from the sale to shareholders, it could potentially create additional tax issues depending on stock basis and AAA balance. The S-corp structure makes this way more complicated than if the property had been held in an LLC from the beginning.
0 coins
Ezra Beard
Miguel raises an excellent point about depreciation recapture that could significantly impact your tax situation. If you've been claiming depreciation on the commercial property over the years (which you should have been doing), you'll need to "recapture" that depreciation when you sell. This recaptured depreciation is taxed at 25% rather than the more favorable long-term capital gains rates. Here's how it works: Let's say you've claimed $30k in depreciation over the years. When you sell, that $30k gets taxed at 25%, while the remaining gain ($145k in your case) would be taxed at capital gains rates. This can add a substantial amount to your tax bill that many people don't anticipate. You should pull your depreciation schedules from previous tax returns to calculate exactly how much you've claimed. If you haven't been taking depreciation deductions, you might want to consider filing amended returns to claim those deductions before selling - the IRS requires you to recapture depreciation whether you actually claimed it or not, so you might as well get the benefit of those deductions if you haven't already. This is another reason why getting professional help is crucial for S-corp property sales - there are multiple layers of taxation that can catch you off guard if you're not prepared.
0 coins