Price / Earnings ratio (P / E) is calculated by taking a company’s market capitalization (the number of outstanding shares multiplied by the share price) and divide it by the company’s net income over the past 12 months. The lower the P/E ratio, the more attractive the investment.
The formula for P / E ratio is:
P/ E ratio = Market Capitalization / Net income, TTM