Glossary · stock valuation

P/E Ratio (Price-to-Earnings): What It Is and How to Calculate It

The P/E ratio is a share's price divided by the company's earnings per share over the last year. It tells you how many dollars you pay for each dollar of yearly profit. Coca-Cola closed 2025 at $69.91 and earned $3.04 a share that year, a P/E of 23.0.

The S&P 500 ended 2025 at about 28.5 times its earnings, against a median of 17.6 since 1950. Big banks and insurers traded at 12 to 14 times earnings in January 2026, chipmakers near 49. A good P/E depends on how fast the earnings will grow, so compare a company with its own history and its closest competitors.

The formula
Share price÷Earnings per share, last 12 months

Or for the whole company: market cap ÷ net income. Coca-Cola: $69.91 ÷ $3.04 = 23.0.

S&P 50028.5at the end of 2025; the median since 1950 is 17.6
Nvidia37.7at the end of 2025, after profit grew 65% in a year
FordNonea loss of $8.2 billion in 2025, so no P/E

P/E ratio calculator

Enter the share price and earnings per share, or the market cap and a year of net income. Add the growth you expect to see the forward P/E, the PEG ratio and how long the company would take to earn back its price. It starts with Coca-Cola at the end of 2025.

Price and earnings

Growth (optional)

Use diluted earnings per share, the figure at the foot of the income statement. A loss goes in as a negative number.

P/E ratio
0
Earnings yield-a year of profit as a share of the price
PEG ratio-add earnings growth
P/E on next year's earnings-add earnings growth
Years to earn back the price-if earnings stay flat

Years of earnings it takes to add up to the price

At a flat profit the answer is the P/E itself. If earnings grow, the company gets there sooner, which is why fast growers carry high P/E ratios. Gold bars take more than 20 years; striped bars are cut short.

Use earnings for the same 12 months as the price you compare them with: the last four quarters, or the last full year. Quote pages use the last four reported quarters, so the P/E moves every day with the price and every quarter with the earnings.

What is a good P/E ratio?

There is no single number. Here are 15 well-known companies, from Exxon Mobil to Tesla, priced on 31 December 2025 against a year of profit from their annual reports.

P/E ratio at the end of 2025: market cap ÷ annual net income

15 to 2525 to 40Over 40
XOMExxon Mobil
17.4year to Dec 2025
PFEPfizer
18.2year to Dec 2025
KOCoca-Cola
22.9year to Dec 2025
METAMeta
27.6year to Dec 2025
GOOGLAlphabet
28.6year to Dec 2025
AMZNAmazon
31.9year to Dec 2025
MSFTMicrosoft
35.3year to Jun 2025
AAPLApple
35.9year to Sep 2025
NFLXNetflix
36.0year to Dec 2025
NVDANvidia
37.7year to Jan 2026
WMTWalmart
40.6year to Jan 2026
COSTCostco
47.2year to Aug 2025
PLTRPalantir
262year to Dec 2025
TSLATesla
445year to Dec 2025
FFord
Noneyear to Dec 2025

Market cap is the 31 December 2025 close times the shares outstanding on the cover of each company's annual report (all share classes); net income is for the fiscal year in that report. Per share, with diluted earnings, Coca-Cola comes out at 23.0 instead of 22.9. The dashed line is the S&P 500 at about 28.5. Bars past 60 are cut short: Palantir was at 262 and Tesla at 445.

Under 15

Slow growth, or profits at a peak

Banks, insurers, homebuilders and oil producers. Investors pay less where earnings grow slowly or swing with the economy. Intel was at 10.6 at the end of 2021, just before its profit fell away.

15 to 25

Around the market's long-run level

Exxon Mobil at 17.4, Pfizer at 18.2 and Coca-Cola at 22.9. Steady businesses whose profits grow at a few percent a year.

25 to 40

Growth expected

Meta, Alphabet, Amazon, Microsoft, Apple, Netflix and Nvidia. Investors pay more today because they expect profit to keep rising faster than the market's.

Over 40

A lot of growth priced in

Walmart at 40.6 and Costco at 47.2 are prized for steady growth. Tesla at 445 and Palantir at 262 are priced on the profit investors expect years from now.

A P/E is only cheap or expensive next to the growth behind it. Coca-Cola at 23 and Nvidia at 37.7 can both be fair prices if Nvidia's profit grows much faster. So judge a P/E against the company's own past P/E and against its nearest rivals: Walmart with Costco, Coca-Cola with PepsiCo, Microsoft with other software companies.

The S&P 500's P/E ratio since 1950

Each month's average price over the last 12 months of reported earnings, from Robert Shiller's data. The highest readings came when earnings collapsed, not when prices peaked.

S&P 500 P/E ratio, monthly, January 1950 to December 2025

P/EMedian, 17.6
6.7Jul 1950 6.8Apr 1980 Median 17.6 28.3Mar 2000, price peak 46.7Mar 2002 123.7May 2009, off the chart 39.3Dec 2020 28.5Dec 2025

The line stops at 50; from December 2008 to September 2009 the P/E was above it, as bank losses wiped out most of a year of the index's earnings. Shiller uses reported earnings, so his P/E runs above the operating-earnings figures many sites quote.

Mar 2000 and Mar 2002

The price peak was not the P/E peak

At the March 2000 top of the dot-com boom the P/E was 28.3. Two years later prices were lower, but earnings had fallen further, and the P/E hit 46.7.

May 2009

123 times earnings near the bottom

The index was about 40% below its 2007 high, yet its P/E read 123.7 because write-downs had erased most of the year's profit. A high P/E on depressed earnings can be the cheapest time to buy.

Dec 2025

High, but not a record

At 28.5 the market ended 2025 above its 17.6 median; it was higher in only about 7% of months since 1950.

P/E ratio by industry

US companies in January 2026, from Aswath Damodaran's data at NYU Stern. Each row is the industry's combined market value over the combined profit of its money-making companies, beside the yearly earnings growth analysts expect over the next five years.

Homebuilding30 companies
P/E11.3
growth2.0%
Insurance, property and casualty57 companies
P/E11.8
growth15.3%
Oil and gas production142 companies
P/E12.7
growth4.9%
Big banks15 companies
P/E14.2
growth13.7%
Food processing78 companies
P/E16.5
growth2.7%
Tobacco10 companies
P/E19.8
growth6.1%
Utilities14 companies
P/E20.5
growth6.9%
Soft drinks27 companies
P/E26.3
growth15.4%
Whole US market5,994 companies
P/E26.6
growth14.0%
Restaurants64 companies
P/E32.8
growth3.5%
Software309 companies
P/E37.5
growth22.8%
Semiconductors66 companies
P/E48.8
growth22.9%

Growth is the yearly earnings growth analysts expect over the next five years. Industries with fast expected growth, like software and chips, carry higher P/E ratios; restaurants are the exception here, at 32.8 times earnings on 3.5% expected growth.

Why a low P/E is not always cheap

The P/E uses last year's profit. What you get as a shareholder is next year's, and the ten after it.

31 December 2021Intel
P/E10.6
2024 EPS−$4.38
Shares−61%

$51.50 a share on $4.86 of 2021 earnings looked cheap. Earnings fell to $1.94, then $0.40, then a loss in 2024, and the shares ended 2024 at $20.05.

27 January 2023Nvidia
P/E117
On 2025 EPS6.9
Shares7×

$20.37 a share (after the 2024 split) on $0.174 of earnings looked absurd. Two years later Nvidia earned $2.94 a share, so that $20.37 price was 6.9 times its earnings, and the shares were at $142.62.

Year to December 2025Ford
Net income−$8.2bn
P/ENone
P/S0.3

A loss leaves no P/E to read. Ford's came after about $10.7 billion of charges on its electric vehicle programmes, so the price-to-sales ratio is the one left to compare.

Check what is in the "E" before trusting the ratio. One-off gains, like selling a business, push a P/E down; write-downs and restructuring charges push it up. Look at the last five years of earnings, and whether the industry is at the top or the bottom of its cycle: oil, steel and chip companies often look cheapest on P/E just as their profits peak.

Trailing P/E, forward P/E, CAPE and the other ratios

All of them put the price over a slice of the business. Pick the one that fits the question you're asking.

RatioDivides the price byUseful whenMisleads when
Trailing P/EEarnings per share over the last 12 monthsProfits are steady; it uses reported numbersThere is a loss, a one-off gain or charge, or a cycle at its peak
Forward P/EEarnings analysts expect over the next 12 monthsProfit is changing fastThe forecasts are too optimistic, as they often are
PEG ratioP/E ÷ expected yearly earnings growthComparing growth companiesGrowth is a guess, or very low
CAPE (Shiller P/E)Ten years of earnings, adjusted for inflationJudging the whole market over the long runUsed for timing: it can stay high for years
Earnings yieldThe P/E flipped: earnings ÷ priceComparing shares with bond yieldsEarnings are about to change, same as the P/E
P/SRevenue per shareThere is a loss, or earnings swingProfit margins differ
P/BBook value per shareValuing banks and insurersThe value is in brands, software or patents

Forward P/E: next year's profit

If Coca-Cola's earnings grew 7% to about $3.25 a share, the same $69.91 price would be 21.5 times next year's earnings. The forward P/E is lower than the trailing one whenever profit is expected to rise. More on the forward P/E.

CAPE: ten years of earnings

Robert Shiller's cyclically adjusted P/E divides the price by the average of ten years of inflation-adjusted earnings, so one bad year can't distort it. The S&P 500's CAPE was 39.6 in December 2025, close to its record of 44.2 in December 1999.

Earnings yield: the P/E flipped

1 ÷ P/E gives the profit you buy with each dollar. At 28.5 times earnings, the S&P 500 yielded 3.5% at the end of 2025, while the 10-year Treasury paid 4.18%. Shares earn less today and are bought for the growth.

See the P/E of every stock you own

Each stock page shows the trailing P/E, earnings per share and the forward P/E; the comparisons put two stocks' P/E side by side with price to book, P/S and EV/EBITDA.

Stock page

Coca-Cola: P/E, EPS and forward P/E

Every stock page lists the trailing P/E with the earnings per share behind it, the book value and price to book. The estimates underneath give the forward P/E and the earnings per share analysts expect. The same page has the price chart, dividends and a DCF valuation.

Open Coca-Cola's stock page
AllInvestView AllInvestView stock page for Coca-Cola (KO), key metrics: P/E 24.91, EPS 3.04, book value 7.48, price to book 10.13, debt/equity 139.79, insiders 9.892%; estimates: forward P/E 21.93, forward EPS 3.45, target mean price 83.67 AllInvestView stock page for Coca-Cola (KO), key metrics: P/E 24.91, EPS 3.04, book value 7.48, price to book 10.13, debt/equity 139.79, insiders 9.892%; estimates: forward P/E 21.93, forward EPS 3.45, target mean price 83.67
Coca-Cola's stock page with figures from our development database, not today's.View full-size View full-size
Stock comparison

Costco vs Walmart: the valuation table

Pick any two stocks and see their valuation ratios in one table, with the lower of each marked. Trailing and forward P/E sit beside price to book, price to sales and EV/EBITDA. Earnings growth, return on equity, debt and dividends are further down the same comparison.

Compare Costco and Walmart
AllInvestView AllInvestView stock comparison of Costco (COST) and Walmart (WMT), valuation table: trailing P/E 52.08 and 46.44, forward P/E 44.49 and 38.59, price to book 26.82 and 10.14, price to sales 1.55 and 1.42, EV/EBITDA 32.81 and 24.41, with Walmart marked lower on each AllInvestView stock comparison of Costco (COST) and Walmart (WMT), valuation table: trailing P/E 52.08 and 46.44, forward P/E 44.49 and 38.59, price to book 26.82 and 10.14, price to sales 1.55 and 1.42, EV/EBITDA 32.81 and 24.41, with Walmart marked lower on each
The Costco vs Walmart comparison with figures from our development database, not today's.View full-size View full-size
Every broker in one place

Your holdings, their P/E and your returns together

All your accounts in one portfolio, with each holding's P/E, EPS and forward P/E on its stock page, side-by-side comparisons, and your returns, dividends and tax in the same place.

Stock pages and comparisons Multi-broker portfolio Free plan available

Questions about the P/E ratio

How do you calculate the P/E ratio?

Divide the share price by the earnings per share for the last 12 months. Coca-Cola closed 2025 at $69.91 and earned $3.04 a share that year, so its P/E was 69.91 ÷ 3.04 = 23.0. For the whole company it's the same sum: market value divided by a year of net income.

What is a good PE ratio?

It depends on the industry and on how fast earnings are growing. Since 1950 the S&P 500's P/E has had a median of about 17.6. In January 2026 big US banks traded at about 14 times earnings, utilities at 20, software at 37 and chipmakers at 49. A P/E below a company's competitors and its own history can be good value, as long as its earnings aren't about to fall.

Is a high or low P/E better?

Neither on its own. A low P/E means you pay less for each dollar of today's profit, but it often means investors expect that profit to shrink. Intel traded at 10.6 times earnings at the end of 2021, then made a loss in 2024 and the shares fell 61%. Nvidia was at 117 times earnings in January 2023 and two years later earned enough to make that price 6.9 times earnings.

Why do some stocks have no PE ratio?

A company that lost money over the last year has no meaningful P/E. Most sites show N/A or a dash rather than a negative number. Ford lost $8.2 billion in 2025, so it had no P/E at the end of the year. For loss-making companies, the price-to-sales and price-to-book ratios still work.

What is the difference between trailing and forward P/E?

The trailing P/E uses earnings the company has already reported over the last 12 months. The forward P/E uses the earnings analysts expect over the next 12 months, so it is lower whenever profit is expected to grow. Quote pages show the trailing figure as "P/E" unless they say otherwise.

What is the S&P 500's P/E ratio?

About 28.5 at the end of 2025, using Robert Shiller's data: the index's average December price over its reported earnings for the last 12 months. That is above its median of about 17.6 since 1950; it was higher in only about 7% of months since then. On a cyclically adjusted basis, using ten years of earnings, it was 39.6.

What does a P/E of 20 mean?

You are paying $20 for each $1 of yearly profit. Put the other way round, the earnings yield is 1 ÷ 20 = 5%: if earnings stayed flat, the company would take 20 years to earn its share price. If earnings grow 10% a year, it takes about 11.

Sources

Checked on 28 October 2026.

Company ratios are worked from each annual report's net income and the end-of-2025 share price. None of this is personal investment advice.