molecalculator

Moles & Molar Mass

P/E Ratio Calculation Formula and Examples

Calculator No. 01-4194 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The price-to-earnings (P/E) ratio is calculated by dividing a company’s share price by its earnings per share (EPS): P/E ratio = share price ÷ EPS. This calculator uses the share price and EPS you enter to return the ratio in times, along with the earnings yield as a percentage.

Formula

The price-to-earnings ratio equals the market price of one share divided by the company’s earnings attributable to each share over a stated period:

P/E = P ÷ EPS

  • P is the price of one share, in currency per share.
  • EPS is earnings per share, in the same currency per share, usually measured over the latest fiscal year or the last 12 months.
  • P/E is expressed as a multiple, or “times.” It is a ratio, not a currency amount.

The calculator’s second result, earnings yield, is EPS divided by share price and multiplied by 100: earnings yield (%) = EPS ÷ P × 100. It is the reciprocal of the P/E ratio when EPS is positive. The inputs must use a matching share basis and the same currency; because both are per-share figures, the currency units cancel.

Worked Example

Using the calculator’s default values, the share price is 150 currency units per share and EPS is 6 currency units per share.

  1. P/E ratio = 150 ÷ 6 = 25.00 times.
  2. Earnings yield = 6 ÷ 150 × 100 = 4.00%.

Under these inputs, investors pay 25 currency units for each currency unit of the stated annual earnings per share. The 4% earnings yield is the reciprocal view of that valuation; it is not a promised return or dividend yield.

What the P/E Ratio Tells You

P/E is a compact valuation measure: it relates the market’s current share price to a company’s reported or estimated earnings. A higher P/E can mean investors expect faster future earnings growth, consider the business less risky, or are willing to pay more for its earnings. A lower P/E can indicate lower growth expectations or greater perceived risk, but it may also reflect temporary problems, cyclical conditions, or unusually high earnings that are unlikely to last.

There is no single P/E value that is automatically “good” or “bad.” Comparisons are most informative when companies have similar business models, growth prospects, accounting periods, and exposure to economic cycles. A software company and a commodity producer, for example, may have very different typical earnings patterns, so comparing their multiples alone can mislead.

Also, P/E does not say how much cash a business generates, how much debt it has, or what dividends it pays. It is one starting point for analysis, not a complete judgment of a company’s value.

Trailing and Forward P/E

The formula is the same for both common versions; what changes is the EPS used:

  • Trailing P/E uses earnings already reported, commonly EPS from the latest four quarters. It is based on historical results, though those results may include unusual gains or losses.
  • Forward P/E uses forecast EPS for a future period, often the next fiscal year or next 12 months. Since forecasts are estimates, this ratio can change when expectations are revised and is not guaranteed to match actual results.

Always check the period and whether EPS is reported or forecast before comparing ratios. A trailing P/E for one company is not directly comparable to a forward P/E for another without acknowledging the difference.

Common Calculation Problems

  • Mixing share counts or dates: Use a share price and EPS that refer to the same class of shares and a compatible date. Stock splits and share-count changes can make unadjusted figures inconsistent.
  • Using total earnings instead of EPS: The basic formula needs earnings per share, not the company’s total net income. If starting with total earnings, EPS calculations require the relevant weighted-average shares and other accounting details.
  • Ignoring negative or near-zero earnings: A negative EPS produces a negative arithmetic quotient, but a negative P/E is generally not useful for ordinary valuation comparison. When earnings are zero, division is undefined; when they are close to zero, the ratio can become extremely large and unstable.
  • Overlooking unusual earnings: One-time gains, losses, or cyclical peaks and troughs can distort EPS. Check whether the figure is reported, adjusted, or normalized, and understand what was excluded.
  • Rounding too early: Calculate with unrounded source figures where available, then round the displayed result. Small changes in EPS can materially affect the multiple, especially when earnings are low.

Comparing P/E With Other Measures

The earnings yield converts P/E into a percentage that can be compared more intuitively with other yields, but it still represents accounting earnings rather than cash received. Dividend yield, by contrast, compares dividends per share with share price; a company may retain earnings and pay little or no dividend.

Other valuation measures answer different questions. Price-to-book relates price to book value, while enterprise value to EBITDA includes a broader view of financing and operating performance. These measures also have limitations and should not be treated as interchangeable with P/E. A useful comparison considers the company’s growth, debt, profitability, cash flow, and industry context alongside the ratio.

Frequently Asked Questions

What is the formula for the P/E ratio?
Divide the share price by earnings per share for the chosen period: P/E = share price ÷ EPS.

What does a P/E of 25 mean?
It means the share price is 25 times the earnings per share used in the calculation. It does not mean investors are guaranteed to recover their money in 25 years.

Can a P/E ratio be negative?
The arithmetic result can be negative when EPS is negative, but analysts generally regard P/E as not meaningful for a loss-making company. Other measures may be more useful until earnings become positive.

Is a higher P/E better?
Not necessarily. It may reflect expected growth, but it can also indicate that the price is high relative to current earnings. The business outlook and comparable companies matter.

Should I use trailing or forward P/E?
Trailing P/E is based on reported earnings; forward P/E depends on estimates. Review both when available, note their periods, and remember that forecasts may be wrong.

Related

Formula used
in p | Share price | currency/share | 150 | 0
in e | Earnings per share | currency/share | 6 | 0
out pe | P/E ratio | times | p / e | 2
out ey | Earnings yield | % | e / p * 100 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →