Calculating Price of Stock

.stock-calc-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; max-width: 800px; margin: 20px auto; padding: 25px; border: 1px solid #e1e4e8; border-radius: 12px; background-color: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); } .stock-calc-header { text-align: center; margin-bottom: 30px; } .stock-calc-header h2 { color: #1a1a1a; margin-bottom: 10px; } .stock-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; } .stock-input-group { display: flex; flex-direction: column; } .stock-input-group label { font-weight: 600; margin-bottom: 8px; color: #444; font-size: 14px; } .stock-input-group input { padding: 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; } .stock-calc-btn { grid-column: span 2; background-color: #0066cc; color: white; border: none; padding: 15px; font-size: 18px; font-weight: bold; border-radius: 6px; cursor: pointer; transition: background-color 0.2s; } .stock-calc-btn:hover { background-color: #0052a3; } .stock-result-area { margin-top: 30px; padding: 20px; background-color: #f8f9fa; border-radius: 8px; text-align: center; } .stock-result-price { font-size: 32px; font-weight: 800; color: #28a745; margin: 10px 0; } .stock-article { margin-top: 40px; line-height: 1.6; color: #333; } .stock-article h3 { color: #1a1a1a; border-bottom: 2px solid #0066cc; padding-bottom: 5px; margin-top: 25px; } @media (max-width: 600px) { .stock-calc-grid { grid-template-columns: 1fr; } .stock-calc-btn { grid-column: span 1; } }

Stock Valuation Calculator

Estimate the fair market price of a stock based on earnings and valuation multiples.

Estimated Current Fair Value:
Projected Future Price (after years):

How to Calculate the Price of a Stock

Understanding how to calculate the price of a stock is a fundamental skill for any investor. While the market price is what you see on a ticker, the intrinsic value is what the stock is actually worth based on its underlying financial performance.

This calculator uses two primary methods to determine value:

  • The P/E Multiplier Method: This takes the company's Earnings Per Share (EPS) and multiplies it by the Price-to-Earnings (P/E) ratio. It represents how much investors are willing to pay for every dollar of profit.
  • Growth Projection: By factoring in an expected annual growth rate, we can estimate what the stock price might look like in the future if the company maintains its performance.

The Formula

The basic formula for current valuation is:

Stock Price = Earnings Per Share (EPS) × P/E Ratio

To calculate the future price based on growth, we use the compound growth formula:

Future Price = Current Price × (1 + Growth Rate)^Years

Key Terms Defined

Earnings Per Share (EPS): This is the portion of a company's profit allocated to each outstanding share of common stock. It is a direct indicator of profitability.

P/E Ratio: The Price-to-Earnings ratio measures a company's current share price relative to its per-share earnings. A high P/E might mean the stock is overvalued, or that investors expect high growth rates in the future.

Growth Rate: The percentage at which a company is expected to increase its earnings annually. This is often based on historical data or analyst estimates.

Example Calculation

Imagine "TechCorp" has an EPS of 4.00 and the industry average P/E ratio is 20. If you expect the company to grow at 8% per year for the next 5 years:

  • Current Value: 4.00 × 20 = 80.00
  • Future Value: 80.00 × (1 + 0.08)^5 ≈ 117.55

If the stock is currently trading at 70.00, it might be considered undervalued based on these metrics. Conversely, if it is trading at 100.00, it might be overvalued.

function calculateStockPrice() { var eps = parseFloat(document.getElementById('eps').value); var pe = parseFloat(document.getElementById('peRatio').value); var growth = parseFloat(document.getElementById('growthRate').value); var years = parseInt(document.getElementById('years').value); var resultArea = document.getElementById('resultArea'); var currentValDisplay = document.getElementById('currentValuation'); var futureValDisplay = document.getElementById('futureValuation'); var yearSpan = document.getElementById('yearSpan'); if (isNaN(eps) || isNaN(pe) || eps <= 0 || pe 0) { futureValuation = currentValuation * Math.pow((1 + (growth / 100)), years); futureValDisplay.innerText = "$" + futureValuation.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2}); yearSpan.innerText = years; futureValDisplay.parentElement.style.display = "block"; } else { futureValDisplay.parentElement.style.display = "none"; } currentValDisplay.innerText = "$" + currentValuation.toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2}); resultArea.style.display = "block"; resultArea.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); }

Leave a Comment