Calculate Price to Earnings Ratio

Price-to-Earnings multiple, earnings yield, and implied fair value

Results are for informational purposes only and do not constitute financial or investment advice. Consult a qualified financial professional before making investment decisions.

Quick answer

P/E Ratio = Stock Price / Earnings Per Share (EPS). Example: $150 stock price ÷ $7.50 EPS = P/E of 20x (earnings yield: 5%). The historical S&P 500 average P/E is 15–17x; high-growth tech typically trades at 30–60x+.

How to use this P/E ratio calculator

Enter the Stock Price (current market price per share) and EPS (trailing twelve months earnings per share - found on any financial data site or calculated from the income statement). The calculator shows the trailing P/E ratio and earnings yield. Three optional fields unlock additional metrics:

  • Forward EPS - analyst consensus estimate for the next 12 months; unlocks the forward P/E.
  • Target P/E Multiple - any benchmark multiple you want to value against; unlocks implied fair value and upside/downside vs. current price.
  • Annual EPS Growth Rate % - the expected annual EPS growth rate (use the 3-5 year analyst consensus CAGR for best results); unlocks the PEG ratio and a growth signal (Undervalued / Fair value / Growth priced in).

P/E ratio formula

The Price-to-Earnings ratio divides the current share price by earnings per share:

$$\text{P/E Ratio} = \frac{\text{Stock Price}}{\text{Earnings Per Share (EPS)}}$$

EPS is derived from the income statement:

$$\text{EPS} = \frac{\text{Net Income} - \text{Preferred Dividends}}{\text{Weighted Avg. Shares Outstanding}}$$

The earnings yield is the inverse of P/E - it expresses earnings as a return on the share price:

$$\text{Earnings Yield} = \frac{\text{EPS}}{\text{Stock Price}} \times 100$$

Implied fair value at a target P/E multiple:

$$\text{Implied Price} = \text{EPS} \times \text{Target P/E}$$

P/E ratio explained to a beginner

Think of a company as a machine that prints dollar bills. The stock price is what you pay to own one share of that machine. EPS is how many dollars per share the machine prints each year. The P/E ratio tells you: for every dollar the machine prints annually, how much are you paying upfront?

Example: a stock costs $120 and earns $6 per share per year. P/E = 120 / 6 = 20x. You are paying $20 for every $1 of annual earnings. If earnings stayed flat forever, it would take 20 years of earnings to recover your purchase price. A P/E of 10x = 10-year payback. A P/E of 40x = 40-year payback.

The catch: a low P/E can mean the market expects earnings to shrink, and a high P/E can be justified if earnings are growing fast - which is exactly why the PEG ratio exists.

Comparison: trailing P/E vs. forward P/E

Trailing P/E (LTM)Forward P/E (NTM)
EPS usedLast 12 months actual reported EPSNext 12 months analyst consensus estimate
ReliabilityFactual - based on reported resultsEstimate - subject to revision
For growing companiesHigher (past earnings lower)Lower (future earnings expected higher)
Best used forHistorical comparison, value screeningGrowth-oriented valuation, relative comparison
LimitationBackward-looking; may not reflect current trajectoryAnalyst estimates can be wrong; EPS revisions move forward P/E

For a growing company, forward P/E will be lower than trailing P/E. If forward P/E exceeds trailing P/E, analysts expect earnings to decline - a warning signal worth investigating.

Worked examples for price-to-earnings ratio

StockPriceTrailing EPSTrailing P/EForward EPSForward P/EEarnings Yield
Mature dividend stock$80$6.4012.5x$6.8011.8x8.0%
S&P 500 average--~17x-~15x~5.9%
Growth tech stock$250$5.0050x$8.0031.3x2.0%
Value stock$45$4.5010x$5.009.0x10.0%

The first thing I do with any P/E is compare it against the same company's own 5-year historical range, not against a sector average. A P/E of 25x looks expensive in isolation - until you see the stock has consistently traded between 28x and 45x for five years.

Current P/E relative to a company's own history often tells you more than any cross-sector benchmark.

Apple (AAPL) is a good example of why this matters. AAPL's approximate trailing P/E history over the past five years:

YearApprox. P/E rangeWhat drove it
202127x – 32xStrong iPhone cycle; services revenue accelerating
202220x – 24xRate-hike selloff; share price fell, EPS held up - stock became cheap by Apple's own standards
202327x – 32xMarket re-rated tech higher; EPS grew modestly
202430x – 35xAI narrative, aggressive share buybacks reducing share count
202528x – 34xMacro uncertainty and China revenue headwinds kept a lid on multiple expansion

Now suppose you are looking at AAPL today and the trailing P/E is 30x. Compared to the S&P 500 average of ~17x it looks expensive. But compared to Apple's own 5-year band of 20x – 35x, a P/E of 30x sits in the middle - not cheap, but not at a historical premium either.

The 2022 window at 20-24x was genuinely cheap by Apple's own standards; 30x is business as usual. That is the context a sector benchmark cannot give you.

P/E benchmarks by sector

SectorTypical P/E rangeWhy high/low
Technology / Software25x – 60x+High growth, scalable margins, recurring revenue
Healthcare / Biotech18x – 35xGrowth + pricing power; biotech can be infinite (no earnings)
Consumer Discretionary15x – 30xCyclical with brand premiums
Consumer Staples18x – 25xStable earnings attract premium; defensive characteristics
Industrials12x – 20xSteady but cyclical; capital-intensive
Financials (Banks)8x – 14xLeverage-driven; regulatory constraints
Energy / Utilities8x – 15xCapital-intensive, commodity exposure, regulated

One mistake I personally see consistently: investors anchor to P/E thresholds from the wrong sector. A bank trading at 20x looks expensive by financial-sector standards, but an investor more familiar with tech labels it cheap.

Sector context is the first filter every time - absolute P/E levels carry almost no meaning without it. When in doubt, compare a stock's P/E only against direct competitors with similar business models and growth profiles.

PEG ratio: P/E adjusted for growth

The PEG ratio solves the single biggest weakness of P/E: it treats all earnings the same, regardless of how fast they are growing. A company with a P/E of 30x growing at 30% per year is priced identically to a company with a P/E of 30x growing at 5% per year - but the first is arguably cheap and the second is expensive.

The PEG ratio normalises for growth rate so you can compare them on the same footing.

$$\text{PEG Ratio} = \frac{\text{Trailing P/E}}{\text{Annual EPS Growth Rate (\%)}}$$

Peter Lynch popularised the PEG ratio in One Up on Wall Street (1989), where he argued that a fairly-valued stock should have a PEG of roughly 1.0 - meaning investors pay one dollar of P/E for every one percentage point of annual earnings growth.

PEG rangeSignalInterpretation
Below 0.5Potentially undervaluedGrowth rate well exceeds what the market is pricing in; worth investigating for value
0.5 - 1.0Undervalued to fairGrowth supports or exceeds the current multiple; generally considered attractive
1.0 - 2.0Fair value rangeMarket is roughly paying one dollar of P/E per point of growth; the Lynch baseline
Above 2.0Growth priced inInvestors are paying a premium above the growth rate; execution risk rises
NegativeNot meaningfulNegative EPS or negative growth; PEG is not applicable in either case

PEG in practice: two stocks compared

Stock A: price $200, EPS $5.00, trailing P/E = 40x, EPS growth rate = 40%/yr. PEG = 40 / 40 = 1.0 - fairly valued despite the high headline multiple.

Stock B: price $90, EPS $9.00, trailing P/E = 10x, EPS growth rate = 3%/yr. PEG = 10 / 3 = 3.3 - expensive relative to its growth, despite looking cheap on P/E alone.

This is the PEG effect: a high P/E can be justified, and a low P/E can be expensive, depending on the growth rate behind it.

Limitations of PEG

PEG inherits P/E's weaknesses and adds one of its own: the growth rate input. If you use trailing growth (last 12 months), a one-time earnings spike or trough will distort the denominator. If you use forward analyst consensus, you are trusting estimates that can be significantly wrong.

For the most reliable PEG, use a multi-year average growth rate - typically the 3-5 year CAGR from analyst consensus or a conservative internal estimate.

PEG is also unreliable for cyclical industries (energy, mining, autos) where earnings swing sharply, for early-stage companies with no stable earnings base, and any time EPS is negative.

Negative P/E ratio in stocks

When a company reports negative earnings - a net loss - the P/E ratio becomes negative.

Dividing a positive stock price by a negative EPS produces a mathematically valid negative number, but it carries no analytical meaning in the way a positive P/E does. A P/E of -25x cannot be compared to a P/E of 20x and does not indicate undervaluation.

What causes a negative P/E

Negative EPS comes from three distinct situations that require different investor responses:

CauseExampleImplication
Structural lossesEarly-stage growth company spending aggressively to acquire usersNo clear path to profitability; speculative; value on revenue or growth trajectory
One-time chargeProfitable retailer takes a large write-down on acquired assetsUnderlying earnings power intact; forward P/E is still valid
Cyclical troughOil producer at a commodity price low; airline during a demand collapseTemporary; normalised earnings or EV/EBITDA give a better anchor than trailing P/E

Trailing vs. forward P/E when EPS is negative

If trailing EPS is negative but the company is expected to turn profitable, forward P/E is still a usable metric.

For example: a stock trading at $60 with a trailing EPS of -$2.50 has a meaningless trailing P/E, but if consensus forward EPS is $4.00, the forward P/E of 15x gives a real valuation anchor.

In this case, skip the trailing figure entirely and anchor entirely on forward estimates - while discounting them appropriately for the uncertainty involved in an earnings turnaround.

Alternative valuation metrics for loss-making companies

When trailing P/E is negative and forward P/E is unreliable (no clear path to profit), practitioners (including myself) use these alternatives:

MetricFormulaBest for
Price-to-Sales (P/S)Market Cap / RevenuePre-profit companies with strong revenue growth
EV/RevenueEnterprise Value / RevenueSame, but capital-structure neutral - better for comparing levered companies
EV/Gross ProfitEnterprise Value / Gross ProfitSaaS and high-margin businesses where revenue alone understates economics
Price-to-Book (P/B)Market Cap / Book ValueAsset-heavy businesses: banks, real estate, industrials
EV/EBITDA (forward)EV / Next-year EBITDA estimateCompanies EBITDA-positive but not yet net-income positive due to D&A or interest

How this calculator handles negative EPS

If you enter a negative EPS, the calculator will display a negative P/E. Treat that result as a flag, not a valuation figure - it signals that P/E is the wrong tool for this stock.

Financial data providers typically show "N/A" or "N/M" (not meaningful) rather than a negative number; our P/E calculator shows the raw result so you can see exactly what the formula produces. Switch to one of the alternative metrics above for any stock where trailing EPS is negative.

Limitations of the P/E ratio

  • Meaningless for loss-making companies: A company with negative EPS has no P/E ratio. Use EV/Revenue or Price-to-Sales for pre-profit businesses.
  • EPS can be manipulated: Share buybacks reduce shares outstanding and inflate EPS without improving underlying profitability. One-time gains or losses distort reported EPS. Use adjusted or normalised EPS where possible.
  • Doesn't account for debt: Two companies with identical P/E ratios but different leverage profiles carry very different risk. A highly leveraged company's P/E will appear low because debt amplifies equity returns - until it doesn't. EV/EBITDA is a better apples-to-apples comparison.
  • Not comparable across industries: Comparing a utility's P/E of 12x to a tech company's 40x is meaningless. Compare only against direct sector peers with similar growth rates.
  • Ignores growth rate: The PEG ratio (P/E divided by annual EPS growth rate) adjusts for this and enables fairer comparison between companies growing at different rates. A P/E of 30x for a company growing at 30%/year (PEG = 1.0) may be cheaper than a P/E of 15x for a company growing at 5%/year (PEG = 3.0). See the PEG section above for the full framework.

Frequently asked questions about P/E ratio

What is the P/E ratio?

The Price-to-Earnings ratio measures how much investors pay per dollar of annual earnings. P/E = Stock Price / EPS. A P/E of 20 means the stock costs 20 times its annual earnings per share. It is the most commonly cited equity valuation multiple.

What is a good P/E ratio?

Depends on the sector and growth rate. The long-run S&P 500 average is ~15–17x. High-growth tech: 30–60x+. Mature value stocks: 8–15x. A "good" P/E is one that is reasonable relative to peers and justified by the company's growth rate, quality of earnings, and competitive position.

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

Trailing P/E uses actual reported EPS from the last 12 months. Forward P/E uses estimated EPS for the next 12 months. Forward P/E is lower for growing companies (future earnings are higher). If forward P/E > trailing P/E, earnings are expected to decline.

What is earnings yield?

Earnings yield = EPS / Stock Price × 100 = 1 / P/E × 100. A P/E of 20x = 5% earnings yield. Analysts compare earnings yield to 10-year Treasury yields to assess equity attractiveness. When earnings yield is close to or below risk-free rates, equities may be expensive.

Why can P/E be misleading?

P/E is distorted by share buybacks (which reduce share count and inflate EPS), one-time items (which inflate or deflate reported earnings), high debt (which amplifies returns but also risk), and differences in accounting between companies. Always supplement P/E with other metrics: EV/EBITDA, P/FCF, Price-to-Book, and PEG ratio.

Test your knowledge

Quiz: how well do you know P/E ratio?

5 questions · ~2 min

1. What does a P/E ratio of 20x mean for an investor?

P/E = Stock Price / EPS. A P/E of 20 means investors pay $20 for each $1 of annual earnings. Equivalently, the earnings yield is 1/20 x 100 = 5% - not a 20% return.

2. A growth tech stock trades at $250 with trailing EPS of $5.00 and forward EPS of $8.00. What is the forward P/E?

Forward P/E = Stock Price / Forward EPS = $250 / $8.00 = 31.25x. The trailing P/E is $250 / $5.00 = 50x. The lower forward P/E reflects expected earnings growth - the classic pattern for a growing company.

3. A company has a P/E of 30x and grows EPS at 30% per year. What is its PEG ratio, and how does Peter Lynch interpret it?

PEG = Trailing P/E / Annual EPS Growth Rate = 30 / 30 = 1.0. Peter Lynch argued that a fairly-valued stock should have a PEG of roughly 1.0 - you pay one dollar of P/E for every one percentage point of annual earnings growth.

4. According to the sector benchmarks table on this page, which sector typically trades at the highest P/E multiple?

Technology / Software trades at 25x to 60x+ because of high growth, scalable margins, and recurring revenue. The next highest is Healthcare / Biotech at 18x - 35x. Financials and Energy/Utilities sit at the low end at 8x - 15x.

5. Share buybacks can distort the trailing P/E ratio. What is the mechanism?

Buybacks retire shares, so EPS (Net Income / Shares Outstanding) rises even if net income is flat. The P/E appears to fall - making the stock look cheaper - but no actual earnings improvement occurred. Always check whether EPS growth is driven by real profit growth or just share count reduction.

Key terms