An excess cash flow sweep is a credit-agreement mechanism that forces a borrower to use cash left over after permitted deductions to prepay debt, usually at the end of a fiscal period. To model it, calculate cash flow available for the sweep, subtract negotiated carve-outs, apply the leverage-based sweep percentage, and route the remainder through a waterfall that respects payment priority, minimum cash, and revolver mechanics. The key condition: the sweep operates on a period-by-period formula defined in the loan documents, not on the cash balance sitting in the bank on any given day, so you need to mirror the contract's definitions rather than a generic free-cash-flow build.
What the sweep actually is, and what it is not
A sweep is a contractual claim on cash generation, not on accumulated liquidity. In a typical leveraged loan, the borrower must calculate consolidated excess cash flow (often defined as "ECF") for each fiscal year or quarter and apply a stated percentage of it to prepay term loans. Many agreements tie that percentage to a leverage ratio: sweep 50% at high leverage, step down to 25%, then to 0% once the borrower hits a specified threshold, and in some deals permit reinvestment of the amount in the business within a window instead of paying it down.
That distinction matters for modeling because three different things get conflated in casual usage:
The ECF definition — a formula of EBITDA less cash taxes, cash interest, scheduled amortization, capital expenditures, working-capital changes, and other permitted adjustments. The sweep percentage — the share of ECF that must be offered as prepayment, often leverage-grided. The waterfall — the order in which the swept amount is applied (revolver, then term loan tranches in maturity order, sometimes with fees and accrued interest first).
A properly built model keeps these three layers separate. If you hard-code a single "sweep" line into the cash flow statement, you lose the ability to flex the leverage grid, test a reinvestment right, or show the lender case where the sweep is 0% and the borrower retains cash.
Prerequisites before you build a single formula
Gather the inputs in this order, because each one changes the structure downstream.
1: The credit agreement's ECF definition, verbatim, including the starting line (usually consolidated net income or EBITDA), every deduction, and every add-back. Note whether it's calculated annually or quarterly; annual is more common for term loan B sweeps, quarterly appears in some unitranche and project financings. 2: The sweep grid — the leverage or coverage thresholds and the percentage at each step, plus whether the percentage is based on the ratio at the start or end of the period. 3: The waterfall order and any mandatory prepayment premium (call protection), since a 101 soft call in year one changes the cash actually leaving the business. 4: Minimum cash and revolver mechanics — the cash floor the borrower must maintain, revolver commitment, swingline, and whether revolver repayments count toward the sweep. 5: Reinvestment rights and baskets — the window (often 12–18 months) and the conditions under which swept cash can be redeployed instead of prepaid. 6: Debt schedule and amortization — the sweep sits on top of scheduled amortization, so the model needs both.
The stop condition: if the credit agreement is ambiguous on whether a deduction is taken before or after the sweep percentage, or whether the sweep applies to the revolver, get the borrower's counsel or the administrative agent to confirm in writing before you build. Modeling the wrong interpretation produces a number that looks precise and is wrong.
Build the ECF calculation as a standalone block
The core discipline is a separate ECF schedule that references the operating model but contains no operating logic of its own. A workable layout, with illustrative lines only:
Consolidated net income (or EBITDA, per the definition) Less: cash taxes paid Less: cash interest expense (net of interest income if the definition permits) Less: scheduled principal amortization Less: capital expenditures not financed with debt Less/Less: working-capital changes (often the definition specifies the sign convention) Less: permitted acquisitions, investments, and restricted payments to the extent deducted Plus: non-cash charges added back, and any equity cure amounts Equals: ECF before the sweep
Two mechanical rules keep this block clean. First, use cash-basis figures where the definition says "paid" and accrual where it says "expense"; mixing them is the most common source of a mismatch between model and compliance certificate. Second, label every line with the contract section it comes from, so a reviewer can trace each deduction to the document rather than to your memory.
Expect a reconciliation exercise: the borrower's actual ECF certificate, when available, is the check. If your model's prior-year ECF differs from the certificate, find the specific line, not the total, because offsetting errors hide in aggregates. A defensible tolerance is small and documented; a large unexplained gap means a definition was misread.
Apply the sweep percentage through a leverage grid
The grid is where most models break, because the percentage depends on a ratio computed on a specific date with a specific definition of debt and EBITDA.
Worked example, clearly illustrative: suppose the agreement sweeps 50% of ECF when total net leverage is above 4.0x, 25% between 3.0x and 4.0x, and 0% at or below 3.0x, measured at fiscal year-end. If year-end EBITDA is 100, net debt is 380, leverage is 3.8x, and ECF is 60, the sweep is 25% × 60 = 15. The borrower prepays 15 of term debt, subject to the waterfall. If the same company had net debt of 290 (2.9x), the sweep would be zero and the 60 of ECF stays with the borrower, subject only to the minimum cash test.
Three details to model explicitly:
Measurement date. If the grid uses the ratio at the start of the period, a year of deleveraging doesn't reduce this year's sweep; if it uses the end, it does. The difference can be material in a deleveraging story. Pro forma vs. actual. Some grids use pro forma leverage after the prepayment, which is circular; most use actual. Identify which, because circularity requires an iterative solve or a fixed-point assumption. Net debt definition. Cash netting caps, unbilled receivables, and operating leases (pre- and post-ASC 842 treatment) all move the ratio across a threshold.
Route the swept amount through the waterfall
The waterfall determines which debt actually gets repaid and in what order. A typical order: fees and expenses, accrued interest, revolver outstanding (sometimes only if the sweep is a mandatory prepayment event), then term loan tranches by maturity, then any remaining amount to the borrower. Some agreements apply the sweep pro rata across tranches; others apply it sequentially. The difference affects the interest saving and the covenant trajectory, so model the order the contract specifies, not the order that looks tidy.
If a prepayment premium applies, deduct it before applying principal, and check whether the premium steps down by anniversary date. A 101 soft call in year one on a 15 prepayment costs 0.15, which is small but not zero and belongs in the cash bridge.
Success check for this section: the sum of waterfall allocations equals the swept amount (less fees and premium), the revolver balance never goes negative, and the term loan balance never falls below zero. If any allocation drives a balance below zero, the waterfall order or the sweep amount is wrong.
Integrate the sweep into the three-statement model without circularity traps
The sweep touches cash, debt, interest, and sometimes taxes, which is why circularity appears. The standard approach is a copy-paste macro or an iterative calculation toggle, with the logic ordered so that the sweep is computed from pre-sweep cash flow, then applied, then interest recalculated on the lower balance. Keep the iteration limit modest (for example, 100 iterations, 0.001 tolerance) and verify convergence.
Practical sequencing:
1: Build operating cash flow before debt service. 2: Compute ECF from that block. 3: Apply the grid to get the sweep amount. 4: Allocate through the waterfall to specific debt lines. 5: Recalculate interest on the reduced balances. 6: Recompute cash taxes only if the definition ties them to the sweep (usually it doesn't, but check). 7: Confirm the cash balance respects the minimum; if it doesn't, the sweep may be capped or the revolver draws.
That last point is the edge case most models miss: a sweep cannot push cash below the contractual minimum, and if the borrower needs the revolver to fund operations, a mandatory sweep and a revolver draw can coexist awkwardly. Model the minimum cash floor as a hard test, and show the revolver draw in the same period if the floor binds.
Handle the failure cases and contract wrinkles
Several situations produce a model that is technically built but unusable.
The sweep exceeds available cash. If ECF is defined on accrual adjustments and the cash isn't actually there, the borrower may still owe the prepayment, funded by a revolver draw or an equity contribution. Show this explicitly rather than letting cash go negative.
Reinvestment rights. If the agreement permits reinvestment within a window, the swept amount may be retained and redeployed. Model this as a toggle: sweep now, or hold and reinvest, with the reinvestment deadline tracked. The retained-cash case changes the leverage path materially.
Equity cures. Some agreements let sponsors cure a covenant breach with equity, which can also affect ECF if the cure is added back. Read the definition before adding it.
Quarterly vs. annual. A quarterly sweep smooths prepayment but creates four measurement dates, each with its own grid test. A model built annually understates the number of tests and can misstate the timing of deleveraging.
Fiscal year vs. calendar year. The sweep period must match the borrower's fiscal year as defined in the agreement, which may not be the calendar year used in reporting.
A compact checklist before you call the model done
ECF lines each trace to a contract section. Grid thresholds, measurement dates, and pro forma treatment are explicit. Waterfall order matches the agreement, with fees and premium handled. Minimum cash floor is a hard test, not an assumption. Revolver mechanics (commitment, swingline, whether repaid amounts count) are modeled. Reinvestment right is a toggle, not a hard-coded zero. Iteration converges, and the cash bridge ties to the balance sheet. Prior-year ECF reconciles to the compliance certificate within a documented tolerance.
FAQ
Does the sweep apply to the revolver? Often yes, but not always, and some agreements sweep term debt first and leave the revolver to a separate mandatory prepayment. The waterfall order in the credit agreement answers this; do not assume.
Is ECF the same as free cash flow? No. ECF is a defined term with specific deductions and add-backs that frequently differ from a standard unlevered free cash flow. A model that uses FCF as a proxy will misstate the sweep whenever the definitions diverge, which is common.
What if the borrower is below the leverage threshold? The sweep percentage is zero, and the cash stays with the borrower subject to the minimum cash test and any other mandatory prepayment events. The model should show the zero-sweep case as a distinct scenario, because it is often the base case in a deleveraging story.
How do I test the model against reality? Compare prior-period ECF to the borrower's compliance certificate, and compare the actual prepayment to the model's waterfall output. Variances point to a specific definition or ordering error, which is more useful than a total-level check.