Price-to-Earnings (P/E) Ratio Calculator

Enter the share price and EPS to get the P/E ratio and earnings yield.

How it is calculated

The price-to-earnings ratio shows how many currency units investors pay for one unit of yearly profit: P/E = price ÷ EPS. price is the current price of one share and EPS is earnings per share over the period you choose, usually the last twelve months or a forecast, in the same currency. The tool also gives the earnings yield, the inverse of P/E: yield = EPS ÷ price × 100. Both inputs must be above zero, so a company with negative earnings gives no result, because a P/E for a loss-making company is not meaningful. The ratio is rounded to two decimals. A lower P/E is not automatically cheaper; growth, debt and sector all matter.

Worked example

A share trades at 150 and the company earned 6 per share. Divide 150 by 6: the P/E ratio is 25.00, so you pay 25 for each 1 of annual earnings. The earnings yield is 6 ÷ 150 × 100 = 4.00%, which is the same as 1 ÷ 25. If the price rose to 180 with the same earnings, P/E would be 30.

Try this example →

Common mistakes

  • Mixing trailing and forward EPS when comparing two companies. One uses past profit and the other a forecast, so the P/E values are not comparable.
  • Using total net income instead of earnings per share, or the market capitalisation with EPS. Price and EPS must both be per share.
  • Entering a negative EPS. The tool returns nothing for it; use another measure for loss-making firms.
  • Comparing P/E across different sectors. Software, banks and utilities normally trade at different ratios.
  • Reading a very low P/E as a bargain without checking why earnings are high, for example a one-off gain.

About this calculator

The P/E ratio is share price ÷ earnings per share, and its inverse — earnings yield = EPS ÷ price — expresses the same relationship as a percentage return, directly comparable to a bond yield.

Investors have used P/E as the default first-pass valuation check for over a century: a high P/E signals the market expects strong future growth (or the stock may be overpriced), while a low P/E can mean a bargain — or a company the market has real doubts about. It's the number quoted alongside almost every stock ticker precisely because it converts an absolute share price into something comparable across companies of totally different sizes.

Was this helpful?

You can pick up to 3 reactions.

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators