A company's share price divided by the amount of profits it makes for each share in a 12-month period. PE ratios are normally calculated on the base of all the profit made in the period, whether or not the profit is paid out to shareholders in that period. 
PE ratio, P/E ratio or PER for short, this is a company's share price divided by its earnings per share (EPS), expressed as a number or as a multiple of EPS (P/E multiple). The earnings used for the calculation can be either the amount most recently reported by the company, or an analyst's projection of future earnings (normally the current year or the year after that).
An important indication of comparative value - investors are normally better off buying a stock with a low P/E ratio than one with a high ratio, as they are getting more earnings for their money. 
The price/earnings ratio or p/e ratio links the stock/share price of a company with the earnings per share (profit for the year divided by number of outstanding shares). It reflects how many times earnings investors are ready to pay for a share. So if the share price is $10 and earnings per share is $1, investors are ready to pay 10 times earnings.
In an efficient market, the share price should reflect a firm’s future value creation potential, greater value creation can indicate greater future dividends from the company. A higher p/e ratio should reflect greater expected future gains because of perceived growth opportunities and/or some competitive advantages and/or lesser risk, but at the same time it indicates that the share price is relatively more expensive.
During periods where markets are out of equilibrium, for example during a bubble, high p/e ratios may also reflect over-optimism and over-pricing. Conversely, a lower p/e ratio can reflect either poorer future opportunities or potentially a bargain if the market is over-pessimistic or if one believes the market is not taking into account potential restructuring or a takeover that would improve future prospects.
The P/E ratio, like other pricing ratios such as the price/book, price/sales or price/cash flows, is often used in valuing firms or takeover targets by finding the p/e ratio of a set of comparable companies and applying it to the target’s current or forecasted earnings.
Unfortunately, there are a variety of p/e ratios used by investors so care must be taken when comparing p/e ratios across firms. While price is generally the most current share price observed on the market, it can sometimes be the price observed at the company’s year-end.
Earnings can either be the:
- historical earnings (the last reported yearly earnings) sometimes called the trailing p/e ratio;
- forecasted earnings generating what is often called the forward or prospective p/e ratio (financial analysts generally forecast at least next year’s earnings);
- rolling earnings number - the sum of the last four quarterly earnings reported.
Often cited when looking at long term trends, Robert Shiller of Yale University calculates a cyclically adjusted p/e ratio (CAPE) which is the ratio of stock prices to the moving average of the previous 10 years’ earnings, deflated by the consumer price index. Co-head of the Accounting and Management Control Group, holder of the KPMG Financial Reporting co-chair, Essec Business School.