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 the company earned 2 per share over the past year, the trailing P/E is 20, meaning investors pay 20 units of price for each unit of annual profit. Because the share price changes constantly while earnings update quarterly or annually, the ratio moves with the market even when the business itself has not changed. Different data providers may also use slightly different EPS figures, so two sources can show different ratios for the same stock on the same day.
- P/E = share price divided by earnings per share.
- The ratio changes daily with the share price, even without new earnings data.
- Different providers may use adjusted or unadjusted EPS, producing different ratios for the same company.

