P/E Ratio Calculator

The price-to-earnings ratio is one of the most widely used stock valuation metrics. Enter any stock price and earnings per share to calculate the P/E ratio, compare it against sector averages with a visual gauge, and see the earnings yield and implied fair value. Select from 12 sectors to understand how the valuation compares to industry peers.

Educational purposes only.

P/E ratios are one of many valuation metrics and should not be used as the sole basis for any financial decision. Sector averages are approximate and change over time. Past valuations do not predict future performance.

Educational purposes only. These calculators illustrate concepts and do not constitute investment advice. Read our disclaimer

StockCram is not a broker-dealer, investment adviser, or financial institution. All content is for educational and informational purposes only and should not be construed as personalized investment advice. Consult a qualified financial professional before making investment decisions. Past performance does not guarantee future results.

How It Works

1

Enter the stock price

The current market price per share of the stock you want to analyze.

2

Enter earnings per share (EPS)

The company's earnings per share. Use trailing twelve months (TTM) or forward estimates.

3

Select a sector

Choose the sector to compare against. Each sector has a different average P/E range.

4

Analyze the results

See the P/E ratio, earnings yield, sector comparison chart, and implied fair value.

Frequently Asked Questions

The price-to-earnings (P/E) ratio measures how much investors pay for each dollar of a company's annual earnings. It is calculated by dividing the stock price by earnings per share (EPS). A P/E of 20 means investors pay $20 for every $1 of earnings. It is one of the most widely used valuation metrics in stock analysis because it provides a standardized way to compare stock prices across companies of different sizes.

There is no universal "good" P/E ratio. It depends heavily on the sector, growth rate, and market conditions. Technology companies often have P/E ratios of 25-40+ due to higher expected growth, while utilities or financials may trade at 12-18. The S&P 500 historical average is around 15-25. A lower P/E compared to sector peers may suggest the stock is priced conservatively, while a higher P/E may reflect growth expectations.

Trailing P/E uses the past 12 months of actual reported earnings (most common and objective). Forward P/E uses analyst estimates of future earnings for the next 12 months. Forward P/E is generally lower than trailing P/E for growing companies because earnings are expected to increase. This calculator uses whichever EPS value you enter — check whether your EPS figure is trailing or forward.

A negative P/E occurs when a company has negative earnings (losses). In this case, the P/E ratio is not meaningful for valuation purposes. Companies with negative earnings are often valued using alternative metrics like price-to-sales (P/S), price-to-book (P/B), or enterprise value to revenue (EV/Revenue). Many growth-stage technology and biotech companies operate at a loss for years before becoming profitable.

Earnings yield is the inverse of the P/E ratio, expressed as a percentage: (EPS / Price) × 100. It shows what percentage of the stock price is "earned" annually. A stock with a P/E of 20 has an earnings yield of 5%. Earnings yield is useful for comparing stocks to bonds or other fixed-income investments. A higher earnings yield means you get more earnings per dollar invested.

The PEG (Price/Earnings to Growth) ratio adjusts the P/E ratio for earnings growth. It is calculated as P/E divided by the annual earnings growth rate. A PEG of 1.0 is often considered "fair" — meaning the P/E ratio equals the growth rate. Below 1.0 may suggest the stock is underpriced relative to growth, while above 2.0 may indicate a premium. PEG helps compare companies growing at different rates.

P/E ratios reflect expected future growth and risk. Technology companies often have high P/E ratios (25-50) because investors expect rapid earnings growth. Utilities and financials have lower P/E ratios (12-18) because their earnings grow more slowly but are more predictable. Cyclical sectors like energy have volatile P/E ratios that depend on commodity prices. Comparing P/E within the same sector is more meaningful than across sectors.

Learn the Terms