Why the two numbers drift apart.
Retained earnings is last year’s closing balance plus everything that has ever passed through the income statement since. So any entry dated in last year, posted after you sent last year’s statements, changes last year’s net income and therefore this year’s opening retained earnings. The ledger is right about what it holds. It just no longer matches what the board, the bank and the tax preparer were given.
Most ledgers make this easy to do by accident. QuickBooks Online’s lock datelets someone change a locked transaction after a warning, or after a warning and a password, depending on the setting, and it moves last year’s net income into retained earnings when the new year starts. In SAP the same question turns up as a support article on opening balances that do not match the previous year after the balance carry forward. These pages explain where to look inside one product. They do not show how to account for the gap.
It matters most in the year of a first audit. Under ISA 510, paragraph 6(a), the auditor has to determine whether the prior period’s closing balances were correctly brought forward, or restated where appropriate. The US equivalent is AU-C 510. Without that evidence, paragraph 10 leads to a qualified opinion or a disclaimer. An unexplained gap in retained earnings is the first thing that test finds.
One year end, four late entries.
An example US software company closes 2025 and sends its statements to the board and the bank on 20 February 2026, with retained earnings of 1,240,000. In November, preparing for its first audit, the controller sees the ledger open 2026 at 1,197,700. The roll-forward finds the gap in two lines.
| Line | Statements sent | Ledger today | Difference |
|---|---|---|---|
| Retained earnings, 1 January 2025 | 980,000 | 980,000 | |
| Net income for 2025 | 310,000 | 275,500 | (34,500) |
| Distributions dated in 2025 | (50,000) | (57,800) | (7,800) |
| Retained earnings, 31 December 2025 | 1,240,000 | 1,197,700 | (42,300) |
Filter the 2025 entries by the date they were created, not the date they carry, and keep everything created after 20 February 2026. Four come back.
| Entry | What happened | Amount | Hits |
|---|---|---|---|
| A | Cloud hosting bill dated 18 December 2025, entered 9 March 2026 | 18,400 | Expense |
| B | Depreciation recalculated for 2025 after an in-service date moved from October to July | 9,600 | Expense |
| C | Goodwill credit offered in April 2026 to a customer unhappy about a December outage, dated 31 December 2025 | 6,500 | Revenue |
| D | Distribution paid 14 January 2026, posted straight to retained earnings on 31 December 2025 | 7,800 | Equity |
The roll-forward
The one line roll-forward
opening retained earnings
+ net income for the year
- distributions
+/- prior period adjustments you decided on and documented
= closing retained earnings
Keep one line per year. The closing figure for last year
must equal the retained earnings in the statements you
sent out, and next year's opening balance in the ledger
must equal it too. Check that tie at every month end,
not only at the audit.Put each entry back where it belongs.
- C and D belong in 2026. The goodwill credit was a decision made in April and the distribution was paid in January. Reverse them out of 2025 and post them on the dates they happened.
- A and B are real 2025 costs that were missed, 28,000 between them. If that is not material, book them in 2026 with a note saying which year they relate to. If it is, they are a correction of the 2025 statements: a decision you make with your auditor and record as a dated, documented adjustment to opening retained earnings, never as a quiet backdate.
- Once they move, the ledger opens 2026 at 1,240,000 again, matching the statements, and the roll-forward explains every change since.
A year end in four steps.
- Post the last adjustments for the year, including depreciation and accruals.
- Post the closing entry, so revenue and expense for the year move into retained earnings as a real entry you can point to.
- Lock December the day the statements first leave finance, whether that is the board pack, the covenant certificate or the file for the tax preparer.
- Each month after that, check that the ledger’s opening retained earnings still equals the figure you sent. Anything late for the old year goes in the current one.
What Rivane does at year end today.
Rivane posts the closing entry as a real journal entry and keeps any leftover from an earlier year in plain sight on the balance sheet.
Year end in Rivane, as built
# Year end in Rivane, as built.
close the year end close posts a real closing entry
dated 31 December, one per currency: every
revenue and expense account for the year goes
to zero and the net goes to the retained
earnings account
guards it refuses to run if December is locked, and
if no retained earnings account is set up for
that currency
lock a locked period is checked by every posting
path: journals, revenue recognition, fixed
assets, inventory, intercompany, bank
reconciliation, opening balances
balance the balance sheet shows the retained earnings
sheet account, a separate line called Retained
earnings (prior periods) for any earlier year
revenue or expense not yet closed, and the
current year's net incomeIn the example, if someone unlocked December after the close and posted bill A, the 2026 balance sheet would show the retained earnings account at 1,240,000 and a separate line of 18,400 under Retained earnings (prior periods). The gap is visible on the report instead of buried in one number.
The limits, as of today. The year end close runs as an API call; there is no button for it on screen yet. It closes calendar years only. Running it again after a late entry returns the original closing entry and does not post the difference, so that amount stays on the prior periods line until someone closes it with a manual entry. Entry D, posted straight to the retained earnings account, changes the account itself, so only the lock and the roll-forward catch it. There is no built roll-forward report; the tie is a check you run from the balance sheet.
The short version.
Opening retained earnings drifts when entries land in a year after its statements went out. Keep a one line roll-forward, move each late entry to the year it belongs in, and close then lock the year the day its numbers leave finance. Your first auditor will run that tie on day one, so it is worth having it ready.
To see how Rivane runs period locks and the close, read Rivane close management.
Frequently asked questions.
Can we just post one journal entry to make retained earnings match?
Not without knowing what it covers. A plug to retained earnings hides the late entries instead of placing them, and a first year auditor will ask what it is. Find each entry with the roll-forward, then move it to the year it belongs in or record it as a documented prior period adjustment.
When should we lock last year?
On the day its numbers first leave finance: the board pack, the lender covenant certificate or the file sent to the tax preparer, whichever comes first. Post the final adjustments and the closing entry before that, then lock.
What if we find a real error in last year after the lock?
Leave the lock on. If the amount is not material, book it in the current year and note which year it belongs to. If it is material, it is a correction of the prior year statements, agreed with your auditor and recorded as a dated, documented adjustment to opening retained earnings.
Sources
- ISA (UK and Ireland) 510, Initial Audit Engagements: Opening Balances, as published by the Financial Reporting Council (read directly). Paragraph 6(a) asks the auditor to determine whether the prior period’s closing balances have been correctly brought forward, or restated where appropriate. Paragraphs 10 and 11 cover the qualified opinion when that evidence is missing or the opening balances are materially misstated. The wording follows ISA 510 issued by the IAASB.
- AU-C section 510, Opening Balances: Initial Audit Engagements, Including Reaudit Engagements, on Deloitte’s DART. Cited for the US equivalent’s title and location only; its text was not quoted here.
- QuickBooks Online help, Lock your books in QuickBooks Online (updated 15 September 2026). Transactions on or before the lock date can still be changed after a warning, or after a warning and a password, depending on settings. Last year’s net income moves to retained earnings when the new fiscal year starts. Read as a current answer.
- SAP Knowledge Base Article 2071377, Opening balance in FAGLB03 does not match the closing balance of the previous fiscal year after performing balance carry forward. Read as a current answer; the full article needs an SAP login.
A note on how this was researched. ISA 510 was read from the published text, not from a summary. The QuickBooks and SAP pages were read as they stand today. The company and every amount are examples. The Rivane section describes the product as built today, checked against the year end close, period lock and balance sheet code rather than marketing copy.
On embedded social posts: we looked for public posts from auditors or practitioners on retained earnings roll-forwards and found none we could verify as current and relevant, so this article uses ordinary citations instead.