
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
P/E Ratio: Conclusion
What have we learned about the P/E ratio? Although the P/E often doesn't tell us much, it can be useful to compare the P/E of one company to another in the same industry, to the market in general, ... 
Investing
Investment Valuation Ratios: Price/Earnings Ratio
By Richard Loth (Contact  Biography)The price/earnings ratio (P/E) is the best known of the investment valuation indicators. The P/E ratio has its imperfections, but it is nevertheless the most ... 
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
Explaining Forward PricetoEarnings Ratio
The estimated P/E of a company is often used to compare current earnings to estimated future earnings. 
Investing
Can Investors Trust The P/E Ratio?
The P/E ratio is one of the most popular stock market ratios, but it has some serious flaws that investors should know about. 
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. 
Markets
Low P/E Stocks Ready for a Turnaround? (CC, NSR)
These stocks appear to be of great value based on P/E and Forward P/E. 
Markets
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
The Netflix P/E Ratio: What You Need To Know
We show you how to compute and analyze the P/E ratio for Netflix.