Price to Earnings Ratio Calculator
Calculate the P/E ratio to assess stock valuation relative to earnings.
What this calculator does
The price-to-earnings ratio divides the share price by earnings per share. It is the most quoted valuation figure in equity investing because it turns a share price, which is meaningless in isolation, into a multiple that can be compared across companies and across time.
A $400 stock is not expensive and a $4 stock is not cheap. What matters is what each buys in earnings. The P/E answers that in one number, and its reciprocal — the earnings yield — expresses the same thing as a percentage return, which is often the more intuitive way to think about it.
When to use it
Use P/E when comparing companies within the same industry, where accounting practices and business models are broadly similar. Comparing a bank's P/E to a biotech's tells you almost nothing; comparing two regional banks tells you something real.
It is also valuable against a company's own history. A business that has traded between 14 and 22 times earnings for a decade and now sits at 28 has been rerated, and the question worth asking is what changed. That question is more useful than any absolute threshold for cheap or expensive.
Understanding the inputs
Enter the current share price and the earnings per share figure. EPS comes from the income statement, and you need to decide which version: basic or diluted, trailing twelve months or forward estimate. Diluted trailing EPS is the conservative and most comparable choice.
Be careful with adjusted EPS. Companies frequently report a non-GAAP figure that excludes items they consider unrepresentative, and it is nearly always higher than the GAAP number. If you use adjusted EPS for one company, use it for every company you compare, or the ratios are not measuring the same thing.
How is this calculated?
P/E Ratio = Stock Price / Earnings Per Share (EPS).
A worked example
A company trades at $184.50 with trailing twelve-month diluted EPS of $7.20. The P/E is 25.6, meaning you are paying $25.60 for each dollar of last year's profit. Inverted, that is an earnings yield of 3.9 percent.
Set against a 10-year Treasury paying, say, 4.2 percent, the stock offers a lower current yield than a risk-free bond — the entire case rests on earnings growing. If earnings are expected to grow 15 percent annually, the PEG ratio is 1.7, which is on the expensive side of Lynch's rule of thumb.
Limitations and assumptions
P/E ignores debt entirely. Two companies with identical earnings and identical P/E ratios can have wildly different balance sheets, which is why enterprise value multiples exist. It also breaks down for cyclical businesses, where P/E looks lowest at the peak of the cycle and highest at the trough — precisely backwards.
Earnings are an accounting construct subject to policy choices and one-off items, and past valuation levels do not predict future returns. This is not investment advice. Use P/E as one input alongside cash flow, debt, and a view of the business itself.
Common Questions
- What does the P/E ratio actually tell me?
- It is the price you are paying for each dollar of the company's annual earnings. A P/E of 20 means the market is charging twenty dollars for a dollar of profit, or equivalently that the company would take twenty years to earn back your purchase price at current profitability. It is a price tag, not a verdict.
- What is a good P/E ratio?
- There is no universal number. The S&P 500 has traded at a long-run average of roughly 15 to 18 times earnings, but utilities routinely trade in the low teens while software companies trade at forty or more. A P/E is only interpretable against the company's own history, its sector, and its growth rate.
- What is the difference between trailing and forward P/E?
- Trailing P/E uses the last twelve months of actual reported earnings — a fact. Forward P/E uses analyst estimates for the next twelve months — an opinion. Forward P/E is almost always lower because analysts assume growth, and it is only as reliable as those estimates, which are systematically optimistic.
- Why do some companies have no P/E ratio?
- Because they have no earnings. A company with negative net income produces a negative or undefined P/E, which is why loss-making growth companies are usually valued on price-to-sales or enterprise value to revenue instead. A missing P/E is information, not an error.
- What is the earnings yield?
- The P/E inverted — earnings per share divided by price, expressed as a percentage. A P/E of 25 is an earnings yield of 4 percent. This is useful because it puts equity valuation on the same scale as bond yields, letting you compare what stocks earn against what Treasurys pay.
- How does the PEG ratio improve on P/E?
- It divides P/E by the expected earnings growth rate, so a company on 30 times earnings growing at 30 percent scores 1.0, the same as one on 10 times growing at 10 percent. Peter Lynch popularized 1.0 as the rough fair-value line. It depends entirely on the growth estimate being right.
- Can P/E be manipulated?
- Earnings can be, which amounts to the same thing. One-off gains, changes in depreciation policy, and aggressive revenue recognition all move reported EPS. Share buybacks reduce the share count and mechanically raise EPS without any operational improvement. Look at cash flow alongside earnings before trusting a P/E.
- What is the Shiller CAPE ratio?
- Cyclically adjusted price to earnings — the price divided by the average of the last ten years of inflation-adjusted earnings. Smoothing a decade removes the distortion from recession-year earnings collapses. CAPE has historically been a weak short-term timing signal but a reasonable indicator of long-run expected returns.
- Should I avoid stocks with high P/E ratios?
- Not automatically. A high P/E reflects expectations of growth; the risk is that those expectations disappoint. Equally, a low P/E may reflect a business in genuine decline — the value trap. P/E identifies what the market believes about a company, and your job is to judge whether that belief is right.
Related calculators
- Graham Number CalculatorCalculate the Graham Number to find the intrinsic value of a stock.
- Dividend Yield CalculatorCalculate dividend yield and annual income from dividend-paying stocks.
- Stock Investment Return CalculatorCalculate total return on a stock investment including dividends and capital gains.