P/E Ratio Calculator — Price to Earnings Ratio

Enter share price and earnings per share (EPS) to get the P/E ratio. Optionally solve for the price or EPS needed for a target P/E. Supports trailing (historical) and forward (estimated) EPS. This is not a valuation model and does not account for growth rates, debt, or industry comparisons.

P/E parameters

Formulas

P/E = share_price / eps

Earnings yield = eps / share_price × 100

required_price = target_pe × eps

required_eps = share_price / target_pe

Where share_price = current market price per share; eps = earnings per share (trailing or forward); eps_type = 0 for trailing TTM, 1 for forward estimated; target_pe = desired P/E ratio; pe_ratio = share_price / eps; earnings_yield = inverse of P/E (eps/price).

P/E ratio = share price / earnings per share.

Earnings yield = 1 / P/E × 100 (inverse of P/E).

Trailing P/E uses last 12 months actual EPS; forward P/E uses next 12 months estimated EPS.

Lower P/E may indicate undervaluation or slower growth; higher P/E may indicate growth expectations.

Does not account for debt, cash, growth rates, or accounting differences.

Checked examples

$150 price, $5 EPS: P/E = 150/5 = 30.0. Earnings yield = 5/150 × 100 = 3.3333%.

$200 price, $8 forward EPS: P/E = 200/8 = 25.0. Target 25 → price = 25 × 8 = $200 (matches).

$50 price, $2 EPS: P/E = 25.0. Target 15 → price = 15 × 2 = $30, or EPS = 50/15 = 3.3333.

Limits

Share price and EPS must be positive. Target P/E must be positive if provided. Does not account for growth, debt, cash, or industry context. Not for: Intrinsic value or DCF valuation; PEG ratio (P/E divided by growth rate); Shiller P/E (CAPE) or cyclically adjusted P/E; Price-to-sales or price-to-book ratios.

Investopedia Price-Earnings Ratio and Wall Street Prep P/E Ratio.