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.

  • Yield Curve Inversion Explained: Why Bond Markets Can Signal Recession Before Economic Data Does

    A recession can begin forming before unemployment rises or GDP turns negative. One place investors often look for an early warning is the yield curve. A yield curve inversion happens when short-term government bonds yield more than longer-term bonds. That unusual pattern can signal that markets expect weaker growth and lower interest rates ahead. What…

  • Who Buys U.S. Government Debt? Why Treasury Demand Matters for Markets

    The U.S. government borrows trillions of dollars by selling Treasury securities. But somebody has to buy them. That makes one question increasingly important: Who buys U.S. debt? The answer includes foreign governments, banks, pension funds, mutual funds, money-market funds, insurers and individual investors. Their demand helps determine Treasury yields. The basic relationship is: strong demand…

  • Why Good Earnings May Not Be Enough: How High Bond Yields Change What Investors Will Pay for Stocks

    A company can report strong earnings and still watch its stock fall. Why? Because stock valuations depend on more than profits. Investors also compare stocks with the return available from bonds. When Treasury yields are high, stocks have to work harder to look attractive. The basic relationship is: higher bond yields → higher required return…

  • AI Data Center Bubble? Why Huge Infrastructure Spending Can Create Great Businesses but Bad Investments

    The AI boom requires enormous physical infrastructure. That means: chips + servers + data centers + electricity + cooling + networking Demand may be real. But that does not automatically mean every AI data center is a good investment. A great business can still be a bad investment if investors pay too much for its…

  • Stock Market Breadth Explained: Why a Record S&P 500 Can Hide Weakness Under the Surface

    The S&P 500 can hit a record high even while many stocks are falling. That happens because the index is weighted toward its largest companies. So a handful of mega-cap stocks can pull the entire index higher. This is why investors watch market breadth. The basic idea is: strong index + weak participation = potentially…

  • Term Premium Explained: Why Treasury Yields Can Rise Even When the Fed Stops Raising Rates

    The Federal Reserve can stop raising interest rates—and long-term Treasury yields can still climb. Why? Because bond yields depend on more than Fed policy. One important factor is the term premium. In simple terms, the term premium is the extra return investors demand for locking up money in a long-term bond instead of repeatedly investing…

  • Treasury Auctions Explained: Why Weak Demand Can Move the Entire Stock Market

    The U.S. government regularly sells Treasury bonds to investors. Most auctions pass quietly. But when demand is weak, markets pay attention. Why? Because a weak Treasury auction can push bond yields higher—and higher Treasury yields can pressure stocks, mortgages and corporate borrowing costs. The basic chain is: weak bond demand → higher Treasury yield →…

  • The 5% Treasury Era: Why High Bond Yields Can Break a Stock Market Rally

    Stocks can report strong earnings and still fall. Why? Because investors do not value stocks in isolation. They compare the expected return from equities with what they can earn from safer assets such as U.S. Treasury bonds. When the 10-year Treasury yield moves above 5%, that comparison becomes much harder for expensive stocks to ignore.…

  • Interest Coverage Ratio Explained: How to Spot Debt Problems Before a Default

    A company can look profitable and still be dangerously close to financial stress. One of the simplest warning signals is the interest coverage ratio. It asks one basic question: How easily can the company pay the interest on its debt? When interest rates rise, this ratio becomes especially important. What Is the Interest Coverage Ratio?…