How to Calculate Retained Earnings
Working
Retained earnings are the profits a business has kept over its life instead of paying out as dividends. Calculating the ending balance is one line of arithmetic: start with last period's retained earnings, add this period's net income, subtract dividends paid, and adjust for any corrections to earlier periods.
This calculator does that arithmetic and shows the result. Below it, the formula is explained input by input, with worked examples — including what happens when the result goes negative.

The retained earnings formula
The formula is: ending retained earnings = beginning retained earnings + net income − dividends ± prior-period adjustments. Every input comes from the business's own records: the beginning balance from last period's balance sheet, net income from the income statement, dividends from the cash flow or equity records, and adjustments from any corrections to earlier periods.
Retained earnings are cumulative. Net income is one period's profit; retained earnings are the running total of all profits the business has kept since it started, minus all the dividends it has paid. A profitable year adds to the pile. A loss subtracts from it. Dividends subtract from it. That is the whole mechanism, and it is why the balance on the balance sheet grows year after year in a profitable business that does not pay everything out.
What each input means
| Input | Where it comes from | Notes |
|---|---|---|
| Beginning retained earnings | Last period's balance sheet | The closing balance of the previous period becomes the opening balance of this one. |
| Net income (or loss) | This period's income statement | Revenue minus all expenses and taxes. A loss is entered as a negative number. |
| Dividends paid | Equity / cash flow records | Cash dividends declared during the period. Stock dividends are not handled here. |
| Prior-period adjustments | Correction of earlier errors | Fixes to material errors in prior years' accounts, under FASB ASC 250. Usually zero. |
Beginning retained earnings is the anchor: get it wrong and everything after it is wrong. For a new business it is zero. For an established one, it is the retained earnings line on the last balance sheet.
Net income is the period's profit after tax — the bottom line of the income statement. A loss reduces retained earnings, which surprises some people: the business did not pay anything out, but the pile shrank because the business lost money.
Dividends are the profits paid out to shareholders. Only cash dividends reduce retained earnings in this formula. Stock dividends move amounts between equity accounts rather than out of the business, and they need separate treatment.
Prior-period adjustments correct material errors in earlier years' accounts — for example, discovering that last year's revenue was overstated. They adjust retained earnings directly rather than running through this year's income statement, so that this year's profit is not distorted by an old mistake. Most small businesses never need one.
Worked examples
Profitable year. Beginning retained earnings $50,000, net income $20,000, dividends $5,000, no adjustments. Ending retained earnings = $50,000 + $20,000 − $5,000 = $65,000.
Loss year. Beginning retained earnings $10,000, net loss $3,000, no dividends. Ending retained earnings = $10,000 − $3,000 = $7,000. The loss shrank the pile, but it stayed positive.
Deficit. Beginning retained earnings $5,000, net loss $8,000, dividends $1,000. Ending retained earnings = $5,000 − $8,000 − $1,000 = −$4,000. The negative balance is an accumulated deficit — the business has now paid out or lost $4,000 more than it has earned over its life.
With an adjustment. Beginning retained earnings $100,000, net income $30,000, dividends $10,000, and a prior-period adjustment of −$2,000 correcting an earlier overstatement. Ending retained earnings = $100,000 + $30,000 − $10,000 − $2,000 = $118,000.
What a negative balance means
A negative retained earnings balance — an accumulated deficit — means the business has lost or distributed more than it has earned since it began. It is common in young companies that are investing ahead of revenue, and it is not by itself a sign of failure: many startups carry an accumulated deficit for years before turning profitable.
It does have practical consequences. A business with an accumulated deficit generally cannot pay dividends out of retained earnings, because there are no retained earnings to pay from — dividends in that position come from other sources and face legal restrictions in many states. Lenders also notice: a deficit on the equity side of the balance sheet is one of the numbers they check. The fix is the same as the cause — sustained profits, which add to the balance each period until it turns positive again.
Common questions
What is retained earnings?
Retained earnings are the cumulative profits a business has kept since it started, minus all dividends paid out. They appear in the equity section of the balance sheet and represent profits reinvested in the business.
How do you calculate ending retained earnings?
Ending retained earnings = beginning retained earnings + net income − dividends ± prior-period adjustments. Enter a net loss as a negative number.
Can retained earnings be negative?
Yes. A negative balance is called an accumulated deficit. It means the business has lost or paid out more than it has earned over its life. It is common in young companies and does not by itself mean the business is insolvent.
Where do retained earnings appear on the balance sheet?
In the shareholders' equity section, below share capital. The statement of retained earnings — or the statement of changes in equity — shows how the balance moved during the period.
Do dividends reduce retained earnings?
Yes, dollar for dollar. Every dollar paid out as a cash dividend is a dollar that is no longer retained in the business, so dividends are subtracted in the formula.