Direct Answer
Net interest margin (NIM) is net interest income, interest income minus interest expense, divided by average earning assets, expressed as a percentage. It measures how profitably a bank is lending relative to its cost of funding. NIM is sensitive to interest rate changes, the mix of loans versus lower-yielding securities, and deposit competition: a bank funded more by low-cost checking and savings deposits (versus more expensive CDs or wholesale funding) can typically sustain a higher NIM.
Key Takeaways
- NIM = Net interest income ÷ Average earning assets. Net interest income is interest income minus interest expense; earning assets are the loans and securities that generate interest income.
- It's the core profitability lens for bank lending. NIM isolates how much spread a bank captures between what it earns on assets and what it pays on liabilities, independent of fee income or one-time items.
- Deposit mix matters. A higher proportion of low-cost checking and savings deposits versus CDs or wholesale funding typically supports a higher NIM, because the cost side of the spread is lower.
- Loan mix matters too. A bank with more of its earning assets in loans rather than lower-yielding securities tends to earn a higher NIM, all else equal, though this trades off against credit risk.
- Interest rate sensitivity is bank-specific. Whether rising or falling rates widen or compress a given bank's NIM depends on how quickly its specific assets and liabilities reprice, there's no single universal direction.
- No fixed "good" threshold. What counts as a strong NIM varies by bank size, business model, and rate environment, it's not universal, and the right comparison is trend and peer group, not one number.
How Is Net Interest Margin Calculated?
Net interest margin starts with net interest income, which is the difference between what a bank earns on its interest-generating assets and what it pays on its interest-bearing liabilities:
Net interest income = Interest income − Interest expense
Interest income includes interest and fees earned on loans (commercial, consumer, mortgage) and on securities held in the bank's investment portfolio (Treasuries, agency mortgage-backed securities, municipal bonds, and similar instruments). Interest expense includes what the bank pays on deposits (checking, savings, money market accounts, and certificates of deposit) and on other borrowings, such as wholesale funding from other financial institutions or capital markets.
Net interest margin then divides that net interest income by average earning assets over the same period, expressed as a percentage:
NIM = Net interest income ÷ Average earning assets
Average earning assets, rather than a single point-in-time balance, is used because loan and securities balances fluctuate throughout a reporting period; averaging gives a more representative denominator than a quarter-end or year-end snapshot alone. Earning assets exclude non-interest-generating items such as cash held in vaults, premises, and other fixed assets.
Because NIM nets out both sides of the balance sheet's interest activity into a single ratio, it's the metric analysts and bank management use to track how the spread between asset yields and funding costs is trending over time, independent of changes in balance sheet size.
What Drives NIM: Rates, Loan Mix, and Deposit Competition
Interest rate sensitivity
NIM is sensitive to interest rate changes because a bank's assets and liabilities don't all reprice at the same time or by the same amount. Some loans and securities carry fixed rates that don't adjust when market rates move; others are variable and reprice quickly. The same is true on the funding side, some deposits are highly rate-sensitive (savers move balances to chase yield), while other deposit relationships are comparatively rate-insensitive. Whether a rate move helps or hurts a specific bank's NIM depends on the details of its own asset and liability mix and repricing timing, not on a single rule that applies to every bank.
Loan mix versus securities
Earning assets aren't uniform. Loans generally carry higher yields than lower-risk securities such as government and agency bonds, because loans carry more credit and liquidity risk that the bank is compensated for taking on. A bank with a larger share of earning assets in loans, relative to securities, tends to report a higher NIM, though this comes paired with more credit risk exposure than a securities-heavy balance sheet, so loan mix is a trade-off, not a free source of margin.
Deposit competition and funding cost
The cost side of NIM depends heavily on deposit mix. Checking and savings accounts are typically the cheapest source of funding, many pay minimal or no interest. Certificates of deposit and wholesale funding (borrowing from other institutions or capital markets) are typically more expensive, since depositors and lenders demand a higher rate to lock up funds or lend at scale. A bank that can attract and retain a larger base of low-cost checking and savings deposits can typically sustain a higher NIM than a peer that relies more heavily on CDs or wholesale funding to fund the same asset base, because its cost of funds is structurally lower.
Hypothetical Example, For Education Only
The following numbers are illustrative only and do not describe any real institution.
- Set up the inputs. A hypothetical regional bank reports average earning assets of $10.0 billion for the year, made up of loans and securities.
- Interest income. The bank earns $550 million in total interest income from its loans and securities portfolio over the year.
- Interest expense. The bank pays $150 million in interest expense on its deposits and other borrowings over the same period.
- Net interest income. Net interest income = $550 million − $150 million = $400 million.
- Calculate NIM. NIM = $400 million ÷ $10,000 million = 0.040, or 4.0%.
- Interpret it. This hypothetical bank captures a 4.0% spread, on average, across all of its earning assets. Comparing this figure to the same bank's NIM in prior periods, and to peer banks with a similar deposit and loan mix, is how the number becomes analytically useful, a single period's NIM in isolation says little without that context.
Limitations and Common Mistakes
Treating one NIM figure as universally "good" or "bad"
Because NIM varies by bank size, business model, and rate environment, there is no fixed threshold that applies across the board. A community bank, a large money-center bank, and a bank with a heavy credit-card or commercial-lending focus can have structurally different NIMs without either being "wrong." Comparing a bank's NIM to its own historical trend and to peers with a similar business mix is more informative than comparing it to a single benchmark number.
Ignoring the deposit mix behind the number
Two banks can report similar NIMs for very different reasons, one funded mostly by low-cost checking and savings deposits, another relying more on CDs or wholesale funding but offsetting the higher cost with a higher-yielding loan book. The NIM figure alone doesn't reveal which funding structure is more durable; that requires looking at the underlying deposit and loan mix.
Assuming rate moves affect all banks the same way
Because NIM sensitivity to interest rates depends on each bank's specific mix of fixed- and variable-rate assets and its deposit repricing behavior, assuming that rising or falling rates will move every bank's NIM in the same direction and magnitude is a common analytical error. The actual effect varies bank by bank.
Confusing NIM with a bank's overall profitability
NIM measures only the spread on interest-earning activity. It does not capture fee income, trading revenue, credit losses (loan loss provisions), or operating expenses, all of which also drive a bank's overall profitability. A bank can have a solid NIM and still report weak overall earnings if credit costs or operating expenses are elevated, so NIM should be read alongside other profitability and credit-quality metrics, not as a standalone measure of how well a bank is performing.
FAQ
What is net interest margin (NIM)?
Net interest margin is net interest income (interest income minus interest expense) divided by average earning assets, expressed as a percentage. It measures how profitably a bank is lending relative to its cost of funding, the wider the spread between what a bank earns on loans and securities and what it pays on deposits and borrowings, the higher the margin.
What is a good net interest margin for a bank?
There is no single universal threshold for a "good" NIM, it varies by bank size, business mix, funding structure, and the broader interest rate environment. Figures in the roughly 3% to 4% range are commonly cited for many U.S. commercial banks, but this is not a fixed rule, and the appropriate comparison is a bank's own trend over time and against peers with a similar business model, not a single benchmark number.
Why does deposit mix affect a bank's net interest margin?
A bank funds its lending with a mix of deposits and other borrowings, and each source has a different cost. Checking and savings deposits typically pay little or no interest, while certificates of deposit (CDs) and wholesale funding (borrowing from other institutions or markets) typically cost more. A bank with a larger share of low-cost checking and savings deposits can typically sustain a higher NIM than one that relies more heavily on CDs or wholesale funding, because its cost of funding is lower for a comparable asset yield.
How do interest rate changes affect net interest margin?
NIM is sensitive to interest rate changes because a bank's assets (loans, securities) and liabilities (deposits, borrowings) don't reprice at the same speed or to the same degree. Depending on a bank's specific mix of fixed- and variable-rate assets and its deposit competition dynamics, rising or falling rates can either widen or compress the margin, the direction and magnitude depend on the bank's particular balance sheet structure, not on a single universal pattern across all banks.
How does loan mix versus securities affect NIM?
Earning assets include both loans and lower-yielding securities such as government and agency bonds. Loans generally carry higher yields than securities because they carry more credit and liquidity risk. A bank with a larger proportion of its earning assets in loans versus securities will, all else equal, tend to report a higher net interest margin, though this comes with different credit risk exposure than a securities-heavy balance sheet.
Where can I find a bank's reported net interest margin?
Publicly traded banks report net interest margin in their quarterly (10-Q) and annual (10-K) filings with the SEC, typically in the management discussion and analysis section alongside net interest income and average balance sheet tables. The FDIC also publishes aggregate NIM data across the U.S. banking industry through its quarterly banking profile and institution-level data on individual FDIC-insured banks.
What is the difference between net interest margin and net interest spread?
Net interest spread is the difference between the average yield on earning assets and the average rate paid on interest-bearing liabilities. Net interest margin divides net interest income by average earning assets. The margin is usually the higher figure, because it gets a benefit from funding supplied by non-interest-bearing deposits and equity, which cost nothing in rate terms. That gap is why a bank with a large base of checking accounts can report a margin noticeably above its spread while a wholesale-funded lender cannot.
What is deposit beta and why does it matter for net interest margin?
Deposit beta measures how much of a change in benchmark rates a bank passes through to its depositors. A low beta means deposit costs rise slowly when rates rise, which widens the margin. A high beta means funding cost tracks the benchmark closely, compressing it. Betas are not fixed: they tend to be low early in a tightening cycle and climb as depositors shop for yield, which is why margin expansion in the first rate increases often does not persist through later ones.
What does it mean for a bank to be asset-sensitive or liability-sensitive?
An asset-sensitive bank has assets that reprice faster than its liabilities, so its net interest income tends to rise when rates rise. A liability-sensitive bank is the reverse, with funding repricing faster than loans. Banks disclose this positioning through interest rate sensitivity tables showing modeled net interest income under parallel rate shifts. The disclosure is a model output resting on assumptions about deposit behavior and prepayment speeds, so it indicates direction and rough magnitude rather than a forecast.
References
Disclaimer
This article is for educational and informational purposes only and does not constitute personalized investment, financial, or legal advice. Bank-specific NIM figures and industry ranges change with interest rates, competitive conditions, and each institution's balance sheet. Always verify current data from a bank's own filings and primary regulatory sources. Trading involves risk, including the possible loss of principal.