What Is a P/E Ratio? Beginner Guide With Worked Examples
Learn what is a P/E ratio, how to calculate it, and how investors use trailing and forward P/E with simple stock examples and key limitations.
Published November 5, 2026
The price-to-earnings ratio, usually called the P/E ratio, is one of the first valuation metrics many investors learn. It offers a quick way to compare a stock's price with the profits the company generates, but it only tells part of the story.
What is a P/E ratio?
A P/E ratio compares a company's stock price with its earnings per share, or EPS. In plain English, it shows how much investors are paying for each dollar of a company's annual earnings.
If a stock has a P/E ratio of 20, investors are paying $20 for every $1 of earnings per share. That does not mean the stock will return $20, nor does it mean the investment is automatically good or bad. It simply describes the relationship between price and earnings.
The P/E ratio is popular because it is easy to understand and widely available on brokerage platforms, financial websites, and company research pages. Investors use it to compare:
- One company with another in the same industry
- A stock's current valuation with its own historical average
- Broad market indexes with prior periods
- Growth stocks versus value stocks
However, a P/E ratio should not be used in isolation. A company can look expensive because investors expect strong growth, or it can look cheap because its business is weakening. The number is a starting point, not a final verdict.
How to calculate a P/E ratio
The basic P/E ratio formula is:
P/E ratio = stock price ÷ earnings per share
Earnings per share is the portion of a company's profit allocated to each outstanding share of common stock. Public companies report EPS in their financial statements, and analysts also estimate future EPS.
There are two common versions of P/E:
Trailing P/E
Trailing P/E uses earnings from the past 12 months. It is based on actual reported results, which makes it grounded in real financial performance. The weakness is that the past may not reflect the future, especially for cyclical companies or businesses going through a major change.
Forward P/E
Forward P/E uses expected earnings, often based on analyst estimates for the next fiscal year or next 12 months. It can be useful for companies growing quickly or recovering from a downturn. The drawback is that estimates can be wrong, sometimes by a wide margin.
Here is the key difference:
- Trailing P/E asks: What am I paying for the earnings the company already produced?
- Forward P/E asks: What am I paying for the earnings the company is expected to produce?
Both can be useful, but both require context.
Worked examples: comparing P/E ratios
Let's walk through a few simple examples to see how the P/E ratio works.
Example 1: Basic P/E calculation
Suppose a hypothetical company has:
- Stock price: $50
- Earnings per share: $5
Using the formula:
P/E ratio = $50 ÷ $5 = 10
This stock trades at 10 times earnings. Investors are paying $10 for each $1 of annual EPS.
Now suppose another hypothetical company trades at $50 but earns only $2.50 per share:
P/E ratio = $50 ÷ $2.50 = 20
Both stocks have the same share price, but the second company has a higher P/E because it earns less per share. This is why share price alone does not tell you whether a stock is expensive or cheap.
Example 2: Same earnings, different stock prices
Imagine two companies in the same industry:
- Company A: stock price of $30, EPS of $3
- Company B: stock price of $60, EPS of $3
Company A's P/E is:
$30 ÷ $3 = 10
Company B's P/E is:
$60 ÷ $3 = 20
Company B trades at a higher valuation relative to earnings. That might be justified if Company B has faster growth, stronger margins, better management, lower debt, or a more durable competitive advantage. If not, investors may decide Company A offers better value.
Example 3: Why a low P/E can be misleading
Suppose a retailer trades at a low P/E because earnings were unusually strong last year. If profits are expected to fall due to weaker demand, higher costs, or increased competition, the trailing P/E may make the stock look cheaper than it really is.
On the other hand, a fast-growing software company might have a high P/E because investors expect earnings to compound over many years. The high P/E may still be risky, but it is not automatically irrational.
The lesson: always ask why the P/E ratio is high or low.
How investors use and misuse the P/E ratio
A P/E ratio is most useful when comparing similar companies. Comparing a bank to a semiconductor company, or a utility to a biotech stock, can lead to poor conclusions because different industries have different profit profiles, growth rates, and risk levels.
Investors often use P/E ratios in several ways:
- Relative valuation: Is this company cheaper or more expensive than peers?
- Historical valuation: Is the stock trading above or below its own typical range?
- Market sentiment: Are investors willing to pay more for future earnings?
- Growth expectations: Does the valuation imply strong future profit growth?
Still, there are important limitations.
First, the P/E ratio does not work well when a company has no earnings or negative earnings. In those cases, the ratio may be meaningless or unavailable.
Second, earnings can be affected by one-time items, accounting choices, tax changes, asset sales, or restructuring charges. Adjusted earnings may provide additional insight, but investors should understand what has been adjusted and why.
Third, P/E ignores debt. Two companies can have the same P/E, but one may carry far more leverage. A company with heavy debt can be riskier even if its P/E looks attractive.
Fourth, P/E does not capture cash flow quality. Some companies report accounting profits but generate weak free cash flow. Others produce strong cash flow even when reported earnings are temporarily depressed.
For a fuller picture, investors often combine P/E with other metrics, such as:
- Revenue growth
- Profit margins
- Return on equity
- Free cash flow
- Debt-to-equity ratio
- Dividend yield
- Price-to-sales ratio
- Enterprise value to EBITDA
The P/E ratio is helpful, but it is only one tool in a broader research process.
FAQ
Is a high P/E ratio good or bad?
A high P/E ratio is not automatically good or bad. It usually means investors are paying a premium for the company's earnings, often because they expect faster growth, higher quality, or lower risk. But if those expectations are too optimistic, a high-P/E stock can fall sharply when results disappoint.
Is a low P/E ratio always a bargain?
No. A low P/E ratio may signal an undervalued stock, but it can also be a warning sign. The market may expect earnings to decline, the company may face structural problems, or recent profits may not be sustainable. Beginners should investigate the reason behind the low valuation before buying.
What is a good P/E ratio for beginners to look for?
There is no single good P/E ratio that applies to every stock. A reasonable P/E depends on the company's industry, growth rate, balance sheet strength, profit stability, and interest-rate environment. Beginners should compare a stock's P/E with similar companies and with the company's own history.
The bottom line
So, what is a P/E ratio? It is a valuation metric that compares a company's stock price with its earnings per share, helping investors understand how much they are paying for a dollar of profit.
A lower P/E can suggest better value, while a higher P/E can suggest stronger growth expectations, but neither conclusion is guaranteed. The best use of the P/E ratio is as a first step: compare similar companies, check whether earnings are sustainable, review growth prospects, and consider debt and cash flow before making an investment decision.