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.

  • IPO Valuation Explained: Why New Stocks Often Need to Be Sold at a Discount

    A private company may believe it is worth $20 billion. Public-market investors may disagree. That gap is one of the biggest challenges in IPO valuation. The U.S. IPO market recently slowed as higher bond yields reduced risk appetite. Reuters reported that only four companies had gone public after Labor Day by September 25, while investors…

  • Biotech Licensing Deals: Why Pharma Pays Billions for Unapproved Drugs

    Pharmaceutical companies sometimes agree to deals worth billions for drugs that have never reached the market. That sounds risky. It is. But biotech licensing deals are usually designed so that much of the money is paid only if the drug succeeds. Novo Nordisk recently agreed to pay China’s Hengrui $300 million upfront for rights to…

  • Rare Earth Stocks: Why Tiny Metals Can Shut Down Huge Industries

    Some of the world’s most important supply chains depend on materials produced in surprisingly small quantities. That is why rare earth stocks have become a major strategic investment theme. Yttrium is a good example. The metal is used in aerospace engines, power equipment and semiconductor manufacturing tools, yet it has few easy substitutes. Chinese export…

  • Defense Stocks Explained: Why Huge Government Contracts Do Not Become Profits Overnight

    A $20 billion defense contract sounds like $20 billion of business. But it does not mean $20 billion of immediate revenue or profit. RTX’s Raytheon recently received a multiyear AMRAAM missile contract valued at up to $20.7 billion. The agreement is designed to raise annual production to at least 1,900 missiles as the U.S. and…

  • Term Premium Explained: Why Long-Term Bond Yields Can Rise Without More Fed Hikes

    Long-term bond yields can rise even if investors do not expect the Federal Reserve to keep raising rates forever. The missing piece is the term premium. The New York Fed defines the term premium as the extra compensation investors require for holding a longer-term Treasury rather than repeatedly investing in short-term bonds. That matters now…

  • Treasury Basis Trade Explained: Why Hedge Funds Borrow Billions for Tiny Profits

    Some hedge funds borrow enormous amounts of money to earn very small profits in the U.S. Treasury market. That strategy is known as the Treasury basis trade. The trade has recently become less attractive. Reuters reports that assets tied to leveraged basis strategies fell about 20% in 2026 to roughly $1.2 trillion, as higher rates,…

  • Treasury Auction Explained: What Happens When Investors Do Not Want Government Bonds?

    The U.S. government constantly needs to borrow money. It does that by selling Treasury bills, notes and bonds through a Treasury auction. Most auctions attract plenty of buyers. But when demand is weak, something important happens: investors demand a higher yield before lending money to the government. A weak $70 billion U.S. five-year Treasury auction…

  • Corporate Bond Spreads Explained: Why Strong AI Companies Can Still Pay More to Borrow

    A strong company does not always get a cheap bond. That is one of the most important lessons behind corporate bond spreads. AI-related companies are issuing enormous amounts of debt to fund data centers, chips and infrastructure. Reuters reports that investors are becoming more selective as the market absorbs that supply. AI-linked bonds have recently…

  • Stock Buybacks Explained: When Repurchases Create Value and When They Waste Cash

    A company buying its own shares sounds automatically bullish. It is not. Stock buybacks can create significant shareholder value when a company has excess cash and its shares are attractively valued. But buying overpriced stock can destroy value just as easily. Nvidia recently increased its buyback authorization by a record $150 billion, taking its remaining…