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.

  • Gold Back Above $4,300: Is the Safe-Haven Rally Starting Again?

    Educational research only — not investment advice. The gold price today has climbed back above $4,300 per ounce, putting the precious metal back in focus after a volatile period for global markets. Spot gold rose to around $4,324 per ounce on September 16, supported by a softer U.S. dollar, lower Treasury yields and renewed uncertainty…

  • U.S. Debt Above $40 Trillion: Why Bond Investors Are Demanding Higher Yields

    Educational research only — not investment advice. The Federal Reserve’s September interest-rate decision could become one of the most important macro events of 2026. Markets entered September expecting the Fed to remain cautious. That changed quickly as persistent inflation, elevated energy prices and stronger economic data pushed investors toward expecting another round of monetary tightening.…

  • Dollar Index Explained: Why Oil, Fed Hikes and Fear Are Strengthening the U.S. Dollar

    The U.S. dollar is strengthening again as oil prices surge, Treasury yields rise and investors prepare for another Federal Reserve rate hike. The U.S. Dollar Index, or DXY, recently climbed toward 99.7, near its highest level in about a month. Why does this matter? Because a stronger dollar can affect: The key chain is simple:…

  • Gold Price Today: Why 5% Treasury Yields Can Beat Safe-Haven Demand

    Gold is falling even while geopolitical risk remains high. Spot gold declined about 0.7% to $4,266 per ounce on September 15, while U.S. Treasury yields climbed above 5% and the dollar strengthened. That creates an important question: Why can gold fall during a period when investors are worried? Because gold is competing with another safe-haven…

  • Mortgage Rates Near 7%: Why the U.S. Housing Market Is Still Frozen

    U.S. mortgage rates are close to 7% again—and the housing market is struggling to move. The average 30-year fixed mortgage recently reached about 6.85%, its highest level since mid-2025. Meanwhile, existing-home sales fell to a 14-month low in August 2026. The problem is not simply high home prices. It is the combination of: High Prices…

  • OpenAI IPO Delayed: What an AI Slowdown Could Mean for Nvidia, Microsoft and Oracle

    OpenAI will not go public in 2026, adding a new question to the AI investment boom: what happens if frontier AI development begins to slow? CEO Sam Altman said OpenAI will prioritize AI safety rather than pursue an IPO this year, after previously exploring a potential public listing. At the same time, investors are questioning…

  • Copper Price at Record Highs: Why Chile and Mexico Matter to the AI Boom

    Copper prices are near record highs as AI, power grids and electrification compete for a metal that is difficult to supply quickly. Copper recently reached around $14,700 per metric ton, highlighting growing concern about future availability. That matters for Latin America. Chile is the world’s largest copper producer, while Mexico remains an important regional supplier…

  • Mexico FIBRAs and the AI Boom: Can Nearshoring Drive the Next Property Cycle?

    Mexico’s AI opportunity may not begin with chip designers. It may begin with warehouses, factories and industrial land. Mexican FIBRAs—the country’s version of REITs—own many of the industrial and logistics properties used by manufacturers serving North America. Now two powerful themes are converging: Nearshoring + AI Infrastructure That could create another growth cycle for Mexican…

  • Mexican Peso vs Dollar: Why the Peso Can Rise Even When U.S. Rates Are High

    The Mexican peso has become one of 2026’s strongest emerging-market currencies. By late August, USD/MXN had fallen below 17 pesos per dollar, meaning the peso had strengthened almost 20% since January 2025. That may seem surprising while U.S. interest rates remain high. But currencies are driven by relative conditions, not one interest rate alone. Educational…