Use this P/E ratio calculator to compare a stock’s price with its annual earnings per share. The price-to-earnings ratio, also called the earnings multiple, shows how much investors are paying for each dollar of a company’s earnings. It measures valuation—not whether a stock will be profitable to buy.

How to use the P/E ratio calculator
- Enter Price Per Share: Use the stock’s market price for the date you want to analyze.
- Enter Earnings Per Share: Use annual EPS, usually from the last four reported quarters or an estimate for the coming year. Do not enter total company earnings or a single quarter’s EPS.
- Read the P/E Ratio: The calculator divides price by EPS and rounds the result to two decimal places. The “x” unit means “times earnings,” not a percentage.
Both inputs are labeled in dollars. Make sure price and EPS use the same currency and refer to the same share class. When comparing companies, also use a consistent earnings basis, such as trailing diluted EPS.
You must supply EPS; this calculator does not retrieve financial statements or derive earnings automatically. If needed, calculate the stock’s earnings per share first. Basic EPS is income available to common shareholders divided by the weighted average shares outstanding during the reporting period. Diluted EPS also accounts for potentially dilutive securities.
P/E ratio formula and worked example
P/E ratio = Price per share ÷ Annual earnings per share
Using the calculator’s default inputs:
| Item | Value |
|---|---|
| Price per share | $80.00 |
| Annual earnings per share | $8.39 |
| P/E calculation | $80.00 ÷ $8.39 = 9.53516… |
| Rounded P/E ratio | 9.54x |
A P/E of 9.54x means the stock costs approximately $9.54 for every $1 of annual earnings per share. It does not mean shareholders receive those earnings as cash, earn a guaranteed return, or recover their investment in 9.54 years.
Trailing vs. forward P/E: which EPS should you use?
The formula is the same for both measures. What changes is the earnings figure you enter.
| Measure | EPS used | Main limitation |
|---|---|---|
| Trailing P/E | Reported EPS for the last four quarters, also called trailing twelve months or TTM | Past earnings may not reflect current conditions or future performance. |
| Forward P/E | Forecast EPS for a stated future period, commonly the next fiscal year or next twelve months | Forecasts can change and may prove inaccurate. |
This calculator has no separate trailing or forward setting: the EPS you provide determines which ratio you calculate. Label your results accordingly, and do not compare one company’s trailing P/E with another’s forward P/E without recognizing the difference.
If forward P/E is lower than trailing P/E at the same share price, the forecast assumes higher earnings. That is an expectation, not proof that growth will occur.
What is a good P/E ratio?

There is no universal good P/E ratio. A useful comparison considers similar businesses, their growth prospects, financial risks, and the quality of their earnings.
- A lower P/E means you pay less for each dollar of earnings. It may indicate an attractive valuation, but it can also reflect declining profits, financial risk, or unusually high earnings that will not last.
- A higher P/E means you pay more for current earnings. Investors may expect stronger growth or more dependable profits, but the price may also leave less room for disappointing results.
A stock trading at 15x earnings is not automatically a better purchase than one trading at 25x. Likewise, a lower share price alone does not make a stock cheaper: valuation depends on the earnings associated with each share.
Compare within the right industry and time period

Businesses in different industries can have very different growth rates, capital requirements, and earnings stability. Start with comparable companies rather than treating a broad stock-market average as a universal benchmark.
Published P/E ratios by industry can provide context, but check the data date, earnings definition, and companies included. A ratio below an industry average is a reason to investigate—not a buy signal.
A company’s own historical P/E can also be useful, provided you account for changes in interest rates, business mix, growth expectations, and financial risk.
When P/E can be misleading
Zero or negative earnings
If EPS is zero, the P/E ratio is undefined because division by zero is not possible. If EPS is negative, the formula produces a negative ratio, but it is generally treated as not meaningful for conventional earnings-multiple comparisons. A negative P/E does not indicate that a stock is exceptionally cheap.
Very small positive EPS can also produce an extremely high P/E. Check whether earnings were temporarily depressed before interpreting the result.
Earnings quality, buybacks, and financial risk
- One-time items: Asset sales, tax benefits, restructuring charges, or other unusual items can distort EPS. Compare reported and adjusted earnings carefully; companies may define adjustments differently.
- Cyclical profits: A low P/E during a peak earnings year can hide the risk of a future downturn. Review earnings across the business cycle.
- Cash flow: Accounting earnings are not cash flow. Review operating cash flow, capital spending, and cash needs alongside P/E.
- Share buybacks: A lower share count can raise EPS even without growth in total profit. Holding price and total earnings constant, higher EPS lowers P/E; actual buybacks can also affect cash, debt, and the share price.
- Leverage and profitability: P/E alone does not explain how a business funds itself or generates profits. The Debt-to-Equity Ratio Calculator and Return on Equity Calculator can help you examine those issues.
How to apply your result
Use P/E as a starting point for research rather than a standalone investment decision:
- Build a consistent comparison: Use prices from the same date and the same EPS definition for each company.
- Investigate the valuation gap: Look for differences in expected growth, margins, debt, cash generation, and unusual earnings items.
- Test an assumption: Recalculate using a reasonable alternative EPS estimate to see how sensitive the multiple is to earnings changes.
You can also work backward manually to explore a hypothetical price: Price = EPS × Assumed P/E. At $8.39 EPS and an assumed 12x multiple, the implied price is $100.68. This is a scenario based on your chosen multiple, not a verified fair value or price target.
Related calculators for stock analysis
- Earnings Per Share Calculator: Calculate the per-share profit figure needed for P/E analysis.
- Price/Earnings to Growth Calculator: Compare the earnings multiple with an assumed earnings growth rate. The result depends heavily on the growth estimate.
- Dividend Yield Calculator: Measure annual dividends relative to share price. Unlike P/E, it focuses on cash distributions to shareholders.
Build a valuation calculator for your website
Financial education sites can use Calcopolis to build a customized financial calculator with relevant inputs and explanations, helping visitors explore valuation assumptions alongside the site’s research.