ToolNimba Browse

📈 Price to Earnings (P/E) Ratio Calculator

By ToolNimba Finance Team · Reviewed by ToolNimba Editorial Review, investing content · Updated 2026-06-19

This calculator is for education and general information only, not investment advice. A P/E ratio is one of many metrics and means little on its own. It says nothing about debt, cash flow, growth quality or risk, and reported earnings can be distorted by one-off items. Do your own research and speak to a qualified financial adviser before buying or selling any security.

P/E ratio
-
Earnings yield
-
EPS used
-

Enter the share price and EPS to see the price to earnings ratio and earnings yield.

The price to earnings (P/E) ratio tells you how much investors are paying for each dollar of a company’s annual earnings. It is the single most quoted valuation measure in the stock market. Enter the share price and earnings per share (EPS), or let the calculator derive EPS from net income and shares outstanding, and you will instantly see the P/E ratio along with the earnings yield, which is just the P/E flipped over.

What is the PE Ratio Calculator?

The P/E ratio is calculated as share price divided by earnings per share: P/E = price ÷ EPS. If a stock trades at 150 dollars and earned 6 dollars per share over the last year, its P/E is 25. In plain terms, you are paying 25 dollars for every 1 dollar of yearly earnings, and at that earnings level it would take 25 years of profits to earn back the price. A higher P/E means the market expects faster future growth (or the stock is simply expensive), while a lower P/E can signal a bargain or a business the market doubts.

There are two common flavours. Trailing P/E uses the last twelve months of actual reported earnings, so it is grounded in facts but backward looking. Forward P/E uses analysts’ estimates of next year’s earnings, so it reflects expectations but depends on forecasts that may be wrong. When you read a P/E quoted somewhere, it is worth knowing which one it is, because a fast-growing company can look much cheaper on a forward basis.

The earnings yield is the inverse of the P/E, written as a percentage: earnings yield = EPS ÷ price × 100, which equals 1 ÷ P/E. A P/E of 25 is an earnings yield of 4%. The yield is handy because it puts a stock on the same footing as a bond or savings rate, letting you compare the return you are buying with the return available elsewhere. A P/E only makes sense when earnings are positive: if a company is losing money, EPS is negative and the P/E is reported as not applicable.

When to use it

  • Judging whether a stock looks cheap or expensive relative to its earnings before you invest.
  • Comparing two companies in the same industry to see which the market values more highly per dollar of profit.
  • Converting a P/E into an earnings yield so you can compare a stock against bond yields or a savings rate.
  • Calculating EPS yourself from a company’s net income and share count when only the raw figures are reported.

How to use the PE Ratio Calculator

  1. Choose your input mode: share price and EPS, or share price with net income and shares outstanding.
  2. Enter the current share price.
  3. Enter EPS directly, or enter net income and shares so the tool computes EPS for you.
  4. Read off the P/E ratio, the earnings yield, and the EPS the calculation used.

Formula & method

P/E = share price ÷ earnings per share. EPS = net income ÷ shares outstanding. Earnings yield (%) = EPS ÷ share price × 100 = 1 ÷ P/E × 100.

Worked examples

A stock trades at $150 and reported earnings per share of $6 over the last year.

  1. P/E = price ÷ EPS = 150 ÷ 6 = 25
  2. Earnings yield = EPS ÷ price × 100 = 6 ÷ 150 × 100 = 4%
  3. Check: 1 ÷ 25 = 0.04 = 4%, which matches the earnings yield

Result: P/E = 25.0, earnings yield = 4.00%

A company has net income of $6,000,000 and 1,000,000 shares outstanding, trading at $90.

  1. EPS = net income ÷ shares = 6,000,000 ÷ 1,000,000 = 6
  2. P/E = price ÷ EPS = 90 ÷ 6 = 15
  3. Earnings yield = 6 ÷ 90 × 100 = 6.67%

Result: EPS = $6, P/E = 15.0, earnings yield = 6.67%

How the P/E ratio and earnings yield relate

P/E ratioEarnings yieldRough interpretation
1010.00%Low: value, slow growth, or market doubts
156.67%Around the long-run market average
254.00%Above average: growth priced in
402.50%High: strong growth expected or expensive
1001.00%Very high: speculative or tiny earnings

Common mistakes to avoid

  • Comparing P/E ratios across different industries. A utility and a software firm have very different normal P/E levels. A P/E only means something compared with the same company over time, with direct competitors, or with its own sector average. Comparing a bank to a biotech tells you almost nothing.
  • Treating a low P/E as automatically cheap. A low P/E can be a value trap: the market may be pricing in falling earnings, heavy debt, or a dying business. A high P/E is not automatically expensive either if growth is strong. The ratio is a starting question, not an answer.
  • Ignoring whether earnings are trailing or forward. Trailing P/E uses past reported earnings; forward P/E uses estimates of future earnings. Mixing the two when comparing stocks, or not knowing which a website is showing, can make a company look far cheaper or dearer than it is.
  • Expecting a P/E for a loss-making company. If earnings are negative the P/E is not meaningful and is shown as not applicable. Dividing a positive price by negative earnings gives a negative number that does not behave like a normal valuation multiple.

Glossary

P/E ratio
Price to earnings ratio: share price divided by earnings per share, showing how much you pay per dollar of annual earnings.
EPS
Earnings per share: a company’s net income divided by its number of shares outstanding.
Earnings yield
The inverse of the P/E expressed as a percent (EPS ÷ price), comparable to a bond or savings yield.
Trailing P/E
A P/E based on the actual earnings of the last twelve months.
Forward P/E
A P/E based on analysts’ forecast earnings for the coming year.
Net income
A company’s total profit after all expenses, interest and taxes, also called the bottom line.

Frequently asked questions

What is a good P/E ratio?

There is no single good number. The long-run average for the broad US market is roughly 15 to 20. A mature, slow-growing company might sit below that, while a fast grower can trade far higher and still be reasonable. The only fair comparison is against the same company’s history, its direct competitors, or its industry average.

How do you calculate the P/E ratio?

Divide the current share price by the earnings per share (EPS): P/E = price ÷ EPS. If you only have net income and the share count, first work out EPS = net income ÷ shares outstanding, then divide the price by that EPS. This calculator does both for you.

What does a high P/E ratio mean?

A high P/E means investors are paying a lot for each dollar of current earnings, usually because they expect earnings to grow quickly. It can signal optimism and quality, or it can mean the stock is simply overpriced. A high P/E always carries more risk if that expected growth does not arrive.

What is the earnings yield?

The earnings yield is the P/E ratio turned upside down and shown as a percent: EPS ÷ price × 100, which equals 1 ÷ P/E. A P/E of 20 is a 5% earnings yield. It lets you compare a stock’s return per dollar invested against bonds, savings rates or other stocks on a like-for-like basis.

Can a P/E ratio be negative?

Mathematically you can divide a positive price by negative earnings, but the result is not used as a normal valuation multiple. When a company loses money its P/E is reported as not applicable or "N/A" rather than a negative figure, because the metric only makes sense with positive earnings.

What is the difference between trailing and forward P/E?

Trailing P/E uses the actual earnings reported over the last twelve months, so it is factual but backward looking. Forward P/E uses analysts’ estimates of next year’s earnings, so it reflects expectations but relies on forecasts that may prove wrong. Always check which one a quoted P/E is based on.

Sources