Imagine writing yourself a $50,000 distribution check from your S-corporation after a tough year, only to be told months later by your CPA that $30,000 of it is taxable capital gain — even though no stock was ever sold. Or imagine personally guaranteeing your S-corp's $400,000 bank loan, watching the business burn through that money, and then learning the IRS won't let you deduct a single dollar of the resulting losses on your personal return.
Both scenarios happen every tax season. Both flow from the same source: shareholder basis, the unforgiving accounting that the IRS requires every S-corporation owner to track on Form 7203. Get it right and you defer losses indefinitely until you have basis to absorb them. Get it wrong and you face phantom income, disallowed deductions, and avoidable capital gains.
This guide walks through how Section 1366(d) basis limits actually work, what Form 7203 demands, and the specific traps — guarantees, open-account debt, and ordering rules — that turn ordinary business activity into surprise tax liability.
What Section 1366(d) Actually Does
Section 1366(d) of the Internal Revenue Code is the gate every S-corporation loss must pass through. The rule is short: a shareholder can deduct losses and deductions from the corporation only up to the sum of two numbers — the adjusted basis of stock and the adjusted basis of any debt the corporation owes directly to the shareholder. Anything beyond that ceiling is suspended.
Suspended losses do not vanish. Under Section 1366(d)(2), they carry forward indefinitely and are treated as incurred by the corporation in the following year for that shareholder. When the shareholder rebuilds basis — through new contributions, new loans, or future profitable years — the carryover losses become deductible. They retain their original character (ordinary, capital, or Section 1231) when finally allowed.
There is one major catch. If the shareholder sells or otherwise disposes of all the stock, the suspended losses die with the disposition, except for a narrow one-year post-termination transition period under Section 1366(d)(3). The losses are personal to the shareholder and never transfer to a buyer.
Form 7203: When You Must File and Why It Matters
The IRS introduced Form 7203 in 2021 to force shareholders to actually compute basis on a current schedule attached to their Form 1040 — rather than reconstruct it under audit pressure ten years later. According to the instructions (Rev. December 2022), you must attach Form 7203 to your return for any year in which any of the following occurs:
- You claim an aggregate loss from the S-corporation (including a carryover loss now releasable because you added basis).
- You receive a non-dividend distribution, reported in Box 16, Code D of the Schedule K-1.
- You dispose of stock by sale, gift, redemption, or liquidation — even if no gain is recognized.
- You receive a loan repayment from the corporation.
Failing to file can give the IRS a clean route to disallow the loss on Schedule E, layered with accuracy-related penalties under Section 6662 (twenty percent). Most practitioners now prepare Form 7203 every year regardless, because the worksheet is the only durable record that keeps stock basis and debt basis rolling forward from year to year. Reconstructing those numbers a decade later from old K-1s and bank statements is a brutal exercise, and any gaps default to a basis of zero.
A practical 2025 footnote: the IRS clarified in March 2025 that Box 13 Code H, the excess business interest expense, reduces stock basis and is captured on Form 7203 Part III, Line 45. That line is easy to overlook on a first read of the form.
Stock Basis vs. Debt Basis: A Crucial Distinction
The two buckets behave very differently and are increased and decreased by different items.
Stock basis
Stock basis starts at the cash and property you contributed to receive your shares. It increases each year by:
- Your allocable share of ordinary income
- Separately stated income items
- Tax-exempt income (municipal bond interest, for example)
- Excess depletion deductions
It decreases by distributions, nondeductible expenses, and your share of losses and deductions. Stock basis can never drop below zero.
Debt basis
Debt basis is created only by a direct loan from the shareholder to the corporation that constitutes bona fide indebtedness under Treasury Regulation 1.1366-2(a)(2). The 2014 final regulations (T.D. 9682) hinge on one phrase: the shareholder must have made an "actual economic outlay" that left them "poorer in a material sense." That language has serious consequences for two common arrangements.
Personal guarantees do not create basis. This is the single most expensive mistake S-corp shareholders make. When you sign a personal guarantee on a bank loan to the corporation, you have not parted with cash. You have promised to pay if the corporation cannot. The Sixth Circuit confirmed in Maloof v. Commissioner, 456 F.3d 645 (6th Cir. 2006) that pledging life insurance and stock as collateral does not generate basis. The Tax Court reinforced the point in Phillips v. Commissioner, T.C. Memo 2017-61 (affirmed by the Eleventh Circuit), where $105 million of guarantees produced zero shareholder basis because the lender always looked to the corporation as the primary obligor. Selfe v. United States, 778 F.2d 769 (11th Cir. 1985) offers a narrow "in-substance the shareholder is the borrower" exception, but the 2014 regulations have largely absorbed that doctrine into the bona-fide-indebtedness test.
Loans through related entities do not create basis. If your other LLC lends money to your S-corporation, your S-corp basis does not increase. The lender is the other entity, not you. Russell v. Commissioner, T.C. Memo 1989-207 and Bhatia v. Commissioner, T.C. Memo 1996-429 are the standard authorities here.
What does work, when structured carefully, is a back-to-back loan: the shareholder borrows from the bank in their personal name, then makes a separate documented loan to the S-corporation. The 2014 regulations explicitly bless this arrangement, provided each leg has its own promissory note, stated interest, and actual cash flow.
The Phantom Distribution Trap
Section 1368 governs distributions from an S-corporation. Distributions reduce stock basis. When a distribution exceeds stock basis, the excess is treated as gain from the sale of stock — typically long-term capital gain — even though no stock was actually sold and no buyer wrote a check.
Consider a shareholder who starts the year with $10,000 of stock basis. The K-1 shows $5,000 of ordinary income and a $30,000 distribution. Working through the ordering rules in Regulation 1.1367-1:
- Beginning stock basis: $10,000
- Increase for income: +$5,000, bringing basis to $15,000
- Distribution of $30,000: reduces basis to zero, with $15,000 in excess
- That $15,000 is capital gain on Form 8949, even though the shareholder still owns the same number of shares
Critically, debt basis does not absorb excess distributions. Only stock basis does. A shareholder with $0 of stock basis but $100,000 of debt basis still recognizes capital gain on every dollar of distribution received. The fix is to make a capital contribution (which lifts stock basis) before any large distribution clears the corporate bank account.
Ordering Rules: Why Sequence Matters
Regulation 1.1367-1 prescribes the order in which stock basis is adjusted each year:
- Begin with prior year-end stock basis
- Increase for income items
- Decrease for distributions under Section 1368 (but only down to zero)
- Decrease for nondeductible, noncapital expenses and depletion
- Decrease for losses and deductions
Distributions reduce basis before losses do. That ordering can be brutal in a loss year: a shareholder might take a tax-free distribution that consumes basis, leaving the actual operating losses suspended.
There is a planning lever. Regulation 1.1367-1(g) allows an election to swap steps four and five — deduct losses before nondeductible expenses. This matters when nondeductible expenses (like fifty percent of business meals or fines) would otherwise permanently destroy basis that could have supported a deductible loss. The election is irrevocable once made for a year, so it requires modeling before filing.
Debt Basis Restoration and the Loan-Repayment Trap
When current-year losses exceed stock basis, they flow into debt basis and reduce it. In future years, if income items exceed losses and distributions for the year (a "net increase" under Regulation 1.1367-2(c)), that net increase restores debt basis first, then stock basis, up to the original face amount of each loan.
The trap arrives when the corporation repays a shareholder loan while debt basis is still depressed. The portion of each repayment in excess of the loan's adjusted basis is taxable income. If the debt is evidenced by a note, the gain is capital. If the debt is open-account, the gain is ordinary (see Rev. Rul. 64-162 and Rev. Rul. 68-537). Many shareholders simply forget that "repaying my own loan" can be a taxable event.
The $25,000 Open-Account Debt Threshold
Regulation 1.1367-2(a)(2) draws a hard line at $25,000. Shareholder advances that are not evidenced by a separate written instrument are aggregated as "open-account debt" and netted at year-end. As long as the year-end aggregate principal stays at or under $25,000, the open-account treatment provides flexibility: no per-advance tracking, blended basis on repayments, and forgiving administrative treatment.
Cross the threshold and the consequences are permanent. Once year-end aggregate exceeds $25,000, all subsequent years treat that indebtedness as evidenced — locked into per-instrument tracking. Each repayment is measured against a specific loan, raising the chances of triggering gain when debt basis is reduced. The threshold applies per shareholder and per S-corporation. Final regulations took effect for advances made on or after October 20, 2008.
The lesson is simple: if you are routinely cycling cash in and out of the corporation, paper each year-end advance with a real promissory note that includes stated interest and a maturity date. The paper trail buys you predictability.
How Basis Interacts With Other Loss Limits
Even after a loss clears Section 1366(d), it must pass three additional gates before it appears on Schedule E:
- Section 465 — At-Risk Rules (Form 6198). Personal guarantees generally do not increase amount at risk either, mirroring the basis result. Nonrecourse financing only counts in narrow circumstances.
- Section 469 — Passive Activity Loss Rules (Form 8582). Shareholders who do not materially participate face passive limitations. Rental real estate held in an S-corp is presumptively passive unless the real-estate-professional rules apply.
- Section 461(l) — Excess Business Loss Limit. For 2026, the threshold sits at roughly $313,000 for single filers and $626,000 for joint filers (indexed annually). Losses above the threshold are converted into a net operating loss carryforward and cannot offset other income in the current year.
A loss must survive all four limits to be deductible in the current year. Most shareholders only think about basis; the other three gates trip up plenty of returns.
The Bookkeeping Connection
S-corporation basis is fundamentally a bookkeeping exercise — and accurate bookkeeping from day one prevents almost every issue described above. The corporation's Form 1120-S Schedule M-2 tracks the Accumulated Adjustments Account at the entity level, but the shareholder's basis worksheet is a separate document that the IRS expects to see year after year. Without records of contributions, K-1s, distributions, and loan documents going back to formation, a basis dispute under audit reduces to whatever the shareholder can prove with bank statements.
A clean basis worksheet should carry annual columns for beginning stock basis, beginning debt basis (broken out by loan), every income item from each K-1 line, distributions reported in Box 16D, nondeductible expenses in Box 16C, every loss or deduction used, and the resulting ending balances. Capital contributions need dated bank confirmations. Shareholder loans need signed promissory notes with interest, maturity, and an amortization schedule. Board minutes authorizing the loan and the distribution are inexpensive insurance.
Common Mistakes That Trigger Audits
A few additional patterns deserve flagging because they appear repeatedly in Tax Court memos and IRS practice units:
- Distributions exceeding AAA when E&P exists. For former C-corporations that elected S status, Section 1368(c) imposes a three-tier ordering: tax-free up to AAA, then taxable dividend to the extent of accumulated E&P, then return of basis, then capital gain. Many shareholders forget E&P sits silently on the books for decades after the S election.
- Reconstructing basis retroactively. The IRS Practice Unit on shareholder basis warns examiners to demand documentation back to formation. If you cannot prove a contribution, basis is presumed zero.
- Forgetting tax-exempt income increases stock basis. Municipal bond interest distributed through the K-1 raises basis even though it is not federally taxable. Missing it understates basis and may suspend losses unnecessarily.
- Treating LLC member contributions as S-corp basis after conversion. A conversion or election change resets the basis analysis. The carryover rules differ from partnership conversions.
Suspended Losses Are an Asset, Not a Loss
There is a planning silver lining buried in Section 1366(d). Suspended losses are effectively a deferred tax asset. If profitability returns or you make a capital contribution, those losses release and can offset ordinary or capital income in the year of release. Some shareholders deliberately time capital contributions — a year-end check from a personal account into the corporation — to unlock the suspended losses they need to offset that year's K-1 income or other ordinary income.
The same logic applies to debt basis. A documented shareholder loan late in the year, with real cash movement, can release suspended losses up to the loan amount. Just be sure the note is signed, interest stated, and the funds genuinely move — Tax Court has unwound paper loans that lacked substance more times than memorable.
Keep Your S-Corp Books Audit-Ready
Section 1366(d) is unforgiving, but it rewards shareholders who maintain meticulous year-by-year records of contributions, loans, K-1 allocations, and distributions. Form 7203 is not the place to start the math — it is the place to summarize math you have been doing all along. Beancount.io provides plain-text accounting that gives you complete transparency and version-controlled history over every contribution, distribution, and shareholder loan, with no black box and no vendor lock-in. Get started for free and see why founders, CPAs, and finance professionals are switching to plain-text accounting for the records the IRS actually wants to see.