investing calculators

P/E Ratio Calculator

Compute a stock's P/E ratio by dividing its current share price by earnings per share. Use it to quickly gauge whether a stock looks overvalued or undervalued relative to its peers.

About this calculator

The price-to-earnings (P/E) ratio is one of the most widely used valuation metrics in equity analysis. It tells you how many dollars investors are willing to pay for each dollar of a company's earnings. The formula is straightforward: P/E = Stock Price / Earnings Per Share. A high P/E can signal that investors expect strong future growth, or that the stock is overpriced. A low P/E may indicate undervaluation or a business in decline. P/E ratios are most meaningful when compared against industry peers, historical averages, or a benchmark index like the S&P 500, which has historically averaged a P/E of around 15–20.

How to use

Suppose a stock trades at $150 and its earnings per share (EPS) over the past 12 months is $7.50. Plug the values in: P/E = $150 / $7.50 = 20. This means investors are currently paying $20 for every $1 of earnings. If the industry average P/E is 18, this stock trades at a slight premium to its peers, suggesting the market expects above-average growth or the stock may be modestly overvalued.

Frequently asked questions

What is a good P/E ratio for a stock?

There is no single "good" P/E ratio because it varies by industry, growth stage, and market conditions. As a general benchmark, the long-run average P/E for the S&P 500 is roughly 15–20. Growth sectors like technology often carry P/E ratios above 30, while mature industries like utilities may trade below 15. Always compare a stock's P/E to its sector peers and historical range for meaningful context.

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

Trailing P/E uses actual earnings from the past 12 months (known as trailing twelve months, or TTM), making it a backward-looking measure based on reported data. Forward P/E uses analysts' consensus earnings estimates for the next 12 months, making it forward-looking and more speculative. Trailing P/E is more reliable because it uses real numbers, while forward P/E is more useful for fast-growing companies where past earnings may not reflect future potential.

Why is the P/E ratio not useful for companies with negative earnings?

The P/E ratio requires a positive earnings per share figure in the denominator. When a company reports a net loss, its EPS is negative, making the resulting P/E ratio mathematically meaningless or misleading. In such cases, analysts typically switch to alternative valuation metrics like the price-to-sales (P/S) ratio, enterprise value-to-EBITDA (EV/EBITDA), or price-to-book (P/B) ratio. Early-stage and high-growth companies frequently fall into this category.