The Price-Earnings Ratio Formula and What It Measures
The price-earnings ratio, or P/E ratio, is a single number that tells you how much investors are willing to pay for each dollar of a company's profit. You calculate it by dividing the stock's current price by the company's earnings per share. That's the entire formula: P/E ratio = Stock Price ÷ Earnings Per Share.
The result answers a practical question: if a stock trades at $50 and the company earned $5 per share last year, investors paid $10 for every $1 of profit. A lower P/E ratio often means the stock looks cheaper relative to earnings; a higher ratio means investors expect faster growth or see the company as safer. Neither is automatically good or bad—context matters.
You will find P/E ratios already calculated on most financial websites, but knowing how to compute it yourself lets you verify the number, understand what it means, and spot when a company's earnings have changed since the last published ratio.
Key Takeaways
- The P/E ratio formula is Stock Price divided by Earnings Per Share, and both numbers must come from the same time period (usually the most recent full year or the last four quarters).
- Stock price is the current market price you see quoted; earnings per share is total net income divided by the number of shares outstanding, found in the company's financial statements.
- A trailing P/E uses actual past earnings, while a forward P/E uses analyst estimates of future earnings—they will produce different results for the same company.
- Comparing P/E ratios only makes sense between companies in the same industry, because different industries have different normal P/E ranges.
Finding the Stock Price
The stock price is the easiest number to find. It is the price at which the stock last traded during market hours, quoted on financial websites like Yahoo Finance, Google Finance, or your brokerage account. Use the price from the same date you plan to use for earnings—if you are using earnings from the end of last year, use the stock price from around that same date, not today's price.
If you are calculating a current P/E ratio, use today's closing price. If you are calculating a historical P/E ratio to see how the stock was valued at a specific moment, use the price from that date. Most financial sites let you look up historical prices by entering a date range.
Finding Earnings Per Share
Earnings per share, or EPS, is the company's total net income divided by the number of shares outstanding. You do not have to do this division yourself—EPS is reported directly in the company's financial statements and quoted on every financial website alongside the stock price.
The company publishes earnings per share in its quarterly and annual reports, filed with the Securities and Exchange Commission (SEC). You can find these reports free on the SEC's EDGAR database or on the company's investor relations website. Look for the line item labeled "Earnings Per Share" or "Basic EPS" in the income statement section.
For a trailing P/E ratio, add up the earnings per share from the last four quarters (the most recent full year of data). For a forward P/E ratio, use analyst estimates of next year's earnings per share, which financial websites publish alongside the trailing EPS.
Trailing P/E Versus Forward P/E
A trailing P/E ratio uses actual earnings from the past twelve months. This number is solid because it is based on real results, not predictions. To calculate it, divide the current stock price by the sum of the last four quarters' earnings per share.
A forward P/E ratio uses analyst estimates of earnings for the next twelve months. This number reflects what investors think the company will earn, so it can be lower than the trailing P/E if analysts expect the company to grow, or higher if they expect earnings to fall. To calculate it, divide the current stock price by the estimated earnings per share for the coming year.
Both numbers are useful. The trailing P/E tells you what you actually paid for past profits; the forward P/E tells you what you are paying for expected future profits. A stock with a high trailing P/E but a much lower forward P/E suggests the market believes earnings will jump. A stock with a low trailing P/E and a high forward P/E suggests the market expects earnings to decline.
A Step-by-Step Example
Suppose you want to calculate the P/E ratio for a company trading at $120 per share. You find in the company's most recent annual report that earnings per share for the last four quarters totaled $8.00. The calculation is straightforward: $120 ÷ $8.00 = 15. The P/E ratio is 15, meaning investors paid $15 for every $1 of annual earnings.
Now suppose the company reports next quarter's earnings and EPS drops to $7.50 for the trailing twelve months. The stock price stays at $120. The new P/E ratio is $120 ÷ $7.50 = 16. The ratio rose even though the stock price did not change, because earnings fell. This is why P/E ratios change constantly—both the numerator (stock price) and denominator (earnings) move independently.
If you want to compare this company to a competitor, find the competitor's stock price and trailing EPS, calculate its P/E ratio the same way, and compare the two numbers. If the competitor has a P/E of 12 and your company has a P/E of 15, your company is trading at a higher multiple of earnings—but that does not mean it is overpriced, because the companies may have different growth rates, profit margins, or risk profiles.
Common Mistakes to Avoid
The most common error is mixing time periods. Do not divide today's stock price by earnings from two years ago, or last year's stock price by this quarter's earnings. The P/E ratio only makes sense when both numbers describe the same moment in time. If you use the current stock price, use the most recent twelve months of earnings (trailing) or the next twelve months of estimated earnings (forward).
Another mistake is comparing P/E ratios across industries without context. Technology companies typically trade at higher P/E ratios than utilities because investors expect faster growth. A tech stock with a P/E of 25 and a utility with a P/E of 12 are not automatically comparable—the tech stock may be reasonably priced for its industry while the utility may be expensive for its industry, or vice versa.
Do not confuse earnings per share with dividend per share. EPS is the company's total profit divided by shares; dividend per share is the cash the company actually paid out to shareholders. A company can have high earnings but pay no dividend, or low earnings but maintain a high dividend by drawing down reserves. The P/E ratio uses earnings, not dividends.
When the P/E Ratio Does Not Work
The P/E ratio breaks down for companies with no earnings or negative earnings. A company losing money has a negative EPS, which produces a negative P/E ratio—mathematically correct but not useful for comparison. In these cases, look at other metrics like price-to-sales ratio or price-to-book ratio instead.
The P/E ratio also becomes misleading during unusual years. If a company took a one-time loss or gain, the EPS for that year does not reflect normal operating performance. Some analysts adjust earnings to remove one-time items, producing an "adjusted P/E" or "normalized P/E." If you see a company with an unusually high or low P/E, check whether a one-time event distorted the earnings.
Frequently Asked Questions
What is a good P/E ratio?
There is no universal "good" P/E ratio—it depends on the industry, the company's growth rate, and current interest rates. The average P/E for the overall stock market is usually between 15 and 25. Compare a company's P/E to its own history and to competitors in the same industry, not to an absolute number.
Why does the P/E ratio change every day?
The stock price changes every day as investors buy and sell, so the P/E ratio changes with it. Earnings per share stays the same until the company reports new quarterly or annual results. Once new earnings are released, the EPS in the denominator updates, and the P/E ratio shifts again.
Can I use the P/E ratio to predict stock price?
No. The P/E ratio describes what the market has already priced in, not what will happen next. A low P/E might mean the stock is undervalued, or it might mean the market expects earnings to fall. You need additional analysis—looking at the company's competitive position, growth prospects, and financial health—to make predictions.
Should I use trailing or forward P/E?
Use trailing P/E when you want to see what investors actually paid for past profits. Use forward P/E when you want to see what investors expect to pay for future profits. Comparing the two for the same company tells you whether the market expects earnings to grow or shrink.
Where do I find earnings per share for a company?
Earnings per share is listed in the company's quarterly and annual reports, available free on the SEC's EDGAR database or the company's investor relations website. It is also quoted on financial websites like Yahoo Finance, Google Finance, and your brokerage account, usually next to the stock price.