All guides

What is a P/E ratio? Beginner Guide With Worked Examples

Learn what is a P/E ratio, how to calculate it with EPS, and how beginners can compare stocks using practical examples and key limits before investing.

Published July 31, 2026

If you are learning how to value stocks, one of the first questions you will ask is: what is a P/E ratio? The price-to-earnings ratio is a simple but powerful tool that helps investors compare a company’s stock price with the profits the company generates.

What a P/E ratio means

The P/E ratio, short for price-to-earnings ratio, compares a company’s share price to its earnings per share, or EPS. In plain English, it tells you how much investors are paying for each dollar of a company’s earnings.

The basic formula is:

P/E ratio = Stock price ÷ Earnings per share

For example, if a stock trades at $50 per share and the company earns $5 per share, its P/E ratio is 10. That means investors are paying $10 for every $1 of annual earnings.

A P/E ratio is often used as a quick valuation shortcut. A lower P/E may suggest a stock is cheaper relative to earnings, while a higher P/E may suggest investors expect stronger growth, higher quality, or lower risk. However, the number is not a final verdict. It is a starting point for deeper research.

There are two common versions:

  • Trailing P/E: Uses earnings already reported over a past period.
  • Forward P/E: Uses analyst or company estimates of future earnings.

Trailing P/E is based on actual results, while forward P/E depends on forecasts that may turn out to be too optimistic or too conservative.

How to calculate a P/E ratio: worked examples

Let’s walk through the calculation step by step using simplified examples.

Example 1: A straightforward P/E calculation

Imagine Company Alpha has:

  • Stock price: $40
  • Earnings per share: $4

Using the formula:

P/E ratio = $40 ÷ $4 = 10

Company Alpha trades at 10 times earnings. If earnings stayed the same, investors are paying a price equal to 10 years of current earnings per share.

This does not mean you will literally recover your money in 10 years. Stock prices, earnings, dividends, interest rates, and investor sentiment all change. But the ratio gives you a useful valuation snapshot.

Example 2: Comparing two companies

Now compare Company Alpha and Company Beta:

  • Company Alpha: Stock price $40, EPS $4, P/E 10
  • Company Beta: Stock price $60, EPS $3, P/E 20

Company Beta has a higher stock price and lower EPS, so its P/E is higher. Investors are paying more for each dollar of Beta’s earnings.

Does that make Beta overvalued? Not automatically. Beta might be growing faster, have better profit margins, carry less debt, or operate in a more attractive market. But the higher P/E means investors are expecting more from it.

Example 3: How earnings changes affect the P/E

Suppose a stock stays at $50, but EPS changes:

  • If EPS is $5, the P/E is 10.
  • If EPS falls to $2.50, the P/E becomes 20.
  • If EPS rises to $10, the P/E falls to 5.

This shows why P/E ratios move for two reasons: the share price can change, and earnings can change. A stock can look expensive because the price rose, or because earnings fell.

How investors use the P/E ratio

Investors use the P/E ratio mainly to compare valuations. It can help answer whether a stock looks expensive or cheap relative to its own earnings, its peers, or the broader market.

Common ways to use it include:

  • Comparing companies in the same industry: A bank should generally be compared with banks, not software companies.
  • Comparing a company to its history: A stock may look expensive if it trades above its usual valuation range, or cheap if it trades below it.
  • Checking market expectations: A high P/E often signals that investors expect strong future growth.
  • Finding possible value stocks: A low P/E may point to a stock that is out of favor or underappreciated.

The most useful comparisons are usually within the same sector. Different industries naturally trade at different P/E levels. A mature utility, a cyclical manufacturer, and a fast-growing technology firm can have very different valuations for good reasons.

A beginner-friendly way to think about it is this: the P/E ratio is a price tag on earnings. But just like when buying anything else, a low price tag does not always mean a bargain, and a high price tag does not always mean a bad deal.

Limitations and common mistakes

The P/E ratio is popular because it is easy to calculate, but it has important limitations.

First, it does not work well when a company has negative earnings. If EPS is negative, the P/E ratio is not meaningful. A money-losing company can still be valuable, especially if it is investing heavily for future growth, but P/E will not be the right tool.

Second, earnings can be temporarily distorted. One-time gains, write-downs, tax changes, restructuring costs, or cyclical downturns can make EPS unusually high or low. That can make the P/E look misleading.

Third, a low P/E can be a value trap. A stock may look cheap because investors expect earnings to decline. If profits keep falling, the stock may not be cheap at all.

Fourth, a high P/E can sometimes be justified. Companies with durable competitive advantages, strong balance sheets, recurring revenue, or fast earnings growth may deserve higher valuations.

Beginners should avoid these mistakes:

  • Buying only because a P/E ratio is low.
  • Avoiding all stocks with high P/E ratios.
  • Comparing companies from unrelated industries.
  • Ignoring debt, cash flow, growth, and business quality.
  • Using forward P/E without questioning the assumptions behind future earnings.

A better approach is to combine P/E with other measures, such as revenue growth, profit margins, free cash flow, return on equity, debt levels, and dividend sustainability.

FAQ

Is a high P/E ratio good or bad?

A high P/E ratio is neither automatically good nor bad. It usually means investors are willing to pay more for each dollar of earnings, often because they expect growth or view the company as high quality. The risk is that if future growth disappoints, the stock price may fall as investors lower their expectations.

What is considered a good P/E ratio?

There is no universal good P/E ratio. A reasonable P/E depends on the company’s industry, growth rate, profitability, financial strength, and the interest-rate environment. Instead of looking for one magic number, compare the company with similar businesses and its own historical valuation.

Can the P/E ratio predict stock returns?

The P/E ratio can help frame expectations, but it cannot reliably predict short-term stock returns. Valuation matters over time, yet stock prices can move for many reasons, including earnings surprises, economic conditions, interest rates, investor sentiment, and company news. Use P/E as one input, not a forecast.

The bottom line

The P/E ratio is one of the simplest ways to understand how a stock is valued relative to its earnings. It answers a basic question: how much are investors paying for each dollar of profit?

For beginners, the key is to use the ratio as a comparison tool rather than a buy-or-sell signal. A low P/E may highlight a bargain or a troubled business, while a high P/E may reflect overexcitement or genuinely strong growth prospects.

Before investing, look beyond the headline number. Compare companies in the same industry, understand whether you are using trailing or forward earnings, and study the business behind the ratio. When combined with broader fundamental analysis, the P/E ratio can be a practical first step toward smarter stock research.