What Is a P/E Ratio? Beginner Guide With Worked Examples
Learn what is a P/E ratio, how to calculate it, why it matters, and how beginners can compare stocks using simple worked examples, step by step.
Published October 13, 2026
If you are new to stock analysis, one of the first questions you will 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.
What is a P/E ratio?
A P/E ratio, short for price-to-earnings ratio, shows how much investors are paying for each dollar of a company’s earnings. It is one of the most widely used stock valuation metrics because it connects the market price of a stock to the company’s profitability.
The basic formula is:
P/E ratio = Share price / Earnings per share
Earnings per share, often called EPS, is the portion of a company’s profit attributed to each outstanding share of common stock. EPS is usually reported in a company’s financial statements and can be calculated over different periods.
For example, if a stock trades at $40 and the company earned $4 per share over the relevant period, its P/E ratio is 10. In plain English, investors are paying $10 for every $1 of annual earnings.
A P/E ratio is not a complete answer to whether a stock is cheap or expensive. Instead, it is a starting point for comparing a company’s price with its earnings power.
How to calculate a P/E ratio step by step
Calculating a P/E ratio is straightforward if you have two inputs: the current share price and the company’s EPS.
Follow these steps:
- Find the share price. This is the current market price of one share.
- Find earnings per share. Use trailing EPS, forward EPS, or another clearly defined earnings figure.
- Divide price by EPS. The result is the P/E ratio.
Here is the formula again:
P/E ratio = Price per share / EPS
There are two common versions beginners should know:
Trailing P/E
Trailing P/E uses earnings from the past 12 months. Because it is based on reported results, it is grounded in historical data. The downside is that the past may not reflect what happens next, especially for cyclical businesses or fast-changing companies.
Forward P/E
Forward P/E uses expected earnings for a future period, often based on analyst estimates or company guidance. It can be useful when a company’s profits are rising or falling quickly, but it relies on forecasts that may turn out to be wrong.
When comparing stocks, make sure you know which P/E version you are using. A trailing P/E and a forward P/E can tell different stories.
Worked examples: reading P/E ratios in practice
Worked examples make the concept easier to understand. The numbers below are hypothetical and are meant for learning, not as recommendations.
Example 1: A lower P/E stock
Suppose Company A trades at $30 per share and has EPS of $3.
P/E ratio = $30 / $3 = 10
Company A has a P/E ratio of 10. That means investors are paying 10 times the company’s earnings per share.
A P/E of 10 may look inexpensive compared with a company trading at 25 times earnings. But a low P/E does not automatically mean the stock is a bargain. Investors may be worried about slow growth, declining profits, heavy debt, weak management, or industry disruption.
Example 2: A higher P/E stock
Suppose Company B trades at $60 per share and has EPS of $2.
P/E ratio = $60 / $2 = 30
Company B has a P/E ratio of 30. Investors are paying $30 for every $1 of earnings.
A higher P/E can mean the market expects faster future growth. It can also mean the stock is overpriced if the company fails to deliver that growth. High expectations can create risk because even a good business may disappoint if investors have already priced in strong results.
Example 3: Same price, different earnings
Now compare two stocks that both trade at $50:
- Company C earns $5 per share.
- Company D earns $1 per share.
Company C has a P/E of 10, while Company D has a P/E of 50.
The share prices are identical, but the valuations are very different. This is why beginners should avoid judging whether a stock is cheap or expensive based only on its dollar price. A $50 stock can be cheaper than a $10 stock if it produces much more profit per share.
How investors use the P/E ratio
Investors commonly use the P/E ratio to compare a stock against three benchmarks: its own history, its industry peers, and the broader market.
Comparing a company with its own history
If a company normally trades around a certain earnings multiple, a much higher or lower P/E may signal a change in expectations. A lower-than-usual P/E may reflect temporary pessimism, while a higher-than-usual P/E may reflect optimism about future growth.
Comparing companies in the same industry
P/E ratios are most useful when comparing similar businesses. A mature utility, a bank, a software firm, and a retailer may deserve very different valuation multiples because their growth rates, profit margins, risks, and capital needs differ.
For example, a slow-growing company with stable earnings may trade at a lower P/E than a company with rapid revenue growth and high margins. That difference does not automatically make one better than the other.
Checking expectations
A P/E ratio tells you what the market is implying about a company’s future. A high P/E often suggests investors expect earnings to grow. A low P/E often suggests investors expect limited growth or see higher risk.
The key question is whether those expectations are reasonable.
Limits of the P/E ratio beginners should know
The P/E ratio is useful, but it has important limitations.
First, it only works well when a company has positive earnings. If a company loses money, EPS is negative and the P/E ratio may be meaningless or not reported.
Second, earnings can be affected by one-time events. Asset sales, restructuring costs, tax changes, or unusual expenses can make EPS look unusually high or low. In those cases, investors may look at adjusted earnings, but adjusted figures should be reviewed carefully.
Third, P/E does not directly account for debt. Two companies with similar P/E ratios may have very different balance sheets. A heavily indebted company can be riskier than a debt-light competitor.
Fourth, P/E does not measure cash flow. Some businesses report accounting profits but generate limited free cash flow. Others may have strong cash generation that is not obvious from EPS alone.
Because of these limits, investors often combine P/E with other metrics, such as revenue growth, profit margins, debt levels, free cash flow, return on equity, and dividend history.
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 growth prospects, industry, financial strength, interest-rate environment, and business risk. A low P/E can be attractive, but it can also be a warning sign. A high P/E can be justified, but only if future earnings growth supports it.
Is a low P/E ratio always better?
No. A low P/E may mean a stock is undervalued, but it may also mean investors expect earnings to decline. Before assuming a low P/E is a bargain, look at the company’s revenue trends, profit margins, debt, competitive position, and management outlook.
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 use other measures, such as price-to-sales, enterprise value to revenue, cash flow metrics, or a review of the company’s path to profitability.
The bottom line
A P/E ratio is a beginner-friendly way to compare a stock’s price with its earnings. It helps answer the question of how much investors are paying for each dollar of profit, but it should never be used in isolation.
Use P/E as a screening tool, then dig deeper into growth, cash flow, debt, competitive advantages, and industry conditions. The best investors treat the P/E ratio as one piece of a larger valuation puzzle, not as a final verdict.