Skip to main content
All Articles
Financial Guide
6 min read June 4, 2026
Verified June 2026

How to Calculate P/E Ratio and Determine If a Stock Is Overpriced

Most investors cite P/E ratios without knowing what number to put in the denominator. That single error distorts valuation by 30% or more. This is the complete method, with the math shown.

How to Calculate P/E Ratio and Determine If a Stock Is Overpriced

Key Takeaways

  • The S&P 500's long-run average P/E sits near 15.97. Any stock trading above 25x earnings without a corresponding growth rate deserves immediate scrutiny.
  • Using GAAP EPS instead of forward EPS can overstate valuation by 28% to 40% in high-growth sectors, causing investors to exit positions too early.
  • Compare P/E against the stock's own 5-year average, its sector median, and the PEG ratio before concluding a stock is overpriced.
  • Tool: Run your own P/E and PEG analysis with the CalcMoney Investment Calculator →

Put Your Money to WorkSPONSORED

Betterment builds and rebalances your portfolio automatically. No guesswork.

INTERACTIVE // Calculator
FULL SCREEN
LOADING Calculator...

What the P/E Ratio Actually Measures

The price-to-earnings ratio tells you how much investors pay for each dollar of a company's earnings. At a P/E of 20, the market pays $20 for every $1 of annual profit. That is the entire concept.

The formula is direct:

P/E Ratio = Share Price / Earnings Per Share (EPS)

Where price is the current market price and EPS is the earnings per share over a defined period. The period you choose changes the output meaningfully. This is where most investors introduce error.

Trailing P/E vs. Forward P/E

Trailing twelve months (TTM) P/E uses reported earnings from the past four quarters. It reflects what actually happened.

Forward P/E uses analyst consensus estimates for the next 12 months. It reflects what the market expects to happen.

Neither is wrong. They answer different questions. TTM P/E is auditable. Forward P/E is actionable.

For growth companies, the gap between these two figures can be substantial. A software company reporting $2.10 TTM EPS and guiding to $3.40 forward EPS will show a TTM P/E of 47.6 and a forward P/E of 29.4 at a $100 share price. One of those numbers suggests extreme overvaluation. The other suggests a premium but defensible multiple. The distinction matters before you exit.


Worked Example 1: Calculating P/E for a Mature Industrial Stock

Consider a fictional but representative large-cap industrial manufacturer: Hartwell Industries.

  • Current share price: $84.20
  • TTM EPS (reported, GAAP): $5.61
  • Forward EPS (analyst consensus): $6.18

TTM P/E = $84.20 / $5.61 = 15.01

Forward P/E = $84.20 / $6.18 = 13.62

The S&P 500 Industrials sector median forward P/E as of recent periods runs near 17.4x. Hartwell trades at a 21.7% discount to its sector median on a forward basis. The 5-year average P/E for this hypothetical stock sits at 16.3x.

Conclusion: Hartwell screens as moderately undervalued against both its sector and its own history. A mean-reversion to its 5-year average P/E of 16.3x, assuming EPS holds at $6.18, implies a price target of $100.74. That represents 19.6% upside from the current price.

This is exactly the calculation that separates systematic valuation from guesswork.


Worked Example 2: Calculating P/E for a High-Growth Technology Stock

Now examine Velantis Corp, a hypothetical cloud software company.

  • Current share price: $212.50
  • TTM EPS (GAAP): $1.88
  • Forward EPS (non-GAAP, analyst consensus): $4.55
  • 3-year projected EPS growth rate: 34% annually

TTM P/E = $212.50 / $1.88 = 113.0

Forward P/E = $212.50 / $4.55 = 46.7

At 113x trailing earnings, the stock looks wildly overpriced. At 46.7x forward earnings, the multiple is high but the picture changes further when growth enters the calculation.

Introducing the PEG Ratio

The PEG ratio adjusts P/E for expected earnings growth. It divides forward P/E by the projected annual EPS growth rate.

PEG = Forward P/E / Annual EPS Growth Rate

Velantis PEG = 46.7 / 34 = 1.37

A PEG below 1.0 traditionally signals undervaluation. Between 1.0 and 2.0 suggests fair-to-moderate pricing for a growth stock. Above 2.0 raises a warning.

Velantis at 1.37 PEG is not cheap. It is also not the 113x multiple that a trailing P/E-only analysis implies. Selling at a 113x headline P/E without running the PEG calculation could mean exiting a position that grows into its valuation within 18 to 24 months.

The difference between those two decisions, on a $50,000 position at 34% annual earnings growth, is the difference between capturing a $16,880 gain and booking a premature loss.


The Three Reference Points Every P/E Analysis Needs

One P/E number in isolation proves nothing. Context requires three benchmarks.

1. The Stock's Own Historical Average

Pull the stock's average P/E over the past 5 years. A stock trading at 32x when its 5-year mean is 28x carries a 14.3% premium to its own history. That premium requires justification in the form of accelerating growth, margin expansion, or a structural business change. Without one of those factors, the premium is noise.

2. The Sector Median P/E

Comparing a utility stock's P/E to a biotech's P/E produces no useful information. Utilities trade near 14x to 16x forward earnings. Biotechs often trade at 30x to 50x or have no P/E at all. The sector median is the correct peer group. Screen within the GICS sector classification for a defensible comparison.

3. The Broader Market Multiple

The S&P 500's forward P/E has ranged from roughly 13.0x during the 2011 European debt crisis to over 23.0x during the 2021 low-rate environment. The long-run average sits near 15.97x. A stock trading at 2.5x the market multiple needs a measurable growth premium to justify that spread.


When a High P/E Is Not Overpriced

A high P/E ratio does not automatically signal an overpriced stock. Three specific conditions can justify a premium multiple.

Earnings acceleration. If a company grew EPS at 8% annually for five years and is now growing at 27%, the old P/E range becomes irrelevant. The market re-rates the stock upward because the earnings trajectory changed.

Margin expansion. A company moving from 12% operating margins to 21% operating margins over three years generates substantially higher future EPS. Forward estimates capture some of this, but market re-rating often moves faster than consensus estimates catch up.

Sector rotation into premium multiples. During periods of falling interest rates, long-duration assets including high-P/E growth stocks receive multiple expansion regardless of individual company fundamentals. Knowing the macro rate environment matters when interpreting any elevated multiple.


When a Low P/E Is Not a Bargain

The inverse trap is equally costly. A stock at 7x earnings may reflect:

  • Secular decline in the underlying business
  • Pending litigation or regulatory action priced in by informed institutional holders
  • Earnings that include one-time items inflating the EPS denominator

Check that the EPS figure in your denominator excludes one-time gains. A company reporting $8.40 EPS that includes a $3.10 asset sale is trading at a normalized P/E significantly higher than the headline ratio suggests. Strip out non-recurring items before accepting any EPS figure.


Applying This to a Real Portfolio Decision

Walk through the full decision sequence for any position.

  1. Calculate both TTM P/E and forward P/E. Note the gap.
  2. Pull the stock's 5-year average P/E from any financial data terminal.
  3. Find the sector median forward P/E.
  4. Calculate the PEG ratio using the 3-to-5 year consensus growth estimate.
  5. Identify whether the current multiple sits above or below all three benchmarks.
  6. If above all three benchmarks with no identifiable justification, that is a sell signal worth quantifying.

The quantification step matters. If a stock returns to its 5-year average P/E over 18 months, calculate the implied price. If that implied price sits 22% below your current holding, size that risk explicitly. Do not carry it passively.


Run the Numbers on Your Holdings

The P/E ratio is not a single number. It is a ratio that changes depending on which earnings figure you input, which benchmark you choose, and which growth assumption you apply. Each of those choices changes the output by 20% to 40% in real-world cases.

The CalcMoney Investment Calculator lets you input current price, TTM EPS, forward EPS, and growth rate to generate P/E, forward P/E, and PEG simultaneously. You can model a reversion to historical average P/E and see the implied target price in seconds.

Run your current holdings through that calculation before the next earnings season. The numbers will tell you exactly where your valuation risk sits.

You Might Also Like

Calculate P/E, forward P/E, and PEG for your portfolio now →
FEATURED PARTNERFIDELITY

Put These Numbers to Work

Open a Fidelity brokerage account. $0 commissions, no account minimums, fractional shares available.

Run the Numbers →
or

One money insight per week.

Calculator deep-dives, rate alerts, and financial analysis written for real decisions. Unsubscribe anytime.

1 email/week. No spam. Unsubscribe in one click.

Free Tools

Run the actual numbers

Stop estimating. Plug in your numbers and get a precise answer in seconds. Free, no signup required.

Open Free Calculators