TOP BUCKET
← All workshops Workshop · About 60 to 90 minutes

DCF from scratch

You’ll value Ridgeline Coffee Co., a made-up coffee company, the way an analyst would: project its free cash flow, work out its cost of capital, add a terminal value and land on what one share is worth. Every number is fictional, so you can focus on the mechanics.

START

Get set up

Download both files. Open the starter on a laptop in Excel or Google Sheets, and keep the answer key closed until you’re done or truly stuck.

Starter workbook

The file you fill in. 123 yellow cells and 50 checks that mark your work.

top-bucket-dcf-starter.xlsx · 32 KB Download starter

Answer key

The finished model, for comparing cell by cell.

top-bucket-dcf-answer-key.xlsx · 24 KB Download answer key

The file follows the same color code banks use, so learn it now:

10%Blue text: inputs. Leave them alone for now.
=A1Green text: links to another tab, done for you.
Yellow cells: your turn. Type a formula.
=A1Black text: formulas already done.
How checking works

Each row has a Check cell. It stays blank until the whole row is filled in, then shows ✓ Correct, ✗ Check again or ✗ Fix the error.

STEP 1

Read the assumptions

Open the Assumptions tab. Nothing to type here yet. Every formula you write later points back to these inputs, so know what each one is before you start.

InputValueWhat it means
2025 revenue$500.0mmThe last actual year. Projections start from here.
Revenue growth, 2026–203010% → 6%Base case. Growth slows each year as the company matures. It comes from the Scenarios tab (step 2).
EBITDA margin18.0% → 20.0%Base case. Profit before D&A, interest and tax, per dollar of sales. Also from the Scenarios tab.
D&A / capex4% / 5% of revenueCapex above D&A means the company is still investing to grow.
Increase in NWC10% of Δ revenueCash tied up in inventory and receivables as sales grow.
Tax rate25%
Share price / diluted shares$16.00 / 50.0mmMarket value of equity: $800mm.
Debt / cash$300.0mm / $100.0mmNet debt of $200mm.
Risk-free rate / ERP / beta4.25% / 5.50% / 1.10Inputs to the cost of equity.
Pre-tax cost of debt6.50%
Terminal growth / exit multiple2.5% / 8.5xTwo ways to value the years after 2030.
STEP 2

Set up the scenario switch

Real models carry more than one set of assumptions. Open the Scenarios tab. It has three cases for revenue growth and EBITDA margin: Base, Upside and Downside. One cell, C5, is the switch: 1 picks Base, 2 picks Upside, 3 picks Downside.

Your job is the two yellow “live case” rows. Each one uses CHOOSE to pull the number from whichever case the switch picks. The live rows feed the Assumptions tab, and the Assumptions tab feeds the DCF, so do this step first. Leave the switch on 1 while you build.

RowCellFormulaNote
Live revenue growthC12=CHOOSE($C$5,C9,C10,C11)done for you
Live EBITDA marginC18=CHOOSE($C$5,C15,C16,C17)
How CHOOSE works. CHOOSE(n, a, b, c) returns the nth item: a when n is 1, b when n is 2, c when n is 3. Lock the switch with $C$5 so it stays put when you copy the formula right. Keep the cases in the same order as the switch: base, upside, downside.
Checkpoint

With the switch on 1: 2026 growth 10.0% · 2030 growth 6.0% · 2026 margin 18.0% · 2030 margin 20.0%. The check cells on this tab test the live rows against whichever case the switch picks.

STEP 3

Revenue to free cash flow

On the DCF tab, fill rows 6 to 20 for 2026 through 2030. You’re building unlevered free cash flow: the cash the business makes before paying lenders, so it belongs to debt and equity holders together.

The 2026 revenue cell is done for you. Copy it across to 2030, then work down. Write each formula once in column C and copy it right.

RowCellFormulaNote
RevenueC6=B6*(1+C5)done for you
EBITDAC8=C6*C7
D&AC10=C6*C9
EBITC11=C8-C10
Taxes on EBITC13=C11*C12
NOPATC14=C11-C13
Add back D&AC15=C10
CapexC17=C6*C16
Increase NWCC19=(C6-B6)*C18
Unlevered FCFC20=C14+C15-C17-C19
Why tax EBIT and not net income? Unlevered free cash flow pretends the company has no debt, so you tax operating profit directly. The benefit of interest being tax-deductible shows up later, in the after-tax cost of debt inside WACC.
Checkpoint

2026 revenue 550.0 · 2026 EBITDA 99.0 · 2026 free cash flow 47.3 · 2030 free cash flow 76.6

STEP 4

Weighted average cost of capital

WACC is the return investors expect, blended across debt and equity. It’s the discount rate for unlevered free cash flow. Fill the yellow cells on the WACC tab.

RowCellFormulaNote
Cost of equity (CAPM)C8=C5+C6*C7rf + beta × ERP
After-tax cost of debtC13=C11*(1-C12)
Equity valueC16=Assumptions!C7*Assumptions!C8
Total capitalC18=C16+C17
Equity weightC19=C16/C18
Debt weightC20=C17/C18
WACCC22=C19*C8+C20*C13
Checkpoint

Cost of equity 10.30% · after-tax cost of debt 4.88% · weights 72.7% / 27.3% · WACC 8.82%

Use market values. Weight equity at share price × shares, not the book equity on the balance sheet. Interviewers ask about this.
STEP 5

Discount each year

Back on the DCF tab, row 22 already counts the years: 1 for 2026, up to 5 for 2030. Turn each into a discount factor, then multiply by that year’s free cash flow.

RowCellFormulaNote
Discount factorC23=1/(1+WACC!$C$22)^C22
PV of FCFC24=C20*C23
Lock the WACC cell. The $ signs keep WACC!$C$22 fixed when you copy the formula right. Press F4 in Excel on Windows, Cmd+T in Excel on a Mac, or type the $ signs yourself.
Checkpoint

2026 discount factor 0.9189 · 2030 discount factor 0.6553 · 2026 present value 43.4

STEP 6

Terminal value and value per share

A company doesn’t stop in 2030, so you add a terminal value for every year after. The Valuation tab does it two ways side by side: perpetuity growth in column C, exit multiple in column D.

RowCellFormulaNote
Sum of PVsC5=SUM(DCF!C24:G24)
Terminal valueC11=C6*(1+C8)/(C10-C8)FCF × (1+g) ÷ (WACC − g)
D11=D7*D92030 EBITDA × 8.5x
PV of terminal valueC13=C11*C12
Enterprise valueC14=C5+C13
Equity valueC22=C14-C20+C21EV − debt + cash
Value per shareC24=C22/C23
Enterprise value$1,050.8mmPerpetuity growth
Value per share$17.02$17.09 with the exit multiple
Upside to $16.006.3%6.8% with the exit multiple
Sanity-check it. Terminal value is 77.5% of enterprise value, inside the usual 60% to 80%. The perpetuity method implies an 8.5x exit multiple, and the exit method implies 2.53% growth, so the two methods agree.
STEP 7

Sensitivity table

Bankers never show one number. The Sensitivity tab shows value per share for WACCs of 8% to 10% down the side and growth rates of 1.5% to 3.5% across the top. The first cell is done; copy it across and down.

The formula only works when you copy it if the row input is locked by column ($B5) and the column input is locked by row (C$4). Getting those mixed references right is the whole exercise.

Checkpoint

WACC 9.0%, growth 2.5%: $16.41 · WACC 8.0%, growth 3.5%: $24.83 · WACC 10.0%, growth 1.5%: $11.94

Look at the spread: from about $12 to $25 a share, just from moving two inputs a point or so. That’s why DCFs come with a range.

STEP 8

Run the cases

Now use the switch. Back on the Scenarios tab, type 2 in C5 and watch every tab update. Read the value per share off the live row (row 25) and type it into the Upside row of the table below it, to the cent. Do the same with 3 for Downside and 1 for Base.

Type the numbers in rather than linking them. A link would change every time you flip the switch, and the point is to see all three cases side by side.

Case2026 → 2030 growth2030 marginValue per share (perpetuity)Value per share (exit multiple)
1 = Base10% → 6%20.0%$17.02$17.09
2 = Upside13% → 9%21.5%$21.84$21.79
3 = Downside5% → 3%17.0%$10.25$10.82
Expect ✗ while you flip. The checks on the DCF, WACC, Valuation and Sensitivity tabs are set for the base case, so they show ✗ Check again while the switch is on 2 or 3. That’s normal. Set the switch back to 1 when you’re done and they turn green again.
Checkpoint

Against today’s $16.00 share price, the perpetuity growth method runs from about 36% downside to 37% upside. The base case sits in between at about 6% upside.

That spread is the story you’d tell a client: the stock looks fairly priced if the plan holds, and the case you believe in matters far more than a few tenths of a point of WACC.

AFTER

Say it in an interview

“Walk me through a DCF” is one of the most common technical questions. Now that you’ve built one, you can answer from experience:

  1. Project the company’s unlevered free cash flow for five to ten years: EBIT after tax, plus D&A, minus capex, minus the increase in working capital.
  2. Discount those cash flows at WACC, the blended cost of debt and equity.
  3. Estimate a terminal value with a perpetuity growth rate or an exit multiple, and discount it back too.
  4. Add them up for enterprise value, subtract net debt for equity value, and divide by diluted shares for value per share.

Then try changing an input, like a case’s 2026 growth on the Scenarios tab, and watch every tab update. For more practice, the app’s Valuation & DCF module has the follow-up questions interviewers ask next. You can also read 10 free valuation and DCF interview questions with model answers.