HomeGlossary › Net Interest Margin

Net Interest Margin (NIM)

Net interest margin (NIM) is the difference between the interest income a bank earns on its loans and investments and the interest it pays on deposits and borrowings, expressed as a percentage of average earning assets. It’s the single most important profitability metric for commercial banks — the equivalent of gross margin for an industrial company.

The NIM Formula

Net Interest Margin NIM = (Interest Income − Interest Expense) ÷ Average Earning Assets × 100

For example, if a bank earns $4 billion in interest income, pays $1.5 billion in interest expense, and has $100 billion in average earning assets, its NIM is ($4B − $1.5B) ÷ $100B = 2.50%.

Earning assets include loans, mortgage-backed securities, Treasury bonds, and other interest-bearing investments. Non-earning assets like cash in the vault or bank premises are excluded.

What Drives Net Interest Margin

DriverImpact on NIMWhy It Matters
Federal funds rateHigher rates generally expand NIMLoan rates reprice faster than deposit rates in rising-rate environments
Yield curve shapeSteeper curve → wider NIMBanks borrow short (deposits) and lend long (mortgages) — a steeper curve widens the spread
Deposit mixMore non-interest-bearing deposits → higher NIMFree deposits (like checking accounts) cost nothing, boosting the spread
Loan mixHigher-yielding loans → higher NIMCredit cards and small business loans yield more than mortgages or corporate loans
CompetitionMore competition → compressed NIMBanks competing for deposits raise rates paid; competing for loans lowers rates charged
Asset sensitivityDetermines how fast NIM responds to rate changesAsset-sensitive banks benefit more from rising rates; liability-sensitive banks benefit from falling rates

NIM Benchmarks by Bank Type

Bank TypeTypical NIM RangeWhy
Large money-center banks2.0% – 2.8%More wholesale funding, lower-yielding corporate loans
Regional banks2.8% – 3.5%Better deposit mix, more commercial real estate loans
Community banks3.2% – 4.0%High proportion of relationship deposits, local lending premiums
Credit card banks8.0% – 12.0%+Extremely high-yield lending offset by higher credit losses

NIM and the Interest Rate Cycle

Understanding how NIM behaves across the rate cycle is essential for bank investors:

Early rate hikes. NIM typically expands. Loan rates increase quickly (especially variable-rate loans), while deposit rates lag because customers are slow to demand higher rates and banks drag their feet on raising them. This is the sweet spot for bank profitability.

Late-cycle rate hikes. NIM expansion slows or reverses. Deposit competition intensifies, customers move money from non-interest-bearing checking to higher-yielding CDs, and the yield curve flattens or inverts — all of which compress the spread.

Rate cuts. NIM usually compresses initially. Loan rates drop faster than banks can reduce deposit costs, especially if they locked in higher CD rates. Eventually, as funding costs reset lower, NIM stabilizes.

Analyst Tip
Don’t just look at a bank’s current NIM — look at the trend over 4–8 quarters and compare it to the interest rate environment. A bank whose NIM is expanding while rates are flat is either improving its deposit franchise or shifting into higher-yielding (riskier) loans. The footnotes on “rate sensitivity” or “interest rate gap analysis” in the 10-K tell you how NIM will move when rates change.

Limitations of NIM

NIM doesn’t tell the whole story. A bank with a high NIM might be taking excessive credit risk — lending to riskier borrowers at higher rates. If those loans default, the apparent profitability vanishes. Always pair NIM analysis with NPL ratios, provision for loan losses, and net charge-off rates.

NIM also ignores non-interest income — fees, trading revenue, and wealth management. For diversified banks, net interest income might be only 60% of total revenue, so NIM alone doesn’t capture total profitability. Use ROE and ROA alongside NIM for a complete picture.

Key Takeaways

  • NIM is the most important profitability metric for commercial banks — it measures the core spread between earning interest and paying interest.
  • The federal funds rate, yield curve shape, and deposit mix are the primary drivers.
  • Typical NIM ranges from ~2% for large banks to ~3.5% for community banks and 8%+ for credit card lenders.
  • NIM tends to expand early in a rate-hike cycle and compress late in the cycle or during rate cuts.
  • Always pair NIM with credit quality metrics — a high NIM built on risky loans can collapse quickly when defaults rise.

Frequently Asked Questions

What is net interest margin?

Net interest margin is the percentage difference between a bank’s interest income (from loans and investments) and interest expense (paid to depositors and lenders), divided by average earning assets. It measures how profitably a bank deploys its interest-bearing resources.

What is a good net interest margin?

For most U.S. commercial banks, a NIM of 2.5% to 3.5% is considered healthy. Community banks typically run higher (3.0–4.0%), while large money-center banks average lower (2.0–2.8%). Context matters — compare within peer groups.

How do interest rates affect NIM?

Rising rates generally expand NIM because loan rates increase faster than deposit costs. A steeper yield curve also helps since banks borrow short-term and lend long-term. However, sustained high rates eventually compress NIM as deposit competition catches up.

What is the difference between NIM and net interest income?

Net interest income is the dollar amount (interest earned minus interest paid). NIM expresses this as a percentage of average earning assets, making it comparable across banks of different sizes. A $1 trillion bank and a $1 billion bank can have the same NIM but vastly different net interest income.

Why do credit card banks have such high NIMs?

Credit card banks charge 15–25%+ interest rates on revolving balances while funding themselves at much lower rates. The wide spread produces NIMs of 8–12%+. However, this is partially offset by much higher credit losses — cardholders default at far higher rates than mortgage or commercial loan borrowers.