An S corporation can purchase real estate, and the purchase itself is straightforward, but the structure creates tax problems that make it a poor choice for most investors. The core issue is that the corporation’s mortgage debt does not add to your tax basis, which caps the losses you can deduct, and once real estate sits inside an S corporation, pulling it back out triggers tax as if the company had sold the property. An LLC taxed as a partnership avoids both problems. If you already have property in an S corporation, or you have a specific reason to use one anyway, the details below will tell you what you’re working with.
Why Debt Basis Is the Central Problem
An S corporation shareholder can deduct pass-through losses only up to the sum of stock basis and debt basis. Stock basis is what you paid for your shares plus later capital contributions and retained earnings. Debt basis exists only when you personally loaned money directly to the corporation.1Office of the Law Revision Counsel. 26 USC 1366 – Pass-Thru of Items to Shareholders
The corporation’s own mortgage does nothing for your basis. Not even a personal guarantee changes that. Put $50,000 of equity into an S corporation that borrows $450,000 to buy a rental property, and your basis is $50,000. If the property throws off a $60,000 loss after depreciation and expenses, you deduct $50,000 and suspend the rest until you restore basis.2Office of the Law Revision Counsel. 26 USC 1367 – Adjustments to Basis of Stock of Shareholders, Etc.
An LLC taxed as a partnership works differently. Federal regulations treat any increase in a partner’s share of partnership liabilities as a contribution of money, which raises basis directly.3eCFR. 26 CFR 1.752-1 – Treatment of Partnership Liabilities Same facts, LLC form: your basis is $500,000, and the full $60,000 loss is deductible subject to the passive activity rules. Courts have consistently held that a mere loan guarantee creates no basis until the shareholder is actually called on to pay.4Internal Revenue Service. S Corporation Stock and Debt Basis This one difference is why tax advisors almost universally recommend LLCs over S corporations for real estate.
Getting Property Out Is the Second Trap
If you conclude later that the S corporation was the wrong choice and try to move the property to yourself or into an LLC, federal tax law treats the distribution as a deemed sale. The corporation recognizes gain as if it had sold the property at fair market value, and after years of depreciation the built-in gain is usually substantial.5Office of the Law Revision Counsel. 26 USC 311 – Taxability of Corporation on Distribution That phantom gain flows through to shareholders on their K-1s. You owe tax with no cash to pay it.
A partnership or LLC can generally distribute property to its members without triggering the same immediate recognition. Once real estate is inside an S corporation, getting it out tax-free is essentially impossible unless the shareholders sell their stock rather than having the corporation sell the property. Plan on the property being locked in.
Financing and Personal Guarantees
Getting a mortgage inside an S corporation is harder than buying personally. Lenders view the entity as a barrier to collection and almost always demand a personal guarantee from the principal shareholders. Your personal assets end up backing the loan anyway, but the IRS gives you no additional basis for signing the guarantee. You take on the personal exposure without the tax benefit an LLC member would receive automatically through partnership liability rules.
How Rental Income and Losses Flow Through
An S corporation pays no federal income tax at the entity level. It files Form 1120-S and reports each shareholder’s share of income, deductions, and credits on Schedule K-1.6Internal Revenue Service. About Form 1120-S Shareholders pick up their share on Schedule E of Form 1040.7Internal Revenue Service. About Schedule E (Form 1040), Supplemental Income and Loss Rental income, mortgage interest, property taxes, and depreciation all pass through proportionally to stock ownership.
One point of confusion worth clearing up: rental income is not subject to self-employment tax regardless of entity choice. An S corporation offers no unique savings there because the tax wasn’t owed in the first place.
Passive Activity Limits
Rental real estate is a passive activity under federal tax law, so net rental losses passing through the S corporation can normally only offset other passive income. Unused losses are suspended and carried forward until you generate passive income or dispose of the entire activity.8Internal Revenue Service. Topic No. 425, Passive Activities – Losses and Credits
Two exceptions matter. If you actively participate in the rental, you can deduct up to $25,000 of losses against non-passive income. That allowance phases out by $1 for every $2 of AGI above $100,000 and disappears entirely at $150,000.9Office of the Law Revision Counsel. 26 USC 469 – Passive Activity Losses and Credits Limited Separately, if you qualify as a real estate professional (more than 750 hours in real property trades or businesses in which you materially participate, and more than half of your total personal services for the year in those activities), your rentals lose their automatic passive label. Someone with a full-time W-2 job outside real estate will not meet this test.
Who Can Own the Stock
Before using an S corporation for anything, confirm every current and future owner is eligible. An S corporation is capped at 100 shareholders, each of whom must be a U.S. resident individual, a qualifying trust, or an estate. Nonresident aliens, partnerships, and other corporations cannot hold the stock.10Office of the Law Revision Counsel. 26 USC 1361 – S Corporation Defined Only one class of stock is allowed, so preferred equity or differentiated distribution rights are off the table.
Break any of these rules and the S election terminates, dropping the company into C corporation status with double taxation on all income. In a real estate context, bringing in a foreign investor or an entity partner would immediately blow up the election. Partnerships and LLCs face no comparable restrictions.
Selling the Property
When the S corporation sells its real estate, gain or loss passes through on Schedule K-1 with its character preserved. Cumulative straight-line depreciation is taxed as unrecaptured Section 1250 gain at a federal rate of up to 25%, which sits above the long-term capital gains rate applied to the rest of the profit.11Internal Revenue Service. Topic No. 409, Capital Gains and Losses Shareholders report the unrecaptured portion on Schedule D.
Net Investment Income Tax
Higher-income shareholders may owe an additional 3.8% net investment income tax on the sale. The NIIT applies to the lesser of net investment income or the amount by which modified AGI exceeds $250,000 for joint filers, $200,000 for single filers, or $125,000 for married filing separately. Those thresholds are not indexed for inflation.12Office of the Law Revision Counsel. 26 USC 1411 – Imposition of Tax Real estate professional status with material participation can reclassify the income as non-passive and potentially sidestep the surtax.
Selling Stock Instead of Assets
Shareholders can sell their stock rather than have the corporation sell the property. The gain equals sale price minus adjusted stock basis, and the entire amount is capital gain, which generally avoids the 25% recapture rate. Buyers usually prefer asset purchases for their own tax reasons, though, and will pay less for stock, so the net result is not always better.
Built-In Gains Tax for Former C Corporations
If the S corporation was once a C corporation, or acquired assets from one in a tax-free transaction, a corporate-level built-in gains tax can hit appreciation that existed at the time of the S election. It applies to sales within a five-year recognition period at the highest corporate rate, currently 21%.13Office of the Law Revision Counsel. 26 USC 1374 – Tax Imposed on Certain Built-In Gains The gain gets taxed once at the corporate level and again at the shareholder level. If your S corporation has always been an S corporation and never absorbed C corporation assets, this does not apply.
1031 Exchanges
An S corporation can perform a like-kind exchange under Section 1031 to defer gain when selling investment or business real property.14Office of the Law Revision Counsel. 26 USC 1031 – Exchange of Real Property Held for Productive Use or Investment The exchange happens at the entity level: the corporation sells the old property and buys the replacement. Individual shareholders cannot split off and run separate exchanges with their share of the proceeds.
Standard timing applies: 45 days to identify the replacement property, 180 days to close. When shareholders disagree about the next investment, an S corporation offers no clean fix. A partnership can sometimes distribute interests to individual partners for separate exchanges, but distributing property from an S corporation triggers gain under Section 311(b), and pro rata distributions of interests can trigger gain for everyone at once.
Section 199A Deduction
The qualified business income deduction under Section 199A allows eligible taxpayers to deduct up to 20% of qualified business income from pass-through entities, including S corporations.15Office of the Law Revision Counsel. 26 USC 199A – Qualified Business Income The deduction was originally set to expire after 2025 and was made permanent by the One Big Beautiful Bill Act signed in July 2025.
Rental income qualifies only if the activity rises to the level of a trade or business, which is not automatic for passive rentals. The IRS safe harbor in Revenue Procedure 2019-38 treats a rental as a qualifying business when the taxpayer keeps separate books and records, performs at least 250 hours of rental services per year (or in at least three of the last five years for properties held four or more years), and maintains contemporaneous logs of those services.16Internal Revenue Service. IRS Finalizes Safe Harbor to Allow Rental Real Estate to Qualify as a Business for Qualified Business Income Deduction Activities that don’t meet the safe harbor can still qualify if they independently meet the trade-or-business definition.