P/E ratio calculator — price-to-earnings and earnings yield

Enter a share price and the company's earnings per share for the last 12 months, and the calculator returns the price-to-earnings (P/E) ratio, the earnings yield, and a one-line reading of how much investors are paying for each unit of yearly profit.

Live demo · real result from this tool
P/E ratio20
Earnings yield
5%
Reading
Investors pay 20 for every 1 of yearly earnings

Processed on your device — nothing is uploaded.

How to use the P/E ratio calculator

  1. Enter the Share price.
  2. Enter the Earnings per share (trailing 12 months). Negative values are allowed.
  3. Choose the Currency.
  4. Read P/E ratio, Earnings yield and the Reading line.

What it does and when to use it

The P/E ratio is one of the most quoted numbers in investing. It tells you how many times its yearly earnings a company’s share price represents. A P/E of 25 means buyers pay 25 for every 1 the company earned per share last year. A high P/E usually means the market expects strong growth; a low one can mean low expectations, a cheap share, or a business in trouble. The number starts a comparison; it does not settle one.

Use the calculator to check a P/E you have seen quoted, to work one out from a company’s results, or to compare two companies in the same sector on the same basis. It pairs well with the dividend yield calculator, which shows how much of the price comes back as cash each year, and the dividend payout ratio calculator, which shows how much of the earnings are paid out.

How it works

Investor.gov gives the calculation as the current stock price divided by the current earnings per share:

  • P/E ratio = share price ÷ earnings per share
  • Earnings yield = earnings per share ÷ share price × 100

If the EPS is zero or below, the calculator does not return a P/E. It warns that the ratio is not meaningful and shows the earnings yield, which will be zero or negative.

Worked examples

These figures come from the calculator’s own function.

A ₹200 share earning ₹10. P/E ratio 20, earnings yield 5%. The reading says investors pay 20 for every 1 of yearly earnings.

A $150 share earning $6. P/E ratio 25, earnings yield 4%.

A loss-making company. Price $50, EPS −$2. The calculator warns that with zero or negative earnings the P/E ratio is not meaningful, and gives an earnings yield of −4%.

Comparing the first two: the $150 share costs more per unit of earnings (25 against 20), so its earnings yield is lower (4% against 5%).

Limits and tips

  • Trailing earnings look back. A P/E based on last year’s EPS can mislead when profits are changing fast. Analysts’ forward P/E uses expected earnings instead; this calculator uses whatever EPS you enter.
  • One-off items such as a large asset sale can inflate EPS for a year and make the P/E look low.
  • Compare like with like. Fast-growing and slow-growing businesses are priced very differently, so compare companies in the same industry.
  • Not a buy or sell signal on its own.
  • Runs in your browser.

Frequently asked questions

What is a good P/E ratio?
There is no single good number. Investor.gov describes P/E as a way to judge whether a price is high or low compared with the company's past or with other companies. Compare a share with its own history and with similar companies in the same industry, not with a fixed figure.
Where do I find earnings per share?
Companies report EPS in their results. Investor.gov explains it as earnings for the past 12 months divided by the number of common shares outstanding. Use the trailing 12-month figure, which is what this calculator's field asks for.
What is earnings yield?
It is the P/E turned upside down, EPS ÷ price, shown as a percentage. A P/E of 20 is an earnings yield of 5%. It lets you set a share's earnings next to an interest rate, though earnings are not paid out the way interest is.
Why can't the calculator show a P/E for a loss-making company?
With zero or negative earnings the ratio has no sensible meaning, so the calculator shows a warning and the (negative) earnings yield instead.

Sources

  1. Price-earnings (P/E) Ratio (glossary) — U.S. Securities and Exchange Commission (Investor.gov), accessed 2026-10-07

Written by the ToolsRift team · Last updated · Figures last verified

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close