P/E ratio: what it measures, formula, and how to use it
The price-to-earnings (P/E) ratio measures how much investors pay for each dollar of a company's annual net income. It is calculated by dividing the latest share price by diluted earnings per share (EPS) over the trailing twelve months. Higher P/E ratios generally reflect expectations for stronger earnings growth, while lower ratios indicate modest growth expectations or higher risk.
Updated Oct 28, 2026
What the P/E ratio measures and its formula
P/E = Share price / Diluted EPS (TTM)
The price-to-earnings (P/E) ratio compares a company's current share price to the net income it earns per share. In plain terms, it shows the multiple that buyers in the stock market pay for one dollar of annual profit. Because share price alone says nothing about a company's total size or earnings, dividing price by earnings per share creates a standardized valuation multiple. Investors use this figure to compare a stock against its own history, direct competitors, or a sector benchmark.
The numerator is the latest closing price per common share, and the denominator is diluted earnings per share (EPS) over the trailing twelve months (TTM), covering the four most recent fiscal quarters. Using diluted EPS rather than basic EPS accounts for stock options, restricted stock units, and convertible securities that could become common stock. Including these potential shares gives a realistic count of the claims on profit. At the company level, dividing total market capitalization by total net income available to common shareholders yields the exact same ratio.
The per-share formula is standard because diluted EPS appears directly on the income statement in quarterly and annual SEC filings. When a company breaks even or records a net loss over the trailing four quarters, diluted EPS is zero or negative, and the P/E ratio is not meaningful.
Worked example: calculating the P/E ratio
Consider a hypothetical industrial manufacturer called Apex Fabrication Corp. Suppose shares of Apex Fabrication closed the latest trading session at $60.00 per share. Over the four most recent fiscal quarters, the company reported diluted EPS of $0.80 in the first quarter, $0.95 in the second quarter, $1.10 in the third quarter, and $1.15 in the fourth quarter. Adding those four quarterly figures together produces trailing twelve-month diluted EPS of $4.00.
Dividing the $60.00 share price by $4.00 in trailing diluted EPS gives a P/E ratio of 15.0. At the current market price, investors pay $15 for every $1 of annual after-tax profit the business earned over the past year. Put another way, if Apex Fabrication earned $4.00 per share every year indefinitely, 15 years of earnings would equal the $60.00 share price. Comparing that 15.0 multiple with competing manufacturers shows whether the market values Apex Fabrication at a premium or a discount.
Trailing P/E versus forward P/E
Analysts distinguish between two versions of the multiple: trailing P/E and forward P/E. Trailing P/E uses actual earnings reported in SEC filings over the past four quarters. Because those profits have already been recorded under generally accepted accounting principles (GAAP), trailing P/E is an objective figure free from forecast bias. Two investors using the same closing price and the same four quarterly filings will calculate the exact same trailing ratio.
Forward P/E replaces historical earnings in the denominator with consensus analyst estimates of EPS for the next twelve months or the upcoming fiscal year. Investors check forward P/E when a company is growing rapidly or recovering from a temporary setback, making past results a weak guide to future earning power. However, analyst estimates are projections that frequently change as business conditions shift. Because forecasts can be inaccurate, disciplined investors treat trailing P/E as the primary factual baseline.
How to interpret the P/E ratio across industries
A P/E ratio is neither high nor low in isolation because valuation multiples depend on expected earnings growth, return on capital, and profit stability. Across US stocks, mature companies with steady growth commonly trade at trailing P/E ratios between 15 and 25. Fast-growing businesses with recurring revenue and high margins often trade at multiples of 30, 40, or more because investors expect future profits to exceed trailing profits. Conversely, companies facing slow growth, heavy debt, or cyclical swings often trade at multiples between 6 and 12.
Because growth rates, capital intensity, and accounting rules differ across the economy, typical P/E ranges vary widely by industry. Software and medical technology firms generally command higher multiples because they can expand revenue without proportional spending on physical plant and equipment. Regulated utilities, banks, energy producers, and automakers typically trade at lower multiples due to heavy capital needs, regulated return limits, or cyclical profit swings. Comparing a software company at a P/E of 32 with a bank at a P/E of 10 is misleading because the two sectors have different economic models.
Limitations and common mistakes
A common mistake is treating a low P/E ratio as an automatic bargain without checking whether trailing net income was inflated by one-time items. Under GAAP, net income includes non-recurring gains from asset sales, legal settlements, insurance payouts, or tax adjustments that will not repeat. A large one-time gain temporarily lifts trailing EPS and makes the P/E ratio look artificially low. Similarly, cyclical businesses such as homebuilders, steelmakers, or chipmakers often show their lowest P/E ratios at the peak of an economic cycle, right before earnings decline.
Another limitation is that the P/E ratio ignores differences in balance sheet debt. Share price and net income reflect only equity value, whereas a competitor with the same market capitalization might carry heavy borrowings. Higher debt increases interest expense and financial risk during downturns, so two companies with identical P/E ratios can have very different risk profiles. Furthermore, the P/E ratio cannot evaluate unprofitable companies because negative trailing earnings produce no usable multiple.
How StockData calculates it
StockData computes a stock's P/E ratio as the latest closing price divided by diluted EPS over the trailing twelve months, taken from 10-K and 10-Q XBRL data. Using standardized XBRL filings ensures that the trailing four quarters of diluted earnings reflect official SEC reports. When trailing EPS is zero or negative, the P/E is shown as not meaningful (a dash).
You can find a company's current P/E ratio in the Key statistics panel on every stock's Overview tab. To filter US-listed stocks by their P/E multiple, you can use the stock screener. You can also review sector P/E on the home page, which pools the earnings of every company in a sector to show how an entire industry is valued.
Common questions
What is a good P/E ratio for a stock?
There is no single P/E ratio that is good for every stock because fair multiples depend on earnings growth and business risk. Mature companies often trade between 15 and 25 times trailing earnings, while cyclical or capital-intensive companies frequently trade lower. You should compare a company's P/E ratio against direct industry peers and its own historical range.
Why does a stock show a dash instead of a P/E ratio?
A P/E ratio is not meaningful when a company's trailing twelve-month diluted EPS is zero or negative. When a business breaks even or reports a net loss over the past four quarters, StockData displays a dash instead of a negative or undefined number.
Why use diluted EPS instead of basic EPS in the P/E formula?
Basic EPS includes only currently outstanding common shares, while diluted EPS also counts shares from exercisable options, restricted stock units, and convertible securities. Using diluted EPS provides a conservative measure of the earnings attributable to each share.
Does a low P/E ratio always mean a stock is cheap?
No, a low P/E ratio often reflects declining revenue, heavy debt, or cyclical earnings that are near a temporary peak. Trailing earnings can also be inflated by a one-time gain such as an asset sale, which makes the P/E look artificially low. Reviewing the underlying 10-K and 10-Q filings helps confirm whether reported profits are recurring.