Price to Earnings Ratio (P/E) Calculator
The price-to-earnings (P/E) ratio divides a stock's share price by its earnings per share, showing how many dollars the market pays for each dollar of the company's earnings.
20.00×
| EPS change | EPS | P/E |
|---|---|---|
| -20% | $2.00 | 25.00× |
| -10% | $2.25 | 22.22× |
| Current | $2.50 | 20.00× |
| +10% | $2.75 | 18.18× |
| +20% | $3.00 | 16.67× |
This tool computes the P/E identity and its rearrangements from the figures entered. It is a mathematical calculator, not investment advice, and it uses no market-data feeds — every number on this page comes from your inputs.
Price-to-Earnings Ratio Formula
The P/E ratio and its two algebraic rearrangements — the same identity solved for each variable:
Share price is the market price of one common share; EPS is earnings per share for a stated period (trailing or forward) and basis (diluted, basic or adjusted). Because both terms are per-share amounts in the same currency, the ratio itself is a unitless multiple — it is read as “20 times earnings” and written 20.00×, never as a dollar amount.
P/E ratio, P/E multiple and earnings multiple normally describe the same valuation multiple. “Multiple” phrasing is standard in valuation work (“the stock trades at 20 times earnings”), while “ratio” is standard in reporting; the arithmetic is identical.
Worked Example: $60 Share Price, $3.00 TTM Diluted EPS
A share trades at $60.00 and the company reported $3.00 of trailing-twelve-month diluted EPS:
The market is paying $20.00 for each $1 of trailing diluted earnings, and the earnings yield — the same relationship inverted — is 5.00% ($3.00 ÷ $60.00 × 100).
A common shorthand reads 20× as “20 years of earnings to recover the price.” Treat that strictly as intuition, not as an economic guarantee: EPS is accounting profit, not cash distributed to shareholders, and future earnings will not stay frozen at $3.00. The payback framing ignores growth, decline, dilution, reinvestment and the difference between earning and receiving.
What Does a P/E Ratio Tell You?
It tells you the price of a dollar of current-period earnings — nothing more, and nothing less. Keeping the multiple separate from the things it is often confused with makes it far more useful:
It is not an intrinsic-value estimate. A multiple compares price to one year of earnings; a valuation estimates what all future cash flows are worth. Multiplying an EPS figure by a chosen P/E produces a price consistent with that multiple, not an independent measurement of worth.
It is not an expected return. The earnings yield (the inverse of P/E) has the form of a return, but realized returns depend on earnings growth, payout and the multiple at which you eventually sell — our stock return calculator works with what an investment actually produced.
It is not a dividend yield. Earnings and dividends differ by the payout ratio; a company can earn much and pay little, or the reverse. The dividend yield calculator covers the cash actually paid out.
It is not a buy or sell signal. On its own the ratio cannot say whether a price is right; it can only prompt the next questions — why is the market paying this much or this little for these earnings, and are these earnings representative?
What Is a Good P/E Ratio?
There is no universal good P/E ratio. The same multiple can be demanding for one business and undemanding for another, so a figure is only interpretable against reference points that share its context:
Compare the multiple with the company's own history (is the market paying more or less for its earnings than it used to, and did anything change to justify it?), with close peers in the same sector and business model, and with the economics behind the earnings: expected growth, profitability and returns on capital, leverage, cyclicality, earnings quality, and the prevailing discount-rate environment — when interest rates are higher, future earnings are generally worth less today, which pressures multiples across the whole market.
A low P/E is not automatically a bargain. It can reflect genuine undervaluation — or expected earnings deterioration, peak cyclical earnings that are about to fall, financial risk from leverage, or low-quality earnings the market discounts.
A high P/E is not automatically excessive. It can reflect expected growth, high returns on capital, durable and predictable earnings, or a temporarily weak earnings denominator — or it can reflect overvaluation. Every one of these readings is possible at the same number, which is exactly why the ratio starts the analysis instead of finishing it.
Trailing P/E vs Forward P/E
| Trailing P/E (TTM) | Forward P/E | |
|---|---|---|
| Earnings used | Reported EPS for the past twelve months | Estimated EPS for the next twelve months or fiscal year |
| Verifiability | Audited, published figures | Analyst or company forecasts |
| Main strength | Objective and reproducible | Reflects where earnings are heading |
| Main limitation | Backward-looking; a distorted past quarter stays in the window for a year | Estimates can be revised or missed; different providers use different estimates |
| Typical use | Screening, historical comparisons | Companies with fast-changing earnings |
The two are not interchangeable: for a company with growing earnings the forward multiple is mechanically lower than the trailing one. Always note which variant a quoted figure uses before comparing it with anything.
Which EPS Should You Use for P/E?
Any EPS definition produces a P/E — the requirement is consistency. The three you will meet in filings and screeners:
Diluted reported EPS is the most common convention for quoted multiples. It divides common earnings by shares outstanding plus the potential shares from options, warrants and convertibles, computed under the if-converted and treasury-stock methods of IAS 33 / ASC 260. That methodology is more involved than a simple share-count adjustment, which is why this page's builder does not attempt it: for a diluted P/E, use the diluted EPS the company reports.
Basic reported EPS divides earnings available to common shareholders by weighted-average common shares outstanding over the period — the weighting matters because share counts change through buybacks and issuance, so a point-in-time “current shares outstanding” figure is not the standard denominator. Our earnings per share calculator covers the EPS computation itself in more depth.
Adjusted / non-GAAP EPS excludes items management considers non-recurring. It can better represent run-rate earnings, but definitions vary by company and are not audited to a single standard.
The one hard rule: never compare multiples built on different bases or periods. A trailing-GAAP-diluted 22× and a forward-adjusted 15× for the same stock are answers to different questions, not a contradiction.
Earnings Yield: The Inverse of P/E
The earnings yield restates the same relationship as a percentage: a 20.00× multiple is a 5.00% earnings yield, exactly the figure the result panel reports next to the ratio. The percentage form makes cross-asset comparisons easier — an earnings yield can sit alongside bond yields in the same units — but it inherits every caveat of the P/E it inverts: it is an accounting-earnings yield, not a cash return you receive. It is defined here only for positive earnings; with zero or negative EPS the ratio is N/M and so is its inverse. The earnings yield calculator is dedicated to this metric.
When P/E Can Be Misleading
The ratio's weaknesses all live in its denominator. The situations where a quoted P/E deserves extra scrutiny:
Negative earnings. Price ÷ a negative EPS is arithmetically computable but meaningless as a multiple; this calculator reports N/M and shows the signed quotient only in calculation details.
Near-zero earnings. A company earning a few cents per share can show a multiple in the hundreds. The number is real but extremely sensitive — a one-cent EPS revision can move it by dozens of points, which is why results at 100× or more carry a sensitivity warning here.
Cyclical companies. At the top of a cycle, earnings are at their peak and the P/E looks its lowest exactly when the risk of an earnings decline is highest; at the bottom the multiple looks its highest. For cyclicals, a single-year denominator is the least representative input you can pick.
One-time items. Asset sales, impairments, legal settlements and tax one-offs can inflate or crush a single period's EPS. A multiple built on a distorted denominator says little about the ongoing business.
GAAP vs adjusted earnings. The same company can quote materially different multiples depending on whether the denominator is GAAP or company-adjusted EPS. Neither is wrong — but mixing them across companies is.
Dilution and buybacks. Share issuance spreads earnings over more shares; buybacks concentrate them over fewer. Both move EPS — and therefore the P/E — without any change in the business itself.
Leverage. Debt magnifies earnings in good times and losses in bad ones. Two companies with identical multiples can carry very different balance-sheet risk; a leverage-aware view such as return on equity analysis or an enterprise-value multiple fills that gap.
Cross-sector comparisons. Sectors differ structurally in growth, capital intensity and accounting, so a software company and a bank at the same P/E are not “equally priced” in any useful sense. Compare within a sector, or adjust before comparing across.
Business models where EPS understates economics. REITs are the classic case: depreciation charges depress accounting earnings even when property cash flow is healthy, so FFO-based multiples are the sector convention. Similar logic applies wherever accounting earnings and cash generation diverge persistently.
P/E vs Other Valuation Metrics
No single multiple is universally better — each answers a different question and fails in a different place:
| Metric | Typical use case | Main limitation |
|---|---|---|
| P/E | Price of a dollar of current earnings; quick like-for-like comparison within a sector | Meaningless with zero/negative earnings; sensitive to one-time items and leverage |
| PEG | Relating a P/E to expected earnings growth | Depends entirely on a growth forecast; no standard growth window |
| P/S | Loss-making or early-stage companies with real revenue (price-to-sales calculator) | Ignores profitability entirely — a dollar of low-margin revenue prices like a high-margin one |
| P/B | Balance-sheet-driven businesses such as banks and insurers (price-to-book calculator) | Book value misses internally generated intangibles; distorted by buybacks |
| EV/EBITDA | Comparing companies with different capital structures | EBITDA ignores capex, working capital and the cost of debt itself |
| P/FCF | Cash-generation view that bypasses accrual accounting | Free cash flow is lumpy year to year; capex timing distorts single periods |
P/E Formula in Excel or Google Sheets
With the share price in A2 and EPS in B2:
To reproduce this calculator's treatment of zero and negative earnings — N/M instead of an error or a negative pseudo-multiple — guard the denominator:
Formatting note: keep the result as a plain number (optionally with a custom format such as 0.00"×") — a currency format would misstate what the multiple is.
Frequently Asked Questions
How do you calculate the P/E ratio?
Divide the share price by earnings per share: P/E = Share Price ÷ EPS. A $50 share with $2.50 of EPS trades at 50 ÷ 2.50 = 20.00×. State the earnings period (trailing or forward) and the EPS basis (diluted, basic or adjusted) alongside the number, because the same share price produces different multiples on different EPS definitions.
What is a good P/E ratio?
There is no universal good P/E ratio. A multiple is only interpretable relative to the company's own history, close peers in the same sector, expected earnings growth, returns on capital, leverage, cyclicality, earnings quality and the prevailing discount-rate environment. The same 15× can be demanding for a shrinking business and undemanding for a durable grower.
Is a high P/E ratio good or bad?
Neither, by itself. A high multiple can reflect expected growth, high returns on capital, durable earnings or a temporarily depressed earnings denominator — or it can reflect overvaluation. A low multiple can reflect undervaluation — or expected deterioration, peak cyclical earnings, financial risk or weak earnings quality. The ratio is a starting point for questions, not a buy or sell signal.
Can a P/E ratio be negative?
Arithmetically, price divided by a negative EPS produces a negative number, but a negative P/E is not a meaningful valuation multiple and data providers report it as N/M or a dash. This calculator does the same: with negative EPS the primary result is N/M, and the signed quotient appears only in the calculation details for transparency.
What happens when EPS is zero?
The ratio is undefined — division by zero — so no P/E exists. The calculator reports N/M with a zero-earnings status rather than showing 0× or an arbitrarily large number. Metrics that do not depend on positive earnings, such as price-to-sales or price-to-book, are commonly used for companies at or near zero earnings.
What is trailing vs forward P/E?
Trailing (or TTM) P/E divides price by the last twelve months of reported EPS — verifiable but backward-looking. Forward P/E divides price by estimated EPS for the next twelve months or fiscal year — forward-looking but dependent on forecasts that can be revised or missed. The two are not interchangeable; always note which one a quoted multiple uses.
Is P/E ratio the same as P/E multiple?
Yes. P/E ratio, P/E multiple and earnings multiple normally describe the same number: share price divided by earnings per share. “Multiple” language is common in valuation work (“trading at 20 times earnings”), while “ratio” is common in reporting — the arithmetic is identical.
Which EPS should I use?
Diluted reported EPS is the most common convention for quoted P/E ratios because it accounts for potential share dilution. Basic EPS uses only weighted-average shares outstanding, and adjusted or non-GAAP EPS excludes items management deems non-recurring. Any basis can be used — but compare multiples only when they are built on the same basis and period.
How do I calculate share price from P/E and EPS?
Rearrange the formula: Share Price = P/E × EPS. At a 25× multiple and $2.00 of EPS, the implied share price is $50.00. This is the price consistent with the multiple you chose — an arithmetic identity, not an estimate of what the stock is worth.
Why can two websites show different P/E ratios for the same stock?
Because the inputs differ: the price timestamp (intraday vs prior close), trailing vs forward earnings, basic vs diluted EPS, GAAP vs adjusted EPS, which four quarters make up the trailing-twelve-month window, and how recently each site refreshed its data. Any one of these can move the quoted multiple; several together can move it a lot.
How do stock splits affect P/E?
They don't, apart from rounding. A split divides the share price and EPS by the same factor — a 2-for-1 split halves both — so the ratio is unchanged. Comparisons across a split are still valid as long as the EPS series is split-adjusted, which reported figures normally are.
When should I use another valuation multiple?
When earnings are negative, near zero, or heavily distorted by one-time items, and for business models where accounting earnings understate economics — REITs are commonly assessed on FFO-based multiples, capital-intensive firms on EV/EBITDA, and pre-profit companies on price-to-sales. No single multiple is universally better; each answers a different question.
Related Calculators
Methodology and Sources
P/E = Share Price / Earnings per Share (EPS), with the algebraic rearrangements Share Price = P/E × EPS and EPS = Share Price / P/E used for the implied-price and implied-EPS modes. Earnings Yield = EPS / Share Price × 100 (equivalently 100 / P/E) is reported only when P/E is positive and meaningful. Basic EPS = earnings available to common shareholders / weighted-average common shares outstanding, following the structure of IAS 33 and FASB ASC 260; the builder does not attempt the if-converted or treasury-stock adjustments that fully compliant diluted EPS requires, so diluted P/E should use the diluted EPS the company reports. The company-level mode computes equity market capitalization / earnings attributable to common shareholders and is labeled as company-level P/E. Zero EPS returns a null P/E with a zero-earnings status; negative EPS returns a null P/E with a negative-earnings status and exposes the signed arithmetic quotient only inside calculation details. Both are presented as N/M (not meaningful), never as a valuation multiple. Positive multiples of 100× or more carry an extreme-sensitivity warning describing denominator sensitivity, without any judgement about the stock. The optional benchmark comparison reports (Company P/E / Benchmark P/E − 1) × 100 relative to the figure the user entered, and states only above/below — no valuation labels. All arithmetic runs at full floating-point precision; rounding happens only at presentation (P/E and earnings yield to 2 decimals, benchmark difference to 1 decimal, currency to 2 decimals). The engine is fully deterministic and local: no market-data feeds, ticker lookups or live benchmarks are used.
Sources
- U.S. Securities and Exchange Commission — Investor.gov - Price-Earnings (P/E) Ratio — Investing Glossary - consulted August 7, 2026 - Federal investor-education definition of the P/E ratio and its trailing/forward variants
- U.S. Securities and Exchange Commission (SEC) - Beginners' Guide to Financial Statements - consulted August 7, 2026 - Explains earnings per share and the income-statement figures behind the P/E denominator
- IFRS Foundation - IAS 33 — Earnings per Share - consulted August 7, 2026 - Accounting standard defining basic EPS (weighted-average shares) and diluted EPS methodology
- Financial Accounting Standards Board (FASB) - Accounting Standards Codification Topic 260 — Earnings Per Share - consulted August 7, 2026 - U.S. GAAP counterpart governing basic and diluted EPS computation
Reviewed according to the CalcDomain Editorial Policy & Calculator Methodology. We document formulas, edge cases, sources, update dates, and correction paths for calculator pages.
Last updated