P/E Ratio Calculator - Price to Earnings Analysis

Calculate a stock's price-to-earnings ratio from its share price and earnings per share, then see how it stacks up against industry peers.

Last updatedHow we build & check our tools
$

Two stocks sit side by side on your screen. Both trade at $50 a share. To your eye they cost exactly the same. They don't.

The first company earns $5 per share in annual profit. Divide the price by those earnings and you get a P/E of 10 — you're paying $10 for every $1 the business earns. The second company earns just $1 per share. Same $50 price, but its P/E is 50. You're handing over $50 for that same $1 of earnings. One stock is five times more expensive than the other, and the share price never told you.

That's the entire job of the price-to-earnings ratio. Share price alone is a meaningless number — a $500 stock can easily be cheaper than a $20 stock once you account for what each company actually earns. P/E converts price into something comparable: how many dollars you pay for each dollar of profit. The formula is just price divided by earnings per share, and it's the first number professional investors reach for when they size up a stock.

So what does a high or low P/E actually tell you? A low P/E, say 8 or 12, often means the market expects little or no growth, sees risk ahead, or has simply overlooked the company. A high P/E, say 40 or 60, means investors are paying up today for profits they expect to be much larger tomorrow. Neither is automatically good or bad. A P/E of 50 is a bargain if earnings are about to triple, and a P/E of 8 is a trap if profits are quietly collapsing. The ratio frames the question; it doesn't answer it.

Here's the part that catches people: a high P/E is a bet, not a fact. When you buy a stock at a P/E of 45, you are paying for growth that hasn't happened yet. If that company grows into its valuation, you win. If it stumbles, the same multiple that lifted the price drags it back down twice as fast. The number that made the stock exciting on the way up is the number that punishes it on the way down. That's why two investors can look at the identical P/E of 45 and one calls it cheap while the other calls it reckless — they disagree about the growth, not the math.

One more lens makes P/E click. Flip it upside down and you get the earnings yield: a P/E of 20 is an earnings yield of 5% — the profit the business generates each year for every dollar you invest. Suddenly a P/E of 50 reads as a 2% earnings yield, and you can weigh it against a savings account or a bond the same way.

Run your own figures above. Enter a price and an EPS, watch the multiple appear, then change the earnings and see how dramatically the same price suddenly looks cheap or expensive.

There are two flavors of P/E, and confusing them leads to bad conclusions. Trailing P/E uses the last 12 months of actual, reported earnings — real history. Forward P/E uses analysts' estimates for the next 12 months. A company expected to grow will show a lower forward P/E than trailing, because the denominator (future earnings) is larger. A stock with a trailing P/E of 30 and a forward P/E of 20 is priced for roughly 50% earnings growth. Trailing is concrete but backward-looking; forward is relevant but only as reliable as the guess behind it. When the two numbers diverge sharply, the gap is really a measure of how much growth the market has already baked into the price.

The single most useful habit with P/E is comparing within an industry, never across sectors. A software company commonly trades at a P/E of 35 to 50 because its earnings can scale fast and cheaply. A regional utility might trade at 14 to 18 because its growth is slow and regulated. Declaring the software stock "overpriced" because its P/E is triple the utility's is a beginner mistake — you're comparing a sprinter to a marathon runner on the same stopwatch.

So compare like with like. Two banks, both with P/Es near 11, are genuinely comparable. If one trades at 9 and the sector average is 13, that gap is worth investigating — it might be a discount, or it might be the market pricing in a problem you haven't found yet.

A few honest limits keep you out of trouble. P/E breaks entirely when earnings are zero or negative — many young, fast-growing companies have no meaningful P/E at all, and the formula returns a useless figure. One-time events like a big asset sale can inflate earnings for a quarter and crush the ratio artificially. And a low P/E paired with falling sales is often a value trap, not a value. P/E is a starting question, not a final answer. Use it to spot which stocks deserve a closer look, then dig into the business behind the number.

This calculator provides estimates based on the information you enter. For advice tailored to your situation, consult a qualified financial professional.

Frequently Asked Questions

Common questions about the P/E Ratio Calculator - Price to Earnings Analysis

Divide the share price by the earnings per share (EPS). If a stock trades at $50 and earns $5 per share over the past year, its P/E is 50 divided by 5, which equals 10. That means you pay $10 for every $1 of annual profit the company generates.

Sources & References

Investing concepts and definitions

Plain-language definitions of investment products, returns, risk, and fees from the U.S. SEC’s investor education service.