molecalculator

Moles & Molar Mass

P/E Ratio: Formula and How to Calculate It

Calculator No. 01-3569 · 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.

A price-to-earnings (P/E) ratio compares a company’s share price with its earnings per share (EPS). Use the calculator below to divide price per share by EPS; enter both figures in the same currency and share basis to get the ratio in times (×). A P/E ratio is a valuation measure, not a standalone verdict on whether a stock is a good investment.

Formula

P/E ratio = share price ÷ earnings per share, or P/E = P / EPS.

  • P is the market price of one share, stated in a currency per share.
  • EPS is earnings attributable to each share over a stated period, also in currency per share.
  • P/E is expressed as a multiple, or “times,” rather than as a currency amount or percentage.

The currency units cancel when you divide price per share by earnings per share. The calculator reports the result to two decimal places. It assumes EPS is positive; a zero or negative EPS does not produce a meaningful conventional P/E ratio. The figures should also refer to the same share class and account for any stock split or other change in the number of shares.

Worked Example

Using the calculator defaults, the share price is 100 currency units per share and EPS is 5 currency units per share.

  1. Write the formula: P/E = share price ÷ EPS.
  2. Substitute the values: P/E = 100 ÷ 5.
  3. Calculate: P/E = 20.00 times.

The example company has a P/E ratio of 20.00×. This means investors are paying 20 currency units for each one currency unit of the earnings represented by the selected EPS measure. It does not mean the company will earn that amount for an investor or that the share price is certain to rise or fall.

Assumptions

  • Share price and EPS use the same currency and are stated per share.
  • EPS is positive and covers a clearly identified period.
  • The ratio is a basic comparison; it does not adjust for growth, debt, cash, business risk, or accounting differences.

What You’ll Need

  • The company’s share price, with the date or valuation date noted.
  • EPS for the period you want to assess: trailing 12-month (TTM) or forecast EPS.
  • A reliable source for the earnings figure, such as company financial statements or a financial data service. Check how its EPS is defined.
  • A calculator, or the calculator above. If you are comparing companies, gather figures calculated on a consistent basis for each one.

Step-by-Step

  1. Choose the company and share class. Confirm which company shares you are measuring. If it has multiple share classes, do not mix the price of one class with EPS calculated for another.
  2. Set the date for the share price. Find the price per share for the date you want to assess. Stock prices change during trading and over time, so record the date rather than treating the ratio as permanent.
  3. Choose an earnings period. For a historical P/E, use trailing 12-month EPS, which reflects reported earnings over the latest four quarters. For a forward P/E, use forecast EPS for a specified future period. Label the type clearly; forecasts are estimates, not reported results.
  4. Check the EPS definition. EPS may be basic or diluted, and it may be reported or adjusted. Diluted EPS accounts for potential shares from instruments such as options or convertible securities. Adjusted EPS excludes items under the company’s or data provider’s chosen definition, so review what was excluded.
  5. Match units and share basis. Make sure price and EPS use the same currency and are both per share. Check for stock splits, share-class differences, and currency conversions. A split changes the per-share price and EPS, but should not by itself change the correctly calculated P/E.
  6. Enter the values. Put the share price in the price field and the selected EPS in the EPS field. The calculator accepts nonnegative inputs, but a zero EPS cannot be used as a divisor and a conventional P/E requires positive earnings. If EPS is zero or negative, do not interpret a computed ratio.
  7. Divide and record the result with context. The result is share price divided by EPS, shown in times. Note whether it is trailing or forward, the EPS definition, and the date of the price. For comparisons, use the same period and EPS basis wherever possible.

Common Mistakes

  • Mixing trailing and forecast earnings: a forward P/E and a trailing P/E answer different questions. Identify which one you are using before comparing results.
  • Using mismatched currencies or units: dividing a price in one currency by EPS in another gives a misleading result unless you convert one amount to the other currency first.
  • Ignoring negative or zero earnings: a negative result is not a meaningful “cheap” P/E, and division by zero is undefined. Report that the company has no meaningful positive-earnings P/E for the chosen period.
  • Comparing unlike EPS figures: basic, diluted, reported, and adjusted EPS can differ. Adjusted earnings may omit costs that matter, so inspect the definition and use consistent measures.
  • Relying on one ratio alone: a high P/E does not automatically mean overvaluation, and a low P/E does not automatically mean a bargain. Growth expectations, business risks, debt, and earnings quality all matter.

Tips

  • Compare companies in similar industries and with similar business models; typical valuation levels can vary widely across sectors.
  • Check the company’s earnings history and whether recent earnings include unusual gains or losses. A one-off event can make EPS an unrepresentative basis for comparison.
  • When assessing a forward P/E, note the forecast source and date. Estimates can change as new information becomes available.
  • Look at other information alongside P/E, including revenue and earnings trends, debt, cash flow, and risks. The ratio is a starting point for analysis, not a prediction.

Troubleshooting

  • The calculator says the result cannot be computed: check that EPS is greater than zero and that both fields contain valid numbers. If EPS is zero or negative, use another clearly labeled measure and explain why P/E is not applicable.
  • Your result differs from a finance site: compare the share-price date, trailing versus forward period, basic versus diluted EPS, and reported versus adjusted earnings. Providers may use different definitions or update data at different times.
  • The result seems unusually high or low: verify decimal placement, currency, units, and whether EPS is annual or quarterly. Using quarterly EPS without converting it to an annual basis can make a ratio that is not comparable to a standard annual P/E.
  • Two companies are difficult to compare: align the period, EPS method, currency, and share basis first. If earnings are negative or unusually affected by one-off items, state that limitation rather than forcing a direct P/E comparison.

Frequently Asked Questions

What does a P/E ratio of 20 mean?
It means the share price is 20 times the EPS used in the calculation. It is a comparison of price with earnings, not a guaranteed return or payback period.

What is a good P/E ratio?
There is no universal “good” value. A useful comparison depends on industry, expected growth, risk, interest rates, earnings quality, and whether the ratio is trailing or forward.

Can a P/E ratio be negative?
Some sources display a negative number when a company reports a loss, but that figure is generally not useful as a conventional valuation multiple. It is clearer to say the company has negative earnings and no meaningful positive P/E for that period.

What is the difference between trailing and forward P/E?
Trailing P/E uses earnings already reported for a recent period, commonly the last 12 months. Forward P/E uses estimated future earnings, which may be revised or prove inaccurate.

Should I use basic or diluted EPS?
Use a clearly identified measure and apply the same one consistently when comparing companies. Diluted EPS includes the potential effect of additional shares and is often useful when that dilution could be material.

Does a stock split change the P/E ratio?
A split should not change P/E if both share price and EPS are adjusted consistently. If the ratio changes sharply after a split, check that the price and per-share earnings use the same post-split basis.

Related

Formula used
in p | Share price | currency/share | 100 | 0
in e | Earnings per share | currency/share | 5 | 0
out pe | P/E ratio | times | p / e | 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 →