What Is Retained Earnings? The Formula, a Four-Year Example, and Why It Is Not Your S Corp's AAA

Retained earnings is the total profit a corporation has kept since it started, minus everything paid out to its owners: beginning retained earnings + net income - distributions = ending retained earnings. As of October 2026, an S corporation reports it on Schedule L but tracks a separate tax account, the AAA, on Schedule M-2.

JM
Justin McKelvey
October 05, 2026

What is retained earnings? The short answer

Retained earnings is the total profit a corporation has kept in the business since it started, after subtracting everything it paid out to its owners. The formula is: beginning retained earnings + net income - distributions (or dividends) = ending retained earnings. It sits in the equity section of the balance sheet, and it is not cash.

As of October 2026, that one line carries more weight for small corporations than most owners expect. An S corporation reports retained earnings on its balance sheet (Schedule L of Form 1120-S), but the IRS tracks a different running total, the accumulated adjustments account (AAA), on Schedule M-2, and that is the one that decides how distributions are treated. This guide rolls one company's retained earnings forward over four years, puts it next to its AAA, and shows where the two stop agreeing.

The retained earnings formula: beginning retained earnings + net income - distributions = ending retained earnings

Every year, retained earnings moves for two reasons:

  • Net income (or a net loss) from the income statement. Profit adds to it; a loss subtracts.
  • Distributions or dividends paid to the owners. An S corporation calls them distributions; a C corporation pays dividends. Either way they come out of retained earnings, not out of expenses.

That is why the formula only needs three inputs. Start with last year's ending balance, add this year's net income (or subtract the loss), subtract what the owners took out. The result is this year's ending balance, and it becomes next year's beginning balance.

What does not move retained earnings: money the owner puts in (that is paid-in capital), loan payments (those change cash and the loan balance), and the owner's salary. The salary is already an expense on the income statement, so it lowered net income before the formula ever ran.

Free calculator

What is manual work costing you?

Run the Manual-Work Tax Calculator — the annual cost of the data entry, invoicing, and reporting your team still does by hand.

Calculate my Manual-Work Tax →

Free, no email required to run it.

One company's retained earnings, four years in a row

Take the hypothetical HVAC service company from our balance sheet page: an S corporation that ended this year with $97,000 of retained earnings on $480,000 of revenue. Here is how it got there, starting from its first year. The figures are illustrative.

YearBeginning retained earnings+ Net income (loss)- Distributions= Ending retained earnings
Year 1$0($18,000)$0($18,000)
Year 2($18,000)$40,000$10,000$12,000
Year 3$12,000$90,000$30,000$72,000
Year 4 (this year)$72,000$75,000$50,000$97,000

Three things to read off this table:

  • Year 1 is an accumulated deficit. The first-year loss made retained earnings negative. On a balance sheet that shows as a negative number in equity, and it means the business has lost more, in total, than it has kept.
  • Years 2 through 4 add up. Total net income over four years is $187,000. Total distributions are $90,000. The difference, $97,000, is this year's ending balance. Retained earnings is simply lifetime profit minus lifetime payouts.
  • It is not the bank balance. The same company has $62,000 of cash at year end against $97,000 of retained earnings. The kept profit is spread across cash, $40,000 of unpaid customer invoices, parts and the depreciated vans, and some of those assets were also financed with loans.

Where retained earnings lives in your books

Retained earnings is an equity account, in the 3000s of a typical chart of accounts. Nobody posts to it day to day. Revenue and expense accounts collect the year's activity; when the year closes, they reset to zero and the difference, the year's net income, moves into retained earnings. Accounting software usually does this for you, which is why the retained earnings balance on a mid-year report looks like it has not changed since January: the current year's profit is shown separately as "net income" until the close.

Distributions are usually recorded in their own equity account during the year and closed into retained earnings at year end. Keep them separate from wages and from loans to the owner. A transfer to the owner with no label is the hardest thing to fix later, because it could be any of the three.

Retained earnings vs the AAA on an S corporation's return

This is where an S corporation owner's numbers stop matching. The return asks for both:

  • Schedule L, line 24, "Retained earnings" is book retained earnings, from a balance sheet that the IRS instructions say "should agree with the corporation's books and records."
  • Schedule M-2, column (a), the accumulated adjustments account is a tax account. The IRS describes it as an account that "generally reflects the accumulated undistributed net income of the corporation" for its S corporation years. It starts at zero on the first day of the first S corporation year, goes up by income on the tax return, goes down by deductible losses, expenses and nondeductible expenses, and goes down by distributions.

They diverge for a few predictable reasons, all from the 2025 Form 1120-S instructions (read October 5, 2026):

DifferenceRetained earnings (books)AAA (tax)
Which income it usesNet income per booksIncome on the tax return. Schedule M-1 reconciles the two, starting from line 1, "Net income (loss) per books"
Starting pointIncludes profit kept from any years the company was a C corporationZero on the first day of the first S corporation year. C corporation profit is tracked separately as accumulated earnings and profits
Distributions larger than the balanceCan push it negativeDistributions reduce it "but not below zero"
LossesReduce it, and can make it negativeReduce it too; "The AAA may have a negative balance at year end"

Here is the HVAC company's year 4 side by side. Assume, hypothetically, that its tax returns have taken depreciation on the vans faster than its books have, so its tax income has run lower than its book income: $6,000 lower this year, and $12,000 lower in total before this year.

Year 4Retained earnings (Schedule L)AAA (Schedule M-2)
Beginning of year$72,000$60,000
+ Income for the year$75,000 (books)$69,000 (return)
- Distributions$50,000$50,000
End of year$97,000$79,000

Neither number is wrong. They measure different things, and the $18,000 gap is the depreciation timing difference, explained year by year on Schedule M-1. What matters is that your preparer carries both forward correctly, because next year's beginning balances have to match this year's ending ones.

Why the AAA, not retained earnings, limits your distributions

Owners often look at retained earnings and assume that is how much they can take out. For tax purposes, the IRS's ordering rule for an S corporation starts somewhere else. Unless the corporation makes an election, distributions are applied in this order:

  1. The AAA, "but not below zero."
  2. Previously taxed income from before 1983, if the corporation has any.
  3. Accumulated earnings and profits left over from C corporation years. Those distributions are dividends, reported on Form 1099-DIV.
  4. The other adjustments account.
  5. Any remaining shareholders' equity accounts.

Run the hypothetical company through it. Before distributions, its AAA for year 4 is $60,000 + $69,000 = $129,000. If the owner had taken $140,000 instead of $50,000, the AAA would stop at zero and the extra $11,000 would come out of the next accounts on the list. Its book retained earnings would still be positive ($72,000 + $75,000 - $140,000 = $7,000), which is exactly why retained earnings is the wrong number to plan distributions from. How that extra $11,000 is taxed depends on the shareholder's own situation; that is a question for your CPA before the money moves, not after.

One more rule from the same instructions: "Distributions and other payments by an S corporation to a corporate officer must be treated as wages to the extent the amounts are reasonable compensation for services rendered to the corporation." An owner who works in the business needs a salary that runs through payroll. Distributions are what comes on top of it, out of profit the corporation has already earned.

Retained earnings by business type

How the business filesDoes it have retained earnings?Where profit kept in the business shows up
Sole proprietor or single-member LLC (Schedule C)NoOwner's equity (capital) on the books, reduced by owner's draws. Schedule C has no balance sheet.
Partnership or multi-member LLC (Form 1065)NoPartners' capital accounts, analyzed on Schedule M-2, "Analysis of Partners' Capital Accounts"
S corporation (Form 1120-S)YesSchedule L, line 24 on the books side; the AAA on Schedule M-2 on the tax side
C corporation (Form 1120)YesSchedule L, where the 1120-S instructions note that appropriated and unappropriated retained earnings go on separate lines; reconciled on Schedule M-2

The $250,000 shortcut applies to corporations of both kinds. A C corporation with total receipts and year-end total assets both under $250,000 does not have to complete Schedules L, M-1 and M-2 if it checks "Yes" on Schedule K, question 13. An S corporation's version is Schedule B, question 11, which drops Schedules L and M-1. The balance sheet guide linked above runs the $480,000-revenue company through that test; it fails it, so its retained earnings goes on the return.

What a negative retained earnings balance tells you

A negative balance, called an accumulated deficit, has one of two causes, and they mean very different things:

  • Early losses. Like the company's year 1 above. Normal for a new business; it should shrink as profitable years add to it.
  • Distributions larger than profit. The owners took out more than the business has earned over its life. That is money that came from somewhere else: loans, owner contributions, or cash the business needed for operations. Lenders reading your balance sheet notice this one.

If yours is negative and you are not sure which, line the four-year table above up against your own returns. Ten minutes with last year's Schedule L and this year's net income usually answers it.

Common retained earnings mistakes in small business books

  • Owner pay booked as distributions, or distributions booked as wages. One overstates profit, the other understates it, and both leave retained earnings wrong.
  • Opening balances that do not match last year's return. Schedule L has a beginning-of-year column, so the opening retained earnings has to equal last year's ending figure.
  • Prior-year changes made after the return was filed. Editing a closed year in the software silently changes this year's opening retained earnings. Lock closed periods.
  • Treating retained earnings as available cash. It is a running total of kept profit, not a balance you can spend.

Most of these are caught by a monthly close and a year-end tie-out to the return, the line between the two jobs described in bookkeeping vs accounting.

Watch the equity section every month

Retained earnings is the one line that ties every year's books together, so it is where errors from past years surface. SuperDupr's AI dashboards pull the balance sheet from your accounting software into one view each month, next to net income and distributions to date, and flag an opening balance that changed after a year was closed, so the gap gets found in the month it happens rather than at tax time.

The bottom line

Retained earnings is lifetime profit minus lifetime payouts: beginning retained earnings + net income - distributions = ending retained earnings. It lives in equity, it is not cash, and it can go negative. If you run an S corporation, it is also not the number that limits tax-free distributions. That is the AAA on Schedule M-2, which starts from your tax income, cannot be pushed below zero by distributions, and is worth asking your preparer for every year.

Sources (read October 5, 2026): IRS, Instructions for Form 1120-S (2025): Schedule L (line 24 retained earnings, "should agree with the corporation's books and records"), Schedule M-1, Schedule M-2 columns (a) through (d) and worksheet, Distributions general rule, and the Line 7 caution on reasonable compensation (irs.gov/instructions/i1120s); IRS, Instructions for Form 1120 (2025), Schedule L and the $250,000 exemption under Schedule K, question 13 (irs.gov/instructions/i1120); IRS, Instructions for Form 1065 (2025), Schedule M-2, Analysis of Partners' Capital Accounts (irs.gov/instructions/i1065). The HVAC company, its four-year history and its AAA figures are a hypothetical with illustrative amounts.

Frequently Asked Questions

Buyer's Guide Bookkeeping Reporting

AI Dashboards & Reporting $8K–$20K

We build this for service businesses — transparent pricing, fixed scope.

See how it works →

Free calculator

What is manual work costing you?

Run the Manual-Work Tax Calculator — the annual cost of the data entry, invoicing, and reporting your team still does by hand.

Calculate my Manual-Work Tax →

Free, no email required to run it.

The Service Business AI Brief

One practical AI win for service businesses, every other week. No fluff, unsubscribe anytime.

More on AI Dashboards & Reporting

View the AI Dashboards & Reporting guide →
Bookkeeping

What Is a Balance Sheet? One Year-End Balance Sheet Line by Line, and the $250,000 Test for Filing It

A balance sheet shows what a business owns, owes and is worth to its owners on one date, and assets always equal liabilities plus equity. As of October 2026, an S corporation must file one on its return (Schedule L) unless both its receipts and its assets were under $250,000.

Bookkeeping

What Is a Chart of Accounts? A Service Company's Chart Built Line by Line, Mapped to Schedule C

A chart of accounts is the numbered list of every account a business records transactions in: assets, liabilities, equity, revenue and expenses. As of October 2026, the test of a good one is that every expense account lands on exactly one line of the IRS's Schedule C. Lumped vehicle and insurance accounts fail it.

Bookkeeping

What Is an Income Statement (Profit and Loss Statement)? One Year Line by Line, and Why It Isn't Your Schedule C

An income statement, or profit and loss statement, shows revenue minus costs for a period, ending in net income. As of October 2026, the IRS's Schedule C instructions explain why your P&L's bottom line rarely matches your return: meals are 50% deductible and owner's pay is not an expense.

Bookkeeping

What Is a General Ledger? One Month Posted Line by Line, and the IRS Rule for Automated Books

A general ledger is the master record of every transaction, sorted by account, each posted as an equal debit and credit. As of October 2026, IRS Publication 583 requires computerized records to reconcile with your books and trace to source documents, the test any automated or AI bookkeeping must pass.

Ready to Implement AI in Your Business?

Book a free strategy session to see how the concepts in this article can work for your specific business.