Finance & Economics · Corporate Finance & Valuation · Valuation Models
Price-to-Earnings Ratio Calculator
Calculates the Price-to-Earnings (P/E) ratio of a stock by dividing the current market price per share by the earnings per share (EPS).
Calculator
Formula
P is the current market price per share (in currency units). EPS is the Earnings Per Share — the company's net income divided by the number of outstanding shares. The resulting P/E ratio tells investors how many dollars they are paying for each dollar of earnings. A related output, Earnings Yield, is the inverse: EY = EPS / P, expressed as a percentage.
Source: Damodaran, A. (2012). Investment Valuation: Tools and Techniques for Determining the Value of Any Asset (3rd ed.). Wiley Finance.
How it works
The P/E ratio is calculated by dividing a company's current share price by its Earnings Per Share (EPS). EPS itself is derived by dividing the company's net income attributable to common shareholders by the weighted average number of diluted shares outstanding. The ratio essentially answers the question: 'How many years of current earnings would it take to recoup the purchase price of one share?' A P/E of 20, for example, means an investor is paying 20 times the annual earnings.
There are two main variants of the P/E ratio. The trailing P/E uses actual reported EPS from the last 12 months (TTM — trailing twelve months), making it a backward-looking measure based on audited financial data. The forward P/E uses analyst consensus EPS estimates for the next 12 months, making it a forward-looking measure subject to forecast error. This calculator works for both — simply enter the relevant EPS figure. The Earnings Yield (the inverse of P/E, expressed as a percentage) is often compared to bond yields to assess whether equities are attractive relative to fixed income. The PEG Ratio adjusts the P/E by the expected earnings growth rate, providing a more complete picture of whether a valuation is justified by growth prospects.
In practice, P/E ratios vary significantly by sector and market cycle. Technology and high-growth sectors typically trade at higher P/E multiples (20–40x or more) because investors price in future earnings growth. Mature, capital-intensive industries like utilities or financials often trade at lower multiples (8–15x). Comparing a company's P/E against its historical average, its peer group, and the broader index (e.g., S&P 500 long-run average of approximately 15–17x) provides the most meaningful context.
Worked example
Suppose you are evaluating shares of a consumer goods company. The stock is currently trading at $120.00 per share. The company reported diluted EPS of $6.00 over the trailing twelve months. Analysts expect EPS to grow at 12% per year over the next five years.
Step 1 — Calculate the P/E Ratio:
P/E = $120.00 ÷ $6.00 = 20.0x
This means investors are currently paying 20 times trailing earnings for each share.
Step 2 — Calculate the Earnings Yield:
EY = ($6.00 ÷ $120.00) × 100 = 5.00%
Compared to a 10-year Treasury yield of, say, 4.3%, this equity earnings yield offers a modest premium, suggesting the stock is not dramatically overvalued on an absolute basis.
Step 3 — Calculate the PEG Ratio:
PEG = 20.0 ÷ 12 = 1.67x
A PEG ratio above 1.0 suggests the stock may be somewhat richly valued relative to its growth rate. A PEG of 1.0 is often considered fair value; below 1.0 may indicate undervaluation. At 1.67x, the investor is paying a premium for the expected growth, which may or may not be warranted depending on the quality and reliability of that growth.
Limitations & notes
The P/E ratio has several important limitations that every analyst should understand. First, it is meaningless or misleading when EPS is negative — loss-making companies have no valid P/E ratio, which is why this calculator returns no result for negative EPS. Second, EPS can be heavily distorted by one-time items, accounting policy choices (e.g., depreciation methods, stock-based compensation treatment), and tax effects, meaning two companies with identical economic performance can report very different P/E ratios. Third, the P/E ratio ignores capital structure — a company loaded with debt may show a high P/E simply because interest expense has depressed net income, making EV/EBIT or EV/EBITDA more appropriate comparisons. Fourth, comparing P/E ratios across industries is rarely meaningful without context: a utility at 12x and a software company at 35x can both be fairly valued for their respective risk and growth profiles. Finally, the forward P/E relies entirely on the accuracy of EPS forecasts, which are systematically subject to analyst optimism bias. Use the P/E ratio as one input in a broader valuation framework rather than a standalone buy or sell signal.
Frequently asked questions
What is a good P/E ratio for a stock?
There is no universally 'good' P/E ratio — it depends on the industry, growth rate, interest rate environment, and risk profile. Historically, the S&P 500 has averaged a P/E of roughly 15–17x. High-growth technology companies may reasonably trade at 30–50x, while stable utilities or banks may trade at 8–14x. The most meaningful comparison is always against the company's own historical range and its direct peers.
What is the difference between trailing P/E and forward P/E?
Trailing P/E uses actual reported earnings from the last 12 months, making it a factual, backward-looking metric based on audited data. Forward P/E uses analyst consensus estimates for future earnings, making it forward-looking but subject to forecast error. Forward P/E is often lower than trailing P/E for growing companies because analysts expect earnings to increase, but it can be misleading if estimates are overly optimistic.
Why is the P/E ratio not useful for loss-making companies?
When a company reports negative EPS (a net loss), dividing price by a negative number produces a negative P/E, which has no intuitive interpretation. You cannot meaningfully say a stock trades at -15x earnings. For pre-profit or loss-making companies, analysts instead use metrics like Price-to-Sales (P/S), EV/Revenue, or a discounted cash flow (DCF) model to estimate intrinsic value.
What does the PEG ratio tell me that the P/E ratio does not?
The PEG ratio (P/E divided by the expected earnings growth rate) adjusts for growth, making it easier to compare companies with different growth profiles. A company with a P/E of 30x but growing earnings at 30% per year (PEG = 1.0) may be more attractively valued than a company with a P/E of 15x but only 5% growth (PEG = 3.0). Peter Lynch popularized the rule of thumb that a PEG below 1.0 may indicate undervaluation, though this should not be applied mechanically.
How does the interest rate environment affect P/E ratios?
P/E ratios are inversely related to interest rates in theory, because higher risk-free rates increase the discount rate applied to future earnings, reducing their present value. During the low-rate environment of 2010–2021, equity P/E multiples expanded significantly (S&P 500 forward P/E reached 21–23x). As rates rose sharply in 2022–2023, P/E multiples compressed. This is why the earnings yield is often compared to the 10-year Treasury yield — a practice sometimes called the 'Fed Model.'
Last updated: 2025-01-15 · Formula verified against primary sources.