INVESTING
P/E Ratio Calculator — Price to Earnings Ratio
By Worldtickers ·
Use our free P/E ratio calculator to compute a stock's price-to-earnings ratio from its share price and earnings per share. Covers trailing P/E, forward P/E, the formula, worked examples, and how to interpret the result across different sectors.
This p/e ratio calculator — price to earnings ratio tool focuses on use our free P/E ratio calculator to compute a stock's price-to-earnings ratio from its share price and earnings per share. Covers trailing P/E, forward P/E, the formula, worked examples, and how to interpret the result across different sectors. Use it to compare investment returns, income, risk, compounding, and portfolio assumptions while changing price, yield, time, allocation, or contribution inputs.
P/E Ratio Calculator
Trailing P/E Calculator
Uses the company's actual reported earnings per share over the trailing twelve months (TTM) — the most common way P/E is quoted on financial sites.
What Is P/E Ratio?
The price-to-earnings ratio, commonly called the P/E ratio, is one of the most widely used metrics for evaluating whether a stock is fairly valued, overvalued, or undervalued. It tells you how much investors are currently willing to pay for each dollar of a company's earnings. A P/E of 25 means the market is pricing the stock at 25 times its annual earnings per share.
The P&E ratio exists because stock prices alone are not meaningful for comparison. A $200 stock is not inherently more expensive than a $30 stock — what matters is how much you are paying relative to the earnings those shares generate. A $200 stock earning $10 per share (P/E of 20) may be cheaper than a $30 stock earning $0.50 per share (P/E of 60). The P/E ratio normalizes for this difference.
There are two main flavors. Trailing P/E uses the last twelve months of actual reported earnings — it is backward-looking and based on audited financial statements. Forward P/E uses analyst consensus estimates for the next twelve months — it is forward-looking and reflects growth expectations. Our EPS calculator can help you compute the earnings-per-share figure that feeds directly into the P/E formula.
How to Use This Calculator
This calculator needs just two inputs: the current stock price and the earnings per share (EPS). You can enter trailing EPS (the last 12 months of actual earnings) to get the trailing P/E, or enter forward EPS (analyst estimates) to get the forward P/E.
Step by Step
Enter the stock's current market price in the first field. Enter the earnings per share in the second field — this is the annual EPS, not quarterly. If you have quarterly EPS, multiply by four to get the annualized figure. Click calculate and the P/E ratio appears instantly.
Reading the Result
The result is a simple number — for example, 18.5 means the stock is trading at 18.5 times earnings. To interpret it, you need context. Compare it to the stock's own historical P/E (is it higher or lower than usual?), its sector peers (is it in line with competitors?), and the broad market (the S&P 500 typically trades around 20-25x). A P/E of 18 might look cheap for a tech stock but expensive for a utility.
What EPS Should I Use?
For most valuation purposes, trailing twelve-month (TTM) EPS is the starting point because it is based on actual reported numbers. Use forward EPS when you specifically want to assess how the market is pricing expected growth. Be cautious with forward EPS — it is an estimate and can be wrong.
The Formula Explained
The P/E ratio formula is: P/E Ratio = Share Price / Earnings Per Share (EPS). It is one of the simplest valuation formulas in finance.
For example, if a stock trades at $150 and its trailing EPS is $6, the P/E is $150 / $6 = 25.0. This means investors are paying $25 for every $1 of the company's annual earnings. If the same stock had EPS of $10, the P/E would be $150 / $10 = 15.0 — a lower P/E indicating the stock is cheaper relative to its earnings power.
You can also rearrange the formula to find the implied stock price for a target P/E: Implied Price = Target P/E × EPS. If you believe a stock deserves a P/E of 20 and its EPS is $8, the fair price would be 20 × $8 = $160. This is useful for relative valuation — determining what a stock "should" trade at based on its peers' P/E ratios.
The inverse of the P/E ratio is the earnings yield (EPS / Price), which expresses the return you would get if the company distributed all its earnings as dividends. A P/E of 25 implies an earnings yield of 4%, which you can compare directly to bond yields or savings rates.
Real-World Examples
Example 1: Comparing Two Companies in the Same Industry
Company A trades at $200 with EPS of $8 (P/E = 25). Company B trades at $180 with EPS of $12 (P/E = 15). Company A is more expensive relative to its earnings — investors are paying a premium, likely because they expect faster growth. Company B is cheaper on a P/E basis, which could mean it is undervalued or that the market expects slower growth. P/E alone does not tell you which to buy — it tells you what price you are paying relative to current earnings.
Example 2: Trailing vs Forward P/E
A company has a current stock price of $120. Its trailing EPS is $4 (trailing P/E = 30). Analysts estimate next year's EPS will be $6 (forward P/E = 20). The forward P/E is lower because earnings are expected to grow 50%. This suggests the stock may be more attractively valued than the trailing P/E alone implies — but only if the earnings estimate materializes.
Example 3: Sector Context Matters
A pharmaceutical company trades at a P/E of 16. A cloud software company trades at a P/E of 45. The software company looks expensive in absolute terms, but SaaS companies routinely trade at 30-60x because of high recurring revenue growth. The pharma company at 16x might actually be expensive relative to its sector average of 12x. Always compare within sectors.
Tips and Limitations
P/E Does Not Capture Growth
Two companies with identical P/E ratios can have vastly different growth prospects. A stock growing earnings at 30% per year deserves a higher P/E than one growing at 5%. Use the P/E ratio alongside growth metrics like our ROI calculator or the PEG ratio (P/E divided by earnings growth rate) for a more complete picture.
Debt Distorts P/E
P/E only looks at equity value — it ignores how much debt a company carries. Two companies with the same P/E but very different debt levels are not equally risky. A highly leveraged company might have a low P/E because its earnings are volatile and the market prices in risk. Always check the balance sheet alongside P/E.
One-Time Items Can Skew Earnings
A company that sells a division or receives a large tax benefit might show artificially high EPS for one quarter, making its P/E look artificially low. Use adjusted or normalized EPS when available to get a more meaningful P/E figure.
P/E Is Less Useful for Cyclical and Loss-Making Companies
For cyclical companies (banks, commodities, airlines), earnings swing dramatically with the economic cycle. A low P/E at the peak of a cycle often signals the top, not a bargain. For companies with no earnings, P/E is undefined — use price-to-sales or price-to-book instead.
Frequently Asked Questions
What is a P/E ratio?
The P/E (price-to-earnings) ratio measures how much investors are willing to pay for each dollar of a company's earnings. It is calculated by dividing the current share price by the earnings per share (EPS). A P/E of 20 means investors are paying $20 for every $1 of annual earnings — it reflects the market's expectation of future growth.
What is the difference between trailing P/E and forward P/E?
Trailing P/E uses the company's actual earnings over the past 12 months (trailing twelve months, or TTM). Forward P/E uses projected earnings for the next 12 months. Trailing P/E is based on facts; forward P/E is based on estimates. Forward P/E is often lower than trailing P/E if analysts expect earnings to grow, but it can also be higher if earnings are expected to decline.
Is a high P/E ratio good or bad?
Neither — it depends on context. A high P/E typically means investors expect strong future earnings growth. High-growth tech companies often trade at P/E ratios of 30, 50, or higher. However, a high P/E can also mean a stock is overvalued if growth does not materialize. Compare a stock's P/E to its own historical average, its industry peers, and the broader market (the S&P 500 averages roughly 20-25x).
Is a low P/E ratio always a bargain?
Not necessarily. A low P/E can signal a genuine undervaluation, but it can also reflect the market pricing in problems — slowing growth, rising debt, regulatory risk, or a declining industry. "Value traps" are stocks that look cheap on P/E but continue to decline because the earnings themselves are deteriorating. Always investigate why the P/E is low before buying.
How does P/E differ by sector?
P/E ratios vary enormously across sectors. Technology and healthcare companies typically have higher P/E ratios (25-40+) because investors expect faster growth. Utilities and consumer staples have lower P/E ratios (15-20) because their earnings grow slowly but steadily. Banks often trade at 10-15x. Always compare a stock's P/E to its sector average, not to the overall market.
Can P/E ratio be negative?
When a company has negative earnings (a loss), the P/E ratio is mathematically negative, but it is not meaningful to report a negative P/E. Most financial data providers either show N/A or omit the P/E entirely for loss-making companies. If a company has no earnings, you cannot evaluate it using P/E — you need other metrics like price-to-sales, price-to-book, or discounted cash flow analysis.
How do I find a company's P/E ratio?
You can calculate it yourself by dividing the current share price by the trailing twelve-month EPS (use our EPS calculator if needed), or look it up on any financial data platform. Our calculator lets you enter the price and EPS directly to compute the P/E instantly — useful when you want to test different scenarios or use your own EPS figures rather than consensus estimates.
What are the limitations of P/E ratio?
P/E ignores several important factors: it does not account for growth rate (two companies with the same P/E but different growth rates are very different investments), it does not consider debt levels (two companies with the same P/E but very different leverage are not equally risky), it can be manipulated by one-time accounting gains or losses, and it is meaningless for companies with no earnings. Always use P/E alongside other valuation metrics.