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.

  • Corporate Debt Refinancing Explained: Why High Interest Rates Can Hurt Companies Years Later

    Educational research only — not investment advice. High interest rates do not always hurt companies immediately. A business may have borrowed money years ago at a low fixed rate. As long as that debt has not matured, its interest cost may barely change. The real problem often appears later, when the company has to refinance…

  • Stocks vs Bonds in 2026: Is a 5% Treasury Yield Changing the Risk-Reward?

    Educational research only — not investment advice. The 10-year Treasury yield has moved above 5%, changing an important calculation for investors. For years, very low bond yields encouraged investors to take more risk in stocks. Today, U.S. government bonds offer a much higher return without requiring investors to accept the same business and earnings risks…

  • Treasury Buybacks Explained: Can the U.S.Government Calm a Bond Market Selloff?

    Educational research only — not investment advice. Treasury buybacks are getting more attention as U.S. bond yields rise. The U.S. Treasury has recently increased some buyback operations, especially in longer-term bonds. But what are Treasury buybacks, and can they actually calm a bond market selloff? What Is a Treasury Buyback? A Treasury buyback happens when…

  • Diesel Prices Near Record Highs: Why a Global Diesel Squeeze Can Hit Inflation and Transport Stocks

    Educational research only — not investment advice. Diesel prices today are becoming an increasingly important macro risk. U.S. diesel prices recently crossed $6 per gallon for the first time, while diesel refining margins in Asia have also reached record levels. The pressure reflects a global shortage of refined fuel caused by refinery disruptions, geopolitical conflict…

  • AI Spending Boom: Can $795 Billion of Tech Capex Keep Growing?

    Educational research only — not investment advice. The AI spending boom is reaching extraordinary levels. Technology companies are pouring hundreds of billions of dollars into GPUs, data centers, networking equipment, power infrastructure and cloud capacity. Industry spending linked to the AI buildout is expected to exceed $795 billion in 2026 and could rise beyond $1…

  • Software Stocks vs AI Chip Stocks: Is the AITrade Rotating From Hardware to Software?

    Educational research only — not investment advice. For much of the AI boom, AI chip stocks dominated the market. Nvidia and other semiconductor companies benefited as technology giants spent heavily on GPUs, data centers and AI infrastructure. But the next phase of the AI stock trade may look different. Recent market moves have raised a…

  • Mortgage Rates Above 7%: Why U.S. Homebuyers Are Pulling Back Again

    Educational research only — not financial advice. Mortgage rates today are once again putting pressure on the U.S. housing market. Mortgage News Daily’s average 30-year fixed rate reached 7.22% on September 15, up sharply from below 6.9% only a week earlier. Freddie Mac’s weekly survey, which moves more slowly, showed an average rate of 6.76%.…

  • Bitcoin Below $80,000: Is This a Pullback or a Failed Breakout?

    Educational research only — not investment advice. The Bitcoin price today is back near $75,000–$76,000 after briefly approaching $80,000 earlier this week. That reversal raises an important technical question: Is Bitcoin experiencing a normal pullback — or did its latest attempt to break above $80,000 fail? The distinction matters because a healthy pullback can preserve…

  • Nvidia vs the AI Slowdown Debate: Can AI Chip Demand Keep Growing?

    Nvidia vs the AI Slowdown Debate: Can AI Chip Demand Keep Growing? Educational research only — not investment advice. Nvidia stock has become one of the clearest market proxies for the artificial-intelligence boom. But after years of extraordinary AI infrastructure spending, investors are asking a harder question: how long can demand for Nvidia’s AI chips…