Skip to content
p.mba

Type to search tools, guides, glossary terms, frameworks, formula sheets and pages.

Menu

WACC calculator

Cost of equity via CAPM, peer beta unlevering and relevering (Hamada or no-tax), cost of debt, capital-structure weights and a beta × D/V grid.

When you’ll use this
  • Corporate Finance, weeks 6–9: cost-of-capital problem sets and the classic "estimate the WACC" case
  • Valuation elective: building a discount rate from a peer beta table before running the DCF
  • Investment banking recruiting technicals: explaining how leverage changes beta and WACC
  • Investments, CAPM weeks: checking expected-return calculations with size or country premiums

WACC calculator tool

Loading your saved inputs…

Back up all tools

Cost of equity (CAPM)
Inputs only; nothing here is a current market value. Look up today’s yields on the US Treasury interest-rate data and equity risk premiums, betas and default spreads on Damodaran Online.
Typically a long-dated government bond yield in the same currency as the cash flows.
Expected market return minus the risk-free rate.
Simple add-on to the cost of equity. Leave empty for none.
Simple add-on to the cost of equity. Leave empty for none.
Beta
Use a beta you already trust, or build one from comparable companies.
Beta source
Comparable companies
Row#CompanyLevered betaMarket D/E (%)Tax rate (%)Row actions
1
2
3
3 peers (max 30)
Peer statistic
Levering formula

Unlever: βU = βL ÷ [1 + (1 − t) × D/E]

Relever: βL = βU × [1 + (1 − t) × D/E]

Assumes riskless debt (debt beta 0) and a fixed amount of debt whose tax shields are as risky as the debt.

Peer betas unlevered (Hamada)
CompanyLevered betaD/ETax rate usedUnlevered beta
Peer A1.20025.0%25.0%1.011
Peer B1.05010.0%25.0%0.977
Peer C1.40050.0%25.0%1.018
Median (n = 3)———1.011
Mean (n = 3)———1.002
Cost of debt and tax
Pre-tax cost of debt from
Spread over the risk-free rate for an actual or synthetic rating; enter the figure from your source.
Drives the interest tax shield and Hamada relevering.
Capital structure weights
Prefer market values or a long-run target, not book values.
Weights from

Results

WACC

8.77%

E/V 75.0% × 10.32% + D/V 25.0% × 4.13%

Cost of equity

10.32%

Levered beta 1.263

After-tax cost of debt

4.13%

Pre-tax 5.50% × (1 − 25.0%)

Unlevered beta (peer median)

1.011

Relevered at D/E 33.3% (0.33x)

Cost of equity build-up (CAPM)
ComponentRate
Risk-free rate4.00%
Beta × ERP (1.263 × 5.00%)6.32%
Size premium0.00%
Country risk premium0.00%
Cost of equity10.32%
WACC build-up
Source of capitalWeightCostContribution
Equity75.00%10.32%7.74%
Debt (after tax)25.00%4.13%1.03%
WACC100%—8.77%
Cost of capital as leverage changesAsset beta relevered at each D/V with the chosen formula. The pre-tax cost of debt is held constant, which real credit spreads are not, so read the right-hand side with care.
  • Cost of equity
  • WACC
  • After-tax cost of debt
Annual rate0.0%5.0%10.0%15.0%20.0%25.0%0%20%40%60%80%Debt / value (D/V)Your D/VCost of equityWACCAfter-tax cost …
Data table
Cost of capital as leverage changes: data
Debt / value (D/V)Cost of equityWACCAfter-tax cost of debt
0%9.1%9.1%4.1%
5%9.3%9.0%4.1%
10%9.5%8.9%4.1%
15%9.7%8.9%4.1%
20%10.0%8.8%4.1%
25%10.3%8.8%4.1%
30%10.7%8.7%4.1%
35%11.1%8.7%4.1%
40%11.6%8.6%4.1%
45%12.2%8.5%4.1%
50%12.8%8.5%4.1%
55%13.7%8.4%4.1%
60%14.7%8.4%4.1%
65%16.1%8.3%4.1%
70%17.9%8.3%4.1%
75%20.4%8.2%4.1%
80%24.2%8.1%4.1%

Sensitivity: beta × D/V

WACC by unlevered beta and D/V (beta relevered at each D/V)Rows: Unlevered beta. Columns: D/V. Base case outlined. Darker shading means a higher value.
Unlevered betaD/V →5.0%15.0%25.0%35.0%45.0%
0.818.01%7.92%7.83%7.74%7.65%
0.918.50%8.40%8.30%8.20%8.10%
1.019.00%8.88%8.77% (base case)8.65%8.54%
1.119.49%9.36%9.24%9.11%8.98%
1.219.98%9.84%9.71%9.57%9.43%

Every cell keeps the risk-free rate, ERP, premiums, pre-tax cost of debt and tax rate fixed.

How this works

Formulas

Weighted average cost of capital. With EE and DD the market values of equity and debt and V=D+EV = D + E:

WACC=EV ke+DV kd (1−t)\text{WACC} = \frac{E}{V}\,k_e + \frac{D}{V}\,k_d\,(1 - t)

Cost of equity (CAPM) with optional add-on premiums:

ke=rf+βL×ERP+size premium+country premiumk_e = r_f + \beta_L \times \text{ERP} + \text{size premium} + \text{country premium}

Unlevering and relevering beta. Two methods are offered. Both use the market debt-to-equity ratio D/ED/E.

Hamada (with taxes, debt assumed riskless so debt beta is 0):

βU=βL1+(1−t) DEβL=βU[1+(1−t) DE]\beta_U = \frac{\beta_L}{1 + (1 - t)\,\dfrac{D}{E}} \qquad \beta_L = \beta_U\left[1 + (1 - t)\,\frac{D}{E}\right]

No-tax version with an optional debt beta βD\beta_D (asset beta as the value-weighted average of equity and debt betas):

βU=βL+βD DE1+DEβL=βU+(βU−βD) DE\beta_U = \frac{\beta_L + \beta_D\,\dfrac{D}{E}}{1 + \dfrac{D}{E}} \qquad \beta_L = \beta_U + (\beta_U - \beta_D)\,\frac{D}{E}

With βD=0\beta_D = 0 this reduces to βU=βL/(1+D/E)\beta_U = \beta_L / (1 + D/E).

Peer beta table. Unlever each peer at its own D/E (and its own tax rate for Hamada), take the median or mean of the unlevered betas, then relever that asset beta at the target company’s D/E.

Cost of debt. Either the yield to maturity on the company’s debt, or a spread over the risk-free rate:

kd=rf+credit spreadafter-tax kd=kd (1−t)k_d = r_f + \text{credit spread} \qquad \text{after-tax } k_d = k_d\,(1 - t)

Weights. From market values, D/V=D/(D+E)D/V = D/(D+E). From a target ratio, the two forms convert as

DV=D/E1+D/EDE=D/V1−D/V\frac{D}{V} = \frac{D/E}{1 + D/E} \qquad \frac{D}{E} = \frac{D/V}{1 - D/V}

Conventions & assumptions

  • Rates are annual decimals. Enter 4.0% as 4.0 in the percent fields. The risk-free rate, the ERP and the cost of debt should use the same currency and the same compounding basis, for example annual yields.
  • You supply the market inputs. The tool ships with no current risk-free rate, equity risk premium or rating spreads because these change daily or yearly. Maintained sources for each one are listed under Where to find current inputs below. Match the maturity of the risk-free rate to your cash flows; a long-dated government yield is the usual choice for a going-concern valuation.
  • Premiums are additive. Size and country premiums are added straight to CAPM. Some practitioners scale a country premium by the company’s exposure (a “lambda”); if you do, enter the already-scaled number.
  • Beta source. In direct mode the beta you enter is used as-is and is assumed to already reflect the target capital structure. In peers mode the tool unlevers and relevers it for you.
  • Peer tax rate. A blank peer tax rate falls back to the target tax rate. The no-tax method ignores tax rates entirely.
  • Debt beta. Hamada assumes a debt beta of 0. The no-tax method accepts a debt beta; leave it blank for 0. A positive debt beta matters most for highly levered peers.
  • Tax rate is the marginal rate that applies to the interest deduction. The same rate is used to relever beta at the target.
  • Weights should be market values or a long-run target. Book equity is usually a poor proxy for market equity. Net debt versus gross debt is a modelling choice; whichever you use, be consistent with the enterprise-value bridge in your DCF.
  • Sensitivity grid. Rows are beta values and columns are D/V. If the beta is an unlevered beta, each cell relevers it at that column’s D/E, so higher leverage raises the cost of equity as well as the debt weight. If the beta is a levered beta, it is held fixed. The pre-tax cost of debt is held constant across the grid, which understates WACC at high leverage, where credit spreads would really widen.

Where to find current inputs

These maintained datasets are free to open. Note the as-of date of every number you take, and take all of them for the same valuation date. p.mba copies no values from them.

  • Risk-free rate. The (U.S. Department of the Treasury) table is published each trading day for maturities from 1 month to 30 years. Treasury quotes these yields on a bond-equivalent (semiannual) basis, not as effective annual rates (U.S. Department of the Treasury). For a long history, or a past valuation date, FRED carries the matching constant-maturity series, such as (Federal Reserve Bank of St. Louis (FRED)) and (Federal Reserve Bank of St. Louis (FRED)).
  • Equity risk premium. Damodaran Online posts a start-of-month implied ERP for the US market (Aswath Damodaran, NYU Stern). The premium is backed out against the long-term Treasury bond rate (Aswath Damodaran, NYU Stern). Kroll publishes a recommended U.S. ERP that is meant to be paired with a specific risk-free rate: the higher of Kroll’s normalized rate or the spot 20-year Treasury yield on the valuation date. Kroll reviews it as conditions change rather than on a fixed calendar (Kroll). Whichever ERP you choose, use the risk-free rate it was built with. Don’t mix one source’s premium with another’s rate.
  • Beta. (Aswath Damodaran, NYU Stern) lists each industry’s levered beta, D/E, effective tax rate and unlevered beta. To use it in peers mode, enter the industry’s levered beta, D/E and tax rate as one peer row, and the tool will unlever and relever it consistently. Damodaran’s unlevered column uses the effective tax rate, while this tool uses your marginal rate, so the two can differ slightly.
  • Credit spread and country premium. The (Aswath Damodaran, NYU Stern) index links rating-based default spreads over the Treasury bond rate, cost of capital by industry and tax rates. Country risk premiums are in (Aswath Damodaran, NYU Stern). Most Damodaran tables are refreshed once a year in early January. The implied ERP is updated monthly, and the country premiums get extra mid-year files.

Worked example

All inputs below are hypothetical teaching numbers, not current market data. Risk-free rate 4.0%, equity risk premium 5.0%, no size or country premium. Tax rate 25%. Target D/V 25%, so target D/E = 0.25 ÷ 0.75 = 0.333. Cost of debt is the risk-free rate plus a 1.5% spread. Beta comes from three peers, unlevered with Hamada; the median is used.

PeerLevered betaD/ETax rateUnlevered beta
Peer A1.200.2525%1.20 ÷ (1 + 0.75 × 0.25) = 1.0105
Peer B1.050.1025%1.05 ÷ (1 + 0.75 × 0.10) = 0.9767
Peer C1.400.5025%1.40 ÷ (1 + 0.75 × 0.50) = 1.0182
  1. Median unlevered beta = 1.0105 (the mean would be 1.0018).
  2. Relever at D/E 0.333: 1.0105 × (1 + 0.75 × 0.333) = 1.0105 × 1.25 = 1.2632.
  3. Cost of equity = 4.0% + 1.2632 × 5.0% = 10.32%.
  4. Pre-tax cost of debt = 4.0% + 1.5% = 5.50%; after tax = 5.50% × 0.75 = 4.125%.
  5. WACC = 0.75 × 10.316% + 0.25 × 4.125% = 7.737% + 1.031% = 8.77%.

Using the mean instead of the median gives a relevered beta of 1.2523 and a WACC of 8.73%. In the sensitivity grid, an unlevered beta of 1.00 at 40% D/V relevers to 1.50, which gives a cost of equity of 11.5% and a WACC of 0.6 × 11.5% + 0.4 × 4.125% = 8.55%.

Limitations

  • CAPM is a model. It prices only market risk. Estimated betas carry wide error bands, and the choice of index, return frequency and look-back window can move them a lot. A peer median is usually steadier than one company’s regression beta.
  • Leverage formulas assume a policy. Hamada assumes a fixed amount of debt with riskless tax shields. Other relevering formulas (for example ones that assume debt is rebalanced to a constant D/V) give somewhat different betas. Pick one and use it consistently for unlevering and relevering.
  • Constant capital structure. One WACC assumes the D/V ratio holds over the forecast. For a structure that changes sharply, such as an LBO, adjusted present value is the cleaner approach.
  • Yield is not expected return. A promised yield on risky debt overstates the expected cost of debt because some of it compensates for default. For investment-grade debt the gap is small; for distressed debt it is not.
  • No preferred stock or hybrid layer. Add one by hand if it is material.
  • Teaching and checking tool only, not investment advice.

Excel/Sheets equivalents

For the whole calculation in a spreadsheet, download the WACC workbook, which opens in Excel and Google Sheets with this worked example preloaded.

  • Hamada unlever: =B2/(1+(1-B4)*B3) with levered beta in B2, D/E in B3 and tax in B4. Relever: =B5*(1+(1-B4)*B6) with unlevered beta in B5 and target D/E in B6.
  • Peer statistic: =MEDIAN(E2:E4) or =AVERAGE(E2:E4) over the unlevered-beta column.
  • Cost of equity: =rf + beta*erp + size + country.
  • WACC: =(1-dv)*ke + dv*kd*(1-t). For the example: =0.75*(0.04+1.263158*0.05)+0.25*0.055*(1-0.25) returns 0.0877.
  • Regression beta (if you compute your own): =SLOPE(stock_returns, index_returns) over matching periods.

Runs entirely in your browser; inputs are saved only on this device. Last updated .