WACC Calculator Example
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8f9fa;
color: #333;
line-height: 1.6;
margin: 0;
padding: 20px;
}
.wacc-calc-container {
max-width: 700px;
margin: 20px auto;
background-color: #ffffff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
h1, h2 {
color: #004a99;
text-align: center;
margin-bottom: 25px;
}
.input-group {
margin-bottom: 20px;
display: flex;
align-items: center;
flex-wrap: wrap;
}
.input-group label {
flex: 1 1 150px; /* Adjusts label width */
margin-right: 15px;
font-weight: 600;
color: #555;
text-align: right;
}
.input-group input[type="number"],
.input-group input[type="text"] {
flex: 1 1 200px; /* Adjusts input width */
padding: 10px 15px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1rem;
box-sizing: border-box;
}
.input-group span {
margin-left: 5px;
font-weight: 500;
color: #777;
}
button {
display: block;
width: 100%;
padding: 12px 20px;
background-color: #004a99;
color: white;
border: none;
border-radius: 4px;
font-size: 1.1rem;
cursor: pointer;
transition: background-color 0.3s ease;
margin-top: 20px;
}
button:hover {
background-color: #003366;
}
#result {
margin-top: 30px;
padding: 20px;
background-color: #e7f3ff; /* Light blue for emphasis */
border: 1px solid #004a99;
border-radius: 4px;
text-align: center;
}
#result span {
font-size: 1.8rem;
font-weight: bold;
color: #004a99;
}
.article-section {
margin-top: 40px;
background-color: #ffffff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.article-section h2 {
text-align: left;
color: #004a99;
margin-bottom: 15px;
}
.article-section p, .article-section ul {
margin-bottom: 15px;
}
.article-section li {
margin-bottom: 8px;
}
.highlight {
color: #28a745;
font-weight: bold;
}
/* Responsive Adjustments */
@media (max-width: 600px) {
.input-group {
flex-direction: column;
align-items: stretch;
text-align: center;
}
.input-group label {
margin-right: 0;
margin-bottom: 8px;
text-align: center;
}
.input-group input[type="number"],
.input-group input[type="text"] {
width: calc(100% – 30px); /* Account for padding */
margin: 0 auto;
}
.input-group span {
margin-left: 0;
margin-top: 5px;
}
button {
font-size: 1rem;
}
#result span {
font-size: 1.5rem;
}
}
Weighted Average Cost of Capital (WACC) Calculator
Your Weighted Average Cost of Capital (WACC) is:
—
Understanding and Calculating WACC
The Weighted Average Cost of Capital (WACC) is a crucial metric used in finance to represent a company's blended cost of capital across all sources, including common stock, preferred stock, bonds, and other forms of debt. It signifies the average rate of return a company expects to pay to its investors to finance its assets. WACC is commonly used to discount future cash flows in discounted cash flow (DCF) analysis and to evaluate the potential profitability of new projects or acquisitions.
The WACC Formula
The standard formula for WACC is:
WACC = (E/V * Re) + (D/V * Rd * (1 - Tc))
Where:
- E = Market Value of the company's Equity
- D = Market Value of the company's Debt
- V = Total Market Value of the company (E + D)
- Re = Cost of Equity
- Rd = Cost of Debt (Pre-Tax)
- Tc = Corporate Tax Rate
Components Explained:
- Market Value of Equity (E): This is typically calculated by multiplying the current stock price by the number of outstanding shares.
- Market Value of Debt (D): This represents the total market value of all outstanding debt, including bonds and loans. If market values are not readily available, book values are often used as an approximation.
- Cost of Equity (Re): This is the return a company requires to issue equity. It's often estimated using models like the Capital Asset Pricing Model (CAPM).
- Cost of Debt (Rd): This is the pre-tax rate a company pays on its current debt. It can be approximated by the yield on the company's outstanding bonds.
- Corporate Tax Rate (Tc): This is the company's effective or marginal tax rate. The cost of debt is tax-deductible, so the formula includes the
(1 - Tc) term to reflect the tax shield benefit.
Why is WACC Important?
- Investment Decisions: Companies use WACC as a hurdle rate. Projects with expected returns higher than WACC are generally considered viable, while those below WACC are typically rejected.
- Valuation: WACC is the discount rate used in DCF models to determine the present value of a company's future cash flows, thereby estimating its intrinsic value.
- Performance Measurement: It can be used to assess whether a company is creating value (i.e., if its return on invested capital exceeds WACC).
WACC Calculator Example:
Let's consider a company with the following financial figures:
- Market Value of Equity (E): $100,000,000
- Market Value of Debt (D): $50,000,000
- Cost of Equity (Re): 12%
- Cost of Debt (Pre-Tax, Rd): 5%
- Corporate Tax Rate (Tc): 25%
First, calculate the total market value of the company: V = E + D = $100,000,000 + $50,000,000 = $150,000,000.
Next, calculate the weights of equity and debt:
- Weight of Equity (E/V) = $100,000,000 / $150,000,000 = 0.6667 (or 66.67%)
- Weight of Debt (D/V) = $50,000,000 / $150,000,000 = 0.3333 (or 33.33%)
Now, plug these values into the WACC formula:
WACC = (0.6667 * 12%) + (0.3333 * 5% * (1 – 0.25))
WACC = (0.6667 * 0.12) + (0.3333 * 0.05 * 0.75)
WACC = 0.0800 + 0.0125
WACC = 0.0925
Therefore, the WACC for this company is 9.25%.
This means the company needs to generate a return of at least 9.25% on its investments to satisfy its investors and maintain its market value. This calculator helps you perform similar calculations efficiently.
function calculateWACC() {
var marketValueEquity = parseFloat(document.getElementById("marketValueEquity").value);
var marketValueDebt = parseFloat(document.getElementById("marketValueDebt").value);
var costEquity = parseFloat(document.getElementById("costEquity").value);
var costDebtPreTax = parseFloat(document.getElementById("costDebtPreTax").value);
var corporateTaxRate = parseFloat(document.getElementById("corporateTaxRate").value);
var resultElement = document.getElementById("waccResult");
// Input validation
if (isNaN(marketValueEquity) || marketValueEquity <= 0 ||
isNaN(marketValueDebt) || marketValueDebt <= 0 ||
isNaN(costEquity) || costEquity < 0 ||
isNaN(costDebtPreTax) || costDebtPreTax < 0 ||
isNaN(corporateTaxRate) || corporateTaxRate 100) {
resultElement.textContent = "Invalid input. Please enter valid positive numbers for values and non-negative percentages (0-100 for tax rate).";
resultElement.style.color = "red";
return;
}
var totalMarketValue = marketValueEquity + marketValueDebt;
var weightEquity = marketValueEquity / totalMarketValue;
var weightDebt = marketValueDebt / totalMarketValue;
// Convert percentages to decimals for calculations
var costEquityDecimal = costEquity / 100;
var costDebtPreTaxDecimal = costDebtPreTax / 100;
var corporateTaxRateDecimal = corporateTaxRate / 100;
// WACC Calculation
var wacc = (weightEquity * costEquityDecimal) + (weightDebt * costDebtPreTaxDecimal * (1 – corporateTaxRateDecimal));
// Format result as percentage
var waccPercentage = (wacc * 100).toFixed(2);
resultElement.textContent = waccPercentage + "%";
resultElement.style.color = "#28a745"; // Success green
}