back to top
Create FREE account

How to Calculate P/E Ratio? [Understanding the P/E Ratio – What is a Good vs Bad]

Andrius Budnikas
Andrius Budnikas
Andrius Budnikas – Chief Product Officer Andrius Budnikas brings a wealth of experience in equity research, financial analysis, and M&A. He spent five years at Citi in London, where he specialized in equity research focused on financial institutions. Later, he led M&A initiatives at one of Eastern Europe's largest retail corporations and at a family office, while also serving as a Supervisory Board Member at a regional bank. Education: University of Oxford – Master’s in Applied Statistics UCL – Bachelor's in Mathematics with Economics

Share

The Price-to-Earnings (P/E) ratio is one of the most essential and widely used tools in equity valuation. Although the concept is straightforward, the P/E ratio is often misunderstood or misapplied, especially by newer investors. In this article, you will learn how to calculate P/E, understand what is a good P/E ratio to buy a stock, and recognize what is a bad P/E ratio that may signal potential risk. Whether you are a beginner investor, financial analyst, or simply looking to make smarter investment decisions, this guide will give you a clear understanding of how to use the P/E ratio effectively in today’s market.

How to Calculate P/E Ratio

Understanding how to calculate P/E is essential for evaluating whether a stock is fairly valued, overvalued, or undervalued. The formula is straightforward:

Formula How to Calculate P/E Ratio
  • Price per Share is the current trading price of the stock on the market.
  • Earnings per Share (EPS) represents the company’s net income divided by its total number of outstanding shares. 

Example:

As of the last trading day of 2024, Apple Inc. (AAPL) closed at $250.42 per share. The company’s earnings per share (EPS) for the year was $6.75.

P/E = $250.42 ÷ $6.75 = 37.1

This means investors were willing to pay approximately $37.10 for every $1 of Apple’s earnings at that time. A P/E of this level suggests that the market had strong expectations for Apple’s future growth or profitability heading into 2025.

Types of P/E Ratios

While the P/E ratio formula may appear simple, the type of earnings used in the denominator can significantly affect the outcome. Understanding the different types of P/E ratios is critical for accurate valuation analysis.

Below are the most common types of P/E ratios used in practice:

1. Trailing Twelve Months (TTM) P/E

Definition:
Uses the company’s actual EPS over the past 12 months to calculate the price-to-earnings ratio. This is the most commonly reported P/E figure.

Data Source:
Based on financial results from the last four quarters, using GAAP or non-GAAP earnings, depending on the reporting method.

Purpose:
Provides a valuation based on historical performance, helping investors assess what the market is paying for actual, realized earnings.

Pros:

  • Based on audited and reported financial data
  • Straightforward to calculate and widely used

Cons:

  • Does not reflect future growth expectations
  • May be influenced by seasonal earnings patterns or non-recurring events

2. Next Twelve Months (NTM) P/E

Definition:
The NTM P/E ratio is a forward-looking, rolling valuation metric that calculates the P/E based on expected earnings over the next 12 months from today, rather than a fixed fiscal year.

Data Source:
Regularly updated based on the latest analyst forecasts and earnings estimates. This metric is commonly used by institutional investors and financial professionals for real-time valuation.

Purpose:
Offers a more dynamic and current perspective than traditional Forward P/E by continuously adjusting to new earnings expectations throughout the year.

Pros:

  • Reflects up-to-date market sentiment and forecasts
  • More precise than standard Forward P/E during mid-year or earnings season shifts

Cons:

  • Depends heavily on forecast accuracy
  • Less commonly available on public platforms compared to TTM or Forward P/E

3. Forward P/E (FWD P/E)

Definition:
The Forward P/E ratio uses estimated earnings for the upcoming fiscal year, typically based on company guidance or analyst consensus forecasts.

Data Source:
Derived from forward-looking projections rather than historical data. These estimates are published by equity analysts or provided by the company itself.

Purpose:
Helps investors evaluate a stock’s future valuation, making it especially useful for analyzing companies with rapidly changing earnings profiles over time.

Pros:

  • Reflects market expectations for earnings growth
  • Useful for forecasting future returns and comparing with peer companies

Cons:

  • Based on estimates, which may be overly optimistic or conservative
  • Can be less reliable during volatile market conditions or economic uncertainty
Forward P/E

What Is a Good P/E Ratio to Buy a Stock?

When it comes to identifying a “good” P/E ratio, there’s no one-size-fits-all answer. The ideal P/E depends on the company’s industry, growth rate, market cycle, and overall financial health. A P/E that signals opportunity in one sector could suggest overvaluation in another.

To make smarter investment decisions, investors should evaluate P/E ratios using sector benchmarks, growth expectations, and comparisons to market averages.

A. Benchmarking P/E Ratios by Sector

One of the most common mistakes investors make when interpreting P/E ratios is applying a fixed benchmark across all sectors. In reality, what qualifies as a “good” P/E ratio varies widely by industry and even more so over time.

The chart above offers a snapshot of trailing P/E ratios across major U.S. industries in 2024, highlighting just how drastically valuation multiples can differ. For example, sectors like advertising and software command extremely high earnings multiples (well above 200x) driven by aggressive growth expectations and scalable, intangible business models. On the other hand, more mature, capital-intensive sectors such as utilities and regional banks tend to trade in the 15x–20x range, reflecting their predictable but slower earnings growth.

These distinctions are not just academic—they’re foundational for sound investment analysis.

Key Principles to Remember:

  • Compare within the same sector. A P/E of 35 might signal opportunity for a software firm, but could be a red flag in the utility space. Always assess valuation in relation to sector peers.
  • Recognize business model differences. Industries driven by innovation, intellectual property, and recurring revenue often justify higher valuations than those built on tangible assets and regulated pricing.
  • Understand that multiples are dynamic. P/E ratios fluctuate with economic cycles, interest rates, and investor sentiment. During bull markets or tech booms, growth sectors often see P/E inflation, while defensive sectors become relatively cheaper. In bear markets, the reverse may hold true.
  • Watch for outliers. Extremely high or low P/E ratios can sometimes be explained by non-recurring income, cyclical downturns, or unusual expectations baked into stock prices. Always dig deeper into the earnings quality.
Trailing P/E

B. Compare P/E to Industry Peers: NVIDIA Example

Evaluating a stock’s P/E against its peers is essential for understanding relative valuation. In the chart below, NVIDIA (NVDA) trades at a 2025E P/E of 21.6x, almost exactly in line with the peer group average of 21.5x.

Despite being a dominant player in AI and high-performance computing (sectors typically priced at a premium), NVIDIA’s multiple is:

NVIDIA (NVDA) PE

C. Comparing P/E to the Broader Market Average

In addition to industry-specific comparisons, it’s equally important to assess how a stock’s valuation stacks up against the broader U.S. equity market. One widely used benchmark is the total market average P/E ratio, which includes large-cap, mid-cap, and small-cap stocks across all sectors.

According to recent data, the total market trades at a trailing P/E ratio (2024) of approximately 48.9x. This figure offers a broader lens on investor sentiment and valuation trends beyond just large-cap indices like the S&P 500.

Why This Matters:

  • A stock trading far above the market average (e.g. 30x or more when the S&P 500 is at 22x) must justify that premium through superior fundamentals such as exceptional revenue growth, strong competitive advantages, or highly scalable business models.
  • Conversely, stocks trading below the market average may offer value opportunities, especially if they have stable earnings, healthy balance sheets, or are temporarily out of favor due to cyclical or sentiment-driven factors.

D. Evaluate P/E in a Historical Context

A company’s current P/E ratio becomes more meaningful when viewed alongside its own historical valuation range. Over time, P/E ratios fluctuate based on changes in growth rates, business maturity, interest rates, and broader market cycles.

Why this matters:

  • A stock trading below its 5- or 10-year average P/E may indicate undervaluation, assuming fundamentals remain intact.
  • A higher-than-average P/E could be justified by accelerating growth or new competitive advantages, but may also signal overvaluation if earnings aren’t keeping pace.
  • For cyclical industries, understanding how P/E expands and contracts during different phases of the economic cycle helps avoid buying at the top or selling at the bottom.

What Is a Bad P/E Ratio?

While the price-to-earnings (P/E) ratio is a widely used valuation tool, it can be misleading if interpreted without context. A “bad” P/E ratio is not defined by the number alone, but by what that number reflects about the company’s fundamentals, expectations, and risks.

Below are key scenarios where the P/E ratio should raise red flags.

A. Extremely High P/E (80x to 100x or more)

A very high P/E ratio often signals unrealistic expectations or speculative behavior, especially when earnings growth cannot justify the valuation. This is common in:

  • Early-stage tech or biotech companies
  • Hot IPOs with little to no profitability
  • Sectors inflated by short-term hype or market momentum

In these cases, valuations are driven more by story than substance. A high P/E may be tolerated if future earnings are expected to accelerate rapidly, but without consistent results, the stock becomes highly vulnerable to sharp corrections.

Key risk: If growth stalls or expectations reset, these stocks can experience significant multiple contraction.

B. Extremely Low P/E (Under 6x)

A very low P/E can appear attractive, but it often reflects fundamental deterioration, not hidden value. Warning signs include:

  • Declining revenues or operating margins
  • Heavy debt burdens or deteriorating credit quality
  • Legal, regulatory, or industry headwinds
  • Business models in long-term decline

Before considering a low P/E stock as a value opportunity, investors must assess whether earnings are sustainable and whether the market has priced in a permanent impairment. Some low-P/E stocks are genuine bargains, but many are value traps.

Key approach: Scrutinize free cash flow, debt levels, and strategic outlook before assuming undervaluation.

C. Negative P/E (No Earnings)

A negative P/E means the company has reported net losses. In this case, the metric becomes mathematically irrelevant for valuation purposes.

Instead, investors should use alternative metrics such as:

  • Price-to-Sales (P/S) for early-stage or high-growth companies
  • Enterprise Value-to-EBITDA (EV/EBITDA) for capital-intensive businesses
  • Cash burn rate and runway (especially for pre-revenue firms)
  • Revenue growth and margin improvement potential

This situation is common in startups, biotech firms, and turnaround candidates, where profitability may be years away but growth potential or intellectual property is still being monetized.

Final Thought: Use the P/E Ratio the Right Way

The P/E ratio is one of the most important tools in stock valuation, but its value depends on how it is applied. To make accurate comparisons, always use the same type of P/E, whether trailing, forward, or next twelve months. Analyze it alongside growth rates, industry benchmarks, and a company’s own historical valuation. A high P/E may reflect strong future earnings potential, while a low P/E could signal undervaluation or underlying risk.

Understanding how to use the P/E ratio effectively helps investors determine what is a good P/E ratio to buy a stock and how to avoid common valuation traps. When combined with other metrics like free cash flow, profit margins, and return on capital, the P/E ratio becomes a powerful part of any investor’s decision-making process. Used correctly, it offers clear insight into how the market values a company’s earnings and future potential.

Andrius Budnikas
Andrius Budnikas
Andrius Budnikas – Chief Product Officer Andrius Budnikas brings a wealth of experience in equity research, financial analysis, and M&A. He spent five years at Citi in London, where he specialized in equity research focused on financial institutions. Later, he led M&A initiatives at one of Eastern Europe's largest retail corporations and at a family office, while also serving as a Supervisory Board Member at a regional bank. Education: University of Oxford – Master’s in Applied Statistics UCL – Bachelor's in Mathematics with Economics