Sub topic 12
Several tranches and order of repayment by seniority
Real companies rarely borrow through a single instrument. A typical leveraged capital structure has a revolver, one or two term loans, and bonds. This chapter assumes you can already build a roll-forward for one tranche, apply a mandatory repayment schedule, and run a cash sweep and revolver. It shows how to combine several tranches so that cash goes to the right lender in the right order.
Why seniority drives the model
Seniority is the order in which lenders have a claim on the company's cash and assets. In a model it matters in two places:
- Repayment priority. When cash is limited, senior debt is repaid first. In a sweep, voluntary prepayments go to the most senior prepayable tranche first.
- Pricing. Senior secured debt carries a lower spread than subordinated debt, because it is less risky for the lender.
A common ranking, from most to least senior, looks like this:
| Rank | Tranche | Typical repayment behavior |
|---|---|---|
| 1 | Revolver | Drawn and repaid freely, no schedule |
| 2 | Term loan A | Scheduled amortization, prepayable, swept |
| 3 | Term loan B | About 1% a year mandatory, prepayable, swept |
| 4 | Senior notes | Bullet at maturity, usually not prepayable |
| 5 | Subordinated notes | Bullet, often locked out of prepayment |
Take the order from the credit agreement, not from habit. Agreements sometimes require prepayments to be shared pro rata among term loans of the same class. They can also apply prepayments to the nearest maturities first, or in inverse order of maturity.
Structure of the multi-tranche schedule
Give each tranche its own block with an identical layout: opening balance, mandatory repayment, optional repayment, closing balance, rate, and interest. Then add a summary block that totals balances and interest. Identical layouts let you copy a block down and change only the inputs, which reduces errors.
Put the shared inputs in one place: minimum cash, sweep percentage, and the priority order. Each tranche takes only its own terms (rate, scheduled amortization, prepayable flag) from the inputs.
The waterfall across tranches
The waterfall is a chain. Each step uses the cash that remains after the step above it.
Three rules keep the chain correct:
- Mandatory repayments come off every tranche before any optional repayment. Mandatory amounts are contractual. If cash is short, the revolver draws to fund them.
- Each tranche's sweep is capped by its balance after mandatory repayment. Otherwise the model can repay more than is owed and produce a negative balance.
- The sweep percentage applies to the pool left after the revolver is repaid. The revolver is not subject to the percentage, because repaying it is the model's default behavior.
A worked period
Assume these figures, all in millions:
- Opening cash is 30 and the minimum cash balance is 20.
- Cash flow before any debt repayment, after interest and tax, is 130.
- The revolver has 20 drawn.
- Term loan A has 70 outstanding and 10 of scheduled amortization.
- Term loan B has 100 outstanding and 5 of scheduled amortization.
- The senior notes are 150, and they are not prepayable.
Cash available for optional repayment is 30 + 130 − 15 − 20 = 125. The revolver takes 20 first. The remaining 105 goes to term loan A (60 left after mandatory), then to term loan B.
| Tranche | Opening | Mandatory | Sweep | Closing |
|---|---|---|---|---|
| Revolver | 20 | 0 | 20 | 0 |
| Term loan A | 70 | 10 | 60 | 0 |
| Term loan B | 100 | 5 | 45 | 50 |
| Senior notes | 150 | 0 | 0 | 150 |
| Total | 340 | 15 | 125 | 200 |
Total debt falls by 140, which equals mandatory repayments of 15 plus optional repayments of 125. Cash closes at exactly the minimum of 20. Both facts are checks you should build into the model.
The same logic in Python
The function below reproduces the table. Tranches are listed most senior first, and the list order is the repayment order.
def run_period(cash_open, cash_flow, min_cash, revolver_open, tranches, sweep_pct=1.0):
# tranches: (name, opening, scheduled_mandatory, prepayable), most senior first
mandatory = {n: min(s, o) for n, o, s, _ in tranches}
cash = cash_open + cash_flow - sum(mandatory.values())
available = cash - min_cash
if available < 0:
raise ValueError("cash shortfall: draw the revolver first (see revolver_step)")
revolver_repay = min(available, revolver_open)
pool = (available - revolver_repay) * sweep_pct
sweep, closing = {}, {}
for name, opening, _, prepayable in tranches:
after_mandatory = float(opening - mandatory[name])
pay = min(pool, after_mandatory) if prepayable else 0.0
pool -= pay
sweep[name] = pay
closing[name] = after_mandatory - pay
cash_close = cash - revolver_repay - sum(sweep.values())
return revolver_open - revolver_repay, closing, sweep, cash_close
tranches = [
("Term loan A", 70, 10, True),
("Term loan B", 100, 5, True),
("Senior notes", 150, 0, False),
]
revolver, closing, sweep, cash_close = run_period(30, 130, 20, 20, tranches)
print("revolver closing:", revolver)
print("sweep:", sweep)
print("closing balances:", closing)
print("closing cash:", cash_close)Running it prints a revolver balance of 0, sweeps of 60 and 45 on the two term loans, closing balances of 0, 50 and 150, and closing cash of 20.0. Try sweep_pct=0.5. The pool halves to 52.5, term loan A takes 52.5 and keeps a balance of 7.5, term loan B receives nothing, and cash closes at 72.5.
Interest across tranches
Calculate interest tranche by tranche, using each tranche's own rate and balance basis. Then sum the results into a total interest expense line. Do not compute one blended rate and apply it to total debt. A blended rate hides the effect of the sweep, because the sweep removes the cheapest debt only if you say so, and the order might reorder which tranche is outstanding.
A subtle point: the order of repayment is set by seniority, not by cost. Paying down a senior 5% term loan before a subordinated 12% note may look expensive to the borrower. The model still follows the contract, because the borrower has no right to choose. If the agreement allows the company to choose, add a priority input and let the user change it.
If interest uses average balances, each tranche's interest depends on its sweep, and every sweep depends on total interest through cash flow. The circularity is therefore system-wide, not per tranche. One circuit-breaker switch should cut the link for every tranche at once. A switch on each tranche separately leaves loops open and makes errors hard to find.
Edge cases and common errors
- Mixing priority and maturity. A senior tranche that matures later still ranks first in a sweep. Only the credit agreement can reorder this.
- Sweeping into a locked tranche. Notes often have a call premium or a non-call period. Use a prepayable flag, or a period-based lockout, instead of deleting the sweep row.
- Negative balances. Cap every payment with a
MINagainst the balance. Add a check row that flags any closing balance below zero. - Double counting the mandatory amount. The sweep pool must come from cash after mandatory repayments. Subtracting them twice, or not at all, shifts the closing balances.
- Revolver cap. If the draw exceeds the undrawn commitment, cash falls below the minimum. Show a flag instead of letting the model hide the gap.
- Maturity inside the forecast. A tranche that matures during the projection needs its full remaining balance as a mandatory repayment in that period. This can cause a large revolver draw, which is a real refinancing risk the model should surface.
Links to the statements
Each tranche feeds the statements in the same way, so the links scale to any number of tranches:
- Balance sheet: each closing balance goes on its own line, or into a total debt line with a breakdown in the notes. The portion due within a year is often shown as current.
- Income statement: the sum of tranche interest, plus the commitment fee, goes to interest expense.
- Cash flow statement: total repayments (mandatory plus optional) and draws go to financing activities, and cash close ties to the balance sheet.
Exercise
A company has 40 of cash available for optional repayment after the revolver. Term loan A has 25 left after mandatory repayment and is prepayable. Term loan B has 60 left and is prepayable. The sweep percentage is 50%. How much does each term loan receive, and how much cash is left unswept?
Show answer
The sweep pool is 40 × 50% = 20. Term loan A is first in priority, so it receives min(20, 25) = 20 and keeps a balance of 5. Pool is now 0, so term loan B receives 0. The unswept cash is 40 − 20 = 20, which stays on the balance sheet.
Exercise
In the worked period, change the senior notes to prepayable and raise the cash flow before debt repayment to 400. What is the order of repayments, and does any cash remain above the minimum?
Show answer
Available cash is 30 + 400 − 15 − 20 = 395. The revolver takes 20, leaving 375. Term loan A takes 60, term loan B takes 95, and the notes take 150, a total of 305 from the pool. The remaining 70 stays as cash, so closing cash is 20 + 70 = 90. All debt is fully repaid.