WACC Formula in Excel: Weighted Average Cost of Capital
By ExcelReady TeamUpdated 7 min read
The short answer
WACC, the weighted average cost of capital, weights each source of funding's cost by its share of the total. The formula is E/V × cost of equity + D/V × cost of debt × (1 − tax rate). In Excel, list each source's market value and after-tax cost, then use =SUMPRODUCT(values,costs)/SUM(values).
Key takeaways
- WACC = E/V × Re + D/V × Rd × (1 − T), where V = E + D is the total market value of the company's funding.
- Use the after-tax cost of debt: multiply the interest rate by (1 − tax rate).
- =SUMPRODUCT(B2:B3,E2:E3)/SUM(B2:B3) weights each cost by its market value in one formula.
- Lock shared cells such as the total and the tax rate with $ so the formulas fill down correctly.
On this page+
The WACC formula in Excel combines the cost of a company's equity and the cost of its debt into one rate, weighted by how much of each the company uses. WACC stands for weighted average cost of capital. It is the average return a company must pay the people who fund it. This guide builds it step by step on example figures, checked in Python, and is for finance students, analysts and anyone facing a finance Excel test. It explains the calculation, not what any real company's WACC should be.
What is the WACC formula?#
WACC weights each source of funding by its share of the total and adds up the weighted costs:
WACC = E/V × Re + D/V × Rd × (1 − T)| Symbol | Meaning | Example |
|---|---|---|
| E | Market value of equity | 600,000 |
| D | Market value of debt | 400,000 |
| V | Total funding, E + D | 1,000,000 |
| Re | Cost of equity | 11% |
| Rd | Cost of debt, before tax | 6% |
| T | Tax rate | 25% |
With these figures: 0.6 × 11% + 0.4 × 6% × 0.75 = 6.6% + 1.8% = 8.4%.
WACC is simply a weighted average: the weights are the shares of funding, and the values being averaged are the costs.
Step 1: Lay out the inputs#
Put each source of funding on its own row, with the tax rate in a separate cell:
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Source | Market value | Weight | Pre-tax cost | After-tax cost |
| 2 | Equity | 600,000 | 11% | ||
| 3 | Debt | 400,000 | 6% | ||
| 5 | Tax rate | 25% |
Type the costs with the % sign. If you type 11 instead of 11%, Excel stores eleven, not 0.11, and the WACC comes out 100 times too big.
Step 2: Calculate the weights#
Each weight is the source's value divided by the total. In C2:
=B2/SUM($B$2:$B$3)Fill it down to C3 (Windows: Ctrl+D; Mac: ⌘D). The results are 60% and 40%, and they must add up to 100%.
The $ signs make $B$2:$B$3 an absolute reference, so every row divides by the same total. Without them, C3 would divide by SUM(B3:B4) and show 100%. Press F4 on Windows, or ⌘T on a Mac, to add the dollar signs as you type. The absolute references lesson practises exactly this pattern.
Step 3: Work out the after-tax cost of debt#
Interest is a deductible expense in many tax systems, so debt costs less after tax. In E3:
=D3*(1-$B$5)The result is 6% × 0.75 = 4.5%. Lock $B$5 so the tax rate stays fixed if you copy the formula. Equity gets no tax adjustment, so E2 is just =D2, or 11%.
Step 4: Combine everything with SUMPRODUCT#
SUMPRODUCT multiplies matching cells in two ranges and adds the results. With the weights in column C:
=SUMPRODUCT(C2:C3,E2:E3)This calculates 60% × 11% + 40% × 4.5% and returns 0.084, or 8.4% formatted as a percentage.
You can also skip the weight column and divide by the total in the same formula:
=SUMPRODUCT(B2:B3,E2:E3)/SUM(B2:B3)Same result, 8.4%. The SUMPRODUCT function guide and the article on how SUMPRODUCT works explain the multiply-then-add idea in more detail.
How to estimate the cost of equity with CAPM#
The cost of equity is the return shareholders expect. A common way to estimate it is the capital asset pricing model (CAPM):
Cost of equity = risk-free rate + beta × equity risk premiumPut the three inputs in their own cells, for example H2 (risk-free rate), H3 (beta) and H4 (equity risk premium), and calculate:
=H2+H3*H4With an example risk-free rate of 4%, a beta of 1.4 and an equity risk premium of 5%, the result is 4% + 1.4 × 5% = 11%. That is where the 11% in the example comes from. Each input is an estimate, and analysts often disagree about them, which is why WACC is usually shown as a range rather than one exact number.
The cost of debt is usually the interest rate the company would pay on new borrowing today, not the rate on an old loan.
Adding preferred stock or more sources#
SUMPRODUCT makes it easy to add rows. Say the company also has 50,000 of preferred stock that costs 8%, and its debt is 350,000:
| Source | Market value | After-tax cost |
|---|---|---|
| Equity | 600,000 | 11% |
| Preferred stock | 50,000 | 8% |
| Debt | 350,000 | 4.5% |
Extend the ranges to row 4: =SUMPRODUCT(B2:B4,E2:E4)/SUM(B2:B4). The result is 6.6% + 0.4% + 1.575% = 8.575%, about 8.58%. Preferred dividends are usually not tax-deductible, so its cost has no tax adjustment.
Common WACC mistakes in Excel#
These are the errors that most often give a wrong WACC:
- Using the pre-tax cost of debt. Multiply by (1 − tax rate) first.
- Weights that don't add up to 100%. Usually a missing
$in the total, so each row divides by a different sum. - Book values instead of market values. Use market values where you can; the balance sheet shows historical amounts.
- Percentages typed as whole numbers. 11 is not 11%.
- Mixing yearly and monthly rates. WACC is a yearly rate, so discount yearly cash flows with it.
How WACC is used: NPV and IRR#
WACC is often used as the discount rate for a project's future cash flows. Plug it into the NPV function, for example =NPV(8.4%,C2:C6)+C1, where C1 holds the upfront cost as a negative number. A positive NPV means the project earns more than its funding costs. You can also compare it with the IRR of the cash flows: an IRR above the WACC points the same way. Both decisions need judgement beyond the spreadsheet; the numbers here are examples only.
WACC questions are common in finance interviews and tests, along with NPV, IRR and loan payments. Excel skills for finance jobs lists the others, and the finance Excel mock test lets you try them under time pressure.
Practise it#
Try the exercise on this page: one SUMPRODUCT gives the WACC from values and after-tax costs. Then practise absolute references in a live spreadsheet so your weight formulas fill down correctly, and build the department budget practice sheet to get fast at percentages and totals.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Calculate the WACC. Click B6 and use SUMPRODUCT to multiply the market values (B2:B3) by the after-tax costs (D2:D3), then divide by the total of the market values. Press Enter.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | After-tax cost | ||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 5 | |||||
| 6 | WACC | ||||
| 7 | |||||
| 8 | |||||
| 9 |
Tip: SUMPRODUCT(B2:B3,D2:D3) multiplies each value by its cost and adds them. Divide that by SUM(B2:B3).
Practise this in a lesson
Frequently asked questions
What is the WACC formula?
WACC = E/V × Re + D/V × Rd × (1 − T). E is the market value of equity, D the market value of debt, V their total, Re the cost of equity, Rd the cost of debt and T the tax rate.
Is there a WACC function in Excel?
No. You build it from simple formulas. The shortest version is =SUMPRODUCT(values,after_tax_costs)/SUM(values), which multiplies each cost by its value, adds them and divides by the total.
Why is the cost of debt multiplied by (1 − tax rate)?
In many tax systems, interest is a deductible expense, so it lowers the tax a company pays. The after-tax cost of debt reflects that saving. Equity has no such adjustment.
Should I use book values or market values for the weights?
Textbook WACC uses market values: share price times shares for equity, and the market value of debt where you have it. Book values from the balance sheet are a fallback when market values are not available.
What is WACC used for?
It is often used as the discount rate in NPV calculations and as a hurdle rate to compare with a project's IRR. A project that earns less than the WACC does not cover the cost of its funding.