Retained Earnings is calculated by adding the net income to (or subtracting it from) the beginning retained earnings and then subtracting the dividends that were paid to shareholders.