PE Ratio Formula: How to Calculate It Step by Step

PE ratio formula calculation on an analysis chart

The PE ratio formula is simple: divide the current market price of a share by its earnings per share. The result tells you how many rupees you pay for each rupee of profit. Therefore, you can value a company in seconds once you know two numbers.

However, small mistakes in the inputs change the answer a lot. This guide shows each step, two worked examples and a quick checklist. If you want the concept first, read our PE ratio meaning explainer, and see dividend meaning for the income side of valuation.

Quick answer: PE ratio = market price per share ÷ earnings per share (EPS). EPS equals net profit after tax, minus preference dividends, divided by the weighted average number of equity shares. A share priced at Rs 300 with EPS of Rs 15 has a PE of 20.

Key Takeaways

  • Formula: PE = Market price per share ÷ EPS.
  • Alternative: PE = Market capitalisation ÷ Net profit.
  • Use trailing twelve-month EPS for trailing PE and estimated EPS for forward PE.
  • Use the same share count in both price and profit calculations.
  • A PE value is meaningful only when profit is positive.

The PE Ratio Formula Explained

VersionFormulaWhen to use it
Per-share versionMarket price ÷ EPSMost common; use when EPS is available
Total versionMarket capitalisation ÷ Net profitUse when you know total company numbers
Earnings yield (inverse)EPS ÷ Market priceCompare with bond yields or FD rates
Three ways to express the same idea

Both versions give the same answer if share count and profit use the same period. For example, market cap equals price times shares, and net profit equals EPS times shares. Consequently, the shares cancel out.

Step 1: Find the Market Price

Use the latest price from the NSE or BSE. Prices change every second, so the PE changes too. Therefore, always note the date you took the price.

Step 2: Find the Earnings Per Share

EPS appears in the quarterly results and the annual report. The standard formula is:

EPS = (Net profit after tax − Preference dividends) ÷ Weighted average equity shares outstanding

Companies report basic and diluted EPS. Diluted EPS accounts for convertible securities, so it is lower or equal. Additionally, many screens show trailing twelve-month (TTM) EPS, which adds the last four quarters. Our shareholders’ equity guide explains how equity value is built from these numbers.

Step 3: Divide Price by EPS

Take the price from step one and divide it by the EPS from step two. Round the result to one decimal. That figure is your PE ratio.

Worked Example 1: Trailing PE Ratio Formula in Action

The figures below are illustrative and do not represent a real company.

ItemValue
Net profit after tax (last 12 months)Rs 500 crore
Preference dividendsRs 0
Weighted average shares50 crore
EPSRs 500 crore ÷ 50 crore = Rs 10
Market priceRs 250
Trailing PE250 ÷ 10 = 25

So investors pay 25 times last year’s profit. Similarly, the earnings yield equals 10 ÷ 250, or 4 percent.

Worked Example 2: Forward PE and Growth

ItemValue
Current priceRs 250
Trailing EPSRs 10
Estimated EPS next yearRs 12.5 (25 percent growth)
Trailing PE25
Forward PE250 ÷ 12.5 = 20

The forward PE is lower because earnings are expected to grow. However, this holds only if the estimate proves right. Therefore, treat forward PE as a view, not a fact.

PE Ratio Formula With Market Cap

You can also divide market capitalisation by net profit. For example, a company worth Rs 12,500 crore that earns Rs 500 crore has a PE of 25. This method helps when per-share data is missing. Our market cap guide explains how market cap is built from price and share count.

How Different Situations Change the PE Ratio Formula

SituationEffect on EPSEffect on PE
Stock splitPer-share EPS falls proportionallyNo change once price also adjusts
Bonus sharesEPS falls because shares riseNo change after price adjusts
One-time gainEPS jumpsPE looks artificially low
Net lossEPS turns negativePE not meaningful
Share buybackShare count falls, EPS risesPE falls if the price stays flat

Corporate actions matter here. A split or bonus changes the share count, so older EPS figures need adjustment. Moreover, a buyback alters per-share data in a similar way, as our Infosys buyback record date guide shows. Always use adjusted numbers when you compare periods.

Reverse Calculation: Finding the Fair Price From a Target PE

You can rearrange the formula to estimate a price. Price equals PE multiplied by EPS. Suppose a company earns an EPS of Rs 12 and similar companies trade at a PE of 18. The implied price is 18 × 12, or Rs 216.

InputValue
EPS (trailing)Rs 12
Peer average PE18
Implied priceRs 216
Current market priceRs 240
Current PE240 ÷ 12 = 20
Illustrative reverse calculation

The share trades above the peer-implied price. That gap does not prove overvaluation, because growth and quality may differ. Nevertheless, it highlights what the market expects. Use it as a conversation starter, not a verdict.

Quick Checklist Before You Trust a PE Number

CheckWhy it matters
Is the price current?Old prices give a wrong ratio
Is EPS trailing twelve months?Quarterly EPS understates annual profit
Are share counts adjusted for splits or bonuses?Mixed bases distort EPS
Is profit from core operations?One-offs hide the true multiple
Are you comparing like with like?Consolidated and standalone numbers differ

Run through this list for every company. It takes a minute and prevents most input errors. Additionally, record the date and source, so you can repeat the calculation later.

Common Mistakes When Using the PE Ratio Formula

  • Mixing a post-split price with a pre-split EPS.
  • Using quarterly EPS instead of the trailing twelve-month figure.
  • Ignoring one-time gains or losses in the profit.
  • Comparing PE values taken on different dates.
  • Using consolidated profit with standalone EPS.

Expert Insights: Making the Formula Useful

Calculate the PE yourself at least once. Companies that pay steady dividends, such as those in our highest dividend paying stocks list, make good practice examples because their profits are stable. Then you will spot errors on screens quickly. Furthermore, compare the PE with the company’s growth. Analysts often use the PEG ratio, which divides PE by the expected growth rate, to compare growth stories fairly.

Finally, check where the data comes from. The exchanges and company filings on NSE and BSE are the primary sources, while screens may lag.

Frequently Asked Questions

What is the PE ratio formula?

PE ratio equals the market price per share divided by earnings per share. You can also divide market capitalisation by total net profit.

How do I calculate EPS for the PE ratio?

Subtract preference dividends from net profit after tax, then divide by the weighted average number of equity shares outstanding.

What is the difference between trailing and forward PE?

Trailing PE uses the last twelve months of actual EPS, while forward PE uses an estimate of future EPS.

Should I use basic or diluted EPS?

Diluted EPS is more conservative because it counts convertible securities. Use the same type consistently when you compare companies.

Why does the PE ratio change every day?

The price changes during market hours, while EPS changes only when the company reports results. Therefore, the PE moves with the price.

What happens to PE after a stock split?

The price and EPS adjust proportionally, so the PE stays the same. Make sure both numbers use the post-split basis.

Can I calculate PE if the company has a loss?

You can compute it, but the result is negative and not meaningful. Use price-to-sales or cash flow measures instead.

Applying the PE Ratio Formula With Confidence

The PE ratio formula takes seconds, but good inputs take care. Match price and EPS on the same share basis, adjust for corporate actions and read the profit behind the number. Then compare the result with peers. Explore more guides in our Shareholding & Fundamentals category and return to the Investor Weekly News for tools and updates. This content is educational and not investment advice.

Disclaimer: Investor Weekly News is an independent, informational website. We are not affiliated with any company, broker, stock exchange, or regulator named in this article. Nothing here is investment, tax, or legal advice. Always confirm dates and terms in the official NSE, BSE, or company announcement before you act.

S
Sarita

Written by

Sarita

Sarita is a Senior Analyst and Lead Contributor at InvestorWeeklyNews. As a commerce postgraduate, she specializes in deep-dive analysis of financial instruments, including the Nifty 50, Gold ETFs, and RBI bonds. Sarita combines her academic expertise with a passion for wealth management to provide practical, everyday-use financial insights for modern investors.

Meet the team · How we write and review · Sources

Loading indices…
Loading rates…

Independent & informational. Investor Weekly News is not affiliated with any company, broker, stock exchange or regulator. Nothing on this site is investment advice.