To calculate retained earnings on a balance sheet, take the beginning-period earnings, add the net income or loss, and then subtract shareholder payouts.
By doing so, you’ll be taking the company’s profits and subtracting the amount paid out to shareholders (dividends) to determine what earnings the business has retained. Retained earnings are not the same as profits, as retained earnings accounts for dividends in order to calculate what a company has actually earned.