P/E Ratio Calculator
Calculate Price-to-Earnings ratio, PEG ratio, and analyze stock valuation metrics.
Important Financial Disclaimer
This calculator provides estimates based on standard financial formulas from verified references. Results are for informational and educational purposes only and should not be considered as professional financial, investment, or tax advice.
For important financial decisions such as loans, investments, mortgages, retirement planning, or tax matters, please consult with qualified financial advisors, certified financial planners, or licensed tax professionals who can review your specific situation.
Calculations may not account for all variables specific to your circumstances, local regulations, or current market conditions. Always verify results and consult professionals before making financial commitments.
Not a substitute for professional financial advice
Stock Data
P/E Ratio: Lower P/E may indicate undervaluation. PEG < 1 suggests growth is not fully priced in.
Trailing P/E Ratio
20.0x
Fairly Valued
Valuation Metrics
Industry Comparison
Note: P/E ratios should be compared within the same industry. High-growth companies typically have higher P/E ratios.
What Is the P/E Ratio?
The Price-to-Earnings (P/E) ratio is one of the most widely used stock valuation metrics in fundamental analysis. It measures how much investors are willing to pay for each dollar of a company's earnings. A P/E ratio of 20, for example, means the market is paying $20 for every $1 of annual earnings — or, equivalently, it would take 20 years of current earnings to recoup the stock price if nothing changed.
Investors use the P/E ratio to quickly gauge whether a stock appears cheap or expensive relative to its own history, to peer companies in the same industry, or to the broader market index. No single metric tells the whole story, but the P/E ratio is a powerful starting point for any equity analysis because it directly links price to profitability.
There are two main variants of the P/E ratio used in practice. The trailing P/E uses actual earnings reported over the past 12 months (trailing twelve months, or TTM), making it backward-looking and based entirely on known data. The forward P/E uses analyst consensus estimates for the next 12 months of earnings, making it forward-looking and inherently uncertain. Both serve different purposes: trailing P/E reflects what actually happened, while forward P/E reflects what the market expects to happen.
A high P/E ratio often signals that investors expect strong future growth and are willing to pay a premium for that expectation. A low P/E can indicate either a bargain or a business with structural challenges. Context is everything — comparing a P/E ratio in isolation, without considering industry norms, growth rates, and interest rate environments, can lead to flawed investment conclusions.
Trailing P/E Ratio Formula
Where:
- Stock Price= Current market price of one share
- EPS (TTM)= Earnings Per Share over the trailing twelve months
Forward P/E and PEG Ratio
While the trailing P/E anchors valuation in historical results, the forward P/E ratio projects valuation against expected future earnings. It is calculated as:
Forward P/E = Current Stock Price ÷ Forward EPS (Estimated Next 12 Months)
A stock trading at $100 with a forward EPS estimate of $5 has a forward P/E of 20. If the trailing EPS was $4, the trailing P/E would be 25. The difference between the two (25 trailing vs. 20 forward) implies that analysts expect earnings to grow — the market is pricing in that improvement. When the forward P/E is significantly lower than the trailing P/E, it suggests earnings are expected to expand, which could make the stock look more attractively valued on a go-forward basis.
The PEG ratio (Price/Earnings-to-Growth) adjusts the P/E for the company's earnings growth rate, addressing one of the P/E ratio's biggest weaknesses: it ignores growth entirely. The formula is:
PEG Ratio = Trailing P/E ÷ Annual EPS Growth Rate (%)
A PEG below 1 is traditionally considered attractive — you are paying less than one unit of P/E for each percentage point of growth. A PEG above 2 suggests the stock may be expensive relative to its growth prospects. A PEG near 1 is often described as fair value. This calculator uses the growth rate you enter (expected annual EPS growth) as the divisor, so the quality of your PEG output depends directly on the realism of that growth estimate.
The PEG ratio was popularized by legendary investor Peter Lynch as a quick way to identify whether a high P/E stock might still be a bargain if it is growing fast enough. A company with a P/E of 30 and a 30% growth rate has a PEG of 1 — arguably a fair deal — while a company with a P/E of 30 and a 10% growth rate has a PEG of 3, suggesting expensive territory.
Earnings Yield and Relative P/E
The earnings yield is simply the inverse of the P/E ratio, expressed as a percentage. The formula used in this calculator is:
Earnings Yield = (EPS ÷ Stock Price) × 100
If a stock has a P/E of 20, its earnings yield is 5% (1/20 = 5%). This metric is particularly useful when comparing stocks to fixed-income alternatives. When the earnings yield on equities is higher than the yield on 10-year Treasury bonds, stocks can appear relatively more attractive on an income basis. Conversely, when bond yields rise significantly above earnings yields, some investors shift capital toward safer fixed-income instruments.
The relative P/E compares a stock's trailing P/E to the industry average P/E you provide, expressed as a percentage:
Relative P/E = (Trailing P/E ÷ Industry Average P/E) × 100
A relative P/E of 100% means the stock is trading exactly in line with its industry peers. A reading above 100% means the stock carries a premium valuation versus peers, while below 100% implies a discount. Whether a premium is justified depends on factors like competitive moat, growth rate, balance sheet quality, and management track record.
This calculator also derives a fair value estimate using the industry P/E as a benchmark:
Fair Value = EPS × Industry Average P/E
Subtracting this fair value from the current price gives you the premium or discount. A positive number means you are paying above fair value (by this metric), and a negative number means the stock is trading below it. This is a simple, single-point estimate and should not be treated as a precise intrinsic value, but it provides a useful sanity check when combined with other valuation methods.
Interpreting Valuation Signals
This calculator produces three distinct valuation assessments you should consider together rather than in isolation.
1. Trailing P/E vs. Industry Benchmark: The calculator classifies a stock as "Potentially Undervalued" if the trailing P/E is below 80% of the industry average, "Potentially Overvalued" if it is above 120%, and "Fairly Valued" in between. These thresholds are rules of thumb, not hard scientific boundaries. A deeply cyclical business might deserve a low P/E at the peak of its earnings cycle, while a high-quality compounder might justifiably trade at a sustained premium for years.
2. PEG Assessment: The calculator flags PEG below 1 as "Attractive," PEG between 1 and 2 as "Reasonable," and PEG above 2 as "Expensive." These categories align broadly with the conventional interpretation popularized by growth investors, but they work best for mid-growth companies. For very fast-growing companies (50%+ annual growth), the PEG framework can give misleading signals because such growth rates are rarely sustained long enough to justify the implied valuation.
3. Implied Growth Rate (PEG = 1): The calculator shows what growth rate would be required to make the PEG ratio equal exactly 1, which equals the trailing P/E numerically. For example, a trailing P/E of 25 implies you need 25% annual earnings growth to hit a PEG of 1. If that growth rate seems unrealistically high relative to the company's industry and history, the stock may be overpriced on a growth-adjusted basis.
Always use these signals as starting points for deeper research, not as final verdicts. Combine P/E analysis with other metrics such as price-to-book, return on equity, free cash flow yield, and enterprise value multiples for a more complete picture.
P/E Ratio Benchmarks by Industry
One of the most common mistakes investors make is comparing P/E ratios across industries without accounting for structural differences. A P/E of 15 might be expensive for a utility company but genuinely cheap for a software-as-a-service business. Understanding typical P/E ranges by sector is essential for meaningful interpretation.
| Sector | Typical P/E Range | Key Driver |
|---|---|---|
| Technology / Software | 25 – 50x | High growth expectations |
| Consumer Discretionary | 20 – 35x | Brand strength, cycle |
| Healthcare / Biotech | 20 – 40x | Pipeline value, patents |
| Financials / Banking | 10 – 18x | Interest rate sensitivity |
| Energy | 8 – 16x | Commodity price cycles |
| Utilities | 14 – 20x | Regulated income streams |
| Consumer Staples | 18 – 28x | Defensive demand, pricing power |
| S&P 500 Historical Average | ~15 – 22x | Broad market benchmark |
These ranges shift over time with interest rates, economic cycles, and market sentiment. During low interest rate environments, P/E multiples across all sectors tend to expand because future earnings are discounted at a lower rate, making them worth more in present value terms. As rates rise, the discount rate increases and P/E multiples often compress. Understanding the macro backdrop is just as important as knowing the company-specific fundamentals when using this P/E ratio calculator.
Limitations and When P/E Falls Short
The P/E ratio is a powerful tool, but it has well-known limitations that every investor should understand before relying on it heavily.
Earnings can be manipulated or distorted. Accounting choices — depreciation methods, revenue recognition, one-time charges, and share-based compensation — all affect the EPS figure that drives the P/E ratio. A company can boost reported earnings through aggressive accounting while its underlying cash generation deteriorates. This is why many sophisticated investors prefer price-to-free-cash-flow ratios alongside P/E when evaluating capital-intensive or highly acquisitive businesses.
The P/E ratio is meaningless for loss-making companies. If a company reports negative earnings, the P/E ratio is either undefined or negative, neither of which is interpretable in the traditional sense. For early-stage growth companies and cyclical businesses during downturns, analysts often substitute price-to-sales, EV/EBITDA, or price-to-book ratios instead.
Cyclicality distorts single-year P/E. At the peak of an economic cycle, a cyclical company (auto manufacturer, steelmaker, airline) may report abnormally high earnings, making the P/E look deceptively cheap. At a trough, the opposite occurs — earnings collapse and the P/E spikes, making the stock look expensive precisely when it may be most attractive. The Cyclically Adjusted P/E (CAPE) ratio, which averages earnings over 10 years, was designed to address this problem at the index level.
P/E ignores the balance sheet. Two companies can have identical P/E ratios but vastly different financial risk profiles if one carries significant debt. Enterprise value multiples like EV/EBITDA are better suited for comparing companies with different capital structures because they account for net debt.
Use this P/E ratio calculator as one lens among many. Cross-check your findings with other valuation metrics, qualitative business analysis, and an honest assessment of your own growth assumptions before making any investment decision.
Worked Examples
Growth Tech Stock — High P/E Analysis
Problem:
A software company trades at $120. Trailing EPS (TTM) is $3.00, forward EPS estimate is $4.00, industry average P/E is 35x, and expected EPS growth rate is 25%. Calculate the trailing P/E, forward P/E, PEG ratio, and earnings yield.
Solution Steps:
- 1Trailing P/E = $120 ÷ $3.00 = 40x
- 2Forward P/E = $120 ÷ $4.00 = 30x
- 3PEG Ratio = 40 ÷ 25 = 1.60 (Reasonable — PEG between 1 and 2)
- 4Earnings Yield = ($3.00 ÷ $120) × 100 = 2.50%
- 5Relative P/E = (40 ÷ 35) × 100 = 114.3% — trading at a 14.3% premium to industry peers
- 6Fair Value at Industry P/E = $3.00 × 35 = $105.00
- 7Premium = $120 − $105 = $15.00 premium (14.3% above fair value by this measure)
Result:
The stock carries a premium to industry peers (P/E 40x vs. sector 35x), but the PEG of 1.60 is within the 'Reasonable' range. Forward earnings growth of 33% ($3 to $4) is already narrowing the forward P/E to 30x, closer to the sector average. Valuation is stretched but arguably supported by growth expectations.
Value Stock — Potential Bargain
Problem:
A regional bank trades at $28. Trailing EPS is $3.50, forward EPS is $3.80, industry average P/E is 14x, and expected growth rate is 8%. Evaluate the valuation.
Solution Steps:
- 1Trailing P/E = $28 ÷ $3.50 = 8.0x
- 2Forward P/E = $28 ÷ $3.80 = 7.37x
- 3PEG Ratio = 8.0 ÷ 8 = 1.00 (exactly at the 'Attractive' threshold)
- 4Earnings Yield = ($3.50 ÷ $28) × 100 = 12.50%
- 5Relative P/E = (8.0 ÷ 14) × 100 = 57.1% — significant discount to industry
- 6Fair Value at Industry P/E = $3.50 × 14 = $49.00
- 7Discount = $28 − $49 = −$21 discount (42.9% below industry-implied fair value)
Result:
At a trailing P/E of 8x against an industry average of 14x, the stock is classified as Potentially Undervalued. The 12.5% earnings yield is attractive compared to fixed-income alternatives. An investor should investigate why the discount exists — it may reflect legitimate risks (credit quality, interest rate exposure) or a genuine market opportunity.
Default Calculator Values — Baseline Example
Problem:
Use the calculator's default values: stock price $50, trailing EPS $2.50, forward EPS $2.80, growth rate 15%, industry P/E 20x.
Solution Steps:
- 1Trailing P/E = $50 ÷ $2.50 = 20.0x
- 2Forward P/E = $50 ÷ $2.80 = 17.86x
- 3PEG Ratio = 20 ÷ 15 = 1.333 (Reasonable — between 1 and 2)
- 4Earnings Yield = ($2.50 ÷ $50) × 100 = 5.00%
- 5Relative P/E = (20 ÷ 20) × 100 = 100.0% — exactly in line with industry
- 6Fair Value at Industry P/E = $2.50 × 20 = $50.00
- 7Premium/Discount = $50 − $50 = $0.00 (0% — trading exactly at fair value)
- 8Implied Growth for PEG = 1: requires 20% growth (equals trailing P/E numerically)
Result:
With defaults, the stock trades exactly at industry fair value. The trailing P/E of 20x matches the industry average precisely. A PEG of 1.33 is reasonable for a 15% growth company. The forward P/E of 17.86x shows expected earnings growth narrowing the multiple over the next year.
Overvalued Growth Stock — PEG Warning
Problem:
A consumer tech company trades at $200. Trailing EPS is $4.00, forward EPS is $4.40, industry average P/E is 30x, and expected growth is 10%. Analyze the valuation.
Solution Steps:
- 1Trailing P/E = $200 ÷ $4.00 = 50x
- 2Forward P/E = $200 ÷ $4.40 = 45.45x
- 3PEG Ratio = 50 ÷ 10 = 5.00 — well above 2, classified as 'Expensive'
- 4Earnings Yield = ($4.00 ÷ $200) × 100 = 2.00%
- 5Relative P/E = (50 ÷ 30) × 100 = 166.7% — 67% premium to industry
- 6Fair Value at Industry P/E = $4.00 × 30 = $120.00
- 7Premium = $200 − $120 = $80 premium (66.7% above fair value)
Result:
This stock is Potentially Overvalued on multiple measures. The PEG of 5.0 signals that investors are paying $5 of P/E multiple for each percentage point of growth — far above the conventional threshold of 1 to 2. To justify a PEG of 1, the company would need a 50% annual earnings growth rate, far exceeding the estimated 10%. This does not necessarily mean the stock will fall, but the margin of safety is very thin.
Tips & Best Practices
- ✓Always compare a stock's P/E to its own sector average, not to the broad market, for the most meaningful relative valuation.
- ✓Use forward P/E when a company's earnings are recovering or growing rapidly, since trailing P/E may understate future profitability.
- ✓A PEG ratio below 1 is traditionally attractive, but verify the growth rate assumption — overly optimistic forecasts make the PEG look better than reality.
- ✓Watch earnings yield versus current 10-year Treasury yields: when bond yields approach or exceed the earnings yield, equity risk may not be adequately compensated.
- ✓Compare trailing P/E to the stock's own 5-year and 10-year average P/E to understand whether the current multiple is historically cheap or expensive for that specific company.
- ✓Be cautious with P/E ratios of highly cyclical businesses (energy, commodities, autos) at earnings peaks — the P/E can look deceptively low precisely when margins are about to revert.
- ✓One-time charges or gains can distort a single year's EPS; consider using normalized or adjusted EPS figures when available for a cleaner P/E calculation.
- ✓A falling P/E combined with rising earnings is the classic 'multiple compression' scenario — great business results do not always translate into strong stock returns if the market de-rates the valuation.
- ✓Use the implied growth rate output (equal to the trailing P/E numerically for PEG = 1) as a reality check: ask whether that growth rate is achievable given industry dynamics and the company's track record.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-05
Help us improve!
How would you rate the P/E Ratio Calculator?
Related Calculators
Sources
- •Reserve Bank of India (RBI) — Financial regulations, lending rates, and monetary policy guidelines. rbi.org.in
- •Consumer Financial Protection Bureau (CFPB) — Consumer finance guidelines, mortgage and loan disclosure standards. consumerfinance.gov
- •Securities and Exchange Board of India (SEBI) — Investment and securities market regulations. sebi.gov.in
- •Investopedia — Financial formulas, definitions, and educational content. investopedia.com
For a complete list of all references used across the site, visit our full sources page.
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Fundamentals of Financial Management
by Brigham & Houston