Price to Earnings Ratio Calculator

Work out a stock's price-to-earnings (P/E) ratio from its share price and earnings per share, along with the PEG ratio, earnings yield, and a comparison against an industry-average P/E.

Quick Facts

Formula
P/E = Share Price ÷ EPS
A trailing P/E uses the last twelve months of actual earnings per share.
PEG formula
PEG = P/E ÷ EPS growth rate (%)
A PEG near 1 is a common rule-of-thumb reference point, not a buy or sell signal.

Your Results

Calculated
P/E ratio
-
Share price ÷ earnings per share
PEG ratio
-
P/E ÷ expected EPS growth rate
Earnings yield
-
EPS ÷ share price, as a percent
Vs. industry average
-
Percent above or below industry P/E

Ready

Enter share price, EPS, expected growth rate, and industry average P/E, then press Calculate.

How the Price to Earnings Ratio Calculator works

The price-to-earnings (P/E) ratio is one of the most widely used valuation metrics in equity investing. It compares what a share currently costs to how much profit the company earns per share, giving a quick sense of how expensive a stock is relative to its current earnings.

The core formula

P/E Ratio = Share Price ÷ Earnings Per Share (EPS)

A trailing P/E uses EPS from the last twelve months of actual, reported results. A forward P/E instead uses an analyst's projected EPS for the next twelve months. This calculator treats whatever EPS figure you enter as the basis for the ratio — label it clearly as trailing or forward when you record the result.

Worked example

A stock trading at $150 per share with trailing EPS of $6.00 has a P/E of $150 ÷ $6.00 = 25.0×. That means investors are paying $25 for every $1 of the company's annual earnings. Whether 25× is "cheap" or "expensive" depends entirely on the comparison point — the company's own history, its growth rate, and the P/E of similar companies in the same industry.

The PEG ratio: adjusting for growth

PEG = P/E ÷ Expected EPS Growth Rate (%)

A high P/E is not automatically a red flag if earnings are growing quickly, and a low P/E is not automatically a bargain if earnings are shrinking. The PEG ratio divides the P/E by the expected annual EPS growth rate to normalize for that difference. Using the example above, a P/E of 25× with 10% expected growth gives a PEG of 25 ÷ 10 = 2.5. Many investors treat a PEG near 1.0 as a rough reference point for "growth-adjusted fair value," though this is a heuristic, not a formal valuation rule, and it breaks down for very low or negative growth rates.

Earnings yield

Earnings Yield = (EPS ÷ Share Price) × 100

Earnings yield is simply the reciprocal of the P/E ratio expressed as a percentage. A P/E of 25× corresponds to an earnings yield of 4%. Restating the ratio this way makes it easier to compare a stock's earnings-based return against bond yields or other fixed-income benchmarks that are already quoted as percentages.

Why EPS must be positive

Dividing by a zero or negative EPS produces a number that does not represent a real valuation multiple, so this calculator requires EPS greater than zero. Companies with negative earnings are typically valued using other metrics, such as price-to-sales or price-to-book, until profitability is established.

Limits of the P/E ratio

P/E ratios vary widely by industry, capital structure, and accounting treatment, so comparing a P/E across unrelated sectors is rarely meaningful — this calculator's industry-average comparison is only useful when the comparison figure genuinely reflects similar companies. P/E also says nothing about debt levels, cash flow quality, or one-time accounting items that can distort reported earnings. This tool performs the arithmetic only; it is not investment advice and does not evaluate any individual security.

Frequently Asked Questions

How is the P/E ratio calculated?
The price-to-earnings ratio is P/E = Share Price ÷ Earnings Per Share (EPS). It shows how many dollars investors are paying for each dollar of a company's annual earnings. A trailing P/E uses EPS from the last twelve months of actual results; a forward P/E uses projected EPS instead.
Why does EPS have to be greater than zero?
P/E is only meaningful when a company has positive earnings. If EPS is zero or negative, dividing the share price by it produces a result that doesn't reflect a real valuation multiple, so this calculator flags negative or zero EPS as invalid rather than showing a misleading number.
What is the PEG ratio and how is it different from P/E?
The PEG ratio divides the P/E ratio by the expected annual EPS growth rate: PEG = P/E ÷ Growth Rate (%). It adjusts the P/E for how fast earnings are expected to grow, so a high P/E paired with high growth can produce a lower, more moderate PEG than a low P/E paired with little or no growth.
What does earnings yield mean?
Earnings yield is the inverse of the P/E ratio, expressed as a percentage: Earnings Yield = (EPS ÷ Share Price) × 100. It restates the same relationship as a yield, which makes it easier to compare against bond yields or other interest-rate-based benchmarks.