
P/E Ratio Calculator
Price-to-earnings ratio and earnings yield of a stock.
P/E ratio
25
earnings yield 4%
Earnings yield
4%
EPS
$6.00
AI Breakdown & Smart Takeaway
Plain-English insight on your numbers
Get a personalized explanation of what these results mean — and how to improve them.
How the P/E Ratio Calculator works
The P/E Ratio Calculator instantly computes the price-to-earnings ratio and earnings yield of any stock given its current share price and earnings per share (EPS), making it an essential tool for investors, analysts, and anyone evaluating whether a stock is fairly valued, overpriced, or a potential bargain.
The calculator takes two inputs — the current market price per share and the earnings per share (EPS) — and divides the price by the EPS to produce the P/E ratio. It simultaneously calculates the earnings yield, which is simply the inverse of the P/E ratio expressed as a percentage. Together, these two metrics give you an immediate, comparable snapshot of how much the market is charging for each dollar of a company's profits. The process is instantaneous, but understanding what the output means is where the real analytical value lies.
The P/E ratio essentially answers the question: 'How many years' worth of current earnings am I paying for this stock?' A P/E of 20 means investors are paying $20 for every $1 of annual earnings. High P/E ratios — often seen in growth stocks — signal that the market expects strong future earnings expansion, while low P/E ratios may indicate undervaluation, slower growth expectations, or elevated risk. Context matters enormously: a P/E of 15 might be expensive in the utility sector but cheap in consumer staples, so always compare against industry benchmarks and historical averages for the same company.
The EPS figure you use dramatically affects the result and interpretation. Trailing twelve-month (TTM) EPS is based on actual reported earnings, giving you a backward-looking, concrete number. Forward EPS uses analyst consensus estimates for the next twelve months, producing a forward P/E that reflects anticipated performance. A common mistake is mixing these without realizing it — using a forward EPS with a historical price, for example, skews the ratio misleadingly. Always confirm which EPS figure you're entering and interpret the resulting P/E accordingly. Negative EPS (a loss) renders the P/E ratio undefined or meaningless, a limitation worth noting for early-stage or cyclical companies.
Earnings yield — the reciprocal of P/E, expressed as EPS divided by price — is particularly powerful when comparing stocks against fixed-income alternatives like bonds or Treasury yields. If a stock has an earnings yield of 6% and the 10-year Treasury yields 4.5%, the equity risk premium is 1.5%, which may or may not be sufficient compensation for equity risk depending on your investment thesis. Sophisticated investors use the earnings yield to rank stocks relative to one another and relative to interest rates, a technique popularized by strategies like the 'Magic Formula' investing approach. Treating these two outputs together — P/E and earnings yield — gives you a richer, more actionable picture than either metric alone.
Formula
P/E = Share price / Earnings per share
Pro tips
- Always verify whether your EPS figure is trailing (TTM) or forward-looking before interpreting the P/E ratio — mixing the two without awareness is one of the most common valuation errors retail investors make.
- Compare the resulting P/E against the stock's own 5-year historical average P/E, not just the broad market average, since different sectors carry structurally different earnings multiples.
- Use the earnings yield output to benchmark the stock against current 10-year Treasury yields; if the gap (equity risk premium) is thin, the stock's margin of safety may be inadequate given the risk of owning equities.
- For cyclical companies (energy, materials, autos), consider using normalized or mid-cycle EPS rather than peak or trough earnings, as P/E ratios on cyclical stocks are notoriously misleading at extremes of the business cycle.
- A very low P/E is not automatically a buy signal — screen for the reason behind it. Declining earnings, sector headwinds, or financial distress can all produce low P/E ratios that represent value traps rather than genuine opportunities.
Key terms
- Price-to-Earnings (P/E) Ratio
- — A valuation metric that measures how much investors pay for each dollar of a company's earnings, calculated by dividing the stock's current price by its earnings per share.
- Earnings Per Share (EPS)
- — The portion of a company's net profit allocated to each outstanding share of common stock, calculated as net income divided by the number of shares outstanding.
- Trailing P/E
- — A P/E ratio calculated using actual reported EPS from the past twelve months, providing a backward-looking, historically grounded valuation.
- Forward P/E
- — A P/E ratio calculated using analysts' consensus EPS estimates for the next twelve months, reflecting expected future performance rather than historical results.
- Earnings Yield
- — The inverse of the P/E ratio expressed as a percentage (EPS ÷ Price × 100), indicating the return on investment implied by current earnings relative to share price.
- Equity Risk Premium
- — The excess return that investing in stocks is expected to provide over a risk-free rate, often estimated by comparing a stock's earnings yield to prevailing government bond yields.