Skip to content
Calcipedia

Price to Earnings Ratio Calculator

Calculate trailing or forward price-to-earnings ratio from share price and positive EPS, with the matching earnings yield.

Last updated

EPS type

Result

20x

Trailing price-to-earnings ratio from a share price of 40 and EPS of 2.

Earnings yield
5%
EPS used
2
Price per unit of earnings
20x
Variant
Trailing

P/E still needs context

P/E is easier to compare than raw earnings, but it does not capture debt, cash flow quality, sector norms, or whether the EPS figure itself is cyclical or unusually high or low.

← All Saving & Investing calculators

Investing Basics

Price-to-earnings ratio calculator guide: trailing P/E, forward P/E, and earnings yield

A price-to-earnings ratio calculator compares a company’s share price with its earnings per share. The result expresses how much investors are paying for each unit of earnings, while the inverse measure, earnings yield, shows the same relationship as a percentage. P/E is a common valuation shortcut, but it works best when the EPS basis is clear and positive.

What the P/E ratio is telling you

The P/E ratio measures how many times earnings the market price represents. A P/E of 20 means investors are paying 20 units of price for each 1 unit of annual earnings per share. That makes the ratio convenient for comparing how richly or cheaply the market is valuing one earnings stream relative to another.

This calculator supports both trailing and forward variants because the label matters. Trailing P/E uses reported historical EPS, while forward P/E uses an expected future EPS figure. The formula is the same, but the interpretation changes because one is based on reported results and the other on assumptions or forecasts.

The formula and its inverse

The P/E formula divides the current share price by earnings per share. Earnings yield simply flips the same relationship, dividing EPS by price to express the result as a percentage.

Both views are useful. P/E is the familiar headline multiple, while earnings yield can make cross-checking easier because it reads like a percentage return measure even though it is not the same as total shareholder return.

P/E ratio = Current share price / Earnings per share

Use either trailing EPS or forward EPS, but label the basis clearly.

Earnings yield = Earnings per share / Current share price

Express the result as a percentage by multiplying by 100.

Worked example: 40 share price and 2 EPS

If a stock trades at 40 and the relevant EPS figure is 2, the P/E ratio is 20x. The matching earnings yield is 5.0%. That does not tell you whether the stock is cheap or expensive by itself, but it does give you a compact way to compare the market price with the current earnings base.

The same formula can be used with an expected future EPS to show a forward P/E. That can be useful for planning scenarios, but it also means the result becomes only as reliable as the forecast that drives it.

When P/E stops being useful

P/E becomes non-meaningful when EPS is zero or negative, which is why this calculator is limited to positive EPS. It also loses power when earnings are unusually cyclical, heavily adjusted, or not the main driver of value in a sector.

A P/E ratio should therefore be treated as one comparison tool rather than a complete valuation decision. Debt, cash flow, margins, capital intensity, and growth quality still matter.

Further reading

Frequently asked questions

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

Trailing P/E uses reported historical EPS. Forward P/E uses an expected or forecast EPS figure. The formula is identical, but forward P/E depends on assumptions rather than completed results.

Why does this calculator reject zero or negative EPS?

Because simple P/E comparison becomes non-meaningful when the EPS figure is zero or negative. In those cases, other valuation measures are usually more appropriate.

Is a lower P/E always better?

No. A lower P/E can reflect slower growth, weaker quality, higher risk, or structural problems. A higher P/E can reflect better growth prospects or simply over-optimism. The multiple needs context.

What is earnings yield?

Earnings yield is the inverse of the P/E ratio. It expresses EPS divided by price as a percentage, which can make the valuation relationship easier to compare with other percentage-based measures.

Also in Saving & Investing

🇺🇸 403(b) Calculator 🇺🇸 529 Plan Calculator AFFO Calculator After-tax Cost of Debt Calculator Altman Z-Score Calculator Annuity Calculator APC Calculator Appreciation Calculator Basis Point Calculator Beta Stock Calculator Bitcoin ETF Calculator Black Scholes Calculator Bond Calculator Budget Calculator CAGR Calculator Call Option Calculator Capital Gains Yield Calculator CAPM Calculator Carried Interest Calculator Cash Back Calculator 🇺🇸 CD Calculator CD Ladder Calculator Cell Phone Plan Calculator College Cost Calculator College Value Calculator Compound Interest Calculator Cost of Capital Calculator Cost of Equity Calculator 🇺🇸 Cost of Living Comparison Calculator Covered Call Calculator Credit Spread Calculator Cross Price Elasticity Calculator Current Ratio Calculator DCF Calculator Debt Service Coverage Ratio Calculator Debt to Asset Ratio Calculator Debt to Equity Ratio Calculator Debt-to-Capital Ratio Calculator Defensive Interval Ratio Calculator Discount Rate Calculator Dividend Calculator Dividend Discount Model Calculator Dividend Payout Ratio Calculator Dividend Yield Calculator Dollar Cost Averaging Calculator Dream Come True Calculator DRIP Calculator DuPont Analysis Calculator Earnings per Share Calculator Earnings Per Share Growth Calculator EBITDA Multiple Calculator Economic Value Added Calculator Effective Annual Rate Calculator Effective Duration Calculator Effective Interest Rate Calculator Enterprise Value Calculator Equivalent Rate Calculator EV to Sales Calculator Expected Utility Calculator Expense Ratio Calculator FIRE Calculator Fixed Deposit (FD) Calculator Forex Compounding Calculator Forward Premium Calculator Forward Rate Calculator Free Float Calculator Future Value Calculator Futures Contracts Calculator Graham Number Calculator Hedge Ratio Calculator Index Return Calculator Interest Calculator Interest Coverage Ratio Calculator Interest Rate Calculator Intrinsic Value Calculator Inventory Turnover Calculator Investment Calculator Investment Fee Calculator Investment Return Calculator Jensen's Alpha Calculator LGD Calculator Liquid Net Worth Calculator Long-Term Care Calculator Lottery Annuity Calculator Margin Call Calculator Margin Interest Calculator Margin of Safety Calculator Market Capitalization Calculator Maturity Value Calculator Maximum Drawdown Calculator 🇺🇸 Mega Millions Payout Calculator Million to Billion Converter Millionaire Calculator MIRR Calculator Money Counter Money Market Account Calculator Money Weight Calculator Moving Average Calculator MVA Calculator NAV Calculator Net Worth Calculator Operating Cash Flow Ratio Calculator Opportunity Cost Calculator Optimal Hedge Ratio Calculator Options Profit Calculator Options Spread Calculator PayPal Fee Calculator PEG Ratio Calculator 🇺🇸 Pennies to Dollars Calculator Portfolio Beta Calculator Position Size Calculator 🇺🇸 Powerball Calculator Present Value Calculator Price Elasticity of Demand Calculator Price Elasticity of Supply Calculator Price to Book Ratio Calculator Price to Cash Flow Ratio Calculator Price to Sales Ratio Calculator Put Call Parity Calculator Quick Ratio Calculator Residual Income Calculator Retention Ratio Calculator Return on Capital Employed Calculator Rule of 72 Calculator Sabbatical Calculator Savings Calculator Savings Goal Calculator Savings Interest Rate Calculator Savings Plan Calculator Scrap Gold Calculator Scrap Silver Calculator Sinking Fund Calculator SIP Calculator Stock Average Calculator Stock Calculator Stock Profit Calculator Stock Split Calculator Sustainable Growth Rate Calculator Tax Equivalent Yield Calculator Unit Price Calculator Unlevered Beta Calculator US Income Percentile Calculator Value at Risk Calculator Wedding Budget Calculator Zakat Calculator

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.