P/E Ratio Calculator

The price-to-earnings ratio is the price of one share divided by the earnings attributable to one share: how many dollars you pay for each dollar of annual profit. This calculator returns the trailing P/E, the forward P/E, the earnings yield that is its reciprocal, and the PEG ratio that scales the multiple by expected growth. It also runs the multiple backwards, applying a target or peer P/E to your earnings per share to give an implied share price and the gap to where the stock trades now.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Share priceCurrent market price of one common share, on the same date as the share count behind EPS.48.5 $
Trailing EPS (last 12 months)Diluted earnings per share for the last four reported quarters; enter a loss as a negative.2.35 $
Forward EPS (next 12 months)Consensus or your own estimate of diluted EPS for the coming year; set to zero to skip.2.7 $
Target or peer P/EThe multiple the peer group trades at, or the multiple you think the shares deserve.18 x
Apply the target multiple toMatch this to the basis your peer multiple was measured on, or the implied price is inconsistent.Trailing EPS
Expected EPS growth rateAnnual percentage growth in EPS you expect over the next three to five years; drives the PEG ratio.9 %

It returns

  • Trailing P/E — Dollars of price paid per dollar of the last twelve months' earnings.
  • Forward P/E
  • Earnings yield (trailing) — The reciprocal of the trailing P/E: earnings per share as a percentage of the price.
  • PEG ratio
  • Implied price at the target multiple
  • Gap to the current price

The formula

P/E=PEPS
y=EPSP=1P/E
PEG=P/Eg

In plain text: P/E = Price per share / Earnings per share

  • PMarket price of one common share ($)
  • EPSDiluted earnings per share for the chosen twelve-month window ($)
  • gExpected annual EPS growth, in percentage points (%)
  • mTarget or peer P/E multiple applied (x)

Earnings per share is defined by ASC 260 under US GAAP and IAS 33 under IFRS. Both require basic and diluted figures; use diluted for valuation so the multiple reflects every share that could be issued.

Updated Category Relative Valuation & Trading Multiples Verified against published test cases Reading time 11 min

What the P/E ratio actually prices

The P/E ratio is the price of a claim on one share's worth of annual profit. At 20x you are paying twenty dollars for every dollar the company earns in a year, which is the same as saying that, if profits never changed and were all paid out, you would get your money back in twenty years. That framing is the fastest sanity check available on any share price, and it is why the ratio has survived a century of competing metrics.

Turn it upside down and it becomes the earnings yield: EPS divided by price, expressed as a percentage. A 20x P/E is a 5% earnings yield. The yield form is more useful than the multiple when you want to compare a share with a bond, because both are then quoted in the same units. It is also more stable to think about at extremes: the difference between 40x and 50x looks small, but as yields those are 2.5% and 2.0%, a fifth of the return gone.

The denominator is not a free choice. Earnings per share is a defined measure — ASC 260 under US GAAP, IAS 33 under IFRS — and both require companies to publish a basic figure and a diluted figure. Use diluted, because it reflects the shares that options, restricted stock and convertibles will bring into existence. The same discipline applies to the numerator: a share price from today against an EPS from a year ago is a comparison of two different companies.

Unlike EV/EBITDA, the P/E ratio is an equity-to-equity measure. Both halves belong to the common shareholder: the price is what equity costs, and EPS is what is left after lenders and the tax authority have been paid. That makes P/E the right tool for asking what an equity investor gets, and the wrong tool for comparing two businesses with very different amounts of debt.

Trailing, forward and the gap between them

Trailing P/E divides today's price by the last four reported quarters of EPS. Nothing in it is an estimate, which is its strength: it is a fact about a price and a published number. Its weakness is that the market is not paying for last year. A cyclical company at the bottom of its cycle shows a huge trailing P/E because the denominator has collapsed, and at the top of the cycle it shows a tiny one for the same reason in reverse.

Forward P/E divides today's price by the next twelve months of expected EPS. It answers the question investors are actually asking, but it inherits every error in the forecast. Because analyst estimates tend to start optimistic and drift down through the year, forward multiples are systematically the more flattering of the two for growing companies.

The relationship between them is pure arithmetic. Both share the same numerator, so whichever EPS figure is larger produces the smaller multiple. When forward EPS exceeds trailing EPS, the forward P/E is below the trailing P/E; when earnings are expected to fall, the forward P/E is above it. The gap between the two multiples is therefore a direct read on the growth the market has already been handed by the forecast, before you form any view of your own.

The PEG ratio tries to make multiples comparable across growth rates by dividing the P/E by the expected growth rate in percentage points: a 20x multiple on 10% growth gives a PEG of 2.0. Treat it as a screening heuristic, not a valuation. It has no theoretical basis, it is undefined when growth is zero or negative, and it is extremely sensitive to which growth number you feed it — two analysts using three-year and five-year forecasts will disagree by a wide margin on the same stock.

Worked example: a $48.50 share with $2.35 of trailing EPS

The shares trade at $48.50. The company reported diluted EPS of $2.35 over the last four quarters and consensus expects $2.70 next year. The peer group trades at 18x trailing earnings, and you expect EPS to compound at 9% a year.

  1. Trailing P/E. 48.50 ÷ 2.35 = 20.64x.
  2. Forward P/E. 48.50 ÷ 2.70 = 17.96x. Forward EPS is higher, so the forward multiple is the lower of the two.
  3. Earnings yield. 2.35 ÷ 48.50 = 4.85%. Check it: 1 ÷ 20.64 = 0.0485, the same number.
  4. PEG. 20.64 ÷ 9 = 2.29.
  5. Implied price at the peer multiple. 18 × 2.35 = $42.30.
  6. Gap to the market. 42.30 ÷ 48.50 − 1 = −12.8%.

Read that last line carefully. It does not say the shares are worth $42.30. It says that if this company were awarded exactly the peer group's trailing multiple, the price would be 12.8% lower than it is. The whole analytical question is whether the premium is deserved — faster growth, better returns on capital, lower risk — or whether it is the market being generous. The multiple states the market's opinion; it does not test it.

How to read a P/E ratio

A P/E is a comparison, never a verdict. Three comparisons carry almost all of the information.

Against the company's own history. If a business has traded between 12x and 18x for a decade and now trades at 24x, either something has changed about its prospects or the market has re-rated the sector. Either way, you now have a specific question to answer instead of a vague impression.

Against close competitors on the same basis. Same window, same diluted share count treatment, same currency. A gap of a few turns between two similar companies is usually explained by growth, return on capital, or the durability of earnings, and if you cannot name which, you have not finished the work.

Against the earnings yield on alternatives. Converting the multiple to a yield lets you set it against a government bond yield or a corporate bond yield. Equities should offer more, because earnings are uncertain and rank behind every creditor. How much more is the equity risk premium, and it is the reason multiples across the whole market rise when interest rates fall and compress when they rise.

Two situations break the ratio entirely. When EPS is negative the multiple is negative and meaningless, and this calculator suppresses it rather than printing a number you might accidentally rank against a peer. When EPS is very small but positive, the multiple explodes; a company earning one cent a share at $50 shows a 5,000x P/E that tells you nothing except that earnings are near zero. In both cases the honest move is to change the measure, not to squint at the multiple.

Finally, remember what the P/E hides. It is silent on the balance sheet: a company financed with heavy debt can post an attractive P/E precisely because leverage magnifies EPS, right up until it does the same thing on the way down. Pair the multiple with a leverage measure and with return on equity before you conclude anything about quality.

P/E, earnings yield and payback in years

The earnings yield is the exact reciprocal of the P/E. The payback column assumes earnings stay flat and are entirely returned to shareholders, which no real company does — it is a scale for intuition, not a forecast.
P/EEarnings yieldYears of flat earnings to recoup the priceEPS needed to justify a $50 share
5x20.00%5$10.00
8x12.50%8$6.25
10x10.00%10$5.00
12.5x8.00%12.5$4.00
15x6.67%15$3.33
20x5.00%20$2.50
25x4.00%25$2.00
30x3.33%30$1.67
40x2.50%40$1.25

Every row is arithmetic: yield = 1 / (P/E), and the last column is $50 divided by the multiple. Notice how compressed the yield becomes at the top of the table: moving from 25x to 40x costs you 1.5 points of yield, but moving from 5x to 8x costs 7.5.

Mistakes that make a P/E misleading

  • Mixing trailing price with stale EPS. Update both to the same date, and after a stock split adjust the historic EPS as well as the price.
  • Using basic instead of diluted EPS. For a company with heavy option or convertible issuance the difference is material, and diluted is the conservative and standard choice.
  • Comparing a P/E across capital structures. Debt raises EPS when returns exceed the cost of borrowing, so a leveraged company can show a lower P/E without being cheaper. Use an enterprise value multiple when leverage differs.
  • Reading a low multiple as a bargain. Multiples are low for reasons: declining earnings, cyclicality at a peak, litigation, customer concentration. If you cannot name the reason, you have not found it yet.
  • Trusting a P/E on distorted earnings. A one-off gain, an impairment, or a tax settlement in the trailing window moves the denominator and therefore the multiple. Check whether the EPS you are using is representative before comparing it with anything.
  • Comparing across accounting regimes without adjustment. Goodwill impairment policy, capitalisation of development costs and lease treatment all differ between US GAAP and IFRS, and all of them land in EPS.
  • Treating PEG below 1.0 as a buy signal. It is a screen, not an analysis. The ratio is extremely sensitive to the growth figure chosen and gives no reading at all for a company with flat or falling earnings.

Where P/E fits among the other multiples

Use P/E when you are comparing companies with broadly similar capital structures and you care about what accrues to shareholders. It is the natural multiple for banks and insurers, whose debt is part of the operating business and for whom enterprise value has no clean meaning. It is also the multiple most private investors already understand, which makes it a useful common language.

Move to EV/EBITDA when leverage differs across the peer set, when depreciation policies are not comparable, or when you are pricing a whole business rather than a minority stake in one. Move to price-to-book when earnings are volatile but assets are marked reliably. Move to price-to-sales when earnings are negative and you need any comparable measure at all — while remembering that a multiple of revenue makes no distinction between a profitable business and an unprofitable one.

The deeper point is that a multiple is a compressed valuation. The Gordon growth model says a share is worth its next dividend divided by the difference between the required return and the growth rate; divide both sides by EPS and you get a P/E that rises with the payout ratio, rises with growth, and falls with required return. That is why high-growth, low-risk, cash-generative companies carry high multiples, and it is a better guide than any rule of thumb about what number is normal. When you want the uncompressed version, build a discounted cash flow and let the assumptions argue for themselves, then check the implied multiple at the end against what businesses like this one actually trade for.

Frequently asked questions

What is a good P/E ratio?

There is no single good number, because the multiple a company deserves depends on its growth, the risk of its earnings, how much capital it must reinvest, and the level of interest rates. The useful comparisons are against the company's own trading history, against close competitors measured on the same basis, and against the earnings yield available elsewhere. A multiple quoted with no comparison attached carries almost no information.

What does a negative P/E mean?

It means the company lost money, and it should not be used. Dividing a positive price by negative earnings produces a negative multiple that cannot be ranked against profitable peers: a company losing a lot shows a small negative number and a company losing a little shows a large one, which is the opposite of intuitive. This calculator leaves the multiple blank for a loss and shows the negative earnings yield instead, which does behave sensibly.

Should I use trailing or forward P/E?

Use trailing when you want a fact and forward when you want the basis the market is pricing on, and never compare one against the other. Trailing EPS is reported and audited but backward-looking; forward EPS matches what investors are buying but depends on a forecast that is often revised down. Professional comparisons usually quote both, and the gap between them is itself informative about expected growth.

How do I calculate the share price implied by a P/E ratio?

Multiply the target multiple by earnings per share. At 18x on $2.35 of EPS, the implied price is $42.30. Make sure the EPS basis matches the multiple: a peer multiple measured on forward earnings must be applied to your forward EPS, not your trailing figure, or the implied price silently embeds a year of growth twice or not at all.

What is the difference between P/E and earnings yield?

They are reciprocals of each other: earnings yield equals one divided by the P/E, expressed as a percentage. A 25x multiple is a 4% yield. The yield form is easier to compare with bond yields and with the returns on other assets, and it behaves better at extremes, where large differences in multiple correspond to small differences in yield. Both describe the same relationship between price and profit.

Why do two sources quote different P/E ratios for the same stock?

Usually because they use different earnings. One may use trailing four quarters, another the last fiscal year, another a forward estimate; one may use reported EPS, another an adjusted figure that excludes impairments and restructuring. Basic versus diluted share counts add a further difference. Before comparing any two multiples, check that both were built from the same window and the same earnings definition.

Does a high P/E always mean a stock is expensive?

No. A high multiple can reflect genuine expected growth, unusually durable earnings, or a temporarily depressed denominator such as a year containing a large one-off charge. The last case is the most common trap: a company whose earnings are cyclically low will always look expensive on trailing earnings, exactly when it may be cheapest. Check whether the EPS in the denominator is representative before treating the multiple as a verdict.

How does debt affect the P/E ratio?

Debt raises earnings per share whenever the return on the borrowed money exceeds its after-tax cost, which lowers the P/E and can make a leveraged company look cheaper than an identical unleveraged one. It also makes those earnings more volatile, so the multiple the market awards should fall to reflect the extra risk. When leverage differs materially across a peer group, switch to an enterprise value multiple, which puts every company on the same footing.

References

  • ASC 260, Earnings Per Share — Financial Accounting Standards Board
  • IAS 33 Earnings per ShareInternational Accounting Standards Board
  • Security Analysis, 6th ed. — McGraw-Hill (Benjamin Graham and David Dodd)