Price To Earnings Calculator
Divide a share price by earnings per share to get the P/E ratio: how many dollars investors pay for each dollar of a company's annual profit.
Price To Earnings Calculator
Background.
A share price on its own says almost nothing about whether a stock is cheap. A $60 share is not dearer than a $15 one if the company behind it earns four times as much per share. The price-to-earnings ratio fixes this by dividing price by earnings per share, giving a number that can be compared across companies of any size or share count: the dollars the market pays for each dollar of annual profit.
At $60 a share and $5 of earnings per share, the ratio is 12. Put another way, if profits stayed flat for ever, it would take twelve years of earnings to add up to the price paid. Flip the fraction and you get the earnings yield — 8.33% here — which some investors set beside bond yields as a rough sense of what owning the business returns.
A high P/E is not a warning and a low one is not a bargain. Investors pay more for each dollar of today's earnings when they expect those earnings to grow, and less when they expect them to shrink or doubt they will last. Cyclical businesses such as carmakers and miners are the classic trap: their P/E often looks lowest near the top of the cycle, when profits sit at a peak that will not hold.
The ratio is only as good as the earnings figure underneath it. Trailing P/E uses the last twelve months of reported earnings; forward P/E uses analysts' estimates for the coming year and inherits their errors. Reported earnings can be swollen or depressed by one-off items such as an asset sale or a write-down. And when earnings are zero or negative, the ratio means nothing, which is why this page refuses to compute one.
What is price to earnings calculator?
The price-to-earnings ratio is a company's market price per share divided by its earnings per share over a twelve-month period. Earnings per share is net income available to common shareholders divided by the weighted average number of common shares outstanding. Because both figures are in the same currency per share, the result is a pure number, often written with an x — a P/E of 12 is "12 times earnings".
How to use this calculator.
- Enter the share price you want to evaluate — usually the latest market price, or the price on a past date if you are comparing over time.
- Enter earnings per share. For a trailing figure, add the diluted EPS from the company's last four quarterly reports; for a forward figure, use a consensus estimate for the next fiscal year, and say which you used when you compare.
- Check that price and EPS describe the same share in the same currency. After a stock split, use EPS restated for the split; for a depositary receipt, convert the earnings and allow for how many underlying shares each receipt represents.
- If the company made a loss, there is no meaningful P/E — the page will reject zero or negative EPS rather than return a misleading number.
- Compare the ratio with the company's own history and with direct competitors on the same EPS basis, not with the market as a whole.
The formula.
P/E = P ÷ EPS, where P is the market price of one share and EPS is the company's earnings per share over twelve months. Multiplying top and bottom by the number of shares gives an equivalent form: market capitalisation divided by net income, which is handy when you have company-level figures rather than per-share ones. The ratio is inversely proportional to earnings, so it reacts sharply when earnings are small: halving EPS doubles the P/E even if the price has not moved. That is also why the ratio breaks down at zero, where it would be infinite, and below zero, where a larger loss would produce a P/E closer to zero and make a worse business look cheaper. EPS at or below zero is therefore refused.
A worked example.
A stock trades at $60 and the company earned $5 per share over the last twelve months. The ratio is 60 ÷ 5 = 12, so buyers are paying 12 times trailing earnings. The earnings yield is the inverse: 5 ÷ 60 = 0.0833, or 8.33%. The same company viewed company-wide gives the same answer. With 200 million shares at $60, its market value is $12 billion; net income of $1 billion divided across those shares is the $5 of EPS, and $12 billion ÷ $1 billion = 12. Now suppose analysts expect EPS of $6 next year. At the same $60 price, the forward P/E is 60 ÷ 6 = 10. If instead a bad year cut earnings to $2 a share, the trailing P/E would jump to 30 without the price changing at all — a reminder that a high ratio can mean depressed earnings rather than an expensive stock.
Frequently asked questions.
What counts as a good P/E ratio?
Should I use trailing or forward earnings?
Why can't I get a P/E for a company that is losing money?
Basic or diluted EPS — which should I enter?
How does the PEG ratio build on P/E?
Does a stock split change the P/E?
References& sources.
- [1]OpenStax, Rice University. Principles of Finance, 2022. Chapters 6–10. Retrieved 2026-08-06.
- [2]U.S. Internal Revenue Service. Tax guidance current 2026. Official forms, instructions and tax topics. Retrieved 2026-08-06.
- [3]U.S. Securities and Exchange Commission. Investor.gov current 2026. Investment products and risk. Retrieved 2026-08-06.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 3 cited below
- Method
- P/E=market price per share/earnings per share
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled