All guides

what is a P/E ratio? Formula, Meaning, and Stock Examples

Learn what is a P/E ratio, how to calculate it, and how investors use this valuation metric with simple stock examples, comparisons, and limits.

Published August 28, 2026

If you are learning how to value stocks, one of the first questions you may ask is: what is a P/E ratio? The price-to-earnings ratio is a simple valuation tool that compares a company’s share price with the profit it earns per share.

Understanding what a P/E ratio means

The P/E ratio, short for price-to-earnings ratio, tells investors how much the market is willing to pay for each dollar of a company’s earnings. In plain English, it links a stock’s price to the company’s profits.

A stock with a P/E ratio of 20 means investors are paying $20 for every $1 of earnings per share. That does not automatically mean the stock is good or bad. It simply gives you a starting point for comparing valuation.

Investors use P/E ratios because stock prices alone can be misleading. A $20 stock is not necessarily cheaper than a $200 stock. What matters is how the price compares with the company’s earnings, growth potential, financial strength, and risk.

There are two common types of P/E ratios:

  • Trailing P/E: Uses earnings from the most recent 12-month period.
  • Forward P/E: Uses analyst or company estimates of future earnings.

Trailing P/E is based on reported results, so it is backward-looking. Forward P/E is based on expectations, so it can change quickly if forecasts are revised.

How to calculate a P/E ratio

The basic formula is:

P/E ratio = Share price / Earnings per share

Earnings per share, or EPS, is the portion of a company’s profit assigned to each share of common stock. A simplified EPS formula is:

EPS = Net income / Shares outstanding

In practice, investors often use diluted EPS, which accounts for potential shares from stock options, convertible securities, and other instruments. For beginners, the key idea is that EPS measures profit per share.

Worked example 1: A basic P/E calculation

Imagine a company’s stock trades at $50 per share. Its earnings per share over the past year were $5.

Using the formula:

  • Share price: $50
  • EPS: $5
  • P/E ratio: $50 / $5 = 10

This company has a P/E ratio of 10. Investors are paying 10 times the company’s annual earnings per share.

Worked example 2: Same price, different earnings

Now imagine another company also trades at $50 per share, but its EPS is only $1.

  • Share price: $50
  • EPS: $1
  • P/E ratio: $50 / $1 = 50

Even though both stocks trade at the same price, the second stock is much more expensive relative to earnings. Its P/E ratio is 50, compared with 10 for the first company.

This is why the P/E ratio is useful. It helps investors look beyond the sticker price of a stock.

How investors interpret P/E ratios

A high P/E ratio often means investors expect strong future growth. They may be willing to pay more today because they believe earnings will rise over time. This is common for fast-growing technology, healthcare, or consumer companies.

A low P/E ratio may suggest a stock is cheaper relative to earnings. It can attract value investors looking for overlooked companies. However, a low P/E can also be a warning sign if the market expects earnings to decline.

The most useful way to interpret a P/E ratio is by comparison. Investors often compare a stock’s P/E ratio with:

  • Its own historical average
  • Competitors in the same industry
  • The broader stock market
  • Expected earnings growth
  • The company’s balance sheet and business quality

Worked example 3: Comparing two companies

Suppose Company A has a P/E ratio of 12 and Company B has a P/E ratio of 30. At first glance, Company A looks cheaper.

But assume Company A is growing slowly, has high debt, and faces declining demand. Company B is growing faster, has strong profit margins, and operates in a market with long-term demand. In that case, Company B’s higher P/E ratio may be justified.

This is the heart of stock valuation: a P/E ratio is a clue, not a final answer.

A common mistake is assuming that low P/E always means undervalued and high P/E always means overvalued. In reality, valuation depends on earnings quality, growth, risk, and investor expectations.

Limitations of the P/E ratio

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

First, it does not work well for companies with no earnings. If a company is losing money, EPS is negative, and the P/E ratio may be meaningless or not reported.

Second, earnings can be affected by one-time events. A company may report unusually high profit because of an asset sale, tax benefit, or accounting gain. That can make the P/E look artificially low. The opposite can happen if one-time charges reduce earnings.

Third, P/E ratios vary by industry. A utility company, bank, retailer, software company, and biotech firm may deserve very different valuation multiples. Comparing P/E ratios across unrelated industries can lead to poor conclusions.

Fourth, the P/E ratio does not show debt. Two companies may have the same P/E ratio, but one may carry much more debt. In that case, the risk profile is very different.

Finally, the P/E ratio does not directly measure cash flow. Earnings are based on accounting rules, while cash flow shows how much money a business actually generates. Many investors also review free cash flow, profit margins, return on capital, and the balance sheet.

For cyclical companies, such as commodity producers or manufacturers, P/E ratios can be especially tricky. Earnings may be high near the top of a cycle, making the stock look cheap just before profits fall. Earnings may be low near the bottom of a cycle, making the stock look expensive just before profits recover.

FAQ

What is 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, debt level, and risk. A mature company with slow growth may trade at a lower P/E, while a faster-growing company may trade at a higher P/E. The best approach is to compare the ratio with similar companies and the company’s own history.

Is a lower P/E ratio always better?

No. A lower P/E ratio can mean a stock is undervalued, but it can also mean investors expect trouble. The company may be facing falling profits, weak demand, legal risk, heavy debt, or poor management. A low P/E is worth investigating, not automatically buying.

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

Trailing P/E uses earnings that have already been reported, usually over the last 12 months. Forward P/E uses expected 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 pessimistic.

The bottom line

The P/E ratio is one of the simplest ways to compare a stock’s price with its earnings. It answers a basic valuation question: how much are investors paying for each dollar of profit?

For beginners, the formula is easy: divide the share price by earnings per share. A $50 stock with $5 in EPS has a P/E of 10, while a $50 stock with $1 in EPS has a P/E of 50.

Still, the P/E ratio should never be used alone. It is most powerful when combined with growth expectations, industry comparisons, earnings quality, debt analysis, and cash flow. Used carefully, it can help investors make more informed decisions and avoid judging a stock by price alone.