Skip to content
Calc.

Price-to-Earnings Ratio Calculator

Calculate a stock's price-to-earnings (P/E) ratio from its share price and earnings per share, and see what the multiple means.

Last updated: October 2026

P/E ratio

20

This calculator gives an estimate for general information only. It is not financial, tax or investment advice. Check the figures with a qualified professional before making decisions, and follow the rules that apply where you live.

Formula below · 2 sources (investor.gov, finra.org) · Updated Oct 2026

Compare with similar

About this calculator

The price-to-earnings (P/E) ratio tells you how much investors are paying for each dollar of a company's yearly earnings. A P/E of 20 means the stock costs 20 times its annual earnings per share.

The formula

P/E = share price ÷ earnings per share (EPS). The SEC's Investor.gov defines EPS here as the earnings for the past 12 months divided by the number of common shares outstanding; that version is called trailing P/E. A forward P/E uses analysts' estimates of the next 12 months' earnings instead, so it changes whenever the estimates do.

How to read it

Investor.gov explains that a high P/E generally means investors expect higher growth, and that fast-growing companies tend to have higher P/Es than firms in mature, slow-growth industries. That is why P/E comparisons are most useful between similar companies in the same industry, or against the same company's own history. A low P/E can signal a bargain or a business the market expects to shrink.

Earnings yield

Flip the ratio and you get the earnings yield: EPS ÷ price. A P/E of 20 is an earnings yield of 5%, which is handy for comparing a stock with bond yields.

When P/E breaks down

If a company lost money, EPS is negative and P/E is meaningless; the calculator says so instead of showing a negative number. One-off gains or charges can distort a single year's EPS, and cyclical companies often look cheapest at the top of their earnings cycle. This page is for education and is not investment advice.

P/E ratio and the matching earnings yield

Scroll sideways to see all columns →

P/E ratioEarnings yield (EPS ÷ price)Price paid per $1 of yearly earnings
1010.0%$10
156.7%$15
205.0%$20
254.0%$25
303.3%$30
402.5%$40

How to use

Enter the current share price and the earnings per share for the last 12 months (shown on most quote pages as "EPS (TTM)"). The defaults, a $100 share and $5.00 of EPS, give a P/E of 20, an earnings yield of 5%. To use a forward P/E, enter next year's estimated EPS instead. If you have total figures, divide net income by shares outstanding to get EPS first.

Frequently asked questions

How do you calculate the P/E ratio?

Divide the share price by earnings per share. A stock at $100 with $5.00 of earnings per share over the last 12 months has a P/E of 100 ÷ 5 = 20.

What is a good P/E ratio?

There is no single good number. Compare the P/E with similar companies in the same industry and with the company's own past range. Fast growers usually trade at higher multiples than mature, slow-growing businesses.

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

Trailing P/E uses the last 12 months of reported earnings. Forward P/E uses estimated earnings for the next 12 months, so it is lower than the trailing P/E when earnings are expected to grow.

Why is there no P/E for some stocks?

When earnings per share are zero or negative, the ratio has no useful meaning, so most sites show it as N/A. Price-to-sales or other measures are used for unprofitable companies.

Related calculators

Sources & references

How we check our calculators

Think a result is wrong? Report a problem with this calculator.