This video shows the formula for Retained Earnings.

The ending balance of Retained Earnings is equal to the beginning balance of Retained Earnings, plus the Net Income (or minus the Net Loss) for the period, and minus any dividends declared during the period.

The video provides an example of the Retained Earnings formula using actual financial data for the grocery store chain Kroger.