
P/E is short for the ratio of a company's share price to its pershare earnings. As the name implies, to calculate the P/E, you simply take the current stock price of a company and divide by its earnings per share (EPS):
P/E Ratio =  Market Value per Share 
Earnings per Share (EPS) 
Most of the time, the P/E is calculated using EPS from the last four quarters. This is also known as the trailing P/E. However, occasionally the EPS figure comes from estimated earnings expected over the next four quarters. This is known as the leading or projected P/E. A third variation that is also sometimes seen uses the EPS of the past two quarters and estimates of the next two quarters.
There isn't a huge difference between these variations. But it is important to realize that in the first calculation, you are using actual historical data. The other two calculations are based on analyst estimates that are not always perfect or precise.
Companies that aren't profitable, and consequently have a negative EPS, pose a challenge when it comes to calculating their P/E. Opinions vary on how to deal with this. Some say there is a negative P/E, others give a P/E of 0, while most just say the P/E doesn't exist.
Historically, the average P/E ratio in the market has been around 1525. This fluctuates significantly depending on economic conditions. The P/E can also vary widely between different companies and industries.

Investing
How Do I Calculate the PriceEarnings Ratio?
If Apple is trading at $108.73 per share, and its trailing twelve months' EPS is $6.45, calculate the P/E ratio as... 
Investing
Beware False Signals From The P/E Ratio
The P/E ratio is a simple tool for evaluating a company, but no one ratio can tell the whole story. 
Investing
Is Stock With a Lower P/E Always A Better Choice?
Is a stock with a lower P/E always a better investment than a stock with a higher one? The short answer is no, but it depends on a few things. 
Investing
Comparing the P/E, EPS And Earnings Yield
Here are three ratios that help investors value stock returns. 
Investing
Unlocking The P/E Ratio For Apple
We show you how to compute and analyze the P/E ratio for Apple. 
Investing
Comparing The P/E, EPS And Earnings Yield
P/E may be the established standard for valuation purposes, but the earnings yield is especially useful for comparing potential returns across different instruments. 
Investing
Stocks With Bubbles That Could Burst in 2016
These are some of the overvalued stocks based on P/E and Forward P/E ratios. Will the bubbles burst in 2016? 
Investing
8 Blue Chip Stocks with Low P/E Ratios
Discover why the price/earnings (P/E) ratio is important in determining the relative value of a stock and find out which S&P 500 stocks have the lowest P/E ratios.