How the P/E ratio puts a price on earnings
The P/E ratio answers a deceptively simple question: for every dollar a company earns in a year, how many dollars are investors willing to pay today? Dividing the share price by earnings per share strips away company size, so a small firm and a giant can be compared on the same scale. A higher P/E generally means the market expects faster future growth, while a lower one can reflect modest expectations, higher risk, or a potential bargain. Because the ratio compresses both profitability and expectations into one number, it is best read alongside a company’s growth rate, its industry, and its own history — never in isolation.
The P/E formula
P/E = Share price ÷ Earnings per share
Earnings yield = EPS ÷ Price
where EPS can be entered directly or derived fromnet income ÷ shares outstanding. The earnings yield is just the P/E inverted (1 ÷ P/E), expressed as a percentage so it lines up with bond yields. When EPS is zero or negative the P/E is undefined, so no meaningful multiple can be quoted.
What makes this calculator different
- EPS your way. Enter earnings per share directly, or let the calculator derive it from net income and shares outstanding — useful when you have the income statement but not a per-share figure.
- Earnings yield shown alongside. The inverse of the P/E (1 ÷ P/E) is displayed as a percentage, so you can compare the stock’s profitability against a bond yield without doing the arithmetic yourself.
- Negative earnings handled honestly. When a company is unprofitable, the P/E is undefined — this tool says so plainly instead of printing a misleading negative multiple.
Once you know the P/E, it pairs naturally with growth and asset-based measures. To weigh the multiple against expected growth, try thePEG ratio calculator; to value a company against its balance sheet instead of its earnings, use theprice-to-book calculator.
Frequently asked questions
What is the P/E ratio and how is it calculated?+
The price-to-earnings (P/E) ratio is the most widely quoted valuation multiple in equity investing: it tells you how much you are paying for each dollar of a company’s annual earnings. The formula is simply the share price divided by the earnings per share (EPS): P/E = Price ÷ EPS. A P/E of 20, for example, means investors are paying $20 for every $1 of yearly earnings. Because it normalizes price against profitability, the ratio lets you compare companies of very different sizes on a common footing.
What is the difference between trailing and forward P/E?+
Trailing P/E uses earnings the company has already reported — typically the most recent twelve months (TTM) — so it is grounded in actual results. Forward P/E instead uses analysts’ estimates of earnings for the coming year, so it reflects expectations rather than history. Forward P/E is usually lower than trailing P/E for a growing company, because next year’s earnings are expected to be higher. The trade-off is reliability: trailing figures are facts, while forward figures are forecasts that can be revised or missed.
What is considered a good P/E ratio?+
There is no single “good” P/E, because the right level depends heavily on the industry and the company’s growth rate. Fast-growing technology firms routinely command much higher multiples than mature utilities or banks, because investors are paying for expected future earnings growth. A low P/E can signal a bargain or a struggling business; a high P/E can signal strong prospects or overvaluation. The ratio is most useful for comparing a company against its own history and against direct peers, rather than against the market as a whole.
What is the earnings yield?+
The earnings yield is simply the P/E ratio turned upside down: it is EPS divided by price, or equivalently 1 ÷ P/E, usually expressed as a percentage. A stock with a P/E of 25 has an earnings yield of 4% (1 ÷ 25). Inverting the multiple this way makes it directly comparable to a bond yield, which is why investors use it to judge whether stocks look cheap or expensive relative to fixed income. A higher earnings yield means more earnings per dollar invested.
Why can’t a company with negative earnings have a P/E?+
When a company loses money, its EPS is negative, and dividing a positive share price by a negative number produces a negative P/E. A negative P/E is not meaningful as a valuation multiple — it cannot tell you how many years of earnings you are paying for, because there are no earnings. For this reason analysts generally report the P/E as “not applicable” for unprofitable companies and turn to other measures such as price-to-sales or price-to-book instead. This calculator says so honestly rather than printing a misleading negative figure.
Disclaimer: This calculator is foreducation and illustration only. The P/E ratio is one simple valuation metric among many and says nothing on its own about a company’s quality, debt, or prospects; it should never be the sole basis for a decision. Nothing here is investment, tax, or trading advice.