P/E Ratio Calculator

P/E Ratio Calculator

Growing AI Skill PRO

Enter Calculation

Formula

P/E Ratio=Stock PriceEPS\text{P/E Ratio} = \frac{\text{Stock Price}}{\text{EPS}}

Example

P/E Ratio=503.5≈14.29\text{P/E Ratio} = \frac{50}{3.5} \approx 14.29
Show calculation steps (1)
  1. Value Relative to Industry

    Relative Value=(Stock PriceEPSIndustry P/E−1)×100%\text{Relative Value} = \left(\frac{\frac{\text{Stock Price}}{\text{EPS}}}{\text{Industry P/E}} - 1\right) \times 100\%

    Percentage difference between the calculated P/E and the Industry Average P/E

Usage stats

Advertisement

Results

P/E Ratio
14.29
Fairly Valued
Stock Price $50.00
Earnings Per Share (EPS) $3.50
Industry Average P/E 15.00
Relative to Industry Average -4.76%

Report an error on this page

What this P/E Ratio Calculator does

The price-to-earnings (P/E) ratio is one of the most widely used measures for judging how expensive a stock is relative to the profit it generates. This calculator takes three numbers you provide — the current stock price, earnings per share (EPS), and the average P/E for the company's industry — and instantly returns the P/E ratio plus a plain-language verdict on whether the stock looks cheap or pricey compared with its peers.

Gauge comparing a stock's P/E ratio to an industry average marker
Comparing a P/E with the industry average helps gauge if a stock looks cheap or expensive.

The inputs you enter

  • Stock Price – the current market price of a single share.
  • Earnings Per Share (EPS) – the company's net profit divided by its outstanding shares (usually the trailing twelve months).
  • Industry Average P/E – the typical P/E for comparable companies, used as a benchmark for valuation.

The formula

The core calculation is simply:

P/E Ratio = Price per Share ÷ Earnings per Share

The calculator then compares your result against the industry average and assigns a label based on these thresholds: below 70% of the industry P/E is Potentially Undervalued; within ±30% is Fairly Valued; up to twice the industry figure is Potentially Overvalued; above that is Highly Overvalued. A negative or zero ratio is flagged as Invalid (companies with no earnings have no meaningful P/E). It also shows how far your stock sits from the benchmark as a percentage, calculated as (P/E ÷ Industry P/E − 1) × 100.

Advertisement
P/E ratio shown as stock price divided by EPS equals a P/E gauge
The P/E ratio divides stock price by earnings per share.

Worked example

Suppose a stock trades at $150 with EPS of $6, and the industry average P/E is 20.

  • P/E Ratio = 150 ÷ 6 = 25
  • Industry comparison: 25 is within 30% of 20 (the fair range is 14 to 26), so it is labelled Fairly Valued.
  • Relative to industry: (25 ÷ 20 − 1) × 100 = +25%, meaning it trades 25% above the peer average but still inside the fair band.

Typical P/E Ratios by Industry

P/E ratios differ widely between sectors because growth prospects, capital intensity, earnings stability and interest rates differ. The ranges below are approximate, rounded long-run tendencies for broad sectors. They are not fixed benchmarks and shift noticeably from one period to another, especially during recessions, rate changes and market rallies.

Sector Approximate typical trailing P/E range General reason
Utilities ~14-20 Regulated, stable earnings, modest growth, high debt
Banks / Financials ~9-15 Cyclical earnings, leverage, credit-cycle risk
Consumer staples ~17-25 Defensive demand, steady earnings
Energy ~8-15 (can swing far outside this) Earnings follow commodity prices, so the P/E is volatile
Technology ~20-30+ Higher expected earnings growth
Healthcare ~17-25 Mix of mature companies and high-growth biotech

Broad market benchmark: the long-run average P/E of the S&P 500 index (US large-cap stocks) is commonly cited at roughly 15-20, depending on the period and on whether trailing reported or operating earnings are used.

Data sources: sector P/E data is published by sources such as NYU Stern (Aswath Damodaran's industry datasets) and S&P Dow Jones Indices. Their figures depend on the date, the sector definitions and the earnings measure, so check the current release before using one as the "industry average" in this calculator.

P/E Ratio Terms Explained

P/E ratio (price-to-earnings)
Share price divided by earnings per share: \(\text{P/E} = \frac{\text{Price}}{\text{EPS}}\). It shows how much investors pay per unit of annual earnings.
EPS (earnings per share)
Net income attributable to common shareholders (after preferred dividends) divided by shares outstanding. Basic EPS uses the weighted average number of shares actually outstanding. Diluted EPS also counts potential new shares from options, warrants and convertibles, so it is usually equal to or lower than basic EPS.
Trailing P/E
Price divided by EPS from the last twelve months of reported results. It rests on actual figures but looks backward.
Forward P/E
Price divided by expected EPS for the next fiscal year or twelve months. It relies on analyst estimates, which can be wrong or revised.
Earnings yield
The inverse of the P/E: \(\frac{1}{\text{P/E}} = \frac{\text{EPS}}{\text{Price}}\). A P/E of 20 corresponds to an earnings yield of 1/20 = 5%.
Industry average P/E
A typical P/E for companies in the same sector or industry, used as a reference point for comparison. Methods differ (mean, median, aggregate earnings), so values vary by source.
Market capitalization
Share price × total shares outstanding, the market value of a company's equity. Dividing market cap by total net income gives the same P/E as price divided by EPS, if the share count is consistent.
Advertisement

Interpreting Your P/E Result

Example: a stock priced at $150 with EPS of $6 has \(\text{P/E} = \frac{150}{6} = \) 25. Against an industry average of 20, that is 25% higher, since \(\frac{25}{20} = 1.25\). Its earnings yield is \(\frac{6}{150} = 4\%\).

What high and low P/E generally indicate

  • Higher P/E: investors are paying more per unit of current earnings. This often reflects expectations of faster earnings growth, lower perceived risk, or temporarily depressed earnings that inflate the ratio.
  • Lower P/E: investors pay less per unit of earnings. This can reflect slower expected growth, higher perceived risk, or earnings that are temporarily high, which is common in cyclical industries at the top of the cycle.
  • Compared with the industry average: a result above or below the average describes how the market currently prices the company relative to peers. It does not by itself say whether that price is justified.

Limitations

  • One-off items: asset sales, write-downs, legal settlements or tax effects can distort EPS and therefore the P/E.
  • Accounting differences: depreciation, revenue recognition, share-based compensation and GAAP vs. IFRS treatment make cross-company and cross-country comparisons imperfect.
  • Debt and capital structure: P/E ignores debt. Two companies with the same P/E can carry very different financial risk. Metrics such as EV/EBITDA account for debt.
  • Negative or near-zero earnings: a negative EPS gives a meaningless P/E, and a tiny positive EPS gives an extremely high one. In these cases the ratio is usually reported as "N/A" or not used.
  • Cyclical earnings: P/E can look lowest when earnings peak and highest when they trough, so the signal can be misleading.
  • Trailing vs. forward: a trailing P/E is based on past results, while a forward P/E depends on estimates that may prove inaccurate.

Use it with other metrics

P/E is one lens on valuation. It is commonly read alongside price-to-book, price-to-sales, PEG ratio (P/E relative to earnings growth), EV/EBITDA, free cash flow, dividend yield, debt levels and return on equity. This is general educational information, not investment advice.

Frequently asked questions

What is a "good" P/E ratio? There is no universal number — it depends entirely on the industry. A P/E of 25 might be cheap for fast-growing tech but expensive for a utility. That is exactly why this tool compares your result to an industry average rather than a fixed figure.

Why does my result show "Invalid"? If the calculated ratio is zero or negative, the company has no positive earnings, so the P/E cannot be meaningfully interpreted. Check that EPS is a positive number.

Should I use trailing or forward EPS? Either works in the calculator. Trailing EPS uses reported past earnings; forward EPS uses analyst estimates for the year ahead. Just be consistent and use the same basis as the industry average you enter.

Last updated:

Most popular in Financial

View all Financial calculators