S-Corp Shareholder Basis: Stock Basis, Debt Basis, and At-Risk Rules Explained

S-Corp shareholders can only deduct pass-through losses to the extent of their basis — stock basis first, then debt basis created by direct shareholder loans to the corporation. Losses exceeding both are suspended indefinitely and carry forward until basis is restored. Distributions reduce stock basis and are tax-free up to that amount; any excess is capital gain. Getting basis right matters because errors produce missed deductions, unexpected income recognition on loan repayments, and permanent loss disallowance at sale. Maintaining a current basis worksheet for every S-Corp client is one of the core recordkeeping obligations in S-Corp representation.

What Is S-Corp Stock Basis?

A shareholder's stock basis is not the purchase price of the stock. It is an annually adjusted figure that tracks the shareholder's cumulative economic investment in the corporation under IRC §1367. Stock basis starts at the amount paid to acquire shares — or, for founders who received stock in exchange for contributed property, the adjusted basis of that property at contribution.

Each year, stock basis adjusts in a specific statutory order:

Increases (in order under IRC §1367(a)(1)):

  1. Allocable share of all income items, including tax-exempt income (K-1 Boxes 1–11 and Box 16B)
  2. Excess depletion deductions over the basis of the property

Decreases (in order under IRC §1367(a)(2)):

  1. Distributions under IRC §1368
  2. Non-deductible, non-capitalizable expenses (including the 50% meals disallowance, penalties, and political contributions)
  3. Depletion not exceeding the basis of oil and gas property
  4. Loss and deduction items — ordinary business losses (Box 1), §1231 losses (Box 9), capital losses (Box 8/10), and separately stated deductions

Why the ordering matters: Distributions reduce basis before losses. A shareholder who takes a $40,000 distribution and then receives a $40,000 loss allocation in the same year will see basis reduced by the distribution first, potentially leaving insufficient basis to absorb the loss. This is not a hypothetical edge case — it arises routinely in S-Corps that pay quarterly distributions.

Example: Shareholder enters the year with $50,000 of stock basis. During the year, the S-Corp allocates $10,000 of ordinary income and $70,000 of ordinary losses, and the shareholder receives a $20,000 distribution.

  • Opening basis: $50,000
  • Plus income: +$10,000 → $60,000
  • Less distribution: −$20,000 → $40,000
  • Less losses (up to remaining basis): −$40,000 → $0
  • Suspended loss carryforward: $30,000

That $30,000 does not disappear — it carries forward to future years — but it is not currently deductible.

What Is Debt Basis?

Once stock basis reaches zero, a shareholder may deduct additional S-Corp losses against debt basis — the outstanding principal balance of loans the shareholder has made directly to the corporation. Debt basis is separate from stock basis and is tracked separately.

What creates debt basis:

  • A direct cash loan from the shareholder's personal funds to the S-Corp, documented by a promissory note specifying principal, interest rate, and repayment terms
  • A "back-to-back" loan structure in which the shareholder borrows funds personally (from a bank or other lender) and on-lends those funds to the S-Corp — this works only if the shareholder is the primary obligor on the external debt, making the transaction a genuine shareholder-to-corporation loan rather than a pass-through of bank financing

What does not create debt basis:

A personal guarantee of an S-Corp bank loan creates no debt basis. This rule has been consistently upheld in federal courts and is among the most litigated issues in S-Corp tax practice. The leading cases — Selfe v. United States, 778 F.2d 769 (11th Cir. 1985) and Maloof v. Commissioner, 456 F.3d 645 (6th Cir. 2006) — establish that a guarantor's contingent obligation to repay a third-party loan is not the same as a loan from the shareholder to the corporation. The economic substance test occasionally allows guarantee-based positions in unusual fact patterns, but CPAs should not advise clients to deduct losses on the strength of a guarantee alone.

Loss ordering with debt basis: After stock basis reaches zero, losses are charged against debt basis in the same order — non-deductible items first, then loss and deduction items. If both stock and debt basis are exhausted, the remaining losses are suspended.

Debt basis restoration: Debt basis reduced by prior loss deductions is restored when the S-Corp generates net income that the shareholder can apply first to restore debt basis (if stock basis is zero) or as income flows through that rebuilds stock basis. When a loan with reduced debt basis is repaid to the shareholder, the repayment is not fully tax-free. The amount by which debt basis had been previously reduced is income in the year of repayment — ordinary income if the losses that reduced basis were ordinary, capital gain if the losses were capital. IRC §1367(b)(2). This restoration-and-repayment income is frequently missed in practice.

At-Risk Rules Under IRC §465

The at-risk limitation under IRC §465 is a second, independent restriction on loss deductions — separate from and applied after the basis limitation. A loss that clears the basis test may still be suspended if it exceeds the shareholder's at-risk amount in the S-Corp activity.

A shareholder is "at risk" for:

  • Amounts of money contributed to the activity
  • The adjusted basis of property contributed to the activity
  • Borrowed amounts for which the shareholder is personally liable and which the shareholder does not hold through a non-recourse arrangement (recourse debt at the shareholder level)

Where at-risk diverges from basis: For most small S-Corp shareholders who fund their business with their own cash and direct personal loans to the corporation, at-risk equals outside basis — the two rules reach the same result. The divergence occurs when non-recourse financing is involved. A shareholder who has borrowed money used in the activity but is not personally liable — because the debt is collateralized by property without a personal guarantee — may have basis but not a corresponding at-risk amount.

For S-Corps, the practical importance of this distinction is limited compared to real estate partnerships, where IRC §465(b)(6) allows qualified non-recourse financing to count toward at-risk for real property activities. But the rule still applies to S-Corp activities and must be analyzed.

Activity-level tracking: At-risk is computed activity-by-activity under Treas. Reg. §1.465-1T. Each S-Corp is a separate at-risk activity. A suspended at-risk loss from one S-Corp activity cannot be absorbed by at-risk income from a different S-Corp activity. Form 6198 tracks at-risk amounts for activities where the limitation may apply; most tax software computes this automatically.

Ordering of all three limitations: The correct sequence is always: (1) basis limitation under §1366(d), then (2) at-risk limitation under §465, then (3) passive activity limitation under §469. Applying these in the wrong order produces incorrect suspended loss carryforwards. For K-1 reporting mechanics and how these limitations interact with Form 1040 entries, see How to Report Schedule K-1 Income from Partnerships and S-Corps on a Client's Form 1040.

How Distributions Affect Basis

Distributions from an S-Corp are governed by IRC §1368. The tax treatment depends on whether the corporation has accumulated earnings and profits (E&P) from a prior period of C-Corp taxation.

For S-Corps with no accumulated E&P (the typical case for corporations that have always been S-Corps):

Distributions reduce stock basis dollar-for-dollar and are tax-free to that extent. Once stock basis reaches zero, additional distributions are taxable — generally as long-term capital gain if the stock has been held more than one year under IRC §1(h). There is no dividend characterization because there is no E&P to support it.

For S-Corps with accumulated E&P from a prior C-Corp period:

Distributions come from three tiers in order: (1) the Accumulated Adjustments Account (AAA) — tax-free up to stock basis, (2) accumulated C-Corp E&P — treated as dividend income, (3) remaining amounts — return of capital up to remaining basis, then capital gain. CPAs must track the AAA on Form 1120-S Page 4 and reconcile it annually for entities with E&P history.

Distributions vs. compensation: S-Corp shareholders who are also employees may be tempted to substitute distributions for salary to reduce payroll taxes. The IRS scrutinizes S-Corps in which the shareholder-employee receives minimal or no W-2 compensation relative to distributions. Reclassification of distributions as wages triggers back FICA, failure-to-deposit penalties, and interest. For reasonable salary methodology and documentation, see How to Calculate and Document a Reasonable S-Corp Salary.

Suspended Losses: What Happens Next

Losses suspended under the basis limitation carry forward to subsequent tax years. They remain attached to the shareholder's interest in that specific S-Corp — they are not transferable and cannot be used against income from any other activity.

Basis restoration triggers that release suspended losses:

  • Additional capital contributions by the shareholder
  • Additional direct loans from the shareholder to the corporation
  • Income allocations from the S-Corp that increase stock basis in future years

Sale of S-Corp stock: This is the most consequential scenario. Suspended losses are permanently disallowed when the shareholder disposes of the stock. They do not increase the shareholder's outside basis for computing gain or loss on the sale, do not transfer to the buyer, and cannot be deducted on any future return. Clients holding S-Corp interests with suspended losses should model basis restoration strategies before any exit. For the full entity selection analysis and exit planning implications, see C-Corp vs S-Corp vs LLC: The Complete Entity Selection Guide for CPAs.

S election termination: When an S-Corp revokes its election or is involuntarily terminated and becomes a C-Corp, there is a post-termination transition period (PTTP) — generally one year — during which distributions from the AAA can still be taken tax-free up to stock basis under former S-Corp rules. Suspended losses, however, can only be deducted during the PTTP to the extent the shareholder makes additional contributions or loans sufficient to restore basis during that period. The PTTP window is narrow and easy to miss.

Death of a shareholder: A decedent shareholder's stock receives a stepped-up basis to fair market value at death under IRC §1014. This step-up restores stock basis, which can release suspended losses on the final return. The interaction requires careful coordination with the estate plan, since the step-up also eliminates the shareholder's accumulated tax attributes in the stock.

Recordkeeping Requirements

The IRS does not track S-Corp shareholder basis — that responsibility falls entirely on the shareholder and their CPA. Form 1120-S Schedule K-1 provides annual income, loss, deduction, and distribution figures, but it does not include a running basis calculation.

Best practice is to maintain an annual basis worksheet for each S-Corp client that tracks:

Column Content
Opening stock basis Prior year ending balance
Income allocations K-1 Box 1 (ordinary income), Boxes 2–11 (separately stated items), Box 16B (tax-exempt income)
Distributions K-1 Box 16, Code D
Non-deductible expenses K-1 Box 16, Code C (non-deductible items)
Loss/deduction items K-1 Box 1 losses, Box 9, Box 10, Section 179 (Box 11)
Ending stock basis Computed balance — cannot go below zero
Debt basis Separate column per outstanding loan; reduce by losses charged against debt basis
Suspended loss carryforward Cumulative balance by character (ordinary, capital, §1231)

Tax software (ProConnect, Drake, UltraTax, and others) maintains these calculations automatically for clients whose returns have been in the system since inception. For new clients who have held S-Corp interests for multiple years with a prior preparer, basis must be reconstructed from scratch using prior-year K-1s, capital account histories, and loan documentation.

The cost of reconstructing basis from incomplete records is significant — and the cost of not reconstructing it is higher, because undocumented basis typically defaults to zero, which disallows the deduction of legitimate losses.

Planning Points for S-Corp Clients

Before year-end distributions: Verify that anticipated distributions will not reduce stock basis below zero before year-end loss allocations are made. Because distributions reduce basis before losses, large distributions can inadvertently suspend losses that would otherwise be fully deductible in the same year.

Restoring basis before year-end: A shareholder expecting a significant loss year can make additional capital contributions or execute a properly documented direct loan to the S-Corp before December 31 to create the basis needed to absorb the losses. Timing must precede the loss allocation.

Documenting shareholder loans: If a shareholder has been funding S-Corp operations from personal accounts without formal documentation — a common pattern in closely held companies — formalize outstanding amounts as loans before year-end with a promissory note specifying principal, an interest rate at or above the applicable federal rate under IRC §7872, and repayment terms. Undocumented advances are vulnerable to reclassification as additional capital contributions (creating stock basis rather than debt basis) or as unreported compensation. For IRS audit patterns around S-Corp compensation and documentation, see IRS Audit Triggers and Defense: A CPA's Guide to Protecting Business Clients.

Basis tracking at the S-Corp vs LLC decision point: For clients evaluating whether to elect S-Corp taxation in the first place, the loss limitation rules are one factor to model. An LLC taxed as a partnership has more favorable basis rules — partners receive outside basis for their share of entity-level liabilities — which can make the partnership form more attractive for loss-generating activities. For the full comparison, see S-Corp vs LLC: Which Tax Structure Saves More in 2025?.

Frequently Asked Questions

What is the difference between stock basis and debt basis in an S-Corp?

Stock basis is the shareholder's equity investment adjusted annually for income allocations, distributions, and loss allocations under IRC §1367. Debt basis is created only by direct loans from the shareholder personally to the S-Corp. When stock basis reaches zero, losses are charged against debt basis. Losses exceeding both are suspended until basis is restored.

Can a shareholder guarantee an S-Corp loan to create debt basis?

No. A personal guarantee of a third-party loan to the S-Corp does not create debt basis under Treas. Reg. §1.1366-2(a). This rule has been consistently upheld — Selfe v. U.S. (11th Cir. 1985) and Maloof v. Commissioner (6th Cir. 2006) are the primary precedents. Only a direct loan from the shareholder's own funds to the corporation creates debt basis.

What is the correct order of adjustments to S-Corp stock basis within a year?

Under IRC §1367, the annual order is: (1) increase by income items including tax-exempt income, (2) decrease by distributions, (3) decrease by non-deductible non-capitalizable expenses, (4) decrease by loss and deduction items. Distributions come before losses — not after — which means large distributions can reduce the basis available to absorb losses in the same year.

What happens to suspended losses if the shareholder sells their S-Corp stock?

Suspended losses are permanently disallowed upon sale. They do not increase basis for computing gain on the sale, cannot be transferred to the buyer, and cannot be deducted on any future return. This is one of the most significant and often overlooked issues in S-Corp exit planning. Basis restoration before sale should be modeled for any client with meaningful suspended losses.

How are S-Corp distributions taxed relative to basis?

Distributions from an S-Corp with no accumulated C-Corp earnings and profits are tax-free to the extent of the shareholder's stock basis. Any distribution exceeding stock basis is taxable capital gain — typically long-term for stock held more than one year. S-Corps with prior C-Corp E&P must track the Accumulated Adjustments Account (AAA) to determine the character of each distribution dollar.

What is the at-risk limitation and how does it differ from basis?

The at-risk limitation under IRC §465 is a separate, additional restriction applied after the basis test. A shareholder is at risk for amounts contributed and for personally recourse debt; non-recourse debt generally does not count. For most small S-Corp shareholders using personal cash and direct loans, at-risk equals basis. The limitation is tracked on Form 6198 and applied activity-by-activity.

What records should a CPA maintain for S-Corp shareholder basis?

Maintain an annual worksheet for each shareholder tracking: opening stock basis, income allocations from the K-1, distributions, non-deductible expenses, loss and deduction items, ending stock basis, debt basis per loan, and suspended loss carryforwards by character. Tax software handles this automatically from inception; reconstruction for new clients requires prior-year K-1s and contribution records.

What happens when a loan with reduced debt basis is repaid to the shareholder?

Repayment is not fully tax-free. The portion of the repayment corresponding to prior loss deductions that reduced debt basis is income in the year of repayment — ordinary income if the losses were ordinary, capital gain if they were capital, per IRC §1367(b)(2). This is a recurring missed-income item in S-Corp representation and should be flagged whenever a shareholder loan is repaid following a loss year.

Arvori helps CPAs manage S-Corp clients, track shareholder basis worksheets, and build the documentation that supports accurate loss deductions and audit-proof returns. Learn how the platform supports your entity structure and advisory workflows.