What Is the P/E Ratio? How to Read Price-to-Earnings
The P/E ratio is share price divided by earnings per share. Learn trailing vs forward P/E, earnings yield, and a real Microsoft example built from its filings.

In this article
The price-to-earnings ratio, or P/E ratio, is a company’s share price divided by its earnings per share. It tells you how many dollars investors are paying for each $1 of annual profit, and it is the most frequently quoted shortcut for judging whether a stock looks expensive or cheap, so it is worth knowing what it can and cannot tell you.
How do you calculate the P/E ratio?
Divide the current share price by earnings per share for the last 12 months. Earnings per share is a company’s net profit divided by its number of shares, and our earnings per share glossary page explains it in detail.
For example, if a stock trades at $40 and the company earned $2 per share over the past year, its P/E is 20, meaning investors are paying $20 for every $1 of annual profit. Put another way, at the current level of profitability it would take 20 years of earnings to “earn back” the price.
A real example: what is Microsoft’s P/E ratio?
By our arithmetic, Microsoft’s trailing P/E was about 27.7 on November 6, 2026. We added up the diluted EPS from its last four quarterly reports, then divided the closing price by that total.
| Quarter ended | Diluted EPS (GAAP) | Source |
|---|---|---|
| December 31, 2025 | $5.16 | Microsoft, January 28, 2026 |
| March 31, 2026 | $4.27 | Microsoft, April 29, 2026 |
| June 30, 2026 | $4.81 | Microsoft, July 29, 2026 |
| September 30, 2026 | $4.92 | Microsoft, October 28, 2026 |
| Trailing 12 months (our arithmetic) | $19.16 | Sum of the four quarters |
Next, the closing price was $530.61 on November 6, 2026 (Nasdaq). Our arithmetic: $530.61 ÷ $19.16 = about 27.7.
There is a catch hiding in that first row. Gains on Microsoft’s investment in OpenAI added $1.02 to EPS in the December 2025 quarter. Across all four quarters, OpenAI items added about $1.12 in total. Using Microsoft’s adjusted EPS, which removes those items, the four quarters add up to $18.04, and the P/E rises to about 29.4. The same stock on the same day produces two different P/Es. Our guide on how to read an earnings report explains GAAP vs adjusted EPS.
What is the difference between trailing and forward P/E?
Trailing P/E uses profits already reported; forward P/E uses profits analysts expect over the next year. The example above is a trailing P/E.
- Trailing P/E is based on numbers in company filings, so anyone can verify it. However, it looks backward and can be skewed by one-time items, like the OpenAI gains above.
- Forward P/E is more forward-looking, which is what stock prices care about. However, it depends on forecasts, which can miss badly when economic conditions change.
When a website shows a P/E without a label, check which kind it is, because the two can differ substantially for a fast-growing company.
What is a good P/E ratio?
There is no single “good” P/E, because the right number depends on how fast profits are growing, the type of business and interest rates.
- Growth. Investors pay more for profits they expect to grow quickly. For instance, Microsoft’s revenue rose about 19% over the year in its September 2026 quarter, from $77.7 billion to $92.3 billion (Microsoft). A slow-growing company with the same P/E would look far pricier.
- Sector. Industries differ in how fast and how steadily their profits grow, so their typical P/Es differ too. Compare a company with its peers, not with the whole market.
- Rates. When bonds pay more, investors usually demand a lower P/E from stocks, as we explain below.
What is earnings yield, and why does it link P/E to bond yields?
Earnings yield is the P/E turned upside down: earnings per share divided by price. It expresses the profit you are “buying” per dollar as a percentage, so you can compare it directly with a bond’s yield.
By our arithmetic, Microsoft’s P/E of about 27.7 equals an earnings yield of about 3.6% (1 ÷ 27.7). The 10-year Treasury yield was 4.84% on November 5, 2026 (FRED). That gap means investors are accepting a lower profit yield today in exchange for expected growth.
This is why higher bond yields tend to pressure P/E ratios. When safe bond yields rise, stocks have to offer more to compete, and the simplest way is a lower price for the same earnings. You can follow those yields on our Treasury yields hub.
The bottom line
The P/E ratio is price divided by earnings per share. Trailing P/E uses reported profits, forward P/E uses forecasts, and earnings yield flips the ratio so you can compare it with bonds. For the other half of the picture, see our market cap glossary page, which shows how the same share price adds up to a company’s total stock market value.
Frequently Asked Questions
How do you calculate a P/E ratio?
Divide the share price by earnings per share over the last 12 months. Microsoft's diluted EPS for its four quarters ending September 30, 2026 adds up to $19.16. With the stock at $530.61 on November 6, 2026, that is a trailing P/E of about 27.7.
What is the difference between trailing and forward P/E?
Trailing P/E uses profits a company has already reported, usually the last four quarters. Forward P/E uses analysts' forecasts for the next 12 months. Trailing is based on facts; forward is based on estimates that can turn out wrong.
What is earnings yield?
Earnings yield is the P/E flipped upside down: earnings per share divided by price. A P/E of about 27.7 equals an earnings yield of about 3.6%, which investors often compare with bond yields. The 10-year Treasury yield was 4.84% on November 5, 2026, according to FRED.
Sources
- Microsoft, FY27 Q1 earnings press release (October 28, 2026)
- Microsoft, FY26 Q4 earnings press release (July 29, 2026)
- Microsoft, FY26 Q3 earnings press release (April 29, 2026)
- Microsoft, FY26 Q2 earnings press release (January 28, 2026)
- Microsoft, Form 10-Q for the quarter ended September 30, 2026 (SEC EDGAR)
- Nasdaq, MSFT historical prices (closing price, November 6, 2026)
- FRED, Market Yield on U.S. Treasury Securities at 10-Year Constant Maturity (DGS10)

Like this explainer?
Watch the animated version and new videos on the economy every week.
For educational purposes only. This is general information, not personalized financial advice. See our disclaimer.


