THE NUMORIX GUIDE
How to use the P/E Ratio Calculator
Last reviewed September 14, 2026
What this calculator does
The engine calculates price-to-earnings ratio as stock price / earnings per share.
Formula and method
The engine calculates price-to-earnings ratio as stock price / earnings per share. It then calculates priceGivenPE as earnings per share x the computed ratio, which returns the original stock price whenever EPS is nonzero; when EPS is zero, both the ratio and implied price are returned as zero.
Variables and inputs
Enter a stock price in dollars per share and earnings per share in dollars. The view updates immediately. EPS can represent a trailing or forward measure, but the calculator does not label or distinguish which accounting period was used.
Worked example
For a $150 stock price and $5.00 EPS, P/E = 150 / 5 = 30.00x. The displayed implied price at that same multiple is $5.00 x 30.00 = $150.00, so it is an arithmetic check rather than a forecast.
How to interpret the result
P/E expresses how many dollars of price investors are paying for one dollar of the selected earnings measure. A high or low multiple only becomes meaningful when the earnings definition, growth outlook, industry, leverage, and peer set are comparable.
Common mistakes to avoid
Use per-share earnings, not total company earnings, with a per-share price. Keep price and EPS from the same reporting period and share class. Do not read a P/E multiple as an expected annual return or a buy/sell signal.
Assumptions and limitations
The route has no input for trailing versus forward EPS, diluted shares, negative earnings, growth, debt, cash, cyclicality, industry, or peer valuation. A zero EPS guard returns 0 instead of an informative not-meaningful label, and no validation prevents negative values.