Free Stock Valuation Tool

    P/E Ratio Calculator: Trailing, Forward & PEG

    Calculate the Price-to-Earnings ratio to evaluate whether a stock is overvalued, undervalued, or fairly priced. Includes Forward P/E, PEG ratio, and industry benchmarks.

    By Valuefy TeamLast Updated: July 20265 min read

    Try an example:

    Stock Information
    Enter the stock price and earnings per share to calculate P/E ratio

    Optional: Advanced Metrics

    P/E Ratio Results

    Enter stock price and EPS to see your P/E ratio calculation.

    What Is the P/E Ratio and Why Does It Matter?

    The Price-to-Earnings (P/E) ratio is one of the most widely used metrics for stock valuation. It divides a company's share price by its earnings per share (EPS) to show how much investors pay for each dollar of profit. A higher P/E suggests investors expect stronger future earnings growth, while a lower P/E may signal undervaluation or weaker growth expectations. As of late July 2026, the S&P 500 trades at a forward P/E of approximately 20x, above both the 5-year average of 19.9x and the 10-year average of 19.0x, according to FactSet.

    The P/E ratio helps investors compare valuations across companies in the same industry or against the broader market. However, it should never be used in isolation. Factors like growth rate, EBITDA margins, debt levels, and cost of capital all influence what constitutes a "fair" P/E for a particular stock. Pairing P/E analysis with a DCF valuation helps confirm whether a given multiple is justified by the underlying cash flows.

    There are two main types: Trailing P/E (using past 12 months earnings) and Forward P/E (using estimated future earnings). Each provides different insights, and savvy investors often look at both to get a complete picture of a stock's valuation. Income-focused investors also weigh dividend yield alongside P/E when assessing total return potential.

    How Do You Calculate the P/E Ratio?

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

    Stock Price: The current market price per share. This is readily available from any financial website or brokerage platform.

    Earnings Per Share (EPS): The company's net income divided by the number of outstanding shares. Use our earnings per share calculator to derive this figure from net income and shares outstanding. You can also find TTM (trailing twelve months) EPS in quarterly earnings reports or financial data providers.

    Example: If a stock trades at $100 and has EPS of $5, the P/E ratio is 100/5 = 20x. This means investors are paying $20 for every $1 of annual earnings.

    What Do Real P/E Ratios Look Like by Sector?

    As of late July 2026, sector forward P/E ratios vary widely: Information Technology trades at roughly 28x, Consumer Discretionary at 26x, while Energy sits near 14x and Financials near 15x (FactSet Earnings Insight). These differences reflect growth expectations, capital intensity, and margin profiles. Use the Valuation Multiple Calculator to explore EV/EBITDA and EV/Revenue multiples alongside P/E.

    Technology: High P/E, High Growth

    A cloud software company trading at $200 with EPS of $5 has a trailing P/E of 40x. With earnings growing 30% annually, its PEG ratio is 1.33 -- reasonable for the sector. The S&P 500 Information Technology sector trades at a forward P/E of about 28x as of July 2026, above its 25-year average of 20.3x. Investors accept the premium because scalable, high-margin business models can compound earnings rapidly. If earnings double in three years, the effective P/E on future earnings drops to 20x. For SaaS companies, also check the SaaS Valuation Calculator which uses revenue multiples better suited to subscription businesses.

    Utilities and Financials: Low P/E, Stable Returns

    A regulated utility trading at $50 with EPS of $5 carries a P/E of 10x. Energy and Financials forward P/E ratios sit around 14-15x, well below the S&P 500 average of ~20x. The low multiple reflects modest growth (3-5% annually) and capital-heavy operations. However, a 4% dividend yield plus predictable cash flows can deliver attractive total returns for income investors. Use the CAPM Calculator to estimate the required rate of return for these lower-beta sectors. The low P/E is not a "bargain" but reflects the business reality. Pair this analysis with the Dividend Yield Calculator to assess total return potential.

    Pre-Profit Companies: P/E Not Applicable

    A biotech startup trading at $30 with negative EPS of -$2 has no meaningful P/E ratio. For unprofitable companies, investors use alternative metrics: Price-to-Sales (P/S) ratio, Enterprise-Value-to-Revenue, or Price-to-Book value. The P/E ratio simply does not work for companies not yet generating profits. For private startups, consider revenue-based valuation instead.

    S&P 500 Sector Forward P/E Ratios (July 2026)

    The table below shows forward 12-month P/E ratios by S&P 500 sector. Data sourced from FactSet Earnings Insight and MacroMicro. Sector P/E ratios reflect consensus analyst estimates for the next 12 months of earnings.

    SectorForward P/EContext
    Information Technology~28x25-year avg: 20.3x; elevated by AI/cloud growth
    Consumer Discretionary~26x25-year avg: 20.1x; includes mega-cap e-commerce
    Industrials~22x25-year avg: 17.0x; cyclical, tracks capex cycle
    Communication Services~22x25-year avg: 16.1x; includes digital advertising
    S&P 500 (overall)~20x5-yr avg: 19.9x; 10-yr avg: 19.0x
    Healthcare~18xBelow market; mix of pharma, biotech, devices
    Consumer Staples~18xDefensive; low growth but stable earnings
    Financials~15xAsset-heavy; use P/B as complementary metric
    Energy~14xCyclical; low P/E reflects commodity price risk

    What is a good P/E ratio? A good P/E ratio depends on the sector and market conditions. As of late July 2026, the S&P 500 forward P/E is approximately 20x (20.1x per FactSet), above its 10-year average of 19.0x. Technology stocks trade around 28x forward earnings, Industrials at 22x, while Energy and Financials trade at 14-15x. A P/E below the sector median may indicate undervaluation, but investors should always pair P/E with growth rates (PEG ratio), debt levels, and a discounted cash flow analysis before drawing conclusions.

    What is a good PEG ratio? The PEG ratio divides a stock's P/E ratio by its expected earnings growth rate. A PEG below 1.0 suggests the stock may be undervalued relative to its growth, a PEG near 1.0 indicates fair value, and a PEG above 2.0 may signal overvaluation. For example, a stock with a P/E of 25 and 25% earnings growth has a PEG of 1.0, while the same P/E with only 10% growth yields a PEG of 2.5. PEG works best for profitable, growing companies and should be compared within the same sector, since high-growth industries like technology sustain higher PEG ratios than mature sectors.

    What is the Shiller CAPE ratio and how does it differ from P/E? The Shiller Cyclically Adjusted Price-to-Earnings (CAPE) ratio averages inflation-adjusted earnings over 10 years instead of using a single year. As of July 2026, the S&P 500 Shiller CAPE stands at approximately 40, compared to a historical median of about 16, according to Multpl. While the standard trailing P/E can be distorted by one-time charges or cyclical earnings peaks, the CAPE smooths these effects over a full business cycle. A CAPE above 30 has historically preceded lower-than-average forward 10-year returns. However, CAPE critics note that changes in accounting standards, sector composition (more asset-light tech), and persistently low real rates over the past decade can structurally raise the ratio without implying overvaluation.

    When Should You Use the P/E Ratio?

    Best Use Cases

    • Comparing companies in the same industry
    • Evaluating mature, profitable companies
    • Assessing relative valuation vs. historical average
    • Quick screening for potential value opportunities
    • Combining with growth rate (PEG ratio)

    When to Avoid

    • Unprofitable or loss-making companies
    • Comparing across different industries
    • Cyclical companies at peak/trough earnings
    • Companies with significant one-time charges
    • REITs (use Price-to-FFO instead)

    Common P/E Ratio Mistakes to Avoid

    The P/E ratio is deceptively simple. Below are the most frequent errors investors make when relying on this metric, based on analysis from the Guinness Global Investors research team and Corporate Finance Institute.

    Comparing P/E across industries

    Technology stocks trade at ~28x forward earnings while energy companies trade near 14x. Comparing them directly is meaningless. Always benchmark against sector peers or use the industry comparison feature in this calculator.

    Assuming low P/E always means undervalued

    A low P/E can signal declining earnings, structural industry problems, or accounting issues rather than a bargain. Check the EBITDA trend and revenue trajectory before concluding a stock is cheap.

    Trusting PEG ratio blindly

    The PEG ratio depends on growth estimates that are only as reliable as the analysts making them. Growth forecasts often prove too optimistic, and the PEG ratio does not account for the quality or sustainability of that growth.

    Ignoring capital structure

    P/E does not reflect how a company is financed. A highly leveraged firm can show high EPS (and low P/E) because debt magnifies returns in good times. Use WACC and EV/EBITDA to account for debt in the valuation.

    Using a single year of earnings

    Cyclical companies can look cheap at peak earnings and expensive at trough earnings. Use normalized or average earnings over a full business cycle (5-7 years) for a more reliable P/E estimate.

    What Are the Limitations of the P/E Ratio?

    While the P/E ratio is a useful starting point, it has significant limitations that investors should understand:

    • Earnings manipulation: Companies can use accounting tricks to inflate or smooth earnings, making P/E ratios misleading.
    • Different accounting standards: Companies in different countries may use different accounting rules, affecting EPS comparability.
    • Capital structure ignored: P/E does not account for debt levels. A highly leveraged company may have higher EPS but also higher risk.
    • One-time items: Extraordinary gains or losses can distort EPS and therefore P/E in any given period.
    • Growth not captured: A low P/E stock might be cheap for good reason (declining business), while a high P/E stock might be justified by growth.

    What Does Your P/E Result Mean?

    Use this framework to interpret your P/E ratio in context. No single threshold works for every stock -- always compare within the same sector.

    P/E below sector median and PEG below 1.0

    Potentially undervalued relative to growth. Verify the growth estimate is realistic. Check whether earnings are declining (a "value trap") or genuinely discounted. Run a DCF analysis to confirm intrinsic value supports the thesis.

    P/E within sector range and PEG near 1.0

    Fairly valued. The market is pricing in expected growth at a reasonable rate. For income investors, check the dividend yield -- a fair P/E plus a strong dividend can still deliver attractive total returns.

    P/E above sector median and PEG above 2.0

    Potentially overvalued unless the company has a durable competitive advantage (wide moat, network effects, regulatory barriers). Examine EBITDA margins, gross margins, and revenue growth trajectory to assess whether premium pricing is justified.

    Key Takeaways

    • P/E ratio measures how much investors pay per dollar of earnings - lower is not always better
    • Compare within industries - tech stocks typically have higher P/Es than utilities
    • Use PEG ratio to account for growth - P/E divided by growth rate normalizes for growth expectations
    • Forward P/E uses analyst estimates and can be more relevant for growing companies
    • Earnings yield (inverse of P/E) helps compare stocks to bond yields
    • Never use P/E alone - combine with EBITDA multiples, book value, CAPM, and a DCF analysis for a complete picture

    Frequently Asked Questions

    Need to Value Your Entire Business?

    While P/E ratios are great for public stocks, private business valuation requires a more comprehensive approach. Get a professional DCF valuation of your company in minutes with our AI-powered analysis.