How Do We Calculate Retained Earnings? | Formula That Sticks

Retained earnings equal the opening balance plus net income, minus net loss, minus any dividends declared during the period.

Retained earnings sound technical, though the math is plain once you know what belongs in the line and what does not. It is the running total of profit a business has kept inside the company instead of sending out to owners as dividends. That number sits in equity, not in cash, and that single detail clears up a lot of confusion.

If you are reading a balance sheet, building financial statements, or checking whether a company is stacking profit over time, this figure matters. A growing retained earnings balance can point to steady profit kept in the business. A falling balance can mean losses, dividend payouts, or both. The line tells a story, though only if you calculate it the right way.

The core formula is short:

Beginning retained earnings + net income − net loss − dividends declared = ending retained earnings

That is the whole engine. The rest is about knowing where each number comes from, when to subtract, and what people mix up by mistake.

How Do We Calculate Retained Earnings? Step By Step

Start with the retained earnings balance from the end of the prior period. That is your opening number for the new period. Then bring in the current period’s result from the income statement. If the business earned a profit, add it. If it posted a loss, subtract it. After that, subtract dividends declared for the same period.

That gives you the ending retained earnings balance, which then rolls into the equity section of the balance sheet. Public company filings usually present this movement inside the statement of stockholders’ equity. The SEC’s explanation of the 10-K notes that audited financial statements include the statement of stockholders’ equity, which is where this movement is often shown.

The Formula In Plain English

Think of retained earnings as a running scoreboard for profit kept in the business. You carry last period’s total into the new period. Then you add what the company earned this period. Then you take out what it paid or set aside as dividends. That leaves the amount still parked in the business at the end.

Say a company starts the year with $120,000 in retained earnings. During the year, it earns $35,000 in net income and declares $10,000 in dividends. The ending retained earnings figure is $145,000.

$120,000 + $35,000 − $10,000 = $145,000

If the business had a net loss of $8,000 instead of profit, the math changes like this:

$120,000 − $8,000 − $10,000 = $102,000

Same structure. Different direction.

Where Each Number Comes From

The opening retained earnings balance comes from the prior period’s balance sheet or statement of equity. Net income or net loss comes from the income statement for the current period. Dividends come from board-approved dividend records and then flow through equity.

This is where many beginners slip. They look for cash in bank, sales revenue, or owner withdrawals and try to drop those numbers straight into the formula. That breaks the logic. Retained earnings is an equity account. It moves through profit and dividends, not through raw cash movement.

What Retained Earnings Is Not

Retained earnings is not the same as cash on hand. A company can show strong retained earnings and still be short on cash if money is tied up in inventory, receivables, or fixed assets. The SEC’s beginner’s guide to financial statements separates the balance sheet, income statement, and cash flow statement for that reason: each one answers a different question.

It is also not the same as revenue. Revenue is sales before expenses. Retained earnings builds from profit after expenses, taxes, and other charges have passed through the income statement. A company can post strong sales and still shrink retained earnings if costs are eating up the margin.

Retained Earnings Formula In A Real Business Cycle

Once you see the formula in a business rhythm, it sticks. Every accounting period works like a loop. The company closes the old period, carries forward the ending retained earnings balance, records the new period’s profit or loss, records any dividends, and lands on a new ending balance.

That new ending balance becomes the next opening balance. So retained earnings is not a one-off calculation. It is cumulative. Each period stacks on top of the last one.

What Happens During A Profitable Period

If the company earns money and keeps all of it inside the business, retained earnings rises by the full amount of net income. If it pays out part of that profit as dividends, retained earnings still rises, though by a smaller amount.

Take a company with opening retained earnings of $250,000. It earns $90,000 and declares $25,000 in dividends. Ending retained earnings become $315,000. The business still added profit to equity, though part of that gain left the company through the dividend.

What Happens During A Loss Period

If the company posts a net loss, retained earnings drops. If it still pays dividends during that same period, the balance drops even more. That is why a business can show a thin or even negative retained earnings number after a stretch of rough years, even when revenue is still flowing.

Negative retained earnings are often called an accumulated deficit. That does not always mean the business is broken. Young companies, cyclical businesses, and firms that paid out more than they earned can all land there. You just need the full context.

Why The Statement Of Equity Matters

Retained earnings lives inside shareholders’ equity. Under U.S. GAAP, the FASB Accounting Standards Codification is the official source of accounting standards for nongovernmental entities in the United States. Under IFRS for smaller entities, Section 6 deals with the statement of changes in equity and the statement of income and retained earnings, which is set out in the IFRS for SMEs training material.

That placement matters because retained earnings is part of the ownership claim after liabilities are paid. It does not sit in the profit line forever. It rolls into equity once the period closes.

Inputs You Need Before You Start

You only need three numbers to calculate ending retained earnings with confidence. The trick is pulling the right three numbers from the right place.

Beginning Retained Earnings

This is last period’s ending retained earnings. You will usually find it in the prior balance sheet or statement of changes in equity. If you are building internal books, it will also be sitting in the general ledger as the opening balance for the retained earnings account.

Net Income Or Net Loss

This comes from the current income statement after revenue and expenses have been closed out. If the company earned a profit, add it. If the company posted a loss, subtract it. Do not add revenue by itself. Do not add gross profit by itself. Use the bottom-line result for the period.

Dividends Declared

Cash dividends and stock dividends can affect equity in different ways, though the usual classroom and small-business retained earnings formula refers to dividends declared that reduce retained earnings. If no dividends were declared, use zero. If dividends were declared after year-end, they belong to the next period, not the current one.

Input Where You Get It How It Affects Retained Earnings
Beginning retained earnings Prior period balance sheet or statement of equity Starting point for the new period
Net income Current period income statement Add it to retained earnings
Net loss Current period income statement Subtract it from retained earnings
Cash dividends declared Board records and equity records Subtract from retained earnings
Stock dividends Equity records and board records Can reduce retained earnings with an offset inside equity
Revenue Income statement Do not plug in directly
Cash balance Balance sheet No direct role in the formula
Owner withdrawals Capital or drawing records Varies by business type; not treated like corporate dividends in every setup

Common Mistakes That Throw Off The Number

Most retained earnings mistakes come from mixing accounts that live in different statements. Once you know the boundaries, the errors get easier to spot.

Using Revenue Instead Of Net Income

This is the classic one. Revenue tells you what came in from sales. Net income tells you what is left after expenses. Retained earnings moves with the profit left over, not with top-line sales.

Treating Retained Earnings Like Cash

A company can have $500,000 in retained earnings and nowhere near $500,000 in cash. Profit may have been used to buy equipment, pay debt, or build inventory. That is normal. Retained earnings tracks cumulative profit kept in the business, not a pile of money sitting in one account.

Subtracting Dividends In The Wrong Period

Timing matters. Dividends hit retained earnings when they are declared under the applicable accounting treatment, not when cash happens to leave the bank months later. If you put them in the wrong period, the ending balance goes off.

Ignoring Prior Losses

Retained earnings is cumulative. A strong current year does not wipe away past losses by magic. You still start with the opening balance you actually have, even if that number is negative.

Worked Example You Can Follow Line By Line

Let’s run a full example with clean numbers.

A company starts 2026 with retained earnings of $80,000. During 2026, it reports net income of $52,000. In the same year, the board declares $18,000 in dividends.

The formula looks like this:

$80,000 + $52,000 − $18,000 = $114,000

So the ending retained earnings balance is $114,000.

Now switch one input. Say the company had a net loss of $12,000 instead of net income, with the same $18,000 dividend. The revised formula becomes:

$80,000 − $12,000 − $18,000 = $50,000

That one change cuts the ending balance by more than half. That is why retained earnings can move fast in a rough year.

Scenario Calculation Ending Retained Earnings
Profit year with dividends $80,000 + $52,000 − $18,000 $114,000
Loss year with dividends $80,000 − $12,000 − $18,000 $50,000
Profit year with no dividends $80,000 + $52,000 $132,000

What The Number Tells You

Retained earnings helps you read what a business has done with its profit over time. A rising balance can point to earnings kept in the company for debt reduction, hiring, equipment, expansion, or liquidity. A flat balance can mean profit is being paid out. A falling balance can point to losses, large dividends, or both.

Still, the line should never be read in isolation. Pair it with net income, cash flow, debt, and the company’s dividend pattern. A business with modest retained earnings and strong cash flow may be in fine shape. A business with large retained earnings and weak cash flow may need a closer look.

Once you know the formula, the mystery fades. You are carrying forward the old balance, folding in the current period result, taking out dividends, and landing on a new cumulative total inside equity. That is all retained earnings is: the part of earned profit the business has kept.

References & Sources