Skip to main content
finance

P/E Ratio Calculator

Calculate the Price-to-Earnings ratio for a stock by dividing the current share price by earnings per share. The P/E ratio is the most widely used valuation metric in equity analysis.

Reviewed by Christopher FloiedPublished Updated

This free online p/e ratio calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Current market price per share.

Annual earnings per share (trailing twelve months or forward estimate).

Results

P/E Ratio

20

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the P/E Ratio Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The P/E Ratio Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

When to Use This Calculator

  • Use the P/E Ratio Calculator when comparing financial options side-by-side — such as different loan terms or investment returns — to make more informed decisions.
  • Use it to quickly estimate costs or returns before making purchasing, investment, or borrowing decisions.
  • Use it for financial education and planning to understand how compound interest, fees, or tax affects the real value of money over time.
  • Use it when building or reviewing a budget to verify that projections and calculations are mathematically correct.

About P/E Ratio Calculator

The Price-to-Earnings (P/E) ratio calculator divides a company's stock price by its earnings per share to determine how much investors are willing to pay for each dollar of earnings. It is the single most commonly used metric in stock valuation and fundamental analysis. A high P/E ratio may indicate that investors expect high future earnings growth (growth stock), or it may suggest the stock is overvalued. A low P/E may indicate a bargain (value stock) or may reflect justified pessimism about future earnings. The P/E ratio is most useful when compared to peers in the same industry, the company's own historical P/E, and the overall market average.

The Math Behind It

The P/E ratio can be calculated using trailing earnings (TTM P/E, based on the last 12 months of actual earnings) or forward earnings (forward P/E, based on analyst estimates for the next 12 months). The inverse of P/E is the earnings yield (E/P), which can be compared to bond yields to assess relative attractiveness. The PEG ratio (P/E divided by expected earnings growth rate) adjusts P/E for growth, with a PEG of 1.0 often considered fair value. Historically, the S&P 500 has traded at a P/E of about 15-17 on trailing earnings. P/E ratios vary significantly by sector: technology stocks often have P/Es above 25, while utilities and financials tend to be below 15. A negative P/E occurs when a company has negative earnings (losses), making the ratio meaningless. In these cases, analysts use price-to-sales (P/S) or price-to-book (P/B) instead. The CAPE ratio (cyclically adjusted P/E, also known as the Shiller P/E) uses the average of real earnings over the past 10 years to smooth out business cycle effects.

Formula Reference

P/E Ratio

P/E = Price per Share / Earnings per Share

Variables: Price = current stock price; EPS = earnings per share

Worked Examples

Example 1: Technology stock valuation

A tech company trades at $150/share with EPS of $7.50.

Step 1:P/E = 150 / 7.50 = 20.

The P/E ratio is 20, meaning investors pay $20 for every $1 of earnings.

Example 2: Value stock comparison

A bank trades at $40/share with EPS of $5.

Step 1:P/E = 40 / 5 = 8.

The P/E ratio is 8, which is low and may represent a value opportunity or reflect banking sector challenges.

Common Mistakes & Tips

  • !Comparing P/E ratios across different industries, which have very different typical valuations.
  • !Using P/E for companies with negative earnings, where the ratio is meaningless.
  • !Relying solely on P/E without considering growth rate, debt levels, and earnings quality.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

What is a good P/E ratio?

It depends on the industry and growth expectations. The S&P 500 averages about 15-20. High-growth tech stocks may justify P/Es of 30-50, while mature companies typically have P/Es of 10-20.

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

Trailing P/E uses actual past earnings (last 12 months). Forward P/E uses analyst estimates of future earnings. Forward P/E is more useful for fast-growing companies whose past earnings understate future potential.

Can P/E ratio be negative?

Technically yes, if earnings are negative. But a negative P/E is not meaningful and is typically reported as N/A. Use other metrics for companies with losses.