How the P/E ratio is calculated
The P/E ratio divides the current share price by earnings per share (EPS). If a stock trades at 40 and its EPS is 2, the P/E is 20, meaning the market price equals twenty times one year of reported earnings. There are several versions of the ratio. A trailing P/E uses earnings from the most recent reported twelve months. A forward P/E uses analyst estimates of future earnings, which are forecasts and may prove wrong. Because different data providers use different earnings figures and timeframes, the same stock can show different P/E values across sources, so always check which earnings measure a figure is based on.
- P/E = share price divided by earnings per share.
- Trailing P/E uses reported earnings; forward P/E uses estimates.
- Different data sources can show different P/E values for the same stock.

