P/E Ratio Calculator

Calculate the price-to-earnings (P/E) ratio of a stock by dividing its current share price by its earnings per share (EPS). The P/E ratio shows how much investors are paying for each unit of a company's earnings, helping you gauge whether a stock is relatively expensive or cheap.

P/E Ratio25 x
Earnings Yield
4%

A higher P/E can mean a stock is overvalued or that investors expect strong future growth; a lower P/E may indicate undervaluation or weak prospects. P/E ratios are most meaningful when compared against industry peers or the company's own history. If EPS is zero or negative, the P/E ratio is not meaningful.

What the P/E Ratio Calculator Does

This calculator finds the price-to-earnings (P/E) ratio of a stock, one of the most widely used valuation measures in investing. You enter the current share price and the company's earnings per share (EPS), and the tool returns how many dollars investors are paying for each dollar of annual earnings.

It is built for individual investors comparing stocks, students learning fundamental analysis, and anyone screening companies before reading deeper financial reports. The P/E ratio is a quick first filter, not a full verdict, so use it alongside other metrics.

How the P/E Ratio Is Calculated

The formula is straightforward:

P/E ratio = Share Price / Earnings Per Share (EPS)

EPS is the company's net income divided by its number of outstanding shares. You can use trailing EPS (the last 12 months of reported earnings, giving the "trailing" or TTM P/E) or estimated future EPS (giving the "forward" P/E). Both are valid, but never mix them or compare a trailing P/E against a forward one.

Worked Example

Suppose a stock trades at $150 per share and reported $6.00 in trailing earnings per share over the past year.

P/E = $150 / $6.00 = 25

A P/E of 25 means investors are paying $25 for every $1 of annual earnings. Put another way, if earnings stayed flat, it would take 25 years of profit to equal the current price. If a competitor with similar growth trades at a P/E of 15, the first stock looks relatively expensive on this measure alone.

How to Interpret and Compare the Result

A P/E number means little in isolation. Its value comes from comparison. Useful benchmarks include:

  • Industry peers: compare against companies in the same sector, since a software firm and a utility naturally carry very different multiples.
  • The company's own history: a P/E far above its 5-year average may signal that expectations have run ahead of fundamentals.
  • A broad index: comparing to the average P/E of an index like the S&P 500 shows whether a stock is priced above or below the wider market.
  • Expected growth: faster-growing companies usually justify higher P/E ratios because more future earnings are priced in.

Common Mistakes and Factors That Affect the Result

The biggest pitfall is treating a low P/E as automatically cheap. A low ratio can reflect a struggling business, declining earnings, or one-time profits that inflated EPS. Conversely, a high P/E is not always overvaluation; it can reflect strong, durable growth.

Other things to watch: companies with negative earnings produce a meaningless or undefined P/E (you cannot divide by a loss usefully); EPS can be distorted by share buybacks, write-offs, or accounting adjustments; and cyclical companies show misleadingly low P/E ratios at the peak of their cycle and high ones at the bottom. Always confirm whether you are using diluted or basic EPS, and prefer diluted for a more conservative figure.

Tips for Using P/E Effectively

Treat the P/E ratio as a starting question, not an answer: "Why is this stock priced this way relative to its earnings and its peers?"

Pair it with complementary metrics such as the PEG ratio (P/E divided by earnings growth rate), price-to-book, and free cash flow. Used together, these give a fuller picture of valuation than P/E can on its own, and they help you avoid value traps where a cheap-looking multiple hides a deteriorating business.

Frequently asked questions

What is a good P/E ratio?

There is no single 'good' P/E ratio. Historically, broad market averages have hovered around 15-25, but what counts as high or low depends heavily on the industry, growth expectations, and interest rates. Always compare a stock's P/E to its sector peers and its own historical range.

What does a high P/E ratio mean?

A high P/E means investors are paying more for each unit of current earnings. This can signal that the market expects strong future earnings growth, or that the stock may be overvalued. Context matters: fast-growing companies often trade at higher P/E ratios than mature ones.

Why can't I use this with negative or zero earnings?

The P/E ratio divides price by earnings per share, so if EPS is zero the result is undefined, and if EPS is negative the ratio becomes negative and loses its usual meaning. For unprofitable companies, analysts often use other metrics such as price-to-sales instead.

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

Trailing P/E uses earnings from the past 12 months, while forward P/E uses projected earnings for the next 12 months. This calculator works with whichever EPS figure you enter, so be consistent about which one you use when comparing companies.