Home / Guides / How to Calculate WACC in Excel

How to Calculate WACC in Excel

Valuation · Updated June 2026

The weighted average cost of capital is the blended return a company must earn to satisfy all its capital providers. It weights the cost of equity and the after tax cost of debt by their share of the capital structure. WACC is the discount rate for unlevered free cash flow in a DCF, so getting it right directly drives your valuation.

The WACC formula and its parts

The formula is WACC = E/V * Re + D/V * Rd * (1 - Tax), where E is equity value, D is debt, V is E + D, Re is the cost of equity, Rd is the cost of debt, and Tax is the marginal tax rate.

The cost of equity comes from the capital asset pricing model: Re = Rf + Beta * (Rm - Rf). Rf is the risk free rate, Beta measures the stock's sensitivity to the market, and Rm - Rf is the equity risk premium. The after tax cost of debt is Rd * (1 - Tax) because interest is tax deductible.

Worked example

Assume a risk free rate of 4 percent, a beta of 1.2, an equity risk premium of 5 percent, a pretax cost of debt of 6 percent, a 25 percent tax rate, equity value of 800, and debt of 200.

  1. Cost of equity: =0.04+1.2*0.05 returns 10 percent.
  2. After tax cost of debt: =0.06*(1-0.25) returns 4.5 percent.
  3. Total capital: =800+200 equals 1000, so equity weight is =800/1000 (0.8) and debt weight is =200/1000 (0.2).
  4. WACC: =0.8*0.10+0.2*0.045 returns 8.9 percent.
ComponentValueWeightContribution
Cost of equity10.0%0.808.0%
After tax cost of debt4.5%0.200.9%
WACC8.9%

Contributions sum to the WACC: 8.0% + 0.9% = 8.9%.

Setting it up cleanly in Excel

Build WACC as a small block of labeled inputs feeding a single output cell so it can be audited and flexed.

Pitfalls

Using book equity instead of market equity is a common error. Book values understate equity for profitable companies, which overweights debt and understates WACC.

Another trap is hardcoding a rate, such as typing 0.04 for the risk free rate inside the cost of equity formula. When the curve moves you forget to update it. Keep every assumption in its own input cell so a single change recalculates the whole stack.

Do it in one click

Find Hardcodes

Find Hardcodes spots a rate typed directly inside the WACC formula so every assumption lives in a labeled input you can update in one place.

Get ModelMint See how it works

FAQ

Should I use book or market values for WACC weights?

Use market values. Equity weight should reflect market capitalization, and debt should reflect market or face value. Book equity often understates a company's true equity, which distorts the weights and the resulting WACC.

Why is the cost of debt multiplied by one minus tax?

Interest expense is tax deductible, so each dollar of interest reduces taxable income. The after tax cost of debt, Rd times one minus the tax rate, captures that the government effectively subsidizes part of the interest cost.

What beta should I use in CAPM?

Use a beta that reflects the company's systematic risk, often a levered beta from comparable firms relevered to the target's capital structure. Raw regression betas can be noisy, so an industry average or an adjusted beta is common.