What Is P/E Ratio? A Complete Guide to Stock Valuation
Learn what the price-to-earnings (P/E) ratio is, how to calculate it, what constitutes a good P/E, and how to use it to compare stocks across sectors and market cycles.
The price-to-earnings ratio — commonly called the P/E ratio — is arguably the most widely used stock valuation metric in finance. It tells you how much investors are paying for each dollar of a company's earnings. Whether you're evaluating a single stock or comparing companies across an industry, understanding P/E is fundamental to informed investing.
The P/E Formula: How It's Calculated
The P/E ratio is calculated by dividing a company's current stock price by its earnings per share (EPS):
P/E Ratio = Stock Price ÷ Earnings Per Share (EPS)
For example, if a company trades at $150 per share and earned $10 per share over the last twelve months, its P/E ratio is 15. This means investors are paying $15 for every $1 of annual earnings the company generates. The calculation itself is straightforward — the interpretation is where things get nuanced.
Trailing P/E vs. Forward P/E
There are two primary versions of the P/E ratio, and they serve different analytical purposes:
Trailing P/E (TTM)
Trailing P/E uses the sum of the company's actual reported earnings over the most recent four quarters (trailing twelve months, or TTM). This is the most commonly cited version because it relies on real, audited financial results rather than projections. When financial websites display a P/E ratio without qualification, they almost always mean trailing P/E. The drawback is that it's backward-looking — it reflects where the company has been, not necessarily where it's going.
Forward P/E
Forward P/E uses analyst consensus estimates for earnings over the next twelve months. It's useful for fast-growing companies whose future earnings may differ significantly from past results. A company trading at a trailing P/E of 40 might have a forward P/E of 25 if analysts expect earnings to grow substantially. However, forward P/E is only as reliable as the estimates it's based on — and analyst estimates can be wrong, especially during economic turning points or for companies with volatile earnings.
What Is a "Good" P/E Ratio?
There is no universal answer to what constitutes a good P/E ratio. Context matters enormously. A P/E of 25 might be cheap for a high-growth software company and expensive for a mature utility. Here are the key contextual factors:
Industry Averages
Different sectors trade at structurally different P/E levels due to growth rates, capital intensity, and risk profiles. As of recent market data, typical sector P/E ranges include:
- Technology: 25–40x — high growth expectations justify premium valuations
- Healthcare: 18–30x — varies widely between biotech (high P/E, speculative) and pharma (moderate P/E, stable)
- Financials: 10–15x — lower due to cyclicality, regulatory risk, and leverage
- Utilities: 15–20x — stable, regulated cash flows with limited growth upside
- Consumer Staples: 18–25x — defensive, predictable revenue streams
- Energy: 8–15x — highly cyclical, tied to commodity prices
Always compare a company's P/E to its sector peers rather than to the broad market. A bank with a P/E of 20 is expensive relative to other banks; a SaaS company with a P/E of 20 is likely cheap relative to its peers.
Growth Rate: The PEG Ratio
To account for growth differences, analysts use the PEG ratio (P/E divided by the expected annual EPS growth rate). A PEG of 1.0 suggests the stock is fairly valued relative to its growth. Below 1.0 may indicate undervaluation; above 2.0 may signal overvaluation. For example, a company with a P/E of 30 and expected EPS growth of 30% has a PEG of 1.0 — reasonable. The same P/E with 10% growth yields a PEG of 3.0 — likely overpriced.
When P/E Ratios Can Mislead
The P/E ratio is useful but far from perfect. Several scenarios can make it misleading:
Negative Earnings
Companies with net losses have undefined (or negative) P/E ratios. This is common among early-stage growth companies, biotech firms in clinical trials, and cyclical companies during downturns. For these stocks, price-to-sales (P/S) or enterprise value-to-EBITDA (EV/EBITDA) may be more appropriate valuation metrics.
One-Time Items
Large one-time gains (asset sales, tax windfalls) or charges (restructuring, write-downs, litigation settlements) can distort earnings in a given quarter, making the P/E artificially low or high. Always check whether reported EPS includes significant non-recurring items. Many analysts prefer to use adjusted (non-GAAP) EPS for P/E calculations to strip out these distortions, though persistent gaps between GAAP and non-GAAP deserve scrutiny.
Cyclical Companies
Cyclical businesses (autos, airlines, steel, commodities) often look cheapest (lowest P/E) at the peak of their earnings cycle — precisely when earnings are about to decline. Conversely, they look most expensive (highest P/E) near the trough, when depressed earnings create an inflated ratio just as the recovery begins. For cyclical stocks, the Shiller P/E (CAPE ratio), which averages inflation-adjusted earnings over 10 years, provides a more stable baseline.
Accounting Differences
Different accounting standards (GAAP vs. IFRS), share-based compensation treatment, and depreciation methods can make P/E comparisons between companies in different countries or even different industries unreliable. Companies with heavy stock-based compensation may report higher GAAP EPS, deflating the P/E relative to companies that compensate employees primarily in cash.
Historical S&P 500 P/E Context
The S&P 500's long-run average trailing P/E is approximately 15–17x. During bull markets and low-interest-rate environments, it can stretch above 25x (it reached ~30x in late 2020/early 2021). During recessions and bear markets, it compresses below 12x. The current level relative to this historical range tells you whether the broad market is trading at a premium or discount to its long-term average — though a premium can be justified by factors like low interest rates, high corporate margins, or a shift in index composition toward high-growth technology companies.
P/E and Interest Rates
There is an inverse relationship between interest rates and P/E ratios. When interest rates are low, future earnings are discounted at a lower rate, making them more valuable today — which justifies higher P/E multiples. When rates rise, the discount rate increases, future earnings become less valuable in present terms, and P/E ratios tend to compress. This is why the Federal Reserve's rate decisions (tracked on our Economic Dashboard) have such a direct impact on stock market valuations. The 2022–2023 rate hiking cycle, for example, drove a meaningful compression in growth stock P/E ratios as 10-year Treasury yields rose from ~1.5% to over 4.5%.
Using P/E in Practice
Here is a practical framework for using P/E ratios in your stock analysis:
- Compare within sectors: Use our Stock Screener to filter by sector and sort by P/E to identify relative value within an industry group.
- Check the PEG: Divide the P/E by the expected EPS growth rate to normalize for growth differences.
- Look at the trend: Is the P/E expanding (stock rising faster than earnings) or compressing (earnings catching up to the stock price)? Expanding P/E in a company with decelerating growth is a warning sign.
- Cross-reference with cash flow: A low P/E combined with strong free cash flow generation is more compelling than a low P/E with deteriorating cash flow.
- Consider the cycle: Where are we in the economic cycle? Early cycle favors cyclicals with high P/E (earnings recovering). Late cycle favors quality stocks with moderate P/E and consistent margins.
Beyond P/E: Complementary Metrics
No single ratio tells the whole story. Pair P/E analysis with:
- Price-to-Sales (P/S): Useful for unprofitable companies or companies with depressed margins
- EV/EBITDA: Enterprise value to EBITDA adjusts for differences in capital structure, making it better for cross-company comparison
- Price-to-Book (P/B): Compares market value to accounting book value — most relevant for financial companies
- Free Cash Flow Yield: Free cash flow per share divided by stock price — a cash-based alternative to earnings yield
You can find P/E ratios, EPS, and other fundamental metrics for thousands of stocks on our Stock Screener and individual stock profile pages.