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 valuation examples for beginners.
Published August 2, 2026
The price-to-earnings ratio is one of the first valuation tools many investors learn because it connects a company’s share price to its profits. If you have ever wondered what is a P/E ratio and how it can help you compare stocks, the key is understanding both the formula and its limits.
What is a P/E ratio?
A P/E ratio, short for price-to-earnings ratio, measures how much investors are paying for each dollar of a company’s earnings. In simple terms, it compares a stock’s market price with the company’s earnings per share, or EPS.
The basic formula is:
P/E ratio = Share price ÷ Earnings per share
If a stock trades at $50 and the company earns $5 per share, the 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 gives investors a quick way to think about valuation. A stock with a higher P/E may be priced for strong growth, while a stock with a lower P/E may be cheaper, slower-growing, cyclical, or facing business challenges.
However, the P/E ratio is not a complete investment thesis. It does not tell you whether earnings are rising or falling, how much debt a company carries, or whether profits are sustainable. It is best used as a starting point, not a final verdict.
How to calculate a P/E ratio
To calculate a P/E ratio, you need two inputs: the current stock price and earnings per share. EPS is usually reported on a company’s income statement and is also shown on most financial websites.
There are two common types of P/E ratios:
- Trailing P/E: Uses earnings from the past 12 months. This is based on reported results.
- Forward P/E: Uses estimated earnings for the next 12 months. This depends on forecasts and may change.
Here is a simple worked example:
Suppose Company A trades at $40 per share and reported $2 in earnings per share over the last 12 months.
P/E = $40 ÷ $2 = 20
Company A has a trailing P/E ratio of 20. Investors are paying 20 times its recent annual earnings.
Now suppose analysts expect Company A to earn $2.50 per share next year.
Forward P/E = $40 ÷ $2.50 = 16
The forward P/E is lower because expected earnings are higher. This can happen when investors believe a company’s profits will grow. But because forward earnings are estimates, they can be wrong.
If a company has no earnings, or negative earnings, the P/E ratio may be meaningless. In those cases, investors often use other metrics such as price-to-sales, free cash flow, or enterprise value ratios.
How investors interpret high and low P/E ratios
A high or low P/E ratio is not automatically good or bad. Interpretation depends on the company’s growth prospects, industry, balance sheet, profit quality, and investor expectations.
A high P/E ratio may suggest:
- Investors expect faster future earnings growth
- The company has strong competitive advantages
- The stock may be expensive if growth disappoints
- Market sentiment is optimistic
A low P/E ratio may suggest:
- The stock is undervalued relative to earnings
- Investors expect slow or declining growth
- The company operates in a cyclical or mature industry
- There may be risks not captured by the headline number
For example, a software company growing revenue quickly may trade at a higher P/E than a utility because investors expect more future growth. A bank, retailer, energy producer, or industrial company may trade at a lower P/E because earnings can be more tied to economic cycles, interest rates, or commodity prices.
This is why comparing P/E ratios across unrelated industries can be misleading. A P/E of 30 might be normal for one type of business and expensive for another. The most useful comparisons are usually against:
- The company’s own historical P/E range
- Direct competitors in the same industry
- The broader market average
- Expected earnings growth
One common mistake is assuming a low P/E always means a bargain. Sometimes a stock has a low P/E because earnings are temporarily high, the business is shrinking, or investors expect trouble ahead. This is sometimes called a “value trap.”
Worked examples: comparing two stocks
Let’s compare two hypothetical companies in the same industry.
Company B trades at $60 per share and earns $3 per share.
P/E = $60 ÷ $3 = 20
Company C trades at $45 per share and earns $5 per share.
P/E = $45 ÷ $5 = 9
At first glance, Company C looks cheaper because its P/E ratio is 9, compared with Company B’s P/E of 20. But the next question is: why?
Suppose Company B is growing earnings quickly, has little debt, and is gaining market share. Investors may be willing to pay a higher P/E because they believe future profits will be much larger.
Now suppose Company C’s earnings are falling, its debt is rising, and its main product is losing demand. Its low P/E may reflect higher risk rather than an obvious bargain.
Here is another example using growth expectations.
Company D has a P/E of 25 and is expected to grow earnings steadily.
Company E has a P/E of 12 but earnings are expected to decline.
Company D may still be the better investment if its future earnings justify the higher valuation. Company E may be cheaper on today’s numbers but less attractive if profits weaken.
This is why many investors combine the P/E ratio with other questions:
- Are earnings growing consistently?
- Are profit margins stable?
- Does the company produce strong free cash flow?
- Is debt manageable?
- Is management reinvesting well?
- Are expectations already too optimistic?
Some investors also look at the PEG ratio, which compares the P/E ratio with expected earnings growth. While useful, the PEG ratio also relies on forecasts, so it should be treated with caution.
FAQ
What is a good P/E ratio?
There is no universal “good” P/E ratio. A reasonable P/E depends on the industry, growth rate, interest-rate environment, profit stability, and risk level. A lower P/E can signal value, but it can also signal weaker prospects. A higher P/E can be justified by strong growth, but it leaves less room for disappointment.
Is a negative P/E ratio useful?
A negative P/E ratio occurs when a company reports negative earnings. In practice, investors usually treat the P/E ratio as not meaningful in this situation. For unprofitable companies, other measures such as revenue growth, gross margin, cash burn, free cash flow potential, or balance-sheet strength may be more useful.
Should beginners buy only low P/E stocks?
No. Buying only low P/E stocks can lead investors into companies with declining earnings or serious business risks. Beginners should use the P/E ratio alongside other valuation and quality measures, including revenue trends, margins, debt, cash flow, competitive position, and long-term growth prospects.
The bottom line
A P/E ratio tells you how much investors are paying for a company’s earnings. It is calculated by dividing the stock price by earnings per share, and it can be based on either past earnings or forecast earnings.
For beginners, the P/E ratio is useful because it makes stock valuation easier to compare. But it should never be used in isolation. A low P/E does not always mean a stock is cheap, and a high P/E does not always mean a stock is overpriced.
The smartest way to use the P/E ratio is as a first filter. Compare companies within the same industry, consider earnings growth and business quality, and ask whether the current valuation makes sense given the company’s future prospects.