The two-class method is an earnings allocation formula that determines earnings per share separately for common stock and participating securities according to dividends declared and participation rights in undistributed earnings.