StockChat

What is the P/E ratio, and what counts as a good one?

The price-to-earnings ratio tells you how many dollars investors pay for each $1 of a company's profit. This guide works through a real example, shows what the S&P 500's P/E has looked like since 1871, and explains why the market's P/E hit 124 in 2009 even though stocks had crashed.

Oscar Moncada
Oscar MoncadaFounder, StockChat · · 9 min read
Line chart of the S&P 500 price-to-earnings ratio from 1871 to 2026, moving around a long-run median of about 15, with a low of 5.3 in 1917, 7.4 in 1980, 29.7 in 1999, a spike to about 124 in May 2009 that runs off the top of the chart, and 25.2 in June 2026.
The S&P 500's price-to-earnings ratio has usually sat near 15 since 1871, but it has run well above that since the 1990s, and its highest reading came in May 2009, when earnings collapsed rather than when prices soared.
Short answer

The P/E ratio is a stock's price divided by its earnings per share over the past year, so it tells you how many dollars buyers pay for each $1 of profit. Microsoft earned $17.95 a share in its fiscal year ended June 30, 2026 and closed at $524.51 on October 23, 2026, for a P/E of about 29. There is no single good P/E: the S&P 500's median since 1871 is about 15, it has been about 22.5 since 1990, and a very high P/E can simply mean earnings have collapsed.

If you have ever looked up a stock and wondered whether its price was reasonable, the P/E ratio is probably the first number someone pointed you to. It is the most widely quoted measure of whether a stock is cheap or expensive, and it is easy to calculate, but it is also easy to misread, because the same number can mean a company is in high demand or that its profits have just fallen apart.

What is the P/E ratio?

P/E stands for price to earnings. It divides a company's share price by its earnings per share, which is the company's profit over a period divided by the number of shares it has. The result tells you how many dollars investors are paying today for each $1 of profit the company earned, so a P/E of 20 means buyers are paying $20 for every $1 of annual earnings.

Microsoft makes a clean example because its fiscal year ended recently. In its annual report filed with the SEC in July 2026, the company reported diluted earnings of $17.95 per share for the year that ended on June 30, 2026. Its shares closed at $524.51 on October 23, 2026, according to Yahoo Finance data, so its P/E was $524.51 divided by $17.95, or about 29.2. In other words, buyers that day paid about $29 for each $1 of Microsoft's profit over its last full year.

It can also help to flip the ratio over. Dividing earnings by price gives you what is called the earnings yield, and for Microsoft that works out to about 3.4%. That makes a stock easier to compare with a savings account or a bond, which are also quoted as percentages.

What does a high or low P/E tell you?

A P/E is a measure of expectations. When investors pay $40 for $1 of today's earnings, they are usually betting that those earnings will grow quickly. When they will only pay $7, they usually expect profits to stay flat, shrink, or swing with the economy. Neither number is good or bad on its own, because a fast-growing company can deserve a high P/E and a struggling one can deserve a low one.

That is why P/E comparisons only make sense between similar businesses. Carmakers and banks usually trade at lower multiples than software companies, partly because their profits rise and fall with the economy, and Ford is a good illustration. StockChat's Analysis feature showed that buyers were paying about $7 for every $1 Ford earned over the past year as of October 23, 2026, and that over the past ten years they usually paid about the same, so a P/E that would look shockingly low for a software company is simply normal for an automaker.

What is a good P/E ratio?

There is no single good P/E, but history gives you a sense of what is normal for the market as a whole. Yale economist Robert Shiller publishes monthly data on S&P 500 prices and earnings going back to 1871, and the chart at the top of this article is built from it. Across all of those months, the median P/E of the S&P 500, meaning the level the market sat above half the time and below half the time, was about 15.

That long-run figure hides a big shift. Since 1990, the market's median P/E in the same data has been about 22.5, and the index spent about 31% of those months at a P/E of 25 or higher, compared with less than 8% of all months since 1871. In June 2026, the most recent month with earnings in Shiller's data, the S&P 500 traded at about 25.2 times its earnings over the previous year. Lower interest rates and a market weighted more heavily toward fast-growing technology companies are among the usual explanations for that shift, so it is better to treat 15 as a historical reference point than as a level the market is bound to return to.

PeriodS&P 500 P/EWhat was happening
December 19175.3The lowest reading, during World War I
January 19807.4High inflation and interest rates
December 199929.7The height of the dot-com boom
March 200246.7Earnings fell after the dot-com bust
May 2009123.7Earnings collapsed in the financial crisis
December 202039.3Earnings fell during the pandemic
June 202625.2Latest month with earnings data

P/E is the monthly S&P 500 price divided by trailing twelve-month earnings, calculated from Robert Shiller's data.

Why did the market's P/E hit 124 in 2009?

The most extreme reading in more than 150 years of data did not come during a bubble. It came in May 2009, shortly after the market hit bottom in the financial crisis.

In October 2007, just before the crisis, the S&P 500 averaged about 1,540 for the month, and the companies in it had earned about $74.46 per share over the previous year, which put the P/E at about 20.7. By May 2009 the index had fallen to about 902, a drop of more than 40%, so by any common-sense measure stocks had become much cheaper. But reported earnings had collapsed even faster, to about $7.29 per share, as banks and other companies wrote off enormous losses. Dividing 902 by 7.29 gives a P/E of about 124, which made the market look six times more expensive than it had been at the top.

The ratio was correct but useless, because investors were paying a depressed price for profits that had temporarily vanished. By June 2010 earnings had recovered to about $67 per share and the P/E was back near 16. The same thing happened on a smaller scale in 2002 and in 2020, which is why the three tallest spikes on the chart above are all moments when earnings fell, not moments when prices soared.

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

Everything above uses a trailing P/E, which divides today's price by the earnings a company actually reported over the past twelve months. A forward P/E divides the same price by the earnings that Wall Street analysts expect over the next twelve months. The trailing version is based on real results, while the forward version reflects where the business seems to be heading but relies on predictions that can be wrong.

The two can tell very different stories about the same stock. StockChat's Analysis feature shows both, using the past year's profit to compare a stock with its own history and next year's expected profit to compare it with its peers. On October 23, 2026, it showed that buyers were paying about $30 for every $1 Nvidia earned over the past year, well below the roughly $51 they usually paid over the previous decade. Against next year's expected profit, though, Nvidia cost about $25 per $1, compared with a middle of about $20 for the peers the app compared it with, so it looked cheap by its own history and pricey next to its competitors at the same time.

How do real companies compare right now?

A stock's own history is often a better yardstick than the market average, because it already reflects what kind of business the company is. The table below shows the trailing P/E for ten well-known companies as calculated by StockChat, next to the level buyers usually paid for the same stock.

CompanyPaid per $1 todayUsual levelVerdict
Alphabet (GOOGL)$16$27Cheap
Meta (META)$22$27Cheap
Amazon (AMZN)$29$80Cheap
Nvidia (NVDA)$30$51Cheap
Ford (F)$7$7About average
Microsoft (MSFT)$29$31About average
Exxon Mobil (XOM)$22$17About average
Costco (COST)$49$38Pricey
Apple (AAPL)$40$28Pricey
Tesla (TSLA)$258$158Pricey

These figures come from StockChat's Analysis feature, calculated from closing prices on October 23, 2026, with the usual level measured over ten years (seven for Tesla) and the verdict comparing each stock with its own history.

Amazon's P/E of about $29 looks high next to the market, yet it is far below the roughly $80 that buyers usually paid for the stock over the past decade, because for most of those years Amazon reinvested nearly everything it made and reported thin profits. Tesla sits at the other extreme, at about $258 per $1 of yearly earnings, which tells you that investors are paying mostly for profits they expect in the future rather than for what the company earns today. And Microsoft's figure of about $29 lines up with the 29.2 we calculated by hand from its annual report.

When does the P/E ratio stop working?

The P/E breaks down completely when a company loses money, because negative earnings produce a negative ratio that means nothing. Most sites leave the field blank in that case, which is why many young companies have no meaningful P/E at all.

It can also be distorted by one-time events, such as a large write-off or the sale of a division, which can push a single year's earnings far from normal. Companies also report both official earnings and adjusted earnings that leave certain costs out, and websites use different versions, which is one reason two sites can show different P/E ratios for the same stock on the same day.

How does StockChat show whether a stock is cheap or pricey?

Every stock in StockChat's Analysis feature answers the question "Is it cheap or pricey right now?" in plain English, using a chart of what people have paid for $1 of profit over the years. Here is what the app said for two of the companies above, using closing prices from October 23, 2026.

Is AMZN cheap or pricey right now?
Cheap

The app said you pay about $29 for every $1 Amazon earned over the past year, against a usual $80 over the past ten years and a peak of $363 in 2018, and that the stock has been pricier than this on 99 out of 100 trading days since 2016. Next to its peers, it called the picture ordinary, at $24 per $1 of next year's expected profit against a peer middle of $25.

Is AAPL cheap or pricey right now?
Pricey

The app said you pay about $40 for every $1 Apple earned over the past year, against a usual $28 and a peak of $44 in 2021, and that it has been cheaper than this on 98 out of 100 trading days since 2016. Against its peers it was also expensive, at $35 per $1 of next year's expected profit against a peer middle of $23.

These answers come from StockChat's Analysis feature, calculated from closing prices on October 23, 2026.

A StockChat Analysis screen that answers whether a stock is cheap or pricey compared with its own history and its peers.

StockChat is a private group chat with the research built in. When someone in your group says a stock looks cheap, everyone can open the same plain-English answer about what buyers are paying for its profits today, what they usually paid, and how it compares with its peers.

Join the free beta

How should a beginner use the P/E ratio?

The most useful habit is to ask "compared with what?" every time you see a P/E. Compare a stock with its own history, with companies in the same industry, and with the market as a whole, and if the number is unusually high or low, find out whether the price moved or the earnings did. A P/E that jumped because profits collapsed is a very different situation from one that rose because investors grew more excited, even when the two numbers look identical on the screen.

It also helps to remember what the ratio leaves out. A P/E says nothing about a company's debt, how fast its sales are growing, or whether its profits will last, so it works best as the start of a conversation about a stock rather than the end of one.

Frequently asked questions

How do you calculate the P/E ratio?

Divide the share price by the company's earnings per share over the past twelve months. Microsoft closed at $524.51 on October 23, 2026 and earned $17.95 a share in its last fiscal year, for a P/E of about 29.2.

What is a good P/E ratio?

There is no single number. The S&P 500's median P/E since 1871 is about 15 in Robert Shiller's data, and about 22.5 since 1990. It is more useful to compare a stock with its own history and with similar companies.

Is a high P/E ratio bad?

Not necessarily. A high P/E can mean investors expect fast growth, or it can mean earnings have collapsed. The S&P 500's P/E hit about 124 in May 2009 because earnings fell to about $7.29 a share, not because stocks were expensive.

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

Trailing P/E uses the earnings a company reported over the past twelve months. Forward P/E uses the earnings analysts expect over the next twelve months, so it looks ahead but depends on predictions.

Oscar Moncada
Oscar Moncada

Oscar is the founder of StockChat, where he writes plain-English guides that explain how the market works and where the numbers behind it come from.

This article is educational and is not financial advice.

Keep reading