Net Interest Margin Explained: How Banks Make Money From the Yield Curve

Banks make money by charging borrowers more interest than they pay for funding.

The size of that difference is closely related to net interest margin, or NIM.

For investors, net interest margin is one of the simplest ways to understand whether a bank’s core lending business is becoming more—or less—profitable.

The basic idea is:

interest earned on loans and securities − funding costs = net interest income

But interest rates and the yield curve can change that equation quickly.

What Is Net Interest Margin?

A bank receives interest from assets such as:

  • mortgages
  • business loans
  • credit cards
  • government bonds

It also pays interest on funding such as:

  • customer deposits
  • savings accounts
  • certificates of deposit
  • wholesale borrowing

Net interest margin compares the bank’s net interest income with its interest-earning assets.

Higher NIM generally means the bank is earning a wider spread.

A Simple Example

Imagine a bank has $100 billion of interest-earning assets.

Those assets earn an average:

5% = $5 billion of interest

The bank’s funding costs:

2% = $2 billion

Simplified net interest income:

$5 billion − $2 billion = $3 billion

That represents roughly a:

3% interest spread

If lending yields increase while funding costs remain stable, profitability can rise.

But if deposit costs increase faster, margins can shrink.

Why the Yield Curve Matters

The yield curve compares interest rates across different maturities.

Normally:

short-term rates < long-term rates

That can help banks because some funding is short-term while many loans have longer maturities.

For example:

Deposits cost 2%

Long-term loans earn 5%

The spread is attractive.

But if the yield curve becomes flat or inverted:

short-term funding costs can approach—or exceed—long-term yields

That can put pressure on net interest margin.

Banks Do Not Simply “Borrow Short and Lend Long”

That phrase is useful, but reality is more complicated.

Banks hold many different assets and funding sources.

Some loans have floating rates.

Some deposits pay almost no interest.

Other deposits reprice quickly.

A bank’s profitability therefore depends on how fast its assets and liabilities respond to changing interest rates.

This is called interest-rate sensitivity.

Why Rising Rates Can Help—or Hurt

Imagine lending rates rise:

4% → 6%

But deposit costs rise only:

1% → 2%

The bank’s spread expands.

That can be positive for earnings.

Now imagine deposits become highly competitive:

Loan yield: 6%

Deposit cost: 4.5%

The spread becomes much smaller.

So rising rates alone do not tell investors whether banks are becoming more profitable.

The key is:

Which side reprices faster?

Why an Inverted Yield Curve Matters

An inverted yield curve occurs when short-term rates are above longer-term rates.

That can create problems because:

funding becomes expensive while long-term lending yields may not rise enough

It can also signal expectations of slower economic growth.

For banks, that creates two potential risks:

lower margins + weaker loan demand

If the economy deteriorates, credit losses may also rise.

Expected Return vs Risk

Strong net interest margins can support higher bank earnings.

But investors should never examine NIM alone.

Positive SignalRisk
Rising loan yieldsHigher deposit costs
Cheap depositsDeposit outflows
Steeper yield curveEconomic slowdown
Loan growthHigher defaults
Expanding NIMCredit deterioration

A bank can have excellent margins today but still face problems if borrowers begin defaulting.

That is why expected return must be balanced against funding, credit and interest-rate risk.

What Investors Should Watch

When analysing bank stocks, look at:

Net interest margin — Is it expanding or shrinking?

Deposit costs — Are customers demanding higher rates?

Loan growth — Is the bank finding profitable lending opportunities?

Yield curve — Are long-term yields sufficiently above short-term rates?

Credit losses — Are borrowers still performing?

Together, these numbers reveal far more than interest rates alone.

The Bottom Line

Net interest margin explains the economics at the heart of banking.

The simplest framework is:

asset yield − funding cost = banking spread

A favorable yield curve and cheap deposits can strengthen profitability.

But rising funding costs, an inverted yield curve or worsening credit quality can quickly reduce the benefit.

For investors, the question is therefore not simply:

“Are interest rates high?”

It is:

“How much is the bank earning after paying for the money it uses?”

For more banking analysis, macro research and model-driven market tools, sign up to TradingSimuLab and explore the Macro Model alongside the wider five-model research framework.

Continue exploring TradingSimuLab.

  • Policy Rate Explained: Why Central Bank Rates Matter forMacro Models

    A policy rate is the short-term interest rate set or guided by a central bank to influence monetary conditions in the economy. It matters to financial markets because changes in central bank interest rates can affect: But the most important lesson is: Higher rates are not automatically bearish, and lower rates are not automatically bullish.…

  • Overextension Heads-Up Explained: Reading Stretch Without Overreacting

    An overextended stock or market is one where price has moved unusually far from its recent trend structure. That can be important—but it does not automatically mean the trend is about to reverse. Inside TradingSimuLab’s Trend Detector, the Overextension Heads-Up is best understood as a maturity warning. It asks: Has price moved far enough from…

  • MACD Explained: Momentum, Trend Confirmation and FakeoutRisk

    The MACD indicator, or Moving Average Convergence Divergence, is a technical momentum indicator used to assess whether price momentum is strengthening, weakening, or changing direction. It is especially useful for answering questions such as: Is momentum improving with the current trend? Is momentum beginning to weaken? Is a crossover occurring inside a real trend—or inside…

  • Moving Average 10 Explained: What MA10 Shows in TrendAnalysis

    The 10-period moving average (MA10) is a short-term trend reference that smooths recent price action and helps show whether price is trading above, below, or repeatedly crossing its nearby trend. On a daily chart, MA10 usually represents the most recent 10 trading sessions. Its main purpose is simple: Is short-term price action holding above an…

  • Monte Carlo Simulation in Trading

    Monte Carlo simulation helps traders and investors study many possible market outcomes instead of relying on one forecast. Rather than asking: “Where will this asset be in the future?” Monte Carlo analysis asks: “Across many simulated paths, what range of returns, drawdowns and downside outcomes could occur?” Inside TradingSimuLab, Monte Carlo-style analysis powers Risk Simulation,…

  • Monte Carlo Simulation in Trading

    Monte Carlo simulation is a way to study many possible market paths instead of relying on one forecast. In trading and investment risk analysis, it can help answer questions such as: TradingSimuLab uses Monte Carlo-style path analysis inside Risk Simulation to provide context around expected return, probability of gain, simulated ranges, VaR, CVaR, maximum drawdown…

  • Max Drawdown Explained

    Maximum drawdown is one of the simplest ways to understand how painful an investment path can become. A portfolio can finish with a positive return and still experience a severe decline along the way. That is what maximum drawdown, often shortened to max drawdown or MDD, measures. It answers: What was the largest peak-to-trough decline…

  • Macro Scenario Payoff Table Explained

    TradingSimuLab’s Macro Scenario Payoff Table connects the broader macro outlook with the historical behavior of the selected asset. It answers three questions: How likely is each macro scenario? How did this asset historically perform after similar macro conditions? How much does each scenario contribute to Macro Expected Value? This is important because a weak macro…

  • Macro Net Score and Confidence Explained

    TradingSimuLab’s Macro Net Score and Model Confidence answer two different questions: Net Macro Score: Does the current macro backdrop lean constructive, defensive, or mixed? Model Confidence: How clear and internally consistent is that macro read? The distinction matters. A macro outlook can be positive but uncertain. It can also be negative with relatively high confidence…