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.

  • The Next EV Metals Squeeze: Could Rising Electric-Car Sales Reignite Lithium, Nickel and Copper?

    Educational research only — not investment advice. Lithium stocks could be entering a new phase as high fuel prices push more consumers toward electric vehicles. Global EV growth still looks modest at first glance. Sales rose only about 4% year over year from January through August 2026. But underneath that headline, the picture is much…

  • The Next EV Metals Squeeze: Could Rising Electric-Car Sales Reignite Lithium, Nickel and Copper?

    Educational research only — not investment advice. Lithium stocks could be entering a new phase as high fuel prices push more consumers toward electric vehicles. Global EV growth still looks modest at first glance. Sales rose only about 4% year over year from January through August 2026. But underneath that headline, the picture is much…

  • PhonePe Goes Global: Can India’s UPI Model Become a Worldwide Fintech Business?

    Educational research only — not investment advice. The PhonePe IPO story is becoming more global. Walmart-backed PhonePe has received in-principle approval from the UAE central bank for two payment licenses, covering retail payments, card schemes and stored-value services. If final approval follows, the UAE would become PhonePe’s first international market. The bigger question is: Can…

  • Novo Nordisk After Wegovy: Can Five New Blockbusters Restart the Growth Story?

    Educational research only — not investment advice. Novo Nordisk stock is entering an important transition. Wegovy and Ozempic turned Novo into one of the world’s largest pharmaceutical companies. Now investors want to know: What comes after semaglutide? Novo says it aims to launch more than five major blockbuster medicines by 2030 and generate over 150…

  • NSE IPO: Could India’s Stock Exchange Become One of 2026’s Biggest Market Debuts?

    Educational research only — not investment advice. The NSE IPO has become one of India’s most closely watched stock-market events of 2026. India’s National Stock Exchange raised about $2.3 billion, while investors submitted more than $10 billion of bids. The IPO was subscribed 5.71 times, showing strong demand ahead of its September 24 trading debut.…

  • AI Shopping Agents Are Coming: Can Banks Stop Fraud Before Agentic Commerce Goes Mainstream?

    Educational research only — not investment advice. AI shopping agents could change online commerce much faster than many consumers expect. Instead of simply recommending a product, an AI agent could: This new model is often called agentic commerce. But banks are warning that it also creates a new question: Who is responsible when the AI…

  • Saudi Aramco’s Gas Pivot: Is Natural Gas Becoming the Gulf’s Next Big Growth Business?

    Educational research only — not investment advice. Saudi Aramco stock is increasingly becoming more than an oil story. Aramco is preparing to create a dedicated natural-gas division as Saudi Arabia expands domestic gas production and builds a larger international LNG business. The company is even considering eventually selling a minority stake in the new gas…

  • AI Investment vs the OilShock: Can the AI Boom Keep the World Economy Growing?

    Educational research only — not investment advice. The global economy in 2026 is being pulled in two very different directions. On one side is a huge AI investment boom. On the other is an energy shock caused by Middle East disruptions and higher oil and gas prices. The OECD now expects global GDP to grow…

  • Oil Falls Back Below $100: Is the Middle East Energy Shock Finally Easing?

    Educational research only — not investment advice. The oil price today has fallen back below $100 as fears over Middle East supply begin to ease. Brent crude recently traded around $99 per barrel, after falling as low as $97.36. That is a major change from earlier September, when escalating conflict pushed oil sharply above $100.…