What Is a P/E Ratio? Beginner Guide With Stock Examples
Learn what is a P/E ratio, how to calculate it, and how investors use P/E ratios with simple stock examples, key limits, and comparison tips.
Published October 9, 2026
If you are learning how to value stocks, one of the first terms you will see is the price-to-earnings ratio, usually shortened to P/E ratio. This beginner guide explains what it means, how to calculate it, and how to use it with practical examples without treating it as a magic buy-or-sell signal.
What is a P/E ratio?
A P/E ratio compares a company’s stock price with the company’s earnings per share, or EPS. In plain English, it shows how much investors are willing to pay for each dollar of a company’s earnings.
The basic formula is:
P/E ratio = Stock price per share / Earnings per share
For example, if a stock trades at $50 per share 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.
The P/E ratio is popular because it turns two important pieces of information into one simple valuation metric:
- Price: what the market is currently charging for the stock
- Earnings: how much profit the company is generating for each share
A P/E ratio can help answer a beginner-friendly question: “Does this stock look expensive or cheap compared with its profits?” But the answer is not complete unless you also consider growth, business quality, debt, industry conditions, and risk.
How to calculate P/E ratio with worked examples
Let’s walk through a few examples using simple, made-up numbers.
Example 1: Basic P/E calculation
Suppose Company A has:
- Stock price: $40
- Earnings per share: $4
Using the formula:
$40 / $4 = 10
Company A has a P/E ratio of 10. Investors are paying 10 times the company’s earnings per share.
Example 2: Same price, different earnings
Now compare two companies with the same stock price:
- Company B stock price: $60, EPS: $3
- Company C stock price: $60, EPS: $6
Company B’s P/E ratio is:
$60 / $3 = 20
Company C’s P/E ratio is:
$60 / $6 = 10
Even though both stocks trade at $60, Company C has the lower P/E because it earns more per share. This is why stock price alone does not tell you whether a stock is “expensive.” A $20 stock can be expensive if earnings are very low, while a $200 stock can be reasonable if earnings are high.
Example 3: Same earnings, different prices
Now imagine two companies with the same EPS:
- Company D stock price: $30, EPS: $3
- Company E stock price: $75, EPS: $3
Company D’s P/E ratio is:
$30 / $3 = 10
Company E’s P/E ratio is:
$75 / $3 = 25
Here, investors are paying much more for the same current earnings at Company E. That may be justified if Company E is growing faster, has stronger margins, or has a better competitive position. If not, the higher P/E may signal an expensive valuation.
Trailing P/E vs. forward P/E
There are two common versions of the P/E ratio: trailing P/E and forward P/E.
Trailing P/E uses earnings that have already been reported, often over the most recent 12-month period. Because it is based on actual results, it is less speculative. However, it can look backward at a business that may be changing quickly.
Forward P/E uses expected future earnings, usually based on analyst estimates or company guidance. It can be useful because stock prices often reflect expectations about the future, not just the past. The drawback is that estimates can be wrong.
For example, suppose a stock trades at $80.
- Last year’s EPS was $4, so trailing P/E is $80 / $4 = 20
- Expected next-year EPS is $5, so forward P/E is $80 / $5 = 16
The forward P/E is lower because investors expect earnings to rise. That does not automatically make the stock cheap. It simply shows that the valuation depends on future profit growth actually happening.
Beginners should know which P/E they are looking at. A financial website may display trailing P/E, forward P/E, or both, and they can tell different stories.
What a high or low P/E ratio can mean
A high P/E ratio often means investors expect strong future growth. Companies with fast sales growth, high profit margins, durable competitive advantages, or large market opportunities may trade at higher P/E ratios.
But a high P/E can also mean the stock is overvalued. If future growth disappoints, investors may be unwilling to keep paying a premium price.
A low P/E ratio can mean a stock is undervalued. Investors may be overlooking a profitable company, especially if short-term concerns are temporary.
But a low P/E can also be a warning sign. The market may expect profits to decline, the company may face heavy debt, or the business may be in a cyclical downturn. In some cases, a stock looks cheap because earnings are near a temporary peak.
A useful rule for beginners is: compare P/E ratios within the same industry. A bank, software company, utility, retailer, and manufacturer may all deserve different valuation ranges because their growth rates, risks, and capital needs differ.
Also remember that a company with losses usually does not have a meaningful P/E ratio. If EPS is negative, dividing price by negative earnings does not provide a helpful valuation signal.
How investors use the P/E ratio
The P/E ratio is best used as a starting point, not a final verdict. It helps you quickly compare a stock’s price with its earnings, then decide what to research next.
Investors often use P/E ratios to:
- Compare a company with similar competitors
- Compare a stock with its own historical valuation range
- Check whether growth expectations seem realistic
- Screen for potentially undervalued or overvalued stocks
- Combine valuation analysis with earnings quality and balance sheet review
For example, assume two similar companies operate in the same industry:
- Company F has a P/E of 12 and slow revenue growth
- Company G has a P/E of 24 and much faster expected earnings growth
Company F may appear cheaper at first. But Company G could still be the better investment if its growth is durable and its business quality is stronger. The lower P/E is not automatically better.
On the other hand, if Company G’s growth is uncertain and Company F has stable earnings, strong cash flow, and a healthy balance sheet, the lower P/E may be attractive.
This is why many investors pair the P/E ratio with other measures, such as revenue growth, profit margins, free cash flow, return on equity, dividend history, and debt levels. The P/E ratio tells you what investors are paying for earnings, but it does not tell you everything about the business.
FAQ
Is a lower P/E ratio always better?
No. A lower P/E ratio can suggest a cheaper stock, but it can also reflect weak growth, business problems, high debt, or declining earnings. Always ask why the P/E is low before assuming the stock is a bargain.
What is a good P/E ratio for a stock?
There is no single “good” P/E ratio for every stock. A reasonable P/E depends on the company’s industry, growth rate, profitability, financial strength, and risk. The best comparisons are usually against similar companies and the company’s own history.
Can the P/E ratio be used for every company?
Not effectively. The P/E ratio is less useful for companies with negative earnings, highly cyclical earnings, or accounting profits that do not reflect cash flow well. In those cases, investors may look at other metrics such as price-to-sales, enterprise value to EBITDA, or free cash flow yield.
The bottom line
The P/E ratio is a simple valuation tool that answers a key question: how much are investors paying for each dollar of a company’s earnings? You calculate it by dividing the stock price per share by earnings per share.
For beginners, the P/E ratio is useful because it makes stock comparisons easier and shows whether a company’s valuation looks high or low relative to its profits. Still, it should not be used alone. A high P/E may be justified by strong growth, while a low P/E may signal either opportunity or trouble.
Use the P/E ratio as the first step in a broader research process. Compare similar companies, understand whether you are using trailing or forward earnings, and look closely at growth, cash flow, debt, and business quality before making an investment decision.