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.

  • Oracle’s $664 Billion AI Backlog: Huge Demand or Cash-Burn Warning?

    Oracle just reported one of the biggest AI demand signals in the market. Its remaining performance obligations (RPO) reached a record $664 billion after Oracle booked more than $30 billion of new AI cloud contracts. But there is another number investors should watch: Free cash flow was still negative $5.4 billion. So the real question…

  • AI Stocks Selloff: Can a Strong Trend Survive a Sudden Narrative Shock?

    AI-linked stocks are suddenly under pressure after some of the industry’s biggest leaders called for slowing the development of advanced artificial intelligence. The selloff spread across Asian and European technology shares on September 14. Japan’s SoftBank fell more than 13%, while semiconductor and AI-linked stocks also declined across Asia. European technology stocks later fell about…

  • Small-Cap Stocks vs Mega-Cap Tech: Why Higher Rates Affect Them Differently

    Higher interest rates can hurt both small-cap stocks and mega-cap technology companies. But they usually hurt them in different ways. For small companies, the main problem is often: higher borrowing costs. For mega-cap tech, the bigger issue is often: lower valuations for future earnings. That distinction matters when Treasury yields rise. Educational research only. This…

  • Why a Strong U.S. Dollar Can Pressure Bitcoin, Gold and Tech Stocks

    A stronger U.S. dollar can create pressure across several major markets. Bitcoin can face tighter liquidity. Gold can become more expensive for overseas buyers. Large technology companies can see foreign earnings worth less when converted back into dollars. The simple chain is: Higher U.S. rates → stronger dollar → tighter financial conditions → more pressure…

  • Quantum Computing Stocks: Powerful New Trend or Another Hype Cycle?

    Quantum computing stocks are back in the spotlight. Rigetti, D-Wave and other quantum names recently jumped after the U.S. government announced new support for the sector. IonQ also unveiled its new Superion 256 platform and raised its 2026 revenue outlook. The excitement is real. But so is the risk. The key question is: Are quantum…

  • Japan Rate Hike Watch: Why the Yen Carry Trade Matters for Stocks and Crypto

    Japan could be about to tighten monetary policy again—and global markets are paying attention. The Bank of Japan is widely expected to raise its policy rate to 1.25% on September 18. At the same time, the yen has strengthened sharply against the U.S. dollar. Why does that matter outside Japan? Because the yen has long…

  • Food Inflation Shock: Why Rising Wheat, Corn and Soybean Prices Matter for Markets

    Food prices are becoming another inflation risk for markets. Wheat, corn and soybean prices have all risen sharply in 2026. That matters because these crops sit deep inside the global food system. Higher grain prices can eventually affect: The key question is: Could higher food prices make inflation harder to control? That is where TradingSimuLab’s…

  • Copper Near Record Highs: Growth Signal or New Inflation Warning?

    Copper is trading near record highs, making it one of the most important macro signals to watch right now. Prices recently moved above $14,700 per tonne. Copper is often called “Doctor Copper” because demand is closely linked to construction, manufacturing, power grids and economic activity. But today’s rally has another side. High copper prices can…

  • Gold Near $4,350: Why Safe-Haven Demand Can Rise Even When Interest Rates Are High

    Gold is holding near $4,350 an ounce even as U.S. Treasury yields remain close to 5%. At first, that can seem strange. Gold does not pay interest. Higher bond yields usually make interest-bearing assets more attractive. But gold is also a safe-haven asset. When geopolitical risk, inflation fears and market uncertainty rise, investors may still…