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.

  • Monte Carlo Simulation for Stocks: How Thousands of Price Paths Help Measure Risk

    Educational research only — not investment advice. A Monte Carlo stock simulation does not try to predict one exact future price. Instead, it creates hundreds or thousands of possible price paths. The goal is simple: Rather than asking “Where will this stock be?” ask “What range of outcomes is possible?” That makes Monte Carlo simulation…

  • CVaR Explained: How to Measure the Losses That Happen Beyond VaR

    Educational research only — not investment advice. CVaR explained simply means measuring the average loss when things go worse than your Value at Risk threshold. CVaR is also called Conditional Value at Risk or Expected Shortfall. It answers a question that VaR cannot: If a bad outcome happens, how bad could the average loss be?…

  • Value at Risk Explained Simply: What VaR Can—and Cannot—Tell Investors

    Educational research only — not investment advice. Value at Risk explained simply means estimating how much an investment could lose over a specific period under normal market conditions. VaR tries to answer: How much could I lose before the outcome becomes unusually bad? It is useful—but only if you understand its limits. What Is Value…

  • What Is Maximum Drawdown? How to Measure the Real Risk of an Investment

    Educational research only — not investment advice. Maximum drawdown measures the largest decline an investment experiences from a previous peak to a later low. It answers a very practical question: How bad did the investment get before recovering? That makes drawdown one of the most useful ways to understand investment risk. What Is Maximum Drawdown?…

  • Expected Return vs Risk-Reward: Why They Are Not the SameThing

    Educational research only — not investment advice. Expected return vs risk reward sounds like the same idea. It is not. Both help investors evaluate an opportunity, but they answer different questions. Expected return asks:What is the average outcome after considering different probabilities? Risk-reward asks:How much could I gain compared with how much I could lose?…

  • Probability of Profit Explained: What Does a 60% Chance of Gain Really Mean?

    Educational research only — not investment advice. A probability of profit tells you how often an investment or trade is expected to finish with a gain under a set of assumptions. If a model shows a 60% probability of profit, it means: about 60 out of 100 simulated outcomes finish above the starting point. It…

  • How to Measure Whether a Stock Trend Is Getting Stronger or Weaker

    Educational research only — not investment advice. A stock can be in an uptrend and still be losing strength. That is why a trend strength indicator can be more useful than simply asking whether price is going up or down. The real question is: Is the trend becoming more persistent—or starting to weaken? Start With…

  • Market Timing Explained: Why a Good Stock Can Still Be aBad Entry

    Educational research only — not investment advice. Market timing is often misunderstood. It does not simply mean trying to predict the exact top or bottom of the market. A more useful idea is: A good company can still be a bad trade if you enter at the wrong time. That is because stock quality and…

  • How to Tell if a Stock Is Trending or Just Moving Sideways

    Educational research only — not investment advice. Good stock trend analysis starts with one simple question: Is the price actually trending—or is it just moving around inside a range? The difference matters. A strategy that works well during a strong trend can perform poorly when a stock is moving sideways. That is why identifying the…