QuickBooks does the roll-up for you: on the first day of a new fiscal year it moves the prior year's net income out of the profit and loss and into the retained earnings account, with no journal entry for you to make.
The account is created automatically in every company file, and the software treats it as special — it is the destination the whole profit and loss statement empties into when the year turns. Because the movement is automatic, there is no dated transaction you can open to see it; QuickBooks calculates it on the fly. That is why the account's register looks empty even though the balance is large, and why the figure can shift the moment you change your fiscal-year-start setting or edit a transaction in a prior period. Intuit describes the year-end move as a transfer “called an electronic swap” that “doesn't record any visible transactions,” so the only entries a report of the account will ever show are ones someone made by hand (Intuit: view retained earnings account details, checked October 2026). It also means the account should stay hands-off: the software maintains it, and manual entries fight the automation rather than helping it. If you want to confirm the mechanics for your version, the QuickBooks Learn & Support library documents the account and the year-end behavior for both Online and Desktop.
Where the figure shows, and the settings behind it
You will find retained earnings under the equity section of the balance sheet, not on the profit and loss. In QuickBooks Online, though, Intuit is explicit that “you can't simply select Retained Earnings from the Balance Sheet to view details.” The figure is rebuilt from the profit and loss instead: run the Profit and Loss report from Reports → Standard reports for All Dates and select the Net Income amount to see every transaction behind it, or customize the report's columns to show each year, which shows how much each year added. For entries someone made by hand, go to All apps → Accounting → Chart of accounts, find Retained Earnings and run its report for All Dates — Intuit's Account QuickReport, which lists user-created transactions affecting the account. Those reports are the closest thing to an audit trail the account has, since the roll-up itself is computed rather than posted. Intuit also notes that the retained earnings account “isn't the same as the retained earnings line item shown on the balance sheet,” so when you check the number, compare those reports with the balance sheet line rather than with the account's nearly empty register.
Two settings shape how the account behaves and are worth checking before you trust the number: the fiscal-year-start month, which tells QuickBooks when to perform the roll-up (Settings → Account and settings → Advanced → Accounting, First month of fiscal year), and the closing date with its optional password, which locks prior periods so a stray edit cannot silently rewrite the balance after a year is done. In QuickBooks Online the closing date is Close the books in that same Accounting section, where you can require a warning, or a warning and a password, before anyone changes a transaction dated on or before it; in Desktop it is Company → Set Closing Date (Intuit: close the books in QuickBooks Online, checked October 2026). Retained earnings is also a genuinely different figure across entity types — for a C corporation it accumulates and is distributed through dividends, while pass-through entities move much of their equity through owner accounts — but the QuickBooks account exists and rolls the same way regardless.