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, forward, and industry comparisons to value stocks with simple examples.
Published October 22, 2026
If you are asking what is a P/E ratio, it is one of the most common ways investors compare a stock price with the profits a company earns. The price-to-earnings ratio can help you judge whether a stock looks cheap, expensive, or fairly valued, but it works best when used with context.
How the P/E ratio works
The P/E ratio, short for price-to-earnings ratio, compares a company’s share price with its earnings per share, or EPS. In plain English, it tells you how much investors are willing to pay for each dollar of company earnings.
The basic formula is:
P/E ratio = Share price ÷ Earnings per share
For example, if a stock trades at $50 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 can also be viewed as a market expectation indicator. A higher P/E may mean investors expect faster growth, stronger profit margins, or a more durable business. A lower P/E may mean the stock is overlooked, slow-growing, cyclical, risky, or facing temporary problems.
There are two common versions:
- Trailing P/E: Uses earnings from the past 12 months. This is based on reported results.
- Forward P/E: Uses analysts’ expected earnings for the next 12 months. This depends on forecasts, which can be wrong.
Neither version is automatically better. Trailing P/E is grounded in actual performance, while forward P/E may better reflect what investors think the business will earn in the future.
Worked examples: calculating P/E
Let’s walk through a few simple examples using hypothetical companies.
Example 1: A basic P/E calculation
Suppose Company A trades at $40 per share and reports earnings per share of $4.
P/E = $40 ÷ $4 = 10
Company A has a P/E ratio of 10. If everything else stayed the same, investors are paying 10 times the company’s annual earnings.
Example 2: Same price, lower earnings
Company B also trades at $40 per share, but it earns only $2 per share.
P/E = $40 ÷ $2 = 20
Company B has a P/E ratio of 20. Even though both stocks have the same share price, Company B is more expensive relative to its earnings.
This is an important beginner lesson: a lower share price does not automatically mean a stock is cheaper. A $20 stock can be expensive if its earnings are tiny, while a $200 stock can be reasonably valued if earnings are high.
Example 3: Same P/E, different stock prices
Company C trades at $100 and earns $10 per share.
P/E = $100 ÷ $10 = 10
Company D trades at $25 and earns $2.50 per share.
P/E = $25 ÷ $2.50 = 10
Both stocks have the same P/E ratio, even though one share price is four times higher than the other. That is why investors focus on valuation ratios rather than share price alone.
How investors use P/E ratios
The P/E ratio is useful because it gives investors a quick way to compare valuation. But the comparison only makes sense when the companies are similar enough.
Common ways investors use P/E include:
- Comparing a stock with its own history: If a company usually trades around a certain P/E range, a much higher or lower reading may deserve further research.
- Comparing companies in the same industry: A bank, retailer, software company, and utility can have very different normal P/E ranges.
- Evaluating growth expectations: Faster-growing companies often trade at higher P/E ratios because investors expect earnings to rise.
- Screening for potential value stocks: Low P/E stocks may be candidates for deeper analysis, though low does not always mean attractive.
Imagine two companies in the same industry. Company E has a P/E of 12, while Company F has a P/E of 30. At first glance, Company E looks cheaper. But if Company F is growing earnings much faster, has stronger margins, and carries less debt, investors may be willing to pay the higher multiple.
That is why P/E is a starting point, not a final verdict. It answers one question: how much are investors paying for current or expected earnings? It does not answer whether those earnings are stable, improving, or at risk.
Common P/E ratio pitfalls
A beginner mistake is assuming a low P/E is always good and a high P/E is always bad. The truth is more nuanced.
A low P/E can mean a stock is undervalued, but it can also signal trouble. Earnings may be near a cyclical peak, the company may be losing market share, debt may be high, or investors may expect profits to fall.
A high P/E can mean a stock is overvalued, but it may also reflect a high-quality company with strong growth prospects, recurring revenue, valuable brands, or unusually high returns on capital.
There are also situations where the P/E ratio is not very helpful:
- Negative earnings: If a company is losing money, the P/E ratio may be meaningless or unavailable.
- One-time gains or losses: A legal settlement, asset sale, restructuring charge, or tax item can distort earnings.
- Cyclical businesses: Earnings for commodity producers, automakers, and some industrial companies can swing sharply over the business cycle.
- Different accounting methods: Earnings can be affected by non-cash charges, depreciation, and accounting assumptions.
- High-growth companies: Young businesses may reinvest heavily, reducing current earnings while aiming for future growth.
To get a fuller picture, many investors combine P/E with other metrics, such as revenue growth, profit margins, free cash flow, debt levels, return on equity, and dividend yield. The goal is to understand not just the multiple, but the quality and durability of the earnings behind it.
FAQ
What is a good P/E ratio?
There is no universal good P/E ratio. A good P/E depends on the company’s industry, growth rate, balance sheet, profitability, and the broader market environment. A mature company with slow growth may deserve a lower P/E, while a company growing earnings quickly may justify a higher one.
For beginners, the best approach is to compare a stock’s P/E with close peers and with its own historical range. Then ask whether the company’s future earnings outlook supports that valuation.
Is a lower P/E ratio always better?
No. A lower P/E can indicate a bargain, but it can also be a warning sign. Investors may assign a low multiple because they expect earnings to decline, because the business is risky, or because the company faces competitive pressure.
A low P/E stock that keeps losing earnings power can turn into a value trap. That is why it is important to study the business, not just the ratio.
What is the difference between trailing P/E and forward P/E?
Trailing P/E uses earnings from the last 12 months, so it reflects what the company has already reported. Forward P/E uses estimated earnings for the next 12 months, so it reflects expectations about the future.
Forward P/E can be useful when earnings are changing quickly, but it relies on forecasts. If estimates are too optimistic or too conservative, the forward P/E can give a misleading impression.
The bottom line
The P/E ratio is a simple but powerful valuation tool that compares a stock’s price with the company’s earnings per share. It helps investors understand how much the market is willing to pay for a dollar of earnings.
For beginners, the key is to use P/E as a starting point. Calculate it, compare it with similar companies, consider growth and risk, and look at earnings quality. A stock with a low P/E is not automatically cheap, and a stock with a high P/E is not automatically overpriced. The best investment decisions come from combining valuation with a clear understanding of the business.