P/E Ratio Calculator
Calculate a stock's price-to-earnings ratio and earnings yield.
Estimates only, not financial, tax, or legal advice. See our Terms and Privacy Policy.
The price-to-earnings (P/E) ratio is a widely used valuation metric: it shows how much investors are paying for each dollar of a company's annual earnings. A P/E of 20 means the stock trades at 20 times its earnings, or equivalently, that it would take 20 years of current earnings to equal the purchase price.
This calculator also shows the earnings yield, the P/E ratio's inverse, expressed as a percentage, which makes it easier to compare a stock's earnings power against bond yields or other percentage-based benchmarks.
How does this calculator work?
Enter the stock's current price and its annual earnings per share (EPS), either trailing twelve months for a standard P/E or forward estimated EPS for a forward P/E.
The calculator divides price by EPS to get the P/E ratio, and inverts that to show the earnings yield.
Earnings yield, the P/E flipped upside down, puts a stock on the same footing as a bond's yield or a dividend yield. Because a multiple only means something in context, it is best read next to a stock's total return history and, for income names, its reinvested-dividend potential.
Worked example
A stock trading at $150 with $6.00 in annual EPS.
- Stock price
- $150
- Annual EPS
- $6.00
- P/E ratio
- 25.00
- Earnings yield
- 4.00%
How the numbers work
$150 divided by $6.00 EPS gives a P/E of 25, meaning investors are paying $25 for every $1 of the company's annual earnings.
The earnings yield, 1 divided by 25, is 4%. That's a useful comparison point against a bond yield: all else equal, an investor could think of the stock as offering a 4% earnings return on the purchase price, though unlike a bond coupon, that earnings figure can grow, shrink, or not translate directly into cash paid to shareholders.
A P/E ratio is only meaningful in context: compared against the company's own historical range, its industry peers, or the broader market. A P/E of 25 might be expensive for a slow-growing utility and cheap for a fast-growing technology company, which is exactly the gap the PEG ratio is built to address.
P/E Ratio Calculator glossary
- P/E Ratio
- Stock price divided by earnings per share, showing how many dollars investors are paying for each dollar of annual earnings.
- Earnings per Share (EPS)
- A company's net income divided by its number of outstanding shares, the per-share profit figure a P/E ratio is built from.
- Earnings Yield
- The inverse of the P/E ratio (EPS divided by price), expressed as a percentage, useful for comparing against interest rates or bond yields.
P/E Ratio Calculator FAQs
What's a "good" P/E ratio?+
There's no universal number. It depends heavily on the industry, the company's growth rate, and prevailing market conditions. Comparing a stock's P/E to its own historical average and to close industry peers is generally more useful than comparing it to an arbitrary threshold.
What's the difference between trailing and forward P/E?+
Trailing P/E uses the last 12 months of actual reported earnings. Forward P/E uses analysts' estimated earnings for the next 12 months, which can differ meaningfully from trailing earnings for companies expected to grow (or shrink) quickly.
Can the P/E ratio be negative?+
Yes, when a company has negative earnings (a net loss). A negative P/E is generally not meaningful for valuation purposes, since the ratio's usual interpretation breaks down; investors typically look at other metrics (like price-to-sales) for unprofitable companies.
Why does this calculator also show earnings yield?+
Earnings yield puts a stock's earnings power in the same percentage terms as a bond yield or interest rate, making it easier to reason about relative to fixed-income alternatives, something the raw P/E ratio (a multiple, not a percentage) doesn't directly offer.
Related Calculators
PEG Ratio Calculator
Calculate a stock's PEG ratio to judge its P/E against expected earnings growth.
InvestingDividend Yield Calculator
Calculate a stock's dividend yield and the income a given share count produces.
InvestingStock Return / CAGR Calculator
Total return and compound annual growth rate for a stock holding, including dividends.
InvestingDRIP Calculator
Project share count and portfolio value with dividends reinvested versus taken as cash.
InvestingSharpe Ratio Calculator
Compute Sharpe and Sortino ratios directly from a pasted return series, with an optional benchmark comparison.
InvestingBond Price Calculator
Price a bond from its coupon rate, face value, and yield to maturity.