What Is the P/E Ratio? How to Calculate and Read It
In short
The price-to-earnings (P/E) ratio is a stock's share price divided by its earnings per share. It shows how many dollars investors pay for one dollar of a company's yearly profit. Trailing P/E uses the last twelve months of reported earnings; forward P/E uses analysts' estimates for the next fiscal year.
Screen stocks by P/E ratioOn this page
What is the P/E ratio?
The price-to-earnings ratio (P/E ratio) compares a company's share price with its earnings per share (EPS), the profit the company earned for each share over a year. It answers one simple question: how many dollars are investors paying today for one dollar of the company's yearly profit?
A P/E of 20 means the stock costs 20 times what the company earned per share over the last year. Put another way, if earnings stayed flat forever, it would take 20 years of profit to "pay back" the share price.
The P/E ratio is the most quoted valuation number in investing. It appears in news articles, analyst reports and every stock quote page, often written as a multiple such as 27.3x.
Why the P/E ratio matters
Share prices on their own say nothing about value. A $500 stock is not more expensive than a $50 stock if it earns ten times as much per share. The P/E ratio puts every stock on the same scale, so you can compare:
- A company with its own past. Is it valued higher or lower than it usually is?
- A company with its competitors. Does the market pay more for one bank's earnings than another's?
- A company with the market. Is the stock valued above or below a typical large company?
The P/E ratio also tells you what the market expects. A high P/E usually means investors expect profits to grow quickly, so they accept paying more for today's earnings. A low P/E usually means they expect slow growth, see more risk, or doubt that current earnings will last.
How to calculate the P/E ratio
The formula is:
P/E ratio = share price ÷ earnings per share
You can get the same answer with company totals: market capitalization ÷ net income (the value of all shares divided by the company's total yearly profit). The two match when the share count used for EPS matches the share count used for market cap.
Trailing P/E vs forward P/E
The difference is which earnings go in the bottom of the fraction:
| Trailing P/E | Forward P/E | |
|---|---|---|
| Earnings used | Actual reported EPS for the last twelve months | Analysts' average EPS estimate for the next fiscal year |
| Strength | Based on real results | Looks ahead, closer to what drives prices |
| Weakness | Backward-looking; one-off charges distort it | Estimates can be wrong, and are often revised |
When people say "the P/E ratio" without more detail, they usually mean the trailing P/E.
How bestshares.com calculates it
- PE Ratio (trailing): the latest share price divided by diluted EPS over the trailing twelve months (TTM), which is the sum of the last four reported quarters. Diluted EPS counts the extra shares that stock options and convertible securities could create, so it is the more conservative figure. If a company does not report diluted EPS, basic EPS is used. For companies that report in a foreign currency, the price is converted to that currency first.
- Forward PE: the share price divided by the analysts' average EPS estimate for the next fiscal year the company has not yet reported. When no EPS estimate exists, bestshares.com uses market cap divided by the average net income estimate instead. Forward PE is refreshed every weekday morning, so it uses that morning's price and can differ slightly from a calculation with the latest close.
- Losses: when TTM earnings are negative, the PE Ratio is shown as a negative number. When earnings are zero or the figures contradict each other, it is left blank.
- Ratios tab: the PE Ratio row on a stock's financial ratios uses the share price at the end of each period, not today's price. Use it to see how the valuation changed over the years.
Worked example: Microsoft in November 2026
Microsoft closed at $523.00 on November 12, 2026. Its last four reported quarters ran through September 30, 2026:
| Quarter ended | Diluted EPS |
|---|---|
| Dec 31, 2025 | $5.16 |
| Mar 31, 2026 | $4.27 |
| Jun 30, 2026 | $4.80 |
| Sep 30, 2026 | $4.92 |
| Trailing twelve months | $19.15 |
Trailing P/E = $523.00 ÷ $19.15 = 27.31. Investors were paying about $27 for each dollar Microsoft earned per share over the past year.
Earnings yield = $19.15 ÷ $523.00 = 3.66%, the same number turned upside down.
Forward P/E: Microsoft's fiscal year ends in June, and fiscal 2027 (ending June 30, 2027) is the next year it has not reported. Analysts' average EPS estimate for that year was $20.05, so the forward P/E is $523.00 ÷ $20.05 = 26.1. The statistics page showed 25.99, because the forward figure was refreshed that morning at a slightly lower price of about $521.
The forward P/E is lower than the trailing P/E because analysts expected EPS to rise from $19.15 to $20.05, about 4.7%. If those estimates come true and the price stays the same, the trailing P/E will drift down toward 26.
What is a good P/E ratio?
There is no universally good P/E. What looks normal depends on the industry, the company's growth and the level of interest rates. Some rough reference points:
- The overall market: the S&P 500 has averaged a P/E of roughly 15 to 20 over the long run, and has often traded above 20 in recent years.
- Banks, insurers and energy companies: often around 8 to 15, because their profits are cyclical or tied to interest rates and commodity prices.
- Consumer staples and utilities: often around 15 to 25, for steady but slow-growing profits.
- Fast-growing technology and health care companies: often 25 to 40 or more, because investors pay for expected growth.
Trailing P/E ratios on bestshares.com at the November 12, 2026 close show the spread:
| Stock | Trailing P/E | Forward P/E |
|---|---|---|
| JPMorgan Chase (JPM) | 14.38 | 13.91 |
| Microsoft (MSFT) | 27.31 | 25.99 |
| Coca-Cola (KO) | 28.65 | 29.21 |
| Apple (AAPL) | 39.56 | 37.75 |
Two habits make a P/E more meaningful:
- Compare like with like. Compare a bank with other banks, and a software company with other software companies.
- Weigh it against growth. A P/E of 30 for a company growing EPS 25% a year is very different from a P/E of 30 for one growing 3%. The PEG ratio (P/E ÷ expected EPS growth rate) builds this in.
A high or low P/E is never a signal on its own. It tells you what the market expects; your job is to decide whether those expectations are reasonable.
Limitations and common mistakes
- One-off items distort trailing P/E. Johnson & Johnson earned only $210 million in the quarter ended September 27, 2026, after about $6.3 billion of non-operating charges, versus more than $5 billion in each of the three quarters before. Its trailing P/E was 42.96 while its forward P/E was 25.23. When the two differ this much, look at the income statement to find out why.
- Forward estimates use a different kind of earnings. Analysts usually forecast adjusted EPS, which leaves out items such as restructuring costs, while trailing P/E uses reported (GAAP) EPS. A forward P/E can look lower partly for that reason.
- "Next fiscal year" can be mostly over. Forward PE uses the next fiscal year the company has not reported. For a company whose year ends in December, in November that is the current year, which is almost finished.
- Negative P/E is not cheap. A negative or very high P/E usually means earnings are near zero or below. Use price-to-sales or cash-flow ratios for those companies.
- Earnings can be shaped by accounting. Buybacks raise EPS without raising profit, and gains on asset sales can lift earnings for one year. Check free cash flow alongside earnings.
- Different sites show different P/Es. They may use basic instead of diluted EPS, the last fiscal year instead of the last twelve months, or a different price date. Check which definition you are looking at before comparing numbers from two sources.
Where to find the P/E ratio on bestshares.com
- Statistics page: every stock's statistics page shows PE Ratio, Forward PE, PEG Ratio and Forward PEG in the Valuation card, with EPS (Diluted) in the Income Statement card.
- Financial ratios: the Ratios tab shows the P/E for each fiscal year, quarter or TTM period, so you can see how the valuation changed over time. See how to read financial ratios.
- Stock screener: the stock screener filters and sorts thousands of stocks by PE Ratio, Forward PE and Earnings Yield.
- Glossary: the P/E ratio glossary entry gives the short definition, and the earnings per share guide explains the number in the bottom of the fraction.
Frequently asked questions
What is a good P/E ratio?
There is no single good P/E ratio. The S&P 500 has averaged roughly 15 to 20 over the long run, but fast-growing companies often trade far higher and banks or cyclical companies lower. Compare a stock's P/E with its own history and with close competitors rather than with a fixed number.
What is the difference between trailing and forward P/E?
Trailing P/E divides the share price by earnings per share over the last twelve months, which are actual reported results. Forward P/E divides it by analysts' average estimate of earnings per share for the next fiscal year. A forward P/E below the trailing P/E means analysts expect earnings to grow.
Can a P/E ratio be negative?
Yes. When a company lost money over the last twelve months, its earnings per share are negative and so is its P/E. A negative P/E does not mean the stock is cheap; it means the ratio cannot measure value until the company returns to profit.
Is a low P/E ratio better than a high one?
Not necessarily. A low P/E can reflect slow growth, high risk or earnings that are about to fall, while a high P/E can reflect strong expected growth or temporarily depressed earnings. The number is a starting point for questions, not an answer.
What is the earnings yield?
The earnings yield is the P/E ratio turned upside down, earnings per share divided by the share price, shown as a percentage. A P/E of 25 equals an earnings yield of 4%, which makes it easy to compare with bond yields.
This guide is for educational purposes only and is not investment advice. See our data disclaimer.