P/E Ratio Calculator
A price-to-earnings ratio calculator, usually shortened to P/E ratio calculator, answers one valuation question: how many dollars is the market paying for each dollar of a company’s annual earnings per share? Enter the share price and earnings per share (EPS), and the tool returns the P/E ratio and the earnings yield. Add an industry average P/E if you want the premium or discount comparison, and pick a sector if you want the label recorded with the result.
P/E Ratio Calculator
Share price divided by earnings per share, with earnings yield.
Quick Answer
A $50.00 share price with $2.50 of earnings per share gives a P/E ratio of 20.00, an earnings yield of 5.00%, and a price of $20.00 per $1 of earnings. Against the optional industry average of 18.5, that is a premium to average. The calculator is pre-filled with that case.
Key takeaways
- P/E is price divided by EPS. The earnings yield is its reciprocal: 1 divided by P/E.
- Premium or discount here means only “above or below the industry average you entered”. It is a comparison, not a verdict.
- The tool refuses zero or negative EPS. For a loss-making company that refusal is the honest answer: a P/E built on negative earnings is not a valuation signal.
- This page covers price-to-earnings only. Market-to-equity, which compares market value with book equity, is a different ratio this tool does not compute.
- Quick Answer
- How to use the P/E ratio calculator
- The formula: price divided by earnings per share
- Worked examples that reproduce in the tool
- Reading a P/E without a verdict table
- What most rival tools get wrong
- Limits of a single ratio
- Frequently asked questions
- Add This Calculator to Your Website
- References
How to use the P/E ratio calculator
Enter the share price and EPS in the same currency, add an industry average P/E if you know one, and pick a sector if you want the label recorded with the result. The sector label does not change the calculation; it is recorded so a copied summary carries its context. Press Calculate to see the ratio, the earnings yield, the price per $1 of earnings, and the premium or discount comparison. Results stay hidden until you press Calculate. Every required value must be greater than zero: blanks, zeros, negatives, and text all stop the calculation and show the field error line instead of a result.
The formula: price divided by earnings per share
P/E ratio = Market price per share / Earnings per share. With the pre-filled example: P/E = $50.00 / $2.50 = 20.00. Earnings yield = 1 / P/E = 1 / 20.00 = 5.00%. Price per $1 of earnings is the same number in dollars: $20.00 buys $1 of annual earnings at this price. The premium or discount comparison is plain arithmetic against the average you entered: 20.00 above 18.5 is a premium; below it would be a discount. No fixed threshold is applied, because a P/E that looks high for a slow-growing utility can look ordinary for a fast-growing technology company, and the sector label exists precisely to keep that context attached.
The U.S. Securities and Exchange Commission’s Investor.gov glossary defines the P/E ratio and EPS in the same terms this tool uses, and long-run earnings data of the kind Shiller publishes at Yale is the usual source when anyone wants the market-wide average rather than a single company’s figure. This tool does not fetch live prices or earnings: enter the figures from your own quote source, and the ratio follows from them.
Worked examples that reproduce in the tool
| Share price | EPS | Industry average | P/E | Earnings yield | Comparison |
|---|---|---|---|---|---|
| $50.00 | $2.50 | 18.5 | 20.00 | 5.00% | Premium |
| $120.00 | $8.00 | 18.5 | 15.00 | 6.67% | Discount |
| $25.00 | $1.00 | blank | 25.00 | 4.00% | Not specified |
The third row shows the blank-average behaviour: with no industry average entered, the tool reports the ratio and yield and marks the comparison as not specified, rather than inventing a benchmark. The second row shows why the yield matters: the cheaper-looking ratio of 15.00 corresponds to a higher earnings yield of 6.67%, which is the same fact stated from the earnings side.
Reading a P/E without a verdict table
This page deliberately prints no high, fair, or low verdict. Fixed P/E bands pretend that one threshold fits every sector, every interest-rate regime, and every growth rate, and it does not. A ratio of 20 means investors pay $20 for each $1 of current annual earnings. Whether that is reasonable depends on expected earnings growth, on interest rates (which set the return available elsewhere), and on how the company’s industry average, which you entered yourself, compares. Read the ratio with those three companions: the earnings yield for the return framing, the industry comparison for the relative framing, and growth expectations for the forward framing. For income context, the dividends calculator covers the payout side, the CAPE ratio calculator covers the long-run cyclically adjusted view, and the equity dividend rate calculator covers dividend return on equity. The stock bond ratio calculator puts the equity allocation question next to the valuation question.
What most rival tools get wrong
Rival P/E tools commonly do two things this one avoids. First, they grade the ratio against fixed bands and print a verdict word, which smuggles a judgment into what should be a measurement. Second, they bundle the P/E tool with unrelated calculators under a shared name, so a searcher looking for one ratio lands on three tools and a results box that cannot tell them apart. This page is one tool with one formula, an optional comparison the user supplies, and no verdict. Its only judgment call is the refusal of non-positive EPS, and that refusal is arithmetic honesty, not opinion: division by zero or by a loss produces a number that misleads more than silence does.
Limits of a single ratio
P/E uses one year of earnings, or one trailing figure, and earnings can be depressed by a one-off charge or flattered by a one-off gain. It says nothing about debt, cash, growth, or the quality of earnings, and it breaks down entirely for companies without positive earnings, which is why the tool refuses those inputs rather than printing a negative ratio. Use P/E as a first screen, then look at growth, balance sheet strength, and cash generation before any decision. Nothing on this page is investment advice, and the tool never fetches a live price: if your quote source updates, re-enter the figures.
Frequently asked questions
Share price divided by earnings per share. It states how many dollars the market pays for each dollar of annual earnings per share.
The reciprocal of P/E: 1 divided by the P/E ratio, expressed as a percentage. A P/E of 20.00 corresponds to an earnings yield of 5.00%. It frames the same fact from the earnings side.
Because a P/E built on negative earnings is not a valuation signal. A loss-making company cannot be priced per dollar of earnings when earnings are negative, so the tool stops and says so instead of printing a misleading negative ratio.
Only that the computed P/E sits above (premium) or below (discount) the industry average you entered. It is not a buy or sell signal and not a verdict on the price.
No. Market-to-equity compares market value with book equity, in the price-to-book family. No input on this page accepts either figure, and this tool does not compute that ratio.
Use one consistent figure and say which: trailing twelve-month EPS for what the company already earned, or forward EPS for what analysts expect. Mixing the two across comparisons invalidates the comparison.
Add This Calculator to Your Website
Embed this calculator on your own site with the code below. Copy the code and paste it into your page.
Powered by Calculator Zilo
References
- U.S. Securities and Exchange Commission, Investor.gov. Price-Earnings Ratio (P/E Ratio), Investor Glossary. Price-Earnings Ratio (Investor.gov). Accessed October 22, 2026.
- U.S. Securities and Exchange Commission, Investor.gov. Earnings Per Share (EPS), Investor Glossary. Earnings Per Share (Investor.gov). Accessed October 22, 2026.
- Robert J. Shiller, Yale University. Online Data: U.S. Stock Markets, Earnings and Interest Rates. U.S. Stock Market Data (Yale). Accessed October 22, 2026.
- Nasdaq. Price-Earnings Ratio, Financial Glossary. Price-Earnings Ratio (Nasdaq). Accessed October 22, 2026.
