Why ALM starts with net interest income
Quillmoor Bank grew its earning assets from 7,010 to 7,370 million dollars in a year, and interest rates went up. Its net interest income rose by about 20 million dollars. The board is pleased, but the asset-liability committee (ALCO) asks a harder question: how much of that growth came from the bank actually doing more business, and how much simply came from rates moving in its favour? The answer matters, because rates that went up can come down again, while a bigger loan book stays. That question is the starting point of asset-liability management (ALM), and it is exactly what this free lesson teaches.
This lesson is for treasury and ALM analysts, bank controllers and FP&A staff, finance students preparing for banking or risk exams, and anyone who reads bank results and wants to understand where the earnings come from. You need basic Excel: formulas, cell references and copying a formula across. In the lab above you calculate Quillmoor Bank’s net interest income (NII) and net interest margin (NIM) for FY2025 and FY2026 and split the change in interest income into a volume effect and a rate effect. Below you find the theory in plain words, a fully worked example, two charts, the step-by-step Excel build, and the traps that make NIM numbers wrong.
The core concepts in plain words
A commercial bank borrows money from depositors and other funders and lends it out or invests it at a higher rate. The difference is its main source of income. Three numbers describe it:
- Net interest income (NII) = interest income − interest expense. Interest income comes from loans, securities and interest-bearing reserves. Interest expense goes to depositors, bondholders and other lenders. For most retail and commercial banks NII is the largest revenue line, larger than fees.
- Net interest margin (NIM) = NII / average earning assets. It shows how many cents of net interest the bank earns per dollar of interest-earning assets per year. Earning assets exclude branches, IT, cash in the vault and other assets that earn no interest. That is why NIM is not the same as NII / total assets.
- Net interest spread = yield on earning assets − cost of interest-bearing liabilities. The spread compares two rates. NIM is usually a little higher than the spread, because part of the earning assets is funded by equity and non-interest-bearing deposits that cost nothing.
Why average balances? Interest is earned over the whole year, not on the last day. A loan book that grows from 7,000 to 7,700 during the year earned interest on roughly the average of the two, not on 7,700. Banks use daily or monthly averages in practice. In the lab the average balances are given, so you can concentrate on the logic.
The rate/volume split
Interest income is a balance times a rate: Interest = average balance × yield. If either changes, income changes. A rate/volume analysis asks which of the two caused the change. With the convention used in this course:
- Volume effect = (new balance − old balance) × old rate. This is the income the bank would have gained from growth alone, if rates had stayed where they were.
- Rate effect = (new rate − old rate) × new balance. This is the extra income from the rate change, applied to the balance the bank actually had in the new year.
With this convention the two effects add up exactly to the total change, with nothing left over. You can check it with algebra: new balance × new rate − old balance × old rate = (new balance − old balance) × old rate + (new rate − old rate) × new balance. Some banks use the opposite convention (volume at the new rate, rate at the old balance) or show a separate “mix” term for the part that is due to both changing at once. All three are valid if they are used consistently and labelled clearly. What matters is that the split adds up and that everyone at ALCO reads it the same way.
The same split works for the expense side: the volume effect is the growth in interest-bearing liabilities times the old cost of funds, and the rate effect is the change in cost times the new balance. NII changes by the income change minus the expense change.
Why the split matters for interest rate risk
The rate/volume split is more than an accounting exercise. It is the first hint of how sensitive a bank’s earnings are to interest rates. Quillmoor’s asset yield rose by 40 basis points while its funding cost rose by 32. In ALM language the bank behaved, over this year, in a mildly asset-sensitive way: its assets repriced a little faster or further than its liabilities, so rising rates helped NII. A liability-sensitive bank, for example one that funds long fixed-rate mortgages with short deposits, would show the opposite pattern: rising rates push its funding cost up faster than its yields, and NII falls.
One year of history cannot tell you how the bank will react next time, because deposit behaviour, competition and the mix of fixed and floating loans all change. That is why ALM teams move from looking back (this lesson) to looking forward: they map when each asset and liability reprices, shock the yield curve and measure the effect on future NII and on the economic value of the balance sheet. The rest of this course follows exactly that path.
Worked example: Quillmoor Bank FY2025 vs FY2026
These are the lab’s inputs and results, in USD millions. Rows 7 and 8 are given formulas: =B3*B4 for interest income and =B5*B6 for interest expense.
| Quillmoor Bank · USD m | FY2025 | FY2026 | Excel (FY2026 column) |
|---|---|---|---|
| Average total assets | 7,230 | 7,600 | input |
| Average earning assets | 7,010 | 7,370 | input |
| Yield on earning assets | 5.38% | 5.78% | input |
| Average interest-bearing liabilities | 6,540 | 6,870 | input |
| Cost of interest-bearing liabilities | 2.05% | 2.37% | input |
| Interest income | 377.14 | 425.99 | =C3*C4 |
| Interest expense | 134.07 | 162.82 | =C5*C6 |
| Net interest income (NII) | 243.07 | 263.17 | =C7-C8 |
| Net interest margin (NIM) | 3.47% | 3.57% | =C9/C3 |
| Net interest spread (for comparison) | 3.33% | 3.41% | =C4-C6 |
NII grew by 263.17 − 243.07 = 20.10 million dollars, and NIM improved by about 10 basis points, from 3.47% to 3.57%. If you divided by total assets instead, you would get 3.36% and 3.46%: lower, and not the NIM. Notice also that the spread (3.33% and 3.41%) is below the NIM, because the bank has more earning assets (7,370) than interest-bearing liabilities (6,870). The 500 million difference is funded by equity and non-interest-bearing deposits.
Now the rate/volume split. Rows 13 and 14 of the lab:
| Change FY2025 → FY2026 | Interest income | Interest expense | Formula (income) |
|---|---|---|---|
| Volume effect (Δ balance × FY2025 rate) | +19.37 | +6.77 | =(C3-B3)*B4 |
| Rate effect (Δ rate × FY2026 balance) | +29.48 | +21.98 | =(C4-B4)*C3 |
| Total change | +48.85 | +28.75 | =B13+B14 |
| Change in NII | +20.10 | =B15-C15 |
Read the story behind the numbers. Interest income rose by 48.85 million, and 29.48 of it, about 60%, came from higher yields rather than growth. But the bank’s funding also became more expensive: the rate effect on interest expense is 21.98 million. Netting the two, rates added only about 7.5 million (29.48 − 21.98) to NII, while volume added about 12.6 million (19.37 − 6.77). So the growth is healthier than the headline suggests: most of the NII increase came from a bigger balance sheet. The final check is that B16 (20.10) equals C9 − B9 (263.17 − 243.07). If it does not, one of the four effects uses the wrong balance or rate.
How to build it in Excel, step by step
The cell addresses match the lab, with FY2025 in column B and FY2026 in column C.
- Enter the average balances and rates in rows 2 to 6. Format rates as percentages with two decimals (
Ctrl+Shift+%, then Home › Number › Increase Decimal). Rates must be stored as decimals: 5.38% is 0.0538. - Interest income in B7:
=B3*B4. Interest expense in B8:=B5*B6. Select B7:C8 and pressCtrl+Rto fill right. - NII in B9:
=B7-B8. NIM in B10:=B9/B3. Select B9:C10 and pressCtrl+R. Make sure B10 divides by row 3 (earning assets), not row 2. - Volume effect on interest income in B13:
=(C3-B3)*B4. The balance change uses the old FY2025 yield. - Rate effect on interest income in B14:
=(C4-B4)*C3. The rate change uses the new FY2026 balance. - Do the same for expense in column C:
=(C5-B5)*B6and=(C6-B6)*C5(given in the lab). - Totals in row 15:
=B13+B14and=C13+C14. Change in NII in B16:=B15-C15. - Add a check cell next to it:
=ROUND(B16-(C9-B9),6)=0should return TRUE. A reconciliation check like this is standard in every ALCO pack. - For a bridge chart like Figure 1, list the start value, the four effects (expense effects with a minus sign) and the end value, select them and use Insert › Charts › Waterfall (Excel 2016 and later). Right-click the first and last bar and choose Set as Total.
- Optional: show NIM changes in basis points with
=(C10-B10)*10000, which returns about 10 bp. ALCO packs almost always talk in basis points.
F2 to edit a cell and see its precedents highlighted, and Formulas › Trace Precedents to draw arrows to the inputs. It is the fastest way to check that the volume effect really points at the old rate and the rate effect at the new balance.
Common mistakes and how to spot them
- Dividing by total assets. NII / total assets is a return-on-assets style ratio, not the NIM. Here it gives 3.46% instead of 3.57%. Spot it by checking the denominator row label.
- Dividing by liabilities. NII / interest-bearing liabilities (3.83% here) has no standard meaning. NIM always uses earning assets.
- Using period-end balances. Interest is earned over the year, so year-end balances overstate a growing bank’s income. Spot it when calculated interest income does not match the reported figure.
- Mixing conventions in the split. Volume at the old rate and rate at the old balance leaves an unexplained residual. If the volume and rate effects do not add up to the total change, check which balance and rate each one uses.
- Ignoring the expense side. Higher rates raise income and funding cost. Reporting only the income rate effect (+29.5) overstates how much rates helped NII (+7.5 net).
- Confusing percent and basis points. A NIM moving from 3.47% to 3.57% is +10 bp, or a relative change of about 3%. Say which one you mean.
- Rates typed as whole numbers. 5.38 instead of 5.38% makes interest income 100 times too large. Format the input cells as percent first.
Quick reference: formulas and shortcuts used
| Item | Formula or shortcut | Lab example |
|---|---|---|
| Interest income | balance × yield | =C3*C4 |
| Net interest income | income − expense | =C7-C8 |
| Net interest margin | NII / average earning assets | =C9/C3 |
| Net interest spread | yield − cost of funds | =C4-C6 |
| Volume effect | Δ balance × old rate | =(C3-B3)*B4 |
| Rate effect | Δ rate × new balance | =(C4-B4)*C3 |
| Change in basis points | Δ rate × 10,000 | =(C10-B10)*10000 |
| Reconciliation check | ROUND to avoid floating-point noise | =ROUND(B16-(C9-B9),6)=0 |
| Fill right / fill down | Ctrl+R / Ctrl+D | Select B9:C10, Ctrl+R |
| Percent format | Ctrl+Shift+% | Rows 4, 6, 10 |
| Waterfall chart | Insert › Charts › Waterfall | NII bridge |
Real-world uses
- Monthly ALCO pack. Treasury presents NII, NIM and a rate/volume bridge every month, so the committee can see whether earnings come from growth, from pricing or from the rate cycle.
- Budgeting and forecasting. FP&A builds next year’s NII from planned balance growth and assumed rates. The rate/volume split makes it easy to explain the variance between budget and actual afterwards.
- Deposit pricing decisions. When market rates rise, the bank decides how much to pass on to depositors. The expense rate effect shows directly what each choice costs in NII.
- Equity research and investor relations. Analysts compare NIM across banks and ask management to explain changes. Many banks publish a table of average balances, interest and yields in their annual reports, and the same calculation applies to it.
- Supervisory and internal interest rate risk work. NII is the earnings measure behind interest rate risk in the banking book (IRRBB), which the later lessons of this course model with gaps, shocks and economic value of equity.
What you will build in the rest of this course
Lesson 1 is free. The other 19 labs are part of the full course, unlocked with a one-time payment of $9.90. You stay with Quillmoor Bank and move from explaining past earnings to measuring the risk in future earnings and in the balance sheet.
Repricing Gap by Time Bucket & the Cumulative Gap. You sort assets and liabilities into six repricing buckets, calculate the gap and the cumulative gap and the gap ratio, and chart both in one combo chart: the classic first look at rate risk.
NII Sensitivity: ±200 bp Parallel Rate Shock. You estimate how next year’s NII changes if all rates move up or down by 200 basis points, including the realistic assumption that deposit rates follow only partly.
Duration of Assets & Liabilities and the Duration Gap. You calculate market-value-weighted durations, the leverage-adjusted duration gap and the approximate loss of equity value in a +200 bp shock.
Economic Value of Equity: Full Revaluation under ±200 bp. You discount all asset and liability cash flows at the base curve and at shocked curves, measure the change in EVE and compare the worst case with Tier 1 capital.
Liquidity Coverage Ratio: HQLA, Haircuts & Run-off Rates. You value liquid assets after haircuts, apply run-off rates to funding, cap the inflows and calculate the LCR.
Net Stable Funding Ratio: ASF & RSF Factors. You weight funding and assets with stable-funding factors, calculate the NSFR and how much stable funding is missing for an internal target.
Funds Transfer Pricing: FTP Margin by Product. You look up matched-maturity FTP rates, calculate each product’s margin and contribution and chart which products really earn the bank’s NII.
Summary
NII is interest income minus interest expense, NIM is NII divided by average earning assets, and a rate/volume analysis splits any change into growth at the old rate and rate changes on the new balance, so that both effects add up exactly. For Quillmoor Bank NII rose from 243.1 to 263.2 million dollars and NIM from 3.47% to 3.57%. Higher rates lifted income by 29.5 million, but higher funding costs took 22.0 million of it back, so most of the net improvement came from volume.
Scroll up and try it in the free lab: four tasks, instant feedback from the Coach, and a check cell that tells you when your rate/volume split reconciles.
Frequently asked questions
How do you calculate net interest margin (NIM)?
NIM = net interest income / average earning assets. Net interest income is interest income minus interest expense, and earning assets are loans, securities and other assets that earn interest.
What is the difference between NIM and net interest spread?
The spread is the yield on earning assets minus the cost of interest-bearing liabilities. NIM divides net interest income by earning assets, so it also captures assets funded by equity and non-interest-bearing deposits, which usually makes NIM a bit higher than the spread.
Why does NIM use earning assets instead of total assets?
Branches, IT, cash in the vault and other non-earning assets produce no interest. Dividing by earning assets measures how well the interest-earning part of the balance sheet is priced.
What is a rate/volume analysis?
It splits the change in interest income or expense into a volume effect (change in balance times the old rate) and a rate effect (change in rate times the new balance). With this convention the two parts add up exactly to the total change.
How do I make a rate/volume analysis add up exactly in Excel?
Use the old rate for the volume effect and the new balance for the rate effect, for example =(C3-B3)*B4 and =(C4-B4)*C3. Then check that their sum equals new interest minus old interest.
What does ALM mean in banking?
Asset-liability management is the management of the risks that arise from the mismatch between a bank’s assets and liabilities, mainly interest rate risk and liquidity risk. It is usually overseen by the asset-liability committee (ALCO).
Keep going: Bank ALM: Interest Rate Risk, Gap Analysis & Liquidity Ratios
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time €9.90.
- Repricing Gap by Time Bucket & the Cumulative Gap
- NII Sensitivity: ±200 bp Parallel Rate Shock
- Duration of Assets & Liabilities and the Duration Gap
- Economic Value of Equity: Full Revaluation under ±200 bp
- Liquidity Coverage Ratio: HQLA, Haircuts & Run-off Rates
- Net Stable Funding Ratio: ASF & RSF Factors
- Funds Transfer Pricing: FTP Margin by Product
- EVE under Non-Parallel Shocks: Steepener, Flattener & Short-Rate Scenarios
- Non-Maturity Deposits: Core Balance, Volatile Share & Behavioural Life
- Mortgage Prepayments: CPR, Scheduled Runoff & the Cash-Flow Profile
- Effective Duration & Convexity: Why Duration Misses Large Shocks
- Basis Risk & Rate Floors in the NII Simulation
- Gradual Rate Ramps: Monthly NII Forecast vs an Instant Shock
- Liquidity Maturity Ladder, Cumulative Gap & Counterbalancing Capacity
- Liquidity Stress Test: Weekly Run-Off & the Survival Horizon
- LCR Level 2 Caps: When Covered and Corporate Bonds Stop Counting
- FTP Curve Interpolation & Behavioural Tenors for Current Accounts
- ALCO Limit Monitoring & Sizing an EVE Hedge
- Capstone: Quarterly ALCO Dashboard for Quillmoor Bank