FinanceP/E ratiovaluationstocks

P/E Ratio Calculator

The price-to-earnings (P/E) ratio is the most widely used stock valuation metric in investing. It compares a stock's price to its earnings per share, indicating how much investors are paying for each dollar of earnings. A higher P/E suggests growth expectations or premium valuation; a lower P/E may indicate undervaluation or slower growth prospects.

Advertisement

Calculator

$
$

See your P/E Ratio Calculator results

Enter your email to unlock results — free forever.

or

No spam, ever. Unsubscribe at any time.

Advertisement

Formula

P/E Ratio = Stock Price ÷ Earnings Per Share

The P/E ratio divides the current stock price by the company's earnings per share (EPS). It can be calculated using trailing EPS (actual earnings from the past 12 months, called 'trailing P/E' or TTM P/E) or forward EPS (analyst estimates for the next 12 months, called 'forward P/E'). Earnings yield is the inverse of the P/E ratio (EPS / Price × 100%), expressing earnings as a percentage of price — directly comparable to bond yields and other income rates of return.

How to use the P/E Ratio Calculator

  1. 1

    Enter your stock price

    Value should be in $.

  2. 2

    Enter your earnings per share (eps)

    Value should be in $.

  3. 3

    Read your results instantly

    Results update in real time as you type.

Advertisement

How to interpret the P/E ratio

The P/E ratio tells you how many years of current earnings are priced into the stock. A P/E of 20 means investors are paying 20 times annual earnings — implying they expect future earnings growth to justify that premium. A P/E of 10 means the stock is priced at just 10 times earnings, which might indicate undervaluation, a mature slow-growth business, or skepticism about future prospects.

Historically, the S&P 500's average P/E ratio has been roughly 15-17 times trailing earnings. During bull markets and periods of low interest rates (like 2010-2021), valuations expanded to 25-30x as investors accepted lower earnings yields in exchange for growth. During recessions and periods of market stress, P/Es can compress to 10-12x.

Context matters enormously. A technology company growing revenue at 30% annually might justifiably trade at 50x earnings because investors are pricing in rapid earnings growth. A utility company growing at 3% annually might fairly trade at 15x. Comparing P/E ratios within the same industry and against a company's own historical range is more informative than comparing across unrelated sectors.

Earnings yield and the bond yield comparison

Earnings yield — the inverse of the P/E ratio — expresses a stock's earnings as a percentage of its price, making it directly comparable to bond yields. When 10-year Treasury bonds yield 5%, a stock with an earnings yield below 5% (P/E above 20) is providing less 'yield' than a safe government bond, which reduces its relative attractiveness. When Treasury yields were near 0% in 2020-2021, even stocks with P/Es of 30-40 (earnings yields of 2.5-3.3%) looked attractive relative to bonds.

This is one reason rising interest rates typically pressure stock valuations: as bond yields rise, the hurdle rate for stocks increases, compressing acceptable P/E multiples. The Fed Model — which compares the S&P 500 earnings yield to 10-year Treasury yields — is one formalization of this relationship.

For value investors, the earnings yield provides a quick first-pass screen. A stock with an earnings yield of 8-10% and solid earnings quality may offer an attractive return even without multiple expansion, simply by growing earnings over time.

Advertisement

Limitations of the P/E ratio

Despite its ubiquity, the P/E ratio has significant limitations that make it only one of many metrics to consider.

Earnings can be manipulated through accounting choices — capitalization of expenses, pension assumptions, one-time charges. 'Adjusted' EPS figures from management often strip out real costs to present a more flattering picture. Some analysts prefer the CAPE ratio (Cyclically Adjusted P/E), which averages 10 years of inflation-adjusted earnings to smooth cyclical swings, or the EV/EBITDA ratio, which is less susceptible to accounting manipulation.

Growth-stage companies often have very high P/Es or no P/E at all (negative earnings). For these companies, price-to-sales (P/S) or price-to-book (P/B) ratios may be more relevant. For high-growth companies with clear paths to profitability, the PEG ratio (P/E divided by earnings growth rate) provides a more complete picture by incorporating expected growth.

The P/E ratio also ignores a company's balance sheet — two companies with identical P/Es but one carrying heavy debt and one with net cash are in very different financial positions. Always combine P/E with balance sheet analysis for a complete picture.

Tips & Insights

Compare P/E to the company's own historical range

A P/E is more meaningful in context. Is the current P/E above or below the company's 5-year average? If a company that has historically traded at 15x earnings now trades at 25x, what justifies the premium? Conversely, a historically high-multiple company trading below its average may represent an opportunity.

Use forward P/E alongside trailing P/E

Trailing P/E uses actual past earnings; forward P/E uses analyst estimates for future earnings. If a company is expected to grow earnings 30% next year, the forward P/E will be significantly lower than the trailing P/E, making the stock look cheaper on a forward basis. Always check whether analyst estimates are reliable and whether the company has a history of meeting or beating guidance.

Industry benchmarks matter more than absolute numbers

A P/E of 25 might be cheap for a software company and expensive for a bank. Compare P/E ratios within the same industry or sector. Major financial data providers (Bloomberg, Morningstar, Yahoo Finance) show sector-average P/E multiples that provide useful benchmarks for determining whether a specific stock is trading at a premium or discount to peers.

Worked Examples

Tech growth stock

stockPrice: 200earningsPerShare: 5

A P/E ratio of 40 and earnings yield of 2.5%. For a high-growth tech company, a 40x multiple is common if earnings are expected to grow rapidly. Compare to the sector average and the company's growth rate before judging valuation.

Value stock

stockPrice: 45earningsPerShare: 6

A P/E ratio of 7.5 and earnings yield of 13.3%. A P/E below 10 often signals a mature or cyclical business, a turnaround situation, or a genuinely undervalued company. Investigate why the market assigns such a low multiple before concluding it's cheap.

Advertisement

Frequently Asked Questions

What is a good P/E ratio?

There is no universally good P/E. The S&P 500 has historically averaged 15-17x trailing earnings. Growth stocks can justify 30-50x if earnings are growing rapidly. Value stocks may trade at 8-12x. The 'right' P/E depends on the growth rate, industry, interest rate environment, and competitive position of the business.

What is the difference between trailing and forward P/E?

Trailing P/E uses actual earnings from the past 12 months (TTM — trailing twelve months). Forward P/E uses analyst consensus estimates for earnings over the next 12 months. Forward P/E reflects market expectations about future performance, while trailing P/E is based on known historical data. Both are useful; comparing the two reveals how much earnings growth is already expected.

Can a P/E ratio be negative?

Yes, if the company is unprofitable (negative EPS). A negative P/E is typically not meaningful or displayed for valuation purposes. Many technology startups and growth-stage companies operate at a loss by choice, reinvesting all revenue into growth. For these companies, investors use alternative metrics like price-to-sales or EV/revenue.

What is the CAPE ratio?

The CAPE (Cyclically Adjusted Price-to-Earnings) ratio, also known as the Shiller P/E, uses average inflation-adjusted earnings over the past 10 years rather than a single year. This smooths out the cyclical swings in earnings during boom/bust periods, providing a more stable valuation benchmark. CAPE ratios above 30 have historically preceded periods of below-average long-term market returns.

How does the P/E ratio relate to value investing?

Value investors, following the principles of Benjamin Graham and Warren Buffett, seek stocks trading at significant discounts to their intrinsic value. A low P/E relative to peers and historical averages is one indicator of potential undervaluation. However, true value investing requires analyzing not just the P/E but also the business quality, balance sheet, competitive moat, and management — the P/E is a starting screen, not a final answer.

Advertisement

Related Calculators