What Is a P/E Ratio? A Beginner Guide With Worked Examples
Learn what is a P/E ratio, how to calculate it, what high and low P/E ratios can mean, and how beginners can use it with worked stock examples.
Published September 23, 2026
A P/E ratio is one of the most common valuation tools investors use to compare stocks. If you have ever wondered what is a P/E ratio, the simple answer is that it shows how much investors are paying for each dollar of a company’s earnings.
What is a P/E ratio?
The price-to-earnings ratio, usually shortened to P/E ratio, compares a company’s stock price with its earnings per share. It is a quick way to ask: how expensive is this stock compared with the profits the company generates?
The basic formula is:
P/E ratio = Stock price ÷ Earnings per share
Earnings per share, or EPS, is the portion of a company’s profit assigned to each outstanding share of common stock. If a company earns more profit per share, its P/E ratio may fall unless the stock price rises too.
A P/E ratio does not tell you whether a stock will go up or down. It also does not prove that a stock is cheap or expensive by itself. Instead, it gives investors a starting point for comparing valuation across companies, industries, and market expectations.
There are two common versions:
- Trailing P/E: Uses earnings from the most recent completed period, often the last 12 months.
- Forward P/E: Uses analyst or company expectations for future earnings.
Trailing P/E is based on reported results, while forward P/E depends on forecasts. Beginners should understand both, because a stock can look expensive on trailing earnings but more reasonable if profits are expected to grow.
How to calculate a P/E ratio: worked examples
Let’s walk through a few simple examples using hypothetical companies.
Example 1: A basic P/E calculation
Suppose Company A trades at $50 per share and has earnings per share of $5.
Using the formula:
P/E ratio = $50 ÷ $5 = 10
Company A has a P/E ratio of 10. This means investors are paying $10 for every $1 of annual earnings per share.
Another way to think about it: if earnings stayed the same and were fully attributable to shareholders, the current price equals 10 times one year’s earnings. In the real world, companies may reinvest earnings, pay dividends, take on debt, or experience changing profits, so the ratio is only a shortcut.
Example 2: Comparing two stocks
Now compare two hypothetical companies in the same industry:
- Company A: Stock price $50, EPS $5, P/E = 10
- Company B: Stock price $80, EPS $4, P/E = 20
Company B has the higher stock price, but that alone does not make it more expensive. The P/E ratio shows that Company B trades at 20 times earnings, while Company A trades at 10 times earnings.
Does that mean Company A is automatically the better buy? Not necessarily. Company B may be growing faster, have stronger margins, own better technology, or face lower business risk. The P/E ratio highlights the difference in valuation, but you still need to ask why the market is willing to pay more for one company’s earnings.
Example 3: What happens when earnings change?
Imagine Company C trades at $60 per share and reports EPS of $3.
P/E ratio = $60 ÷ $3 = 20
Now suppose earnings improve and EPS rises to $6, while the stock price stays at $60.
P/E ratio = $60 ÷ $6 = 10
The stock did not get cheaper in price, but it became cheaper relative to earnings. This is why earnings growth matters so much to valuation. A company can grow into its P/E ratio if profits rise over time.
How to interpret high and low P/E ratios
A high P/E ratio usually means investors are willing to pay more for each dollar of earnings. This can happen when the market expects strong future growth, high-quality profits, durable competitive advantages, or lower perceived risk.
A low P/E ratio may suggest a stock is cheaper relative to its earnings. However, it can also signal concern. Investors may expect profits to decline, the business may be cyclical, debt levels may be high, or the company may face disruption.
Here is a beginner-friendly way to frame it:
- High P/E: The market may expect growth, but expectations could be demanding.
- Low P/E: The stock may be undervalued, but there may be a reason for the discount.
- Similar P/E to peers: The market may view the company as fairly valued relative to its industry.
- Negative or no P/E: The company has no positive earnings, so the ratio is not meaningful.
Industry context is essential. A mature utility, a fast-growing software company, a bank, and a cyclical manufacturer may all trade at different typical P/E ranges because their growth rates, risks, capital needs, and profit stability differ.
For beginners, the best comparison is usually between companies that operate in the same sector and have similar business models. Comparing a high-growth technology company with a slow-growth commodity producer can lead to misleading conclusions.
Limits of the P/E ratio and common mistakes
The P/E ratio is useful, but it has several limitations.
First, earnings can be temporarily high or low. A company may report unusually strong profits during a boom or weak profits during a downturn. In cyclical industries, a low P/E can appear near peak earnings, just before profits fall.
Second, accounting earnings are not the same as cash flow. A company can report profits but still struggle to generate cash. Investors often review free cash flow, operating margins, and balance sheet strength alongside the P/E ratio.
Third, debt matters. Two companies may have the same P/E ratio, but one may carry much more debt. Higher debt can increase financial risk and reduce flexibility, especially when interest costs rise or profits weaken.
Fourth, future growth is uncertain. A forward P/E depends on forecasts, and forecasts can be wrong. If expected earnings do not materialize, a stock that looked reasonably valued may become expensive.
Common beginner mistakes include:
- Buying a stock only because the P/E ratio is low.
- Avoiding a stock only because the P/E ratio is high.
- Comparing P/E ratios across unrelated industries.
- Ignoring earnings quality, debt, and growth prospects.
- Using one year of earnings without considering the business cycle.
A stronger approach is to combine the P/E ratio with other questions: Is revenue growing? Are margins stable? Does the company generate cash? Is debt manageable? Does management allocate capital well? Is the stock priced reasonably compared with its own history and peers?
FAQ
What is a good P/E ratio?
There is no universal good P/E ratio. A good P/E depends on the industry, the company’s growth rate, profit quality, balance sheet, and market conditions. A lower P/E may be attractive if earnings are stable, but it may be a warning sign if profits are expected to decline. A higher P/E may be reasonable for a company with durable growth, but risky if expectations are too optimistic.
Is a lower P/E ratio always better?
No. A lower P/E ratio can indicate value, but it can also indicate risk. The market may be pricing in weaker future earnings, legal issues, competitive pressure, high debt, or a cyclical downturn. Beginners should treat a low P/E as a reason to investigate further, not as an automatic buy signal.
What if a company has no P/E ratio?
A company may have no meaningful P/E ratio if it has negative earnings or no reported profit. In that case, investors may use other valuation measures, such as price-to-sales, enterprise value-to-revenue, or cash flow-based metrics. These alternatives can be useful, but they also require caution because unprofitable companies may carry higher risk.
The bottom line
The P/E ratio is a simple valuation metric that compares a company’s stock price with its earnings per share. It helps beginners understand how much investors are paying for each dollar of profit and gives a useful starting point for comparing similar stocks.
Still, the P/E ratio should never be used in isolation. A high P/E can reflect strong growth expectations, while a low P/E can reflect either opportunity or trouble. The best use of the P/E ratio is as part of a broader stock research process that considers earnings quality, growth, debt, cash flow, industry trends, and valuation versus comparable companies.