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.

  • Earnings Season Explained: Why Stocks Can Fall Even After Beating Expectations

    A company reports record profits. It beats Wall Street estimates. And the stock falls 8%. That can look irrational. But during earnings season, markets do not simply ask whether results were good. They ask: Were they better than investors already expected? Expectations are unusually high going into the current U.S. reporting season. FactSet estimates S&P…

  • CPI vs Core Inflation: Why Inflation Can Rise Even When the Economy Is Cooling

    Inflation can rise even while job growth slows and the economy loses momentum. That sounds contradictory. It is not. The reason is the difference between CPI inflation and core inflation. U.S. headline CPI rose 3.4% year over year in August, while core CPI—excluding food and energy—rose only 2.4%. Gasoline alone accounted for more than one-third…

  • Mining Stocks: Why Big Miners Keep Trying to Merge

    Building a new mine can cost billions and take more than a decade. That is one reason large mining companies keep trying to merge. Reuters reports that new copper projects can require $10–$20 billion of investment, pushing miners toward larger balance sheets, partnerships and acquisitions. Gold Fields recently had a $27.1 billion offer for Northern…

  • Bitcoin Mining Stocks: Why Power May Be More Valuable Than Mining

    Bitcoin miners spent years securing one scarce resource: electricity. Now that power may be worth more to AI companies than to bitcoin mining itself. Several bitcoin mining stocks are shifting toward AI data centers by leasing sites with large grid connections. Reuters Breakingviews estimates crypto miners control roughly 14 gigawatts of operational and planned U.S.…

  • Data Center Infrastructure Stocks: The AI Picks-and-Shovels Trade

    The AI boom is usually associated with GPUs and semiconductor stocks. But every AI chip also needs: That is creating a second investment theme around data center infrastructure stocks. Reuters reports that global data-center investment could approach $7 trillion by 2030, while shortages of transformers, grid connections and cooling equipment are already slowing some projects.…

  • Oil Stocks: Dividends, Buybacks or New Projects?

    When oil companies generate huge amounts of cash, they face a simple question: What should they do with it? They can: That decision matters enormously for oil stocks. The five largest Western oil majors — BP, Chevron, Exxon Mobil, Shell and TotalEnergies — are expected to generate roughly $53 billion of combined third-quarter profit, according…

  • Refining Margins Explained: Why Oil Companies Can Profit Without Producing More Oil

    Oil companies do not only make money by producing crude. Many also earn large profits by turning crude oil into gasoline, diesel and jet fuel. That is where refining margins matter. Reuters recently reported that benchmark U.S. crack spreads averaged about $63 per barrel in the third quarter of 2026, up from $50 in the…

  • Insurance Stocks Explained: How Underwriting Turns Risk Into Profit

    Insurance companies make money by doing something unusual: They get paid today for losses that may happen later. That is the core economics behind insurance stocks. The Fidelis Partnership recently filed for a U.S. IPO after reporting $127.5 million of net income on $407.5 million of revenue for the first half of 2026, up from…

  • Private Equity Exits Explained: Why High Rates Can Trap Investors for Years

    Private equity firms do not make money simply by buying companies. Eventually, they need to sell them. That is why private equity exits matter so much. Warburg Pincus has realized roughly $12 billion of exits in 2026, matching its record total from last year, even though weak software markets and volatile equities have made IPO…