How to Calculate the P/E Ratio: What You Pay for Each Dollar of Profit
The price-to-earnings ratio is the most quoted number in investing, and one of the most misread. It tells you how many dollars you pay today for each dollar a company earns in a year. A share at $72 with earnings of $3 a share has a P/E of 24. That single number appears on every broker screen, but it hides choices: which year’s earnings, whether one-off gains are included, how many shares are counted. This guide shows how to calculate P/E yourself from a company’s results, how to compare it with other companies and with bonds, and where the ratio stops being useful.
What the P/E ratio actually tells you
P/E is a price tag on profits. If a company earned $3 per share last year and the share costs $72, investors are paying 24 times a year’s earnings. Put another way, if profits never changed and every cent were paid out to you, it would take 24 years for the company to earn back what you paid.
Nobody expects profits to stay flat, which is why P/E really measures expectations. A high P/E means the market expects earnings to grow fast enough to justify the price; a low P/E means it expects slow growth, high risk or a fall in profits. If the same $3 grew by 8.45% a year, cumulative earnings would pass $72 in 14 years rather than 24. That gap is the growth the price assumes.
So a P/E of 24 is neither cheap nor expensive on its own. It is cheap for a company that will double its earnings in five years and expensive for one whose profits are about to shrink. The ratio is a starting point for questions, not an answer.
How to calculate P/E, step by step
There are two equivalent ways to calculate it, per share or for the whole company:
EPS = ([NET INCOME] − [PREFERRED DIVIDENDS]) ÷ [WEIGHTED AVERAGE SHARES]
Or: P/E = [MARKET CAPITALISATION] ÷ [NET INCOME]
Worked example. A company reports net income of $540 million for the last four quarters, pays no preferred dividends and had 180 million shares outstanding on average. The share trades at $72:
- Earnings per share: $540m ÷ 180m = $3.00.
- P/E: $72 ÷ $3.00 = 24.0.
- Check with market value: 180m shares × $72 = $12.96bn; $12.96bn ÷ $540m = 24.0.
You will rarely need to divide net income yourself, because companies report EPS on the face of the income statement in their quarterly (10-Q) and annual (10-K) filings. To get the last twelve months, add the EPS of the four most recent quarters rather than using the last annual figure, which can be up to a year old. Here the quarters were $0.66, $0.72, $0.78 and $0.84, which also sum to $3.00.
Trailing vs forward P/E
The P/E you see quoted can rest on two very different kinds of earnings:
| Type | Earnings used | Example | Strength | Weakness |
|---|---|---|---|---|
| Trailing (TTM) | Reported EPS, last 12 months | $72 ÷ $3.00 = 24.0 | Real, audited numbers | Looks backwards |
| Forward | Analysts’ estimate, next 12 months | $72 ÷ $3.40 = 21.2 | Reflects expected growth | Forecasts are often too high |
Forward P/E is almost always lower, because analysts expect profits to rise. The difference tells you how much growth is already baked into the estimate: here, about 13%. That is useful, but treat forward figures with caution. Consensus forecasts made a year ahead have historically tended to be too optimistic, and they get cut when the economy slows.
For market comparisons the gap is large. In October 2026, US large caps traded at 25.8 times trailing earnings but 18.6 times forward earnings, according to Siblis Research. Always check which version a website, article or fund factsheet is quoting before comparing two numbers.
Which earnings? Diluted, adjusted and one-offs
Even trailing EPS comes in several versions, and the choice can change the P/E more than a year of share price moves:
- Basic vs diluted. Diluted EPS counts the shares that stock options, convertible bonds and employee awards could add. If they would lift the share count from 180m to 189m, EPS falls to $2.86 and the P/E rises from 24.0 to 25.2. Use diluted EPS; it is what most data providers quote.
- One-off gains and losses. If the company also booked a $90m profit from selling a division, reported EPS jumps to $3.50 and the P/E drops to 20.6. The business has not become cheaper; it has simply sold part of itself once. Strip out gains and charges that will not recur.
- Adjusted or “operating” EPS. Many companies publish their own adjusted figures that exclude items such as restructuring costs and stock-based pay. These can be reasonable, but a company that has “one-off” costs every year is reporting recurring costs. Compare the adjusted figure with the GAAP one before you trust it.
What is a good P/E ratio?
There is no universal “good” P/E. It only makes sense against something comparable. Three comparisons are worth making:
- Against similar companies. Software firms with high margins and fast growth usually trade on higher P/Es than banks or utilities. Comparing a bank with a software company tells you little; comparing two banks tells you a lot.
- Against the company’s own history. A firm that has traded between 15 and 20 times earnings for a decade and now sits at 28 either has better prospects than before or is priced for perfection.
- Against the market. Whole markets have very different valuations, partly because of the mix of companies they contain.
| Market (index) | Trailing P/E | Forward P/E |
|---|---|---|
| US large caps | 25.8 | 18.6 |
| Japan | 18.1 | — |
| Germany (DAX) | 17.5 | 14.7 |
| France (CAC 40) | 16.7 | 13.3 |
| Spain (IBEX 35) | 15.0 | 11.8 |
| United Kingdom (FTSE 100) | 14.9 | 12.0 |
Source: Siblis Research, end of October 2026. The US premium mostly reflects its large weighting in technology companies with high margins; Spain and the UK have more banks, energy and utility companies, which usually trade on lower multiples. If you buy a broad fund, as described in our guide to index fund investing, the market P/E is effectively the price you are paying.
Earnings yield: comparing shares with bonds
Flip the P/E upside down and you get the earnings yield: earnings as a percentage of the price. It lets you compare shares with savings accounts and bonds on the same scale:
Example: $3.00 ÷ $72 = 4.17% (P/E 24)
The S&P 500 closed on 16 November 2026 at 25.3 times trailing reported earnings (multpl.com), an earnings yield of 3.95%. The 10-year Treasury yielded about 5.1% in mid-November. Shares offered less current earnings per dollar than government bonds, a gap of roughly −1.2 points, which means investors are counting on earnings growth to make up the difference. Our guide to bond yields explains where that 5.1% comes from.
In Europe the picture is different. At the end of October, Germany’s DAX had an earnings yield of 5.7% against a 3.4% Bund yield, and Spain’s IBEX 35 6.7% against 4.1%, so shares still offered a cushion over bonds. France sat in between: 6.0% against an OAT yield of 4.9%.
Two caveats. Earnings yield is not cash in your pocket: only part of earnings is paid out, which is what dividend yield measures. And company earnings tend to grow with inflation, while a bond’s coupon is fixed, so the comparison is closer to bonds’ real rate of return than to their headline yield. It is a rough gauge of relative value, not a precise rule.
PEG ratio and CAPE: adjusting for growth and the cycle
Two variations try to fix the P/E’s blind spots.
The PEG ratio divides the P/E by the expected annual growth rate of earnings, in percentage points. Our example company grew EPS from $2.00 to $3.00 over five years, a compound rate of 8.45% a year, which you can check in the CAGR calculator:
Company A: 24.0 ÷ 8.45 = 2.84
Company B: 32.0 ÷ 20 = 1.60
Company B has the higher P/E but the lower PEG: you pay less for each point of growth. A PEG around 1 is often described as fair, but that rule of thumb ignores risk, debt and how reliable the growth is. Past growth also does not guarantee future growth; analysts’ forecasts are the usual input, with all their optimism.
The cyclically adjusted P/E (CAPE), popularised by economist Robert Shiller, divides the price of a market index by its average inflation-adjusted earnings over the previous ten years. That smooths out booms and recessions. On 16 November 2026, the S&P 500’s CAPE stood at 39.2 against a long-run average of 17.5; the record was 44.2 in December 1999. A high CAPE has historically been followed by lower returns over the next ten years on average, but it says very little about the next one or two, and markets can stay expensive for a long time.
Limits worth knowing
- Losses break it. A company with negative earnings has no meaningful P/E. Most screens show it as blank or “NM”. For young or loss-making firms, analysts use price-to-sales or enterprise value multiples instead.
- It ignores debt. Two companies with the same P/E can carry very different amounts of borrowing. Enterprise value to EBITDA, which includes debt, gives a fairer comparison between them.
- Earnings are an accounting number. Depreciation choices, write-downs and timing can all move EPS without changing the cash the business generates. Check that cash flow from operations broadly backs up reported profits.
- Sector differences are large. Banks, utilities and technology firms have structurally different P/Es. A screen for “low P/E” will mostly return banks and energy firms, not necessarily bargains.
- It does not time markets. High P/Es can persist for years, and cheap shares can stay cheap. Use the ratio to understand what a price assumes, not to predict next month’s move.
Used with the right earnings and the right comparison, P/E is a quick and honest test of what the market expects. Used alone, it is just a number.
References
- Investor.gov (SEC) — Price-earnings (P/E) ratio
- Wikipedia — Cyclically adjusted price-to-earnings ratio
- Siblis Research — P/E ratios by country (October 2026)
Frequently asked questions
Keep reading
Work out how fast earnings are growing
Enter EPS from five years ago, today’s EPS and the number of years to get the compound growth rate you need for the PEG ratio.
Open the CAGR Calculator →



