All calculators

P/E and PEG Ratio Comparison Calculator

Your companies (up to four)

Enter made-up or your own figures; this tool has no market data. The defaults are the hypothetical companies from the Trailing P/E lesson, all priced at $60. Leave a row empty to skip it.

Company 1
Company 2
Company 3 (optional)
Company 4 (optional)
Table order

Lowest first; n/a rows go last. The order is only a sort, not a ranking.

Trailing P/E of the first company
20x
Company B: Earnings yield 5%. PEG 2 at 10% expected growth.

A lower ratio is not a verdict. Each ratio ignores growth quality, debt, cyclicality and one-off items, so it cannot say whether a share is cheap or expensive.

What each ratio leaves out

  • Trailing P/E uses last year's earnings only: it ignores future growth, debt and cash, one-off items and where the business is in its cycle. With zero or negative EPS it is n/a, and a blank is not "cheap".
  • Forward P/E rests on an estimate of next year's earnings, which can turn out to be wrong.
  • Earnings yield is profit as a share of the price, not cash paid to you, and it inherits every gap of the P/E.
  • PEG adds one growth number but ignores how reliable or high-quality that growth is, how long it lasts, and debt. It is n/a when growth is zero or negative.

Debt and cash are counted in enterprise value, and future cash flows in DCF step by step. The formulas follow Trailing P/E (price / earnings). This is education, not a recommendation about any security.

What this calculator shows

This calculator puts up to four hypothetical companies side by side. For each one you enter a name, a share price and earnings per share (EPS) for the last four quarters, and, if you like, a forward EPS estimate and an expected yearly EPS growth rate. It returns the trailing P/E, the forward P/E, the earnings yield and the PEG ratio, and a table you can sort by any of them. It has no market data: every number is one you type in.

How the numbers are worked out

When EPS is zero or negative the P/E has no meaning, so the tool shows "n/a" with the reason instead of a number; the earnings yield is still shown, as a negative figure for a loss. PEG is also n/a when growth is zero or negative or left empty. Sorting puts the lowest number first and every n/a last.

Worked example (hypothetical)

Limits of this model

Learn investing basics

For educational purposes only. This material does not provide investment advice.