All guides

What is a P/E ratio? Meaning, formula, and stock examples

Learn what is a P/E ratio, how to calculate it, and how beginners can use worked examples to compare stock valuations with context before investing.

Published September 20, 2026

If you have ever wondered what is a P/E ratio, the short answer is that it compares a company’s stock price with the earnings it generates per share. For beginners, the price-to-earnings ratio is one of the most common valuation tools because it turns a stock price into a number that can be compared with other companies, sectors, or the same company over time.

What is a P/E ratio?

The P/E ratio, or price-to-earnings ratio, measures how much investors are paying for each dollar of a company’s earnings. A P/E of 20 means the market is valuing the stock at 20 times its earnings per share.

In plain English, the ratio helps answer a simple question: how expensive is this stock relative to the profits the company produces?

That distinction matters because a stock price alone does not tell you much. A $20 stock is not automatically cheaper than a $200 stock. If the $200 stock earns far more per share, it could have a lower valuation than the $20 stock.

Investors often use P/E ratios to:

  • Compare companies in the same industry
  • Judge whether a stock looks expensive or inexpensive relative to earnings
  • Understand how much growth investors may be expecting
  • Track whether market sentiment toward a company is changing

Still, the P/E ratio is only a starting point. It does not tell you everything about debt, cash flow, competitive advantages, management quality, or future risks.

How to calculate P/E ratio: the formula

The basic formula is:

P/E ratio = Stock price ÷ Earnings per share (EPS)

Earnings per share is a company’s profit divided by the number of shares outstanding. You can usually find EPS in a company’s financial statements, brokerage research tools, or financial data websites.

There are two common versions of the P/E ratio:

  • Trailing P/E: Uses earnings from the most recent reported 12-month period.
  • Forward P/E: Uses analysts’ estimates of future earnings.

Trailing P/E is based on reported results, so it reflects what the company has already earned. Forward P/E can be useful for fast-growing or recovering companies, but it depends on forecasts that may prove too optimistic or too conservative.

Simple calculation example

Suppose a stock trades at $60 per share and the company earned $3 per share over the last 12 months.

P/E ratio = $60 ÷ $3 = 20

That means investors are paying $20 for every $1 of annual earnings per share. Another way to say it is that the stock trades at 20 times earnings.

Now suppose the same stock rises to $75, while EPS stays at $3.

P/E ratio = $75 ÷ $3 = 25

The company has not become more profitable in this example, but the stock has become more expensive relative to its earnings.

Worked examples: comparing two stocks

P/E ratios are most useful when they are compared with relevant peers. Comparing a software company with a utility company may not tell you much because their growth rates, margins, and business risks can be very different.

Example 1: Two companies in the same industry

Imagine two hypothetical retailers:

  • Company A: Stock price of $40, EPS of $4
  • Company B: Stock price of $45, EPS of $3

Company A’s P/E ratio is:

$40 ÷ $4 = 10

Company B’s P/E ratio is:

$45 ÷ $3 = 15

Company B has the higher stock price and the higher P/E ratio. Based only on this metric, investors are paying more for each dollar of Company B’s earnings.

But that does not automatically mean Company A is the better investment. Company B might be growing faster, have a stronger brand, carry less debt, or operate with better margins. The P/E ratio identifies a valuation difference; it does not explain the whole reason for it.

Example 2: A high P/E stock

Now consider a hypothetical technology company trading at $100 per share with $2 in EPS.

P/E ratio = $100 ÷ $2 = 50

A P/E of 50 is high compared with many mature businesses. That may suggest investors expect strong future growth. If earnings rise quickly, today’s high P/E could become more reasonable over time.

However, a high P/E also leaves less room for disappointment. If growth slows, margins shrink, or forecasts are reduced, the stock price may fall even if the company remains profitable.

Example 3: A low P/E stock

Suppose another company trades at $30 per share and earns $5 per share.

P/E ratio = $30 ÷ $5 = 6

A P/E of 6 may look cheap, but beginners should ask why the market is applying such a low multiple. The company could be facing declining revenue, legal problems, heavy debt, weak demand, or a cyclical downturn.

A low P/E can signal value, but it can also be a warning sign known as a value trap.

How investors use the P/E ratio

The P/E ratio works best as part of a broader research process. Rather than asking whether a P/E is good or bad in isolation, ask what the ratio implies about expectations.

A higher P/E may be reasonable when a company has:

  • Faster expected earnings growth
  • High profit margins
  • Strong competitive advantages
  • Recurring revenue
  • A healthy balance sheet

A lower P/E may be reasonable when a company has:

  • Slower or declining growth
  • More cyclical earnings
  • Higher financial risk
  • Uncertain industry conditions
  • Weak investor confidence

It is also helpful to compare a company’s current P/E with its own historical range. If a stock usually trades at a premium to peers because of steady growth, a higher P/E may be normal for that business. If the ratio is far above its typical range, investors should understand what has changed.

The P/E ratio has limitations. It is less useful for companies with negative earnings because the ratio becomes meaningless or not applicable. It can also be distorted by one-time gains, write-downs, accounting changes, or unusually strong or weak economic conditions.

For that reason, many investors combine P/E with other measures such as revenue growth, free cash flow, debt levels, return on equity, dividend history, and the price-to-sales ratio.

FAQ

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

There is no universal good P/E ratio. A reasonable P/E depends on the company’s industry, growth prospects, earnings quality, balance sheet, and the overall market environment. A low P/E can be attractive if earnings are stable, but risky if profits are falling. A high P/E can be justified if growth is strong, but dangerous if expectations are too optimistic.

Is a high P/E ratio bad?

Not always. A high P/E ratio often means investors expect the company to grow earnings in the future. That can make sense for businesses with strong growth, durable competitive advantages, or expanding markets. The risk is that the stock may be priced for perfection, leaving it vulnerable if results disappoint.

Can a company have no P/E ratio?

Yes. If a company has negative earnings, the P/E ratio is usually not meaningful. In that case, investors may look at revenue growth, cash flow trends, gross margins, debt, and the company’s path to profitability. Early-stage companies, turnaround stocks, and highly cyclical businesses often require more than a simple P/E analysis.

The bottom line

The P/E ratio is a beginner-friendly valuation metric that compares a stock’s price with the company’s earnings per share. It helps investors see how much the market is paying for each dollar of profit and makes it easier to compare similar companies.

A simple formula, stock price divided by EPS, can reveal whether a stock trades at 10 times, 20 times, or 50 times earnings. But the number is not a buy or sell signal by itself.

Use the P/E ratio as a first step, not a final answer. The best investors look at the reasons behind the ratio, including growth, risk, earnings quality, debt, and industry conditions, before deciding whether a stock is truly attractive.