The retained earnings is the link between the income statement and the balance sheet. To calculate the retained earnings, you need to start with the opening retained earnings, add any profits (or deduct any losses) and also deduct the dividends paid or declared during the year.