Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

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

$
$
Price-to-earnings ratio
12
Dollars of share price paid for each dollar of annual earnings per share — a pure ratio, often written as 12x.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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=market price per share/earnings per share

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.

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.

earnings Per Share5
share Price60

Frequently asked questions.

What counts as a good P/E ratio?
There is no universal good number. A fast-growing software company and a slow-growing utility can both be fairly priced at very different ratios, and market-wide levels shift with interest rates. The useful comparisons are with the same company's own history and with close competitors, using the same trailing or forward basis for every figure.
Should I use trailing or forward earnings?
Trailing EPS is a reported fact, which makes it reliable but backward-looking. Forward EPS reflects what analysts expect, so it captures a recovery or a slowdown sooner but can be badly wrong. Many investors look at both; a forward P/E well below the trailing one implies that earnings are expected to rise.
Why can't I get a P/E for a company that is losing money?
Dividing a price by a loss gives a negative number that ranks the wrong way: a company losing $10 a share would show a P/E closer to zero than one losing $1, making the worse business look cheaper. Financial data services usually display such cases as not meaningful. Price-to-sales or price-to-book ratios are common substitutes.
Basic or diluted EPS — which should I enter?
Diluted EPS is the usual choice. It spreads earnings over the shares that would exist if stock options, convertible bonds and similar instruments were turned into common stock, so it is never higher than basic EPS and gives a slightly more conservative, higher P/E. The difference is small for most companies but can be large for heavy issuers of stock-based pay.
How does the PEG ratio build on P/E?
The PEG ratio divides the P/E by the expected annual earnings growth rate, written as a whole number. A P/E of 12 with 8% expected growth gives a PEG of 1.5. It tries to adjust for the fact that faster growers deserve higher multiples, though it is only as reliable as the growth forecast it depends on.
Does a stock split change the P/E?
No. A two-for-one split halves the share price and halves earnings per share, leaving the ratio unchanged. The trap is mixing figures from either side of the split: a post-split price divided by pre-split EPS would show a P/E half its true size, so make sure your EPS has been restated.

How this page was produced

Published by
Quanta Calculator
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.

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon