What causes net interest margin to increase or decrease?

NIM moves up or down based on how much a bank earns on its loans and investments versus what it pays for deposits and other funding. The biggest external driver is the interest rate environment, including the shape of the yield curve, while deposit competition and the bank's own asset and liability mix determine how rate changes flow through to margin.

Net interest margin (NIM) measures the gap between what a bank earns on its loans and investments and what it pays for deposits and borrowings, expressed as a percentage of earning assets. When that gap widens, NIM rises. When it narrows, NIM falls.

Several forces push NIM in either direction, some driven by the broader economy and others by the bank's own decisions:

  • Interest rates and the shape of the yield curve set the baseline environment for all banks
  • How quickly a bank's assets and liabilities reprice determines whether rate changes help or hurt in the short term
  • Deposit mix and competition drive the cost side of the equation
  • Loan composition, securities holdings, and credit quality shape the revenue side
  • Management's strategic choices around pricing, duration, and growth tie it all together

Each of these works differently, and the interplay between them is what makes NIM analysis more involved than it first appears.

Interest Rates and the Yield Curve

The interest rate environment and yield curve shape are the most powerful external forces acting on NIM. Banks earn money on the spread between long-term and short-term rates because they generally fund themselves with shorter-duration deposits and lend at longer durations.

When the yield curve is steep, with long-term rates running 200 or more basis points above short-term rates, this natural spread works strongly in banks' favor. A bank paying 1% on deposits and lending at 5% on five-year commercial loans captures a wide margin. When the curve flattens or inverts, that structural advantage shrinks or disappears entirely.

The absolute level of rates matters independently of the curve shape. In a very low-rate environment, banks run into a practical floor on deposit costs. Most banks won't charge depositors negative rates, so deposit costs bottom out near zero while asset yields keep falling as loans reprice downward. This squeezes NIM from the asset side even if the curve shape hasn't changed much.

How Balance Sheets Reprice at Different Speeds

Rate changes don't hit every part of a bank's balance sheet at once. This lag is one of the biggest short-term drivers of NIM movement, and it catches many investors off guard.

When rates rise, floating-rate loans (often tied to prime or SOFR) reprice within days or weeks. Fixed-rate deposits and CDs, however, don't reprice until maturity. This mismatch means the asset side of the balance sheet earns more while the liability side stays cheap temporarily, widening NIM.

The benefit doesn't last. Over the following quarters, as CDs mature and depositors demand higher rates, the cost side catches up. Banks often see their strongest NIM readings 6-12 months into a rising rate cycle, then watch margins compress as deposit costs climb. The reverse happens when rates fall: asset yields drop first while deposit costs remain elevated, compressing NIM before eventually stabilizing.

Banks with a higher share of floating-rate loans are called "asset-sensitive" because their earnings benefit quickly from rising rates. Banks with more fixed-rate assets and variable-rate funding are "liability-sensitive" and benefit more in falling-rate environments. Understanding where a bank falls on this spectrum tells you a lot about how its NIM will behave as rates change.

Deposit Costs and Competition

Deposits are the largest funding source for most banks, so deposit cost dynamics often have more impact on NIM than anything happening on the asset side.

Banks with large non-interest-bearing deposit bases enjoy a structural advantage. These accounts, typically business operating accounts and personal checking accounts, carry zero interest cost. A bank funding 30% of its assets with non-interest-bearing deposits starts with a meaningful cost edge over a competitor at 15%. That advantage flows directly into NIM.

Competition for deposits is where things get interesting. When rates rise and money market funds, Treasury bills, and online banks start offering attractive yields, depositors move their money. To retain funding, banks raise their own deposit rates, and NIM compresses.

The speed at which banks pass rate increases through to depositors is measured by "deposit beta." A deposit beta of 40% means a bank raises deposit rates by 40 basis points for every 100 basis points of Fed rate increases. Banks with sticky, relationship-based deposit franchises tend to have lower betas and hold onto their NIM advantage longer.

The mix shift between account types matters just as much as the rate paid on each type. When depositors move balances from checking accounts into higher-yielding savings or CDs, the bank's average cost of funding rises even if it didn't change the rate on any single product. This migration from non-interest-bearing to interest-bearing categories is one of the most closely watched dynamics during tightening cycles.

Asset Yields and Credit Quality

On the revenue side, two factors determine how much a bank earns on its balance sheet: what types of assets it holds and how those assets are performing.

Loan mix has a direct impact on yield. Commercial real estate and small business loans typically carry spreads 100-200 basis points wider than residential mortgages or large corporate credit facilities. Consumer credit cards and specialty finance products carry even higher yields. A bank that shifts its portfolio toward higher-yielding loan categories can expand NIM, though this usually means accepting higher credit risk.

The securities portfolio is often overlooked but can meaningfully drag on NIM. Banks hold securities (mostly government and agency bonds) for liquidity, and these investments yield significantly less than loans. A bank with 30% of assets in low-yielding securities earns a lower overall asset yield than one with 20% in securities and the rest in loans. During periods of low rates, banks that loaded up on long-duration bonds at thin yields may find those securities weighing down NIM for years.

Credit quality also affects NIM in a way that doesn't get enough attention. When a loan goes on non-accrual status (meaning the bank stops recognizing interest income because the borrower has stopped paying), the earning asset base stays the same but interest income drops. A spike in non-accrual loans can reduce NIM even if nothing else about the rate environment or pricing has changed. Higher credit losses also push banks toward safer, lower-yielding assets, creating a secondary drag on margins.

What Management Can Control

While rates and competition are external forces, bank management teams have real levers to influence NIM.

Duration positioning is the most consequential choice. By investing in short-term or long-term securities, management determines how sensitive the bank is to rate changes. A bank that extends duration locks in higher yields for longer but takes on more interest rate risk if rates move further up. Staying short sacrifices current yield for flexibility to reinvest at higher rates later.

Deposit pricing strategy directly affects the cost side. Some banks compete aggressively for deposits with high rates, accepting lower NIM to grow the balance sheet. Others hold pricing discipline, risking some deposit outflow to preserve margins. The right approach depends on the bank's liquidity position, growth goals, and local market dynamics.

Loan growth targets and credit standards shape the asset mix over time. A bank pushing hard into commercial real estate will see higher asset yields but increased concentration risk. One growing its residential mortgage book builds a safer portfolio with thinner margins. These choices compound over quarters, gradually reshaping the NIM profile.

Tracking NIM Over Time

When analyzing a bank's NIM over time, a few principles help separate meaningful signals from noise.

Quarter-to-quarter NIM changes of 5-10 basis points are common and not always significant on their own. Look instead at the direction over 3-4 quarters to identify a real trend. A bank whose NIM has compressed by 3 basis points each quarter for a year is telling a different story than one that dropped 12 basis points in a single quarter due to a one-time event.

Compare NIM movements against peers in the same market and size category. If every community bank in a region is seeing NIM compression, the driver is likely external (rates, competition). If one bank's NIM is falling while its peers hold steady, the issue is more likely internal: pricing decisions, asset mix shifts, or emerging credit problems.

Pay attention to management commentary on earnings calls about deposit pricing pressure, loan pipeline yields, and expected repricing. These forward-looking indicators often tell you more about where NIM is heading than the reported number itself.

Related Metrics

Related Valuation Methods

Related Questions

Key terms: Earning Assets, Cost of Funds, Cost of Deposits, Net Interest Spread, Deposit Beta, Non-Accrual, Asset Sensitivity, Yield Curve — see the Financial Glossary for full definitions.

Learn more about net interest margin and how it drives bank profitability