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.

  • Petrobras Diesel Subsidy Explained: Can Brazil Keep Fuel Prices Below Global Levels?

    Educational research only — not investment advice. Petrobras stock is facing an unusual fuel-market problem. Global diesel prices have surged, but Petrobras has kept Brazilian diesel much cheaper than international import prices. The gap recently reached about 3.89 reais per liter, the widest on record. That sounds good for consumers. But it creates a bigger…

  • Brazil Cuts Rates Again: Can the Selic Fall Without Reigniting Inflation?

    Educational research only — not investment advice. Brazil interest rates are falling again. Brazil’s central bank cut the Selic rate to 13.75%, its fifth consecutive reduction. But 13.75% is still extremely high. That leaves policymakers with a difficult question: How quickly can Brazil cut rates without bringing inflation back? Why Is Brazil Cutting Rates? The…

  • Mexico’s AI Manufacturing Boom: Why Industrial REITs Could Be a Hidden Winner

    Educational research only — not investment advice. Mexico REITs could become an overlooked way to benefit from the AI and North American manufacturing boom. Mexico may not produce most of the world’s advanced AI chips, but it increasingly provides the factories, warehouses and logistics infrastructure behind technology supply chains. That could benefit Mexican real-estate trusts…

  • U.S.–Mexico Trade Deal: What Lower Auto, Steel and Aluminum Tariffs Could Mean for Mexican Stocks

    Educational research only — not investment advice. Mexico stocks could become increasingly sensitive to progress in U.S.–Mexico trade negotiations. Mexico says discussions with Washington are advancing, with tariffs on cars, steel and aluminum among the biggest issues. The potential market impact is simple: lower tariffs → cheaper exports → stronger manufacturing → less uncertainty for…

  • America’s EV Factory Boom Is Reversing: What Happened to the Battery Belt?

    Educational research only — not investment advice. EV stocks were once backed by a huge U.S. factory-building boom. Automakers and battery companies announced billions of dollars of new plants across states including Georgia, Kentucky, Tennessee, Ohio and Indiana. The region became known as the Battery Belt. Now many of those projects are being delayed, reduced…

  • The Yield Curve Is Warning About Consumers: Can Households Handle Higher Rates?

    Educational research only — not investment advice. The yield curve today is sending an important message about the U.S. consumer. Short-term Treasury yields remain high as the Federal Reserve fights inflation, while longer-term yields suggest investors are increasingly thinking about what those higher borrowing costs could eventually do to economic growth. The concern is simple:…

  • Currency Risk Is Rising: Why U.S. Companies AreHedging Less Despite a Volatile Dollar

    Educational research only — not investment advice. Currency hedging is becoming less common at a surprisingly risky time. U.S. and UK companies reduced their foreign-exchange protection sharply in the second quarter of 2026. The average hedge ratio fell from 57% to 46%, while the average hedge period dropped to just 5.7 months. That means companies…

  • Investors Buy U.S. Stocks but Sell Corporate Bonds: What Is the Market Telling Us?

    Educational research only — not investment advice. US stock market flows are sending an unusual message. Investors recently bought U.S. equities at their fastest pace in three months while simultaneously taking money out of corporate bonds. Bank of America data showed $63.8 billion flowing into U.S. stocks in one week. At the same time, investors…

  • AI, Rare Earths and Trade: Why the Next U.S.–China Talks Matter for Tech Stocks

    Educational research only — not investment advice. US China trade is moving back to the center of the technology market. President Donald Trump and Chinese President Xi Jinping are scheduled to meet in Washington on September 24, with AI, tariffs, rare earths and technology restrictions expected to be major topics. For tech investors, the issue…