Finance

P/E ratio calculator (price-to-earnings)

The price-to-earnings (P/E) ratio compares a company’s share price with its earnings per share. It tells you how much investors are paying for each dollar of yearly profit. With this P/E ratio calculator, enter the share price and EPS to get the P/E ratio, earnings yield and, with an expected growth rate, the PEG ratio. Or enter a P/E and EPS to find the share price that multiple implies.

$
$
%

Runs in your browser. Nothing you type is sent to us.

P/E ratio

25.00

Investors pay $25.00 for every $1.00 of yearly earnings

Earnings yield
4%
PEG ratio
2.08
Years of current earnings to equal the price
25 years

Price at other P/E ratios

P/EPrice
10$60.00
15$90.00
20$120.00
25$150.00
30$180.00

Key facts

  • P/E ratio = share price ÷ earnings per share (EPS).
  • A stock at $150 with EPS of $6 has a P/E of 25: investors pay $25 for every $1 of yearly earnings.
  • The earnings yield is the inverse, EPS ÷ price = 4%.
  • With expected EPS growth of 12% a year, the PEG ratio is 25 ÷ 12 = 2.08.
  • Applying a P/E of 20 to EPS of $5 implies a share price of $100.

The formulas

P/E = Share price ÷ EPSEarnings yield = EPS ÷ Share pricePEG = P/E ÷ Expected EPS growth rate (in %)Implied price = P/E × EPS

How to use the P/E ratio calculator

  1. Choose whether to find the P/E ratio or a price from a P/E.
  2. Enter the share price (or the P/E you want to apply) and the EPS.
  3. Optionally enter expected EPS growth for the PEG ratio.
  4. Read the P/E or implied price, earnings yield, PEG and a table of prices at other P/E ratios.

Worked examples: P/E ratios

Example 1: the P/E ratio

Share price $150, EPS $6. P/E = 150 ÷ 6 = 25. Earnings yield: 4%. If earnings grow 12% a year, PEG = 2.08.

Example 2: valuing with a multiple

If similar companies trade at 18 times earnings and this company’s EPS is $5, an implied price is 18 × 5 = $90.

P/EPrice with EPS of $6
10$60
15$90
20$120
25$150
30$180

Trailing and forward P/E

  • Trailing P/E uses EPS from the past 12 months. It is based on actual results.
  • Forward P/E uses analysts’ estimates for the next 12 months. It reflects expectations but depends on forecasts being right.

Be clear which one you are comparing.

What is a high or low P/E?

P/E ratios depend on growth expectations, risk, interest rates and industry. Over long periods, the broad US stock market has often traded somewhere around the mid-teens to low twenties times earnings, with wide swings. Fast-growing companies can carry P/Es of 40 or more; slow-growing or cyclical ones may trade below 10. NYU Stern publishes average P/E ratios by industry.

A low P/E is not automatically cheap: earnings may be about to fall. A high P/E is not automatically expensive if growth is strong, which is why the PEG ratio is used. A PEG around 1 is often taken as a fair balance of price and growth.

When P/E does not work

  • Losses. With zero or negative EPS, the P/E is not meaningful.
  • Unusual earnings. One-off gains or charges distort EPS for a single year.
  • Very different capital structures. Companies with heavy debt can look cheap on P/E. EV/EBITDA helps here.

P/E and interest rates

When interest rates are high, bonds pay more, so investors tend to accept lower P/E ratios for stocks. Comparing the earnings yield (4% in Example 1) with the yield on government bonds is a rough way to judge whether stocks look expensive relative to bonds.

Mistakes to avoid with P/E ratios

  • Mixing trailing and forward figures.
  • Comparing P/Es across unrelated industries.
  • Ignoring dilution. Use diluted EPS for a conservative P/E.

P/E ratios from Graham to Shiller

Benjamin Graham, in *The Intelligent Investor* (1949), suggested defensive investors avoid stocks with a P/E above about 15 based on average earnings of the past three years, and that idea of smoothing earnings was taken further by Robert Shiller and John Campbell, whose cyclically adjusted P/E (CAPE) divides price by 10 years of inflation-adjusted earnings. Shiller publishes CAPE for the S&P 500 back to 1871 on his Yale University website, and it is widely used to judge whether the whole market looks expensive.

The PEG ratio, P/E divided by the expected earnings growth rate, was popularized by fund manager Peter Lynch in *One Up on Wall Street* (1989), who suggested a PEG around 1 signals fair value. P/E differs widely by sector: fast-growing technology companies often trade far above the market average, while banks and utilities trade below. A negative or tiny EPS makes P/E meaningless, which is why analysts then switch to EV/EBITDA or price-to-sales. Find the EPS itself with the EPS calculator; compare the whole business, debt included, with the enterprise value calculator; and see what return a P/E implies over time with the CAGR calculator. Its inverse, the earnings yield (EPS ÷ price), can be compared directly with a stock’s dividend yield or a bond yield.

Related: the EPS calculator, the dividend yield calculator and the stock calculator.

How this calculator works

  • P/E = share price ÷ earnings per share (trailing or forward EPS, whichever you enter).
  • Earnings yield = EPS ÷ price, the inverse of P/E, comparable with bond yields.
  • If you enter expected growth, PEG = P/E ÷ growth rate (in percent).
  • Target mode: implied price = EPS × the target P/E you enter.

Frequently asked questions

What is the P/E ratio?

Share price divided by earnings per share: how much investors pay for each dollar of yearly profit.

How do you calculate P/E?

Divide the share price by EPS. $150 ÷ $6 = 25.

What is a good P/E ratio?

It depends on growth and industry. A P/E is best judged against peers and the company’s own history.

What does a P/E of 25 mean?

Investors pay $25 for every $1 of the company’s annual earnings.

What is the earnings yield?

EPS divided by price, the inverse of P/E. A P/E of 25 is a 4% earnings yield.

What is the PEG ratio?

P/E divided by the expected EPS growth rate. It adjusts P/E for growth.

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

Trailing uses the last 12 months of actual EPS; forward uses estimated EPS for the next 12 months.

What if EPS is negative?

The P/E ratio is not meaningful when a company has losses.

Sources

  1. OpenStax: Principles of Finance, 6.5 Market Value Ratios
  2. NYU Stern (Damodaran): P/E ratios by sector
  3. Investopedia: Price-to-earnings (P/E) ratio

Updated November 25, 2026. Formulas checked against published sources and worked examples.

Cite this page: CalcRoster. "P/E ratio calculator (price-to-earnings)." calcroster.com/pe-ratio-calculator/. Updated November 25, 2026.

Results are estimates for general information. They are not financial, medical or legal advice. Check important decisions with a qualified professional.