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.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
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.
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?
Need something this doesn't cover?
Suggest a tool — we'll build it →