Price To Earnings Calculator

Calculate any stock's P/E ratio to assess valuation.

Find out if a stock is overvalued or undervalued relative to its earnings. Enter the current stock price and earnings per share — see the P/E ratio, which shows how many years of current earnings you pay for one share. Assumes trailing twelve months earnings.

Updated June 2026 · How this works

Worth knowing
How It Works
The formula, explained simply

The price-to-earnings ratio works like asking 'how many years would it take this company to earn back its stock price?' A stock trading at $100 with $5 in annual earnings has a P/E of 20 — meaning at current earnings, it would take 20 years to earn back the purchase price. But nobody actually waits 20 years because they expect earnings to grow, making the payback faster.

This calculator assumes trailing twelve months earnings, which means the most recent four quarters of actual reported profits. When you see a P/E ratio of 15, the market is paying 15 times last year's earnings for each share. High P/E ratios signal that investors expect earnings to grow rapidly, while low ratios suggest slower growth or potential value opportunities.

The key insight is that P/E ratios are forward-looking bets disguised as backward-looking math. A pharmaceutical company with a P/E of 50 isn't expensive if they're about to launch a blockbuster drug that triples their earnings. The ratio captures market expectations about future growth compressed into a single number.

When To Use This
Right tool, right situation

Use P/E ratios for initial stock screening and comparing similar companies within the same industry. The ratio works best for mature, profitable companies with consistent earnings patterns. Technology companies, retailers, and industrial firms with steady business models are good candidates for P/E analysis.

Avoid P/E ratios for unprofitable companies, highly cyclical businesses at earnings peaks or troughs, and companies with significant one-time gains or losses distorting recent earnings. REITs, partnerships, and companies with complex capital structures often require specialized valuation metrics instead of simple P/E comparisons.

P/E ratios are most valuable when combined with other metrics like price-to-book, debt-to-equity, and revenue growth rates. Use the P/E to identify potentially interesting stocks, then dig deeper into financial statements, competitive position, and management quality before making investment decisions.

Common Mistakes
Why results sometimes look wrong

The biggest P/E mistake is comparing ratios across different industries without context. A utility company with a P/E of 25 is expensive, but a biotech company with the same P/E might be cheap. Software companies typically trade at higher multiples than steel manufacturers because their profit margins and growth rates differ dramatically.

Another common error is using outdated earnings data. If a company reported strong earnings a year ago but recent quarters were weak, the trailing P/E understates the current risk. Forward P/E ratios based on analyst estimates are often more relevant, but they can be overly optimistic. Always check when the earnings data was reported and whether recent trends suggest the numbers are still representative.

Investors also mistakenly assume low P/E ratios always signal bargains. Sometimes low ratios reflect genuine problems — declining businesses, regulatory threats, or accounting issues that make reported earnings unsustainable. A bank trading at a P/E of 5 during a financial crisis isn't necessarily cheap if loan losses are about to wipe out future earnings.

The Math
Worked examples and deeper derivation

The P/E ratio formula is straightforward: Price per Share ÷ Earnings per Share = P/E Ratio. If Microsoft trades at $300 and earned $12 per share last year, the P/E is 300 ÷ 12 = 25. This means investors pay $25 for every $1 of annual earnings.

Earnings per share comes from dividing net income by shares outstanding. If a company earned $1 billion with 100 million shares outstanding, EPS is $10. The stock price is simply what investors are willing to pay today. Market cap (total company value) equals stock price × shares outstanding, so P/E ratio also equals Market Cap ÷ Total Earnings.

Edge cases matter in P/E calculations. Companies with zero or negative earnings have undefined P/E ratios. Very small earnings can create misleadingly high P/E ratios — a company earning $0.01 per share with a $20 stock price has a P/E of 2,000, which signals trouble rather than extreme optimism. Analysts often exclude one-time charges or gains to calculate 'adjusted' P/E ratios that better reflect ongoing business performance.

Apple stock valuation
Stock price $175, EPS $6.05
The P/E ratio is 28.9, suggesting investors expect strong growth from Apple's services and product innovation.
Value stock screening
Stock price $45, EPS $5.50
The P/E ratio is 8.2, which is low and might indicate an undervalued stock or a company with limited growth prospects.
Growth stock analysis
Stock price $250, EPS $3.25
The P/E ratio is 76.9, reflecting high growth expectations but also significant risk if earnings disappoint.
Expert Unlock
The thing most explanations skip

Professional analysts distinguish between trailing P/E (based on actual past earnings) and forward P/E (based on estimated future earnings). Forward P/E ratios are often 10-30% lower than trailing ratios for growing companies, creating confusion when comparing stocks. The PEG ratio (P/E divided by earnings growth rate) provides better context — a stock with P/E of 30 but 30% earnings growth has PEG of 1.0, potentially more attractive than a stock with P/E of 15 but 5% growth.

What makes a good P/E ratio for buying stocks?

What is a good P/E ratio for buying stocks?
P/E ratios between 10-20 are generally considered reasonable for established companies. However, the 'good' ratio depends on the industry — tech companies often trade at P/E ratios of 25-40, while utilities typically trade at 12-18. Compare the stock's P/E to its industry average and historical range rather than using absolute thresholds.
Why do some profitable companies have very high P/E ratios?
High P/E ratios reflect investor expectations of rapid earnings growth. Companies like Tesla or Amazon have traded at P/E ratios above 50 because investors bet that future earnings will be much higher than current earnings. The risk is that if growth disappoints, the stock price can fall significantly to bring the P/E ratio back to normal levels.
Can a company have a negative P/E ratio?
Companies with negative earnings have undefined P/E ratios, not negative ones. When a company loses money, dividing stock price by negative earnings gives a negative number, but this isn't meaningful for valuation. Investors use other metrics like price-to-sales or price-to-book ratios for unprofitable companies, or they estimate future P/E based on projected earnings.

Need something this doesn't cover?

Suggest a tool — we'll build it →