Blog · Finance metrics and formulas · Commercial banking
Net interest margin is a bank's net interest income divided by its average earning assets. This page gives the formula and the inputs from the call report, works one bank through yields, funding costs, NIM and net interest spread, shows what a deposit rate rise does to it, proves the figure two ways, and sets it against FDIC industry data by bank size.
Net interest margin (NIM) is a bank's net interest income, interest earned minus interest paid, divided by its average earning assets. A bank that earns $65.70 million of interest and pays $22.35 million on $1,150 million of average earning assets has net interest income of $43.35 million and a NIM of 3.77%. The US industry ran 3.32% in the second quarter of 2026.
Net interest income (NII) = Interest income − Interest expense
NIM = NII / Average earning assets
Earning assets are the assets that pay interest: loans and leases, investment securities, balances at the Federal Reserve and other banks, and fed funds sold. Cash in the vault, premises, goodwill and other non-earning assets are left out. The FDIC defines NIM in the Quarterly Banking Profile as interest and dividends earned on interest-bearing assets minus interest paid to depositors and other creditors, "expressed as a percentage of average earning assets."
NIM is an annual rate. For a quarter, annualize the net interest income first:
Annualized quarterly NIM = Quarterly NII × (Days in year / Days in quarter) / Average earning assets
A bank with $10.9 million of NII in the second quarter of 2026 (91 days) and $1,150 million of average earning assets has a NIM of 10.9 × 365 / 91 / 1,150 = 3.80%.
Average balances and the interest earned or paid on each category, for the same period. Every insured US bank reports both in its quarterly call report: interest income and expense in Schedule RI, and quarterly averages of the main asset and liability categories in Schedule RC-K. A bank's own call reports and its Uniform Bank Performance Report are public in the FFIEC Central Data Repository. Inside the bank, the same figures come from the general ledger and the loan and deposit systems; listed bank holding companies also publish an average balance sheet with yields and rates in their annual report.
One year, average balances, in USD millions:
| Category | Average balance | Rate | Interest |
|---|---|---|---|
| Loans | 820 | 6.40% | 52.48 |
| Investment securities | 260 | 3.90% | 10.14 |
| Balances at the Federal Reserve and fed funds sold | 70 | 4.40% | 3.08 |
| Earning assets | 1,150 | 5.71% | 65.70 |
| Interest-bearing deposits | 780 | 2.30% | 17.94 |
| Borrowings | 90 | 4.90% | 4.41 |
| Interest-bearing liabilities | 870 | 2.57% | 22.35 |
Step by step:
In Excel, with balances in B2:B4 and B6:B7 and rates in C2:C4 and C6:C7:
=(SUMPRODUCT(B2:B4,C2:C4)-SUMPRODUCT(B6:B7,C6:C7))/SUM(B2:B4)
Spread compares two rates: what earning assets yield and what interest-bearing funding costs. It ignores the funding that costs nothing. Here, earning assets of 1,150 are funded by only 870 of interest-bearing liabilities; the other 280 come from non-interest-bearing deposits and equity. That free funding earns the asset yield with no matching expense, which is why NIM is higher than spread:
NIM = Spread + Cost of interest-bearing liabilities × Free funding / Earning assets
3.14% + 2.57% × 280 / 1,150 = 3.14% + 0.63% = 3.77%
The more operating accounts a bank holds, the wider that gap. It is also why a bank that loses non-interest-bearing deposits loses margin even when no rate changes.
Rate cycles show all four at once. The Federal Reserve's May 2023 Supervision and Regulation Report noted that "between year-end 2021 and year-end 2022, the industry net interest margin increased by nearly 1 percent" as interest income grew; the deposit outflows and rising funding costs that followed are covered on the loan-to-deposit ratio page.
Two ties before anyone reads the ratio:
From the FDIC Quarterly Banking Profile for the second quarter of 2026, the industry NIM was 3.32%, up 1 basis point from the first quarter: the yield on earning assets was 5.35% and the cost of funding earning assets 2.03%. Community banks ran 3.81%. By asset size (Table III-A, second quarter 2026):
| Asset size | NIM |
|---|---|
| Less than $100 million | 3.99% |
| $100 million to $1 billion | 4.02% |
| $1 billion to $10 billion | 3.93% |
| $10 billion to $250 billion | 3.95% |
| More than $250 billion | 2.94% |
| All insured institutions | 3.32% |
For full years the same table (I-A) gives 2.54% in 2021, 2.95% in 2022, 3.30% in 2023, 3.22% in 2024 and 3.30% in 2025. The largest banks hold more securities, central bank balances and trading assets, and fund more of their books in wholesale markets, so their margins sit well below community banks'. Note that the FDIC makes no adjustment for tax-exempt income; many US banks report NIM on a fully taxable-equivalent basis in their own results, which runs a little higher.
A bank's NIM is the sum of its relationships: some bring deposits that fund others' loans, and some, the lending-only relationships, draw on the balance sheet without funding it. Covirage's tools compute balances, interest and margin per relationship from your own exports and split the change into balance, rate and mix; the external AI model explains it and never does the arithmetic. See Covirage for commercial banking, and relationship KPIs for commercial banking for the measures that sit under NIM. For the ratios beside it, see return on assets and financial ratios; for the same balance, rate and mix split applied to revenue, price volume mix.
The FDIC Quarterly Banking Profile put the US industry NIM at 3.32 percent in the second quarter of 2026, and community banks at 3.81 percent. Banks with more than $250 billion of assets ran 2.94 percent. Compare with peers of the same size and business model.
Net interest spread is the average yield on earning assets minus the average rate paid on interest-bearing liabilities. NIM divides net interest income by earning assets, so it also captures the benefit of funding from non-interest-bearing deposits and equity. NIM is usually higher than spread.
It depends on how fast assets and liabilities reprice. Banks with floating-rate loans and slow-moving deposit rates usually see NIM rise at first. As deposit rates catch up, measured by deposit beta, or as customers move to higher-paying accounts, the gain narrows or reverses.
No. Net interest income is an amount: interest earned minus interest paid. Net interest margin is a ratio: net interest income divided by average earning assets. NII can grow while NIM falls, if the balance sheet grows faster than income.