Price to Earnings Ratio Calculator

Calculate trailing or forward price-to-earnings ratio from share price and positive EPS, with the matching earnings yield.

EPS type

Result

20x

Trailing price-to-earnings ratio from a share price of 40 and EPS of 2.

Earnings yield
5%
EPS used
2
Price per unit of earnings
20x
Variant
Trailing

P/E still needs context

P/E is easier to compare than raw earnings, but it does not capture debt, cash flow quality, sector norms, or whether the EPS figure itself is cyclical or unusually high or low.

Also in Saving & Investing

Investing Basics

Price-to-earnings ratio calculator guide: trailing P/E, forward P/E, and earnings yield

A price-to-earnings ratio calculator compares a company’s share price with its earnings per share. The result expresses how much investors are paying for each unit of earnings, while the inverse measure, earnings yield, shows the same relationship as a percentage. P/E is a common valuation shortcut, but it works best when the EPS basis is clear and positive.

What the P/E ratio is telling you

The P/E ratio measures how many times earnings the market price represents. A P/E of 20 means investors are paying 20 units of price for each 1 unit of annual earnings per share. That makes the ratio convenient for comparing how richly or cheaply the market is valuing one earnings stream relative to another.

This calculator supports both trailing and forward variants because the label matters. Trailing P/E uses reported historical EPS, while forward P/E uses an expected future EPS figure. The formula is the same, but the interpretation changes because one is based on reported results and the other on assumptions or forecasts.

The formula and its inverse

The P/E formula divides the current share price by earnings per share. Earnings yield simply flips the same relationship, dividing EPS by price to express the result as a percentage.

Both views are useful. P/E is the familiar headline multiple, while earnings yield can make cross-checking easier because it reads like a percentage return measure even though it is not the same as total shareholder return.

P/E ratio = Current share price / Earnings per share

Use either trailing EPS or forward EPS, but label the basis clearly.

Earnings yield = Earnings per share / Current share price

Express the result as a percentage by multiplying by 100.

Worked example: 40 share price and 2 EPS

If a stock trades at 40 and the relevant EPS figure is 2, the P/E ratio is 20x. The matching earnings yield is 5.0%. That does not tell you whether the stock is cheap or expensive by itself, but it does give you a compact way to compare the market price with the current earnings base.

The same formula can be used with an expected future EPS to show a forward P/E. That can be useful for planning scenarios, but it also means the result becomes only as reliable as the forecast that drives it.

When P/E stops being useful

P/E becomes non-meaningful when EPS is zero or negative, which is why this calculator is limited to positive EPS. It also loses power when earnings are unusually cyclical, heavily adjusted, or not the main driver of value in a sector.

A P/E ratio should therefore be treated as one comparison tool rather than a complete valuation decision. Debt, cash flow, margins, capital intensity, and growth quality still matter.

Further reading

Frequently asked questions

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

Trailing P/E uses reported historical EPS. Forward P/E uses an expected or forecast EPS figure. The formula is identical, but forward P/E depends on assumptions rather than completed results.

Why does this calculator reject zero or negative EPS?

Because simple P/E comparison becomes non-meaningful when the EPS figure is zero or negative. In those cases, other valuation measures are usually more appropriate.

Is a lower P/E always better?

No. A lower P/E can reflect slower growth, weaker quality, higher risk, or structural problems. A higher P/E can reflect better growth prospects or simply over-optimism. The multiple needs context.

What is earnings yield?

Earnings yield is the inverse of the P/E ratio. It expresses EPS divided by price as a percentage, which can make the valuation relationship easier to compare with other percentage-based measures.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.