Skip to content
Calculator Collection

Price-to-Earnings Ratio Calculator

Calculate the price-to-earnings (P/E) ratio of a stock — the price you pay for each dollar of earnings. Use it as the single most-watched valuation metric for comparing stocks against industry peers, historical averages, and the broader market.

Last updated: May 2026

Fill in the required fields to see your result.

Compare with similar

About this calculator

The P/E ratio expresses a stock's price as a multiple of its annual earnings per share (EPS), answering 'how many years of current earnings am I paying for?' The formula is: P/E = Stock Price / Earnings Per Share. Variables: Stock Price is current market price; Earnings Per Share is annual net income divided by diluted share count — most commonly the trailing twelve months (TTM EPS) but sometimes the forward 12-month consensus estimate. Edge cases: negative EPS (company loss) makes the ratio negative or 'N/A' — many analysts label loss-making stocks as N/A and use price-to-sales or EV/EBITDA instead; very high P/Es (>50) typically reflect either explosive growth expectations or temporarily depressed earnings; very low P/Es (<8) often signal market skepticism about earnings durability rather than a bargain. The S&P 500's long-run average P/E is about 15–17; current readings (2025–26) are elevated near 25, partially reflecting structural shifts toward higher-margin tech and lower bond yields. Sector matters enormously: utilities historically trade at 15–20× earnings, consumer staples at 18–25×, technology at 25–40× (often higher for growth names), and energy at 8–14×. Comparing a stock's P/E to its 5- and 10-year averages and to peer-group medians is far more informative than the absolute number. P/E does not tell you anything about growth, leverage, or quality on its own — pair it with PEG ratio, debt-to-equity, and return on equity for a complete picture.

How to use

Example 1 — Mature dividend stock. Stock price $120, EPS $8. Step 1: P/E = 120 / 8 = 15. Verify ✓. A 15 P/E is right at the long-run S&P 500 average — pricing the stock as fair value relative to the broad market. Whether it is actually a buy depends on the company's growth, sector, and quality compared to peers. Example 2 — High-growth tech name. Stock price $350, EPS $5. Step 1: P/E = 350 / 5 = 70. Verify ✓. A 70 P/E is extremely elevated — the market is pricing in either rapid future earnings growth (the company would need to roughly quintuple earnings within 5 years to justify a normal valuation) or sustained competitive advantages (network effects, monopoly economics). Stocks at this multiple are highly sensitive to growth disappointment; if EPS grows 30% per year for 3 years, the multiple is still 30+ even after the growth. Pair high-P/E names with strict valuation discipline and concentration limits.

Frequently asked questions

What is a "good" P/E ratio?

There is no universal good P/E — context dominates. The S&P 500 historical average is about 15–17 (Shiller CAPE has been higher, around 22–25). A P/E meaningfully below the market average can signal undervaluation OR underlying problems; a P/E above can signal growth potential OR overvaluation. Sector context is critical: a 15 P/E is high for energy (sector average 8–14) but low for software (sector average 25–40). Compare to: (1) the stock's own 5- and 10-year historical P/E range; (2) peer-group median; (3) the broader market multiple. A stock trading at 12 when its historical range is 18–25 and peers are at 20 is potentially undervalued — but verify the earnings are durable and the business hasn't structurally deteriorated. The deepest mistake is buying a 'cheap' stock at a 5 P/E without understanding why; sometimes the market is right and earnings are about to collapse.

What is the difference between trailing P/E, forward P/E, and Shiller P/E?

Trailing P/E (TTM P/E) uses earnings from the past 12 months — fully reported, audited, but backward-looking. Forward P/E uses analysts' consensus estimates for the next 12 months — forward-looking but subject to estimation error (consensus estimates are notoriously optimistic, missing by 5–10% on average). Forward P/E is typically lower than trailing P/E during growth phases (earnings are projected higher), and higher during recessions (earnings projected lower). Shiller P/E (CAPE, cyclically adjusted P/E) uses the 10-year average of real (inflation-adjusted) earnings to smooth out economic cycles — preferred by long-term investors and macro researchers because it filters short-term earnings noise. CAPE is currently elevated at ~30, near 1929 and 2000 levels, suggesting US stocks are expensive by long-term historical standards. Each measure tells a different story; sophisticated analysis uses all three.

What are the most common mistakes when using P/E ratios?

The biggest is comparing P/Es across companies with materially different growth rates. A 25 P/E for a 5% grower is much more expensive than a 35 P/E for a 25% grower — that is why the PEG ratio (P/E divided by growth rate) was invented to normalize. The second is using P/E for loss-making or one-time-impacted companies — a single bad quarter can make the trailing P/E meaningless. Switch to forward P/E, EV/EBITDA, or price-to-sales for these. The third is ignoring debt — two companies with the same P/E but very different leverage have completely different risk profiles; use EV/EBITDA to normalize for capital structure. The fourth is using a single point estimate without considering sustainable earnings power — peak-cycle earnings (banks in 2007, oil in 2014) can produce a deceptively low P/E that explodes when the cycle turns. The fifth is anchoring on absolute P/E without comparing to the company's own history; a stock trading at its own historical low P/E may still be expensive if industry economics have permanently deteriorated.

When should I NOT use the P/E ratio?

Skip P/E for loss-making companies — the metric is mathematically negative or undefined and means nothing. Use price-to-sales or EV/EBITDA instead. Avoid P/E for highly cyclical businesses at cycle peaks (banks in 2007, commodities at peak demand) where TTM earnings are unsustainably high; use through-the-cycle earnings or Shiller P/E. Do not use P/E for early-stage growth companies where earnings are intentionally suppressed by reinvestment in growth — Amazon ran at 100+ P/E for years while the business compounded; investors who refused to buy on P/E missed enormous returns. Skip P/E for asset-heavy businesses (real estate, banks, insurance) where book-value-based metrics (P/B, ROE) are more standard. Skip P/E for special situations (turnarounds, restructurings, post-bankruptcy emergences) where the earnings line is distorted by one-time items. And do not use P/E in isolation for any decision; always pair it with growth, quality, leverage, and risk metrics.

How does the P/E ratio relate to expected returns?

Inversely. The earnings yield (1/PE) is a rough estimate of the long-run real return investors should expect if earnings grow with the economy and multiples stay stable. A 15 P/E implies a 6.7% earnings yield ≈ 6–7% real long-run return; a 25 P/E implies a 4% earnings yield ≈ 3–4% real return. This is why elevated market P/Es predict lower future returns over 10-year+ horizons (Shiller and others have shown this empirically since the 1930s). The current US market CAPE of ~30 implies real returns of 3–4% per year over the next decade — below the historical average of 6–7%. Bond yields matter too: a 25 P/E (4% earnings yield) at 1% bond yields is reasonably attractive; the same 25 P/E at 5% bond yields is much less compelling. The relationship is loose for individual stocks (high-growth names can earn back their high P/Es), but for the broad market and over long horizons, P/E is among the best long-run return predictors available.

Sources & references