The price/earnings to growth ratio (PEG ratio) is calculated by dividing a stock's price-to-earnings (P/E) ratio by the earnings growth rate over a given time period. In comparison to the more popular P/E ratio, the PEG ratio is used to calculate a stock's valuation while also taking the company's expected earnings growth into account.