You did everything right. You elected S corporation status so profits would pass through to your personal return, you paid tax on every dollar of profit each year, and when you finally moved $40,000 from the business account to your personal account, you assumed it was just you collecting money you had already paid tax on. Then your accountant tells you part of that distribution is a taxable dividend — taxed a second time. How is that possible?
The answer is a corporate-level running tally most S corporation owners have never heard of: the Accumulated Adjustments Account, or AAA. It is the ledger that decides whether a distribution comes out tax-free or lands on your return as dividend income. If your S corporation was ever a C corporation — or absorbed one — the AAA balance is the single most important number standing between you and double taxation.
What the AAA Actually Is
The AAA tracks the cumulative amount of S corporation income that has already been taxed to shareholders but not yet distributed. Think of it as a "previously taxed, not yet withdrawn" bucket maintained at the corporate level — one account for the whole company, not per shareholder.
Key facts that frame everything else:
- It starts at zero. The AAA begins at zero on the first day of the S corporation's first S year. Only income earned during S years builds it.
- It lives on Schedule M-2. Each year, Form 1120-S reconciles the AAA on Schedule M-2 (Analysis of Accumulated Adjustments Account, Other Adjustments Account, and Shareholders' Undistributed Taxable Income Previously Taxed). If your return preparer leaves that schedule blank or stale, the number that protects your distributions is fiction.
- It is not retained earnings. Book retained earnings and AAA routinely differ — retained earnings include C-year profits and tax-exempt income, while AAA includes neither. Reconciling one to the other is a classic year-end accounting task, and confusing them is how owners talk themselves into distributions that turn out taxable.
Why AAA Only Bites When C-Corp Earnings Linger
Here is the good news first: if your S corporation has no accumulated earnings and profits (AE&P) from C corporation years — the common case for a business that was born as an S corporation and always stayed one — distributions follow the simple path. They come out tax-free to the extent of your stock basis (reducing basis dollar for dollar), and anything beyond basis is capital gain, generally long-term. AAA barely enters the conversation.
The AAA becomes decisive the moment the corporation carries AE&P — leftover untaxed earnings from years it operated as a C corporation, or AE&P picked up by absorbing a C corporation in a merger or a qualified Subchapter S subsidiary election. Then distributions follow a strict statutory order:
- Tax-free from AAA first, to the extent of AAA and your stock basis. This portion reduces both AAA and your stock basis.
- Taxable dividend from AE&P once AAA is exhausted, to the extent of remaining AE&P. This portion does not reduce your stock basis.
- Tax-free return of remaining stock basis after AE&P is exhausted.
- Capital gain for anything beyond that.
So two owners can take identical $40,000 distributions with identical stock basis and owe completely different tax — all because one corporation has a healthy AAA balance and the other burned through its AAA and is now dipping into old C-corp earnings. The distribution ordering is mechanical; the planning opportunity is keeping the AAA balance accurate and distributions inside it.
What Moves AAA Up and Down
AAA moves roughly in parallel with shareholder stock basis, but the two are adjusted by slightly different items and — critically — in a different order. The annual adjustments, in the order the rules require:
Increases (applied first):
- Ordinary business income and separately stated items of income and gain — the same taxable items that flow to your K-1, excluding tax-exempt income.
Decreases (applied second, limited to the amount of the increases):
- Ordinary losses and separately stated loss and deduction items.
- Nondeductible, non-capital expenditures (with a notable exception below).
Distributions (applied last):
- Non-dividend distributions reduce AAA, but never below zero. Distributions cannot drive AAA negative; only losses can.
Several items that move stock basis do not move AAA, and these divergences are where bookkeeping errors breed:
- Tax-exempt income (for example, forgiven loan proceeds excluded from income) does not increase AAA. It goes to a sibling account, the Other Adjustments Account (OAA). Related nondeductible expenses reduce OAA, not AAA.
- Capital contributions increase your stock basis but never touch AAA — AAA measures earnings, not investment.
- Federal income taxes attributable to a prior C corporation period (and similar C-year liabilities the S corporation pays) reduce shareholder basis but leave AAA alone.
- Redemptions treated as exchanges can adjust AAA up or down under special computations, which is why buyouts of a shareholder need tax modeling before the paperwork is signed.
The ordering trap inside a single year
Because income is added before distributions are subtracted, a profitable year can shelter a distribution that looked too large at the beginning of the year: the current year's income rebuilds AAA before the distribution draws it down. Conversely, in a loss year, a distribution is measured against AAA before the year's losses fully register — the loss reduction in the second step is capped at the amount of the income increase, with any excess "net negative adjustment" applied only afterward. The practical lesson: in a year you expect losses, a distribution up to the beginning-of-year AAA (or beginning stock basis) is generally still tax-free, but anything beyond that risks hitting AE&P and turning into a dividend. When a loss year is on the horizon, time distributions early and keep them inside the known AAA balance.
A Worked Example: The $40,000 Distribution, Two Ways
Suppose your S corporation starts the year with AAA of $30,000 and AE&P of $25,000 left over from its C years. Your stock basis is $50,000. During the year the business earns $20,000 of ordinary income, and you take a $40,000 distribution.
First, AAA is rebuilt: $30,000 beginning balance plus $20,000 of income gives $50,000 of AAA available. Your $40,000 distribution comes entirely out of AAA — tax-free to you, reducing AAA to $10,000 and your stock basis to $30,000 ($50,000 basis + $20,000 income − $40,000 distribution). The old AE&P sits untouched. No dividend, no surprise.
Now change one fact: the business lost $10,000 instead of earning $20,000. AAA available for the distribution is just the $30,000 beginning balance. The first $30,000 of your distribution is tax-free (AAA drops to zero, basis drops accordingly), but the remaining $10,000 comes out of AE&P — a $10,000 taxable dividend reported on your return, even though the company lost money that year and even though you have stock basis to spare. Same owner, same distribution, same basis — different tax outcome, decided entirely by AAA mechanics.
Five AAA Mistakes That Create Surprise Dividends
1. Assuming basis alone protects you
Stock basis caps the tax-free portion of an AAA distribution — a distribution beyond your basis is gain even with AAA to spare — but basis does not substitute for AAA. With AE&P on the books, every distribution dollar above AAA is a dividend regardless of how much basis you hold. Track both numbers, every year.
2. Letting the accountant compute basis before AAA
AAA must be calculated before shareholder stock basis when the corporation has AE&P, because basis is reduced by the tax-free (AAA) slice of a distribution but not by the dividend (AE&P) slice. If your preparer works the problem in the wrong order, both numbers come out wrong — and the error compounds every subsequent year.
3. Forgetting AAA survives S termination — briefly
If the S election terminates and the company reverts to C status, unused AAA does not vanish instantly. During the post-termination transition period — generally about one year after termination — cash distributions can still come out of AAA tax-free. Owners who shut down an S election and immediately start pulling cash without knowing the window exists either waste it or stumble through it by accident. And for certain eligible terminated S corporations, later distributions are split pro rata between AAA and AE&P rather than following the normal ordering, which rewards knowing both balances on the termination date.
4. Treating retained earnings as distributable AAA
Financial-statement retained earnings overstate what can come out tax-free whenever the company holds AE&P, tax-exempt income, or pre-election earnings. Distribution planning should start from the Schedule M-2 AAA line, never from the balance-sheet equity section.
5. Never electing to purge AE&P on purpose
The rules allow an S corporation to elect to distribute AE&P first, skipping over AAA — paying a known dividend today to eliminate the AE&P account forever. For a company with a small AE&P balance relative to its annual AAA generation, one deliberate cleanup distribution can permanently simplify every future distribution. It costs tax in the election year, which is exactly why it should be modeled rather than discovered.
Keeping the Number Honest in Your Books
AAA discipline is mostly process, not theory:
- Reconcile Schedule M-2 every year, even in years with no distributions. Errors in AAA almost always originate in quiet years — a misclassified tax-exempt item, a missed nondeductible expense, a redemption nobody told the preparer about — and surface years later as a surprise dividend.
- Separate the three equity buckets in your chart of accounts. Maintain distinct tracking for AAA-type previously taxed earnings, AE&P-type C earnings, and tax-exempt/OAA items rather than a single retained-earnings blob. The mapping does not need to mirror the tax return line for line, but someone closing the books each month should be able to produce all three balances on demand.
- Reconcile AAA to shareholder basis annually. The two move together but diverge on contributions, tax-exempt items, C-year taxes, and debt basis. A side-by-side rollforward each year-end catches the divergences while the records are fresh.
- Flag the trigger events. Conversions from C to S, mergers, QSub elections, shareholder redemptions, debt workouts producing excluded income, and S-election terminations all move AAA, AE&P, or both. Treat each as a prompt to recompute before the next distribution, not at the next tax filing.
If you use dashboards to watch the business, put AAA alongside cash and receivables during distribution season. A simple visualization of beginning AAA, year-to-date income, distributions taken, and remaining AAA headroom — the kind of account-level trend view available in Fava — turns an abstract tax concept into a number you check before every owner draw. The technical mechanics of maintaining that kind of ledger-backed tracking are covered in the guides under /docs/.
Keep Your Distributions Tax-Free by Tracking the Right Number
Surprise S corporation dividends are rarely a tax-law problem. They are a record-keeping problem: owners watching bank balances and retained earnings while the tax outcome is decided by a separate ledger they never look at. Learn your AAA balance, keep it current on Schedule M-2, keep distributions inside it while AE&P lingers, and consider purging a small AE&P balance deliberately instead of tripping over it for a decade.
Simplify Your Financial Management
As you manage distributions, basis, and the AAA balance that ties them together, maintaining clear financial records is essential — the difference between a tax-free draw and a surprise dividend often comes down to a ledger that was reconciled on time. Beancount.io provides plain-text accounting that gives you complete transparency and control over your financial data — no black boxes, no vendor lock-in. Get started for free and see why developers and finance professionals are switching to plain-text accounting.





