Today's idea
An S shareholder tracks two things that sound alike and do different jobs: stock and debt basis (can I deduct this loss? is this distribution taxable?) and the corporation's AAA (is this distribution tax-free at the corporate level, or does old C-corp earnings trigger a dividend?).
The story
Jamal Brooks owns 100% of Brooks HVAC, Inc., an S corporation. He paid $20,000 for his stock. He also lent the company $15,000 of his own money (a real loan, documented, from his own pocket). Separately, he personally guaranteed a $100,000 bank loan to the company.
This year the company allocates Jamal $35,000 of ordinary income, he takes $30,000 in distributions, his share of nondeductible expenses is $1,000, and, because of a separate money-losing activity, a $40,000 loss is also allocated to him.
Down the hall, Brooks used to be a C corporation and still has $10,000 of accumulated earnings and profits (AE&P) from those years. Jamal is also weighing a separate $55,000 check for himself.
Try it first 2 minutes · no peeking
Before reading: (1) Do you think Jamal can deduct the whole $40,000 loss? Does his $100,000 guarantee help his basis? (2) For the separate $55,000 distribution, his AAA is $40,000, AE&P is $10,000, and stock basis is $50,000. How much of that check do you think is taxable?
Hint: you need the order for each. Write down the order you remember before you calculate.
Jot your answer down, then scroll. Being wrong first is the point — it makes the walk-through stick.
Walk-through
Two separate questions, two separate scorecards. First: Jamal's basis — it limits his losses and tells us if distributions are taxable to him. Second: the corporation's AAA — it tells us which 'bucket' of corporate money the check comes from when an S corp has old C-corp earnings.
Part 1 — Stock basis, in the required order (§1367)
Stock basis goes: (1) increases (income items), (2) distributions, (3) nondeductible expenses, (4) losses and deductions. Losses come last. If the loss is bigger than stock basis, the rest reduces debt basis — but only for loans the shareholder personally made to the company.
- Stock basis at the start$20,000
- + Income allocated to Jamal$35,000
- − Distributions (reduce stock basis only)−$30,000
- − Nondeductible expenses−$1,000
- − Losses against stock basis (what's left)−$24,000
- Stock basis after losses$0
Stock basis after the first three steps is $24,000. The $40,000 loss eats all $24,000 of it, and the remaining $16,000 goes against debt basis (the $15,000 loan) — which only covers $15,000. So Jamal deducts $39,000 this year, and $1,000 is suspended until he has more basis. Debt basis is now $0.
The $100,000 guarantee adds $0 of basis. Guaranteeing a bank loan doesn't put Jamal's own money at risk yet — only when he pays on the guarantee does that payment create debt basis. A loan that he made directly to the company does. This is one of the exam's favorite S-vs-partnership contrasts: in a partnership, a partner's share of entity debt raises basis; in an S corp, it does not.
What if distributions exceed stock basis? Suppose Jamal took $60,000 instead of $30,000. Stock basis after income is $55,000, so $5,000 of the distribution exceeds basis and is capital gain — and debt basis can't absorb distributions. Stock basis ends at $0; the $15,000 loan is untouched.
Part 2 — AAA and the S-corp distribution order (§1368)
An S corp with no C-corp history is simple: a distribution is tax-free up to stock basis, then capital gain. With AE&P on the books, the order becomes: (1) AAA (already-taxed S profits) — tax-free to the extent of stock basis; (2) AE&P — a taxable dividend; (3) remaining stock basis — tax-free return of capital; (4) capital gain.
- From AAA ($40,000 AAA; he has $50,000 of stock basis)$40,000
- Taxable dividend from AE&P ($10,000 available)$10,000
- Return of capital against remaining stock basis ($10,000 left)$5,000
- Capital gain$0
Of the $55,000 check, $40,000 comes out of AAA tax-free, $10,000 is a taxable dividend, and the last $5,000 is a tax-free return of capital. Total taxable: $10,000. Afterwards AAA = $0, AE&P = $0, stock basis = $5,000.
With no AE&P, the dividend step vanishes: $40,000 from AAA, then $10,000 of return of capital, and $5,000 taxable (the check and basis line up exactly). Now shrink stock basis to $45,000 (still no AE&P): $40,000 comes out of AAA tax-free, leaving only $5,000 of basis, so $5,000 more is tax-free return of capital — and the last $10,000 is capital gain. Stock basis always limits how much of a distribution is tax-free.
Tax-exempt income and AAA. Tax-exempt income raises stock basis but goes to the Other Adjustments Account (OAA), not AAA. AAA tracks income and deductions that are taxable (and is reduced by non-deductible expenses). The exam loves this distinction.
Two quick extras. (1) A corporation can elect to distribute AE&P first (with the consent of all affected shareholders) — the exam may describe it as the election to reverse the ordering. (2) S-corporation shareholders who work in the business must be paid reasonable compensation as wages; you can't label it all as distributions to avoid payroll tax.
Practice questions
Answer all of them on paper first. Then tap Show answer & why: the rule, how to decide, why each choice is right or wrong, the numbers, and the IRS source. Want more? The practice set (21 questions) has more scenarios on this topic.
Q1. Jamal's stock basis is $20,000. His share of income is $35,000, distributions are $30,000, nondeductible expenses are $1,000, and a separate ordinary loss of $40,000 is allocated to him. He has a documented $15,000 loan to the company and a $100,000 bank-loan guarantee. What loss can he deduct this year?
- $24,000
- $40,000
- $39,000
- $0
Show answer & why
Answer: C — $39,000
The rule, in plain English
Losses use stock basis first (after income, distributions and nondeductibles), then debt basis from the shareholder's own direct loans. Guarantees add nothing.
How to decide
- Stock basis: start + income − distributions − nondeductibles.
- Loss uses stock basis, then debt basis from direct loans.
- Anything left over is suspended.
Why each choice is right or wrong
- A — Wrong. Stock basis only. Debt basis from his direct loan can absorb loss after stock basis is gone.
- B — Wrong. Counts the $100,000 guarantee as basis, or assumes the loan is bigger. A guarantee doesn't create basis until he pays on it.
- C — Correct. Stock basis after income, distribution and nondeductibles is $24,000; the loss uses it all, then $15,000 of debt basis (his direct loan). $24,000 + $15,000 = $39,000 deductible; $1,000 is suspended. The guarantee adds nothing.
- D — Wrong. Applies losses before distributions, or thinks a loss can't be deducted with a distribution in the same year. The ordering is increases → distributions → nondeductibles → losses.
IRS source
Form 1120-S instructions (2025), Schedule M-2 and Distributions; IRC §§1366(d), 1367, 1368; Reg. §1.1366-2
Re-read the walk-through Open the widget Missed it? Add to my notes
Q2. Lila owns 100% of an S corporation. Stock basis is $10,000. She lent the corporation $25,000 (written note). The corporation's ordinary loss allocated to her is $30,000, with no other items. How much is deductible, and what is left?
- $10,000 deductible; $20,000 suspended
- $30,000 deductible; debt basis ends at $5,000
- $30,000 deductible; debt basis ends at $25,000
- $25,000 deductible; $5,000 suspended
Show answer & why
Answer: B — $30,000 deductible; debt basis ends at $5,000
The rule, in plain English
After stock basis hits zero, losses reduce debt basis from the shareholder's direct loans.
How to decide
- Loss against stock basis first.
- Remaining loss against debt basis.
- Track what's left of each.
Why each choice is right or wrong
- A — Wrong. Stops at stock basis. Loss in excess of stock basis reduces debt basis for loans the shareholder made directly.
- B — Correct. Stock basis absorbs $10,000, then $20,000 comes out of the $25,000 of debt basis. All $30,000 is deductible. Debt basis ends at $5,000.
- C — Wrong. Forgets to reduce debt basis by the loss taken against it.
- D — Wrong. Uses only debt basis and forgets the stock basis, which is used first.
IRS source
Form 1120-S instructions (2025), Schedule M-2 and Distributions; IRC §§1366(d), 1367, 1368; Reg. §1.1366-2
Re-read the walk-through Open the widget Missed it? Add to my notes
Q3. Maya's stock basis is $10,000. She has no direct loans to the S corporation, but she guaranteed a $25,000 bank loan to it. Her share of the loss is $30,000. How much can she deduct, and what happens to the rest?
- $10,000 deductible; $20,000 suspended
- $30,000 deductible because she is liable on the loan
- $25,000 deductible; $5,000 suspended
- $0 deductible; the full $30,000 is suspended
Show answer & why
Answer: A — $10,000 deductible; $20,000 suspended
The rule, in plain English
Guaranteeing a corporate loan doesn't create debt basis; only money the shareholder lends directly (or pays on the guarantee) does.
How to decide
- Direct loan from the shareholder? If not, no debt basis.
- Loss limited to stock basis; rest suspended.
Why each choice is right or wrong
- A — Correct. A guarantee doesn't create debt basis. Only her $10,000 stock basis is available, so $10,000 is deductible and $20,000 is suspended until she has more basis (for example, if she pays on the guarantee or lends directly).
- B — Wrong. Liability via a guarantee isn't basis for an S shareholder. (Partners are different — their share of entity debt counts.)
- C — Wrong. Treats the guarantee as debt basis.
- D — Wrong. She does have $10,000 of stock basis, so she can deduct that much.
IRS source
Form 1120-S instructions (2025), Schedule M-2 and Distributions; IRC §§1366(d), 1367, 1368; Reg. §1.1366-2
Re-read the walk-through Open the widget Missed it? Add to my notes
Q4. An S corporation has AAA of $40,000, AE&P of $10,000, and pays a $55,000 distribution to its sole shareholder, whose stock basis is $50,000. No election to reverse ordering. What is taxable to the shareholder?
- $0
- $15,000
- $55,000
- $10,000 — a dividend from AE&P
Show answer & why
Answer: D — $10,000 — a dividend from AE&P
The rule, in plain English
With AE&P, distributions come from AAA first (tax-free up to basis), then AE&P (dividend), then return of capital, then gain.
How to decide
- Up to AAA → tax-free.
- Next, up to AE&P → dividend.
- Then return of capital up to remaining basis; beyond that, capital gain.
Why each choice is right or wrong
- A — Wrong. Ignores AE&P. With old C-corp earnings, once AAA is used the next dollars are dividends, not return of capital.
- B — Wrong. Adds $5,000 of gain on top of the dividend. The last $5,000 is return of capital because $10,000 of basis remains after the AAA layer.
- C — Wrong. Treats the whole check as taxable. Most of it is tax-free (AAA and return of capital).
- D — Correct. AAA pays first ($40,000 tax-free), then AE&P ($10,000 taxable dividend), then the remaining $5,000 is a return of capital against the $10,000 of basis left. Taxable total: $10,000.
IRS source
Form 1120-S instructions (2025), Schedule M-2 and Distributions; IRC §§1366(d), 1367, 1368; Reg. §1.1366-2
Re-read the walk-through Open the widget Missed it? Add to my notes
Q5. An S corporation has AAA of $40,000, no AE&P, and distributes $55,000. The sole shareholder's stock basis is $45,000. What is the result?
- $45,000 tax-free; $10,000 capital gain
- $55,000 tax-free
- $40,000 tax-free; $15,000 gain
- $45,000 tax-free; $10,000 dividend
Show answer & why
Answer: A — $45,000 tax-free; $10,000 capital gain
The rule, in plain English
With no AE&P, a distribution is tax-free up to stock basis; any excess is capital gain.
How to decide
- Distribution vs. stock basis.
- Up to basis → tax-free; excess → capital gain (never a dividend without E&P).
Why each choice is right or wrong
- A — Correct. With no AE&P, the distribution is tax-free up to stock basis: $40,000 from AAA, then $5,000 of return of capital uses the last of her basis. The remaining $10,000 exceeds basis and is capital gain.
- B — Wrong. Basis is only $45,000. Distributions above stock basis are capital gain.
- C — Wrong. Misses the return of capital after AAA: $5,000 of basis is still left to absorb part of the check.
- D — Wrong. The $10,000 over basis is capital gain, not a dividend — with no AE&P there is nothing to create a dividend.
IRS source
Form 1120-S instructions (2025), Schedule M-2 and Distributions; IRC §§1366(d), 1367, 1368; Reg. §1.1366-2
Re-read the walk-through Open the widget Missed it? Add to my notes
Study material, not tax advice or an IRS publication. Numbers follow tax year 2025 (the Nov 2026 SEE tests 2025 law per the Candidate Information Bulletin).