Guide · Updated June 17, 2026

The P/E ratio: what it is and how to read it

The P/E ratio (price-to-earnings) is the most-used ratio to judge whether a stock is cheap or expensive. It answers a very concrete question: how many years of current profit are you paying for when you buy the share?

How it's calculated

The P/E is obtained by dividing the share price by earnings per share (EPS, i.e. total profit divided by the number of shares):

  • P/E = Price ÷ Earnings per share

If a share costs $100 and the company earns $5 per share a year, its P/E is 20. The intuitive reading: at this rate of profits, it would take you 20 years to recoup what you invested. That's why a high P/E means "expensive" and a low one "cheap"… though, as you'll see, with caveats.

Why a high P/E isn't always expensive

The market doesn't pay for today's profit, but for tomorrow's. A company growing 25% a year deserves a higher P/E than a stagnant one, because its future profits will be far larger. So comparing the P/E of a fast-growing tech company with that of a mature utility makes no sense: they are different businesses with different expectations.

The same in reverse: a very low P/E can be a value trap. Sometimes the market pays little because it anticipates that profits will fall. Cheap isn't the same as a good opportunity.

The key: compare it with its sector

That's why at StockSemáforo we don't judge the P/E with a fixed threshold, but by comparing it with the normal P/E of its sector. A P/E of 30 scores well in software (where it's common) and badly in banking (where it's expensive). That sector comparison is the honest way to use the ratio. You can read how we apply it in how the traffic light works.

Trailing and forward P/E

There are two variants. The trailing P/E uses the profit already reported over the last twelve months: it's a fact, not an opinion. The forward P/E uses the profit the company estimates for next year. We work with published, real data, not forecasts, so we use the trailing P/E.

How to use it well

The P/E is a thermometer, not a full diagnosis. Always pair it with growth (a high P/E is justified if the company grows) and with the quality of the business (ROE, margins, debt). If you want to see any stock's P/E compared with its sector instantly, type its ticker into the analyzer. And for the underlying question, read how to tell if a stock is cheap or expensive.

Frequently asked questions

What is a good P/E ratio?

It depends on the sector. As a general reference, a P/E below 15 is usually seen as cheap and above 25-30 as demanding. But in software a P/E of 30 can be normal, while in banking a P/E of 15 is already expensive. The right move is to compare a company's P/E with that of its own sector.

Why can a company have a very high P/E?

Usually because the market expects it to grow a lot: it pays dearly today for profits it trusts will multiply. A high P/E can also be due to a temporarily low profit (which inflates the ratio) or plain overvaluation.

What if the company has no profits?

Then the P/E can't be computed in a useful way (you can't divide meaningfully by a negative or zero figure). For companies that don't yet make money, you have to use other references, such as price-to-sales.

Put what you just read into practice

Type a ticker and StockSemáforo computes the P/E, growth, margins and debt for you, with a clear 0–100 verdict.

Analyze a stock →