ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Math
  3. WACC Formula in Excel: Weighted Average Cost of Capital

WACC Formula in Excel: Weighted Average Cost of Capital

By ExcelReady Team·Updated November 3, 2026·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+
  1. What is the WACC formula?
  2. Step 1: Lay out the inputs
  3. Step 2: Calculate the weights
  4. Step 3: Work out the after-tax cost of debt
  5. Step 4: Combine everything with SUMPRODUCT
  6. How to estimate the cost of equity with CAPM
  7. Common WACC mistakes in Excel
  8. How WACC is used: NPV and IRR
  9. Practise it

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)
SymbolMeaningExample
EMarket value of equity600,000
DMarket value of debt400,000
VTotal funding, E + D1,000,000
ReCost of equity11%
RdCost of debt, before tax6%
TTax rate25%

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:

ABCDE
1SourceMarket valueWeightPre-tax costAfter-tax cost
2Equity600,00011%
3Debt400,0006%
5Tax rate25%

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:

Excel formula
=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:

Excel formula
=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:

Excel formula
=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:

Excel 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 premium

Put the three inputs in their own cells, for example H2 (risk-free rate), H3 (beta) and H4 (equity risk premium), and calculate:

Excel formula
=H2+H3*H4

With 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:

SourceMarket valueAfter-tax cost
Equity600,00011%
Preferred stock50,0008%
Debt350,0004.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:

  1. Using the pre-tax cost of debt. Multiply by (1 − tax rate) first.
  2. Weights that don't add up to 100%. Usually a missing $ in the total, so each row divides by a different sum.
  3. Book values instead of market values. Use market values where you can; the balance sheet shows historical amounts.
  4. Percentages typed as whole numbers. 11 is not 11%.
  5. 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.

fx
ABCDE
1
Source
Market value
Pre-tax cost
After-tax cost
2
Equity
600000
0.11
0.11
3
Debt
400000
0.06
0.045
4
5
Tax rate
0.25
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

LessonPractice: department budgetCombine SUM, AVERAGE, ROUND and absolute references in a realistic budget sheet.LessonRelative vs absolute references ($)Lock a cell with $ so it doesn't move when you copy a formula, one of the most-tested Excel skills.Function guideSUMPRODUCTMultiply columns and add the results in one step with SUMPRODUCT. Totals, weighted averages, conditions, and a live exercise to try.

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.

Sources

  • SUMPRODUCT function - Microsoft Support
  • Switch between relative, absolute, and mixed references - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What is the WACC formula?
  2. Step 1: Lay out the inputs
  3. Step 2: Calculate the weights
  4. Step 3: Work out the after-tax cost of debt
  5. Step 4: Combine everything with SUMPRODUCT
  6. How to estimate the cost of equity with CAPM
  7. Common WACC mistakes in Excel
  8. How WACC is used: NPV and IRR
  9. Practise it

Keep reading

Math· 6 min read

How to Calculate a Weighted Average in Excel

To calculate a weighted average in Excel, multiply each value by its weight, add the results, and divide by the total of the weights: =SUMPRODUCT(B2:B5,C2:C5)/SUM(C2:C5). B2:B5 holds the values and C2:C5 the weights. Dividing by SUM keeps the answer right even when the weights don't add up to 100%.

Math· 6 min read

SUMPRODUCT in Excel: Multiply and Add in One Step

SUMPRODUCT multiplies matching items in two or more ranges and adds up the results. =SUMPRODUCT(C2:C7,D2:D7) multiplies each quantity by its price and returns the total, with no helper column. It also handles conditions, such as =SUMPRODUCT((B2:B7="North")*C2:C7*D2:D7), and works in every version of Excel.

Math· 6 min read

NPV Function in Excel: Net Present Value Explained

NPV returns the net present value of future cash flows at a given discount rate. Write =NPV(rate, values) for the cash flows from year 1 onward, then add the upfront cost separately: =NPV(8%,B3:B7)+B2. NPV assumes every value arrives at the end of a period, so putting the year-0 cost inside the function discounts it by mistake.

More on math

  • Calculate a Z-Score in Excel With STANDARDIZE
  • Absolute References and the $ Sign in Excel
  • Absolute Value in Excel: How the ABS Function Works
  • How to Run a One-Way ANOVA in Excel
  • AutoSum in Excel: The Alt+= Shortcut Explained
  • AVERAGE, MIN and MAX in Excel With Examples
All math articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free