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.

  • Latin America’s Strong Currency Problem: Why a Rising Peso or Real Can Hurt Exporters

    A stronger currency often sounds like good news. It can reduce inflation, attract foreign capital and make imports cheaper. But for exporters, a rising peso or real can create a different problem: foreign sales become worth less in local currency. That is one reason Latin America currencies matter so much for company profits. How a…

  • Mexico’s AI Opportunity: Why Nearshoring Is Turning Mexico Into a Technology Supply-Chain Winner

    Mexico may become one of Latin America’s biggest winners from the AI boom. Not because it will replace Taiwan or the U.S. in advanced chip manufacturing. But because Mexico AI investment can benefit from something equally important: nearshoring. Why Mexico Has an Advantage Mexico sits next to the world’s largest economy. It also has: That…

  • Latin America’s Growth Problem: Why $100 Oil Hurts a Region Missing the AI Boom

    Latin America faces an uncomfortable combination: slow growth + expensive energy + limited AI investment That makes the Latin America economy more vulnerable than regions receiving a larger boost from the global technology boom. The basic problem is: higher costs without enough new productivity growth Why Growth Is Slowing The IMF now expects Latin America…

  • Brazil’s Debt Problem Explained: Why Fiscal Policy Matters More Than Politics for Markets

    Brazil’s election is moving stocks. But over the longer term, investors care about something more important: Brazil debt. Brazil’s gross public debt is around 82.5% of GDP, while high interest rates make that debt expensive to finance. The real market question is: Can Brazil stop debt growing faster than its economy? Why Brazil’s Debt Matters…

  • Brazil Inflation Is Above Target Again: Why Rate Cuts May Be Harder Than Investors Expect

    Brazil has a difficult inflation problem again. September inflation reached 4.58%, slightly above the central bank’s target ceiling. That matters because Brazil has already started cutting interest rates. The key question is: Can the central bank keep cutting rates while inflation is rising again? Why Inflation Is Rising Brazil’s September price increase was driven heavily…

  • Brazil Election Rally Explained: Why Investors Are Pouring Billions Into Brazilian Stocks

    Brazilian stocks have surged after the first round of the presidential election. Foreign investors are pouring money into the Brazil stock market, while the Brazilian real has also benefited. Why? Investors are not simply betting on an election winner. They are betting on what the election could mean for: government spending + debt + interest…

  • Australia’s Inflation Problem: Why the RBA May Need More Rate Hikes While Other Central Banks Pause

    Many central banks are becoming cautious about further rate hikes. Australia may not have that luxury. The Reserve Bank of Australia has already lifted RBA interest rates to 4.60%, yet inflation remains stubbornly above target. The key question is: Why is Australian inflation proving so difficult to control? Inflation Is Still Too High Australia’s inflation…

  • China’s Yuan Near a Four-Year High: When Does a Strong Currency Start Hurting Exporters?

    A stronger Chinese yuan can reduce import costs and improve purchasing power. But for exporters, too much currency strength can become a problem. The basic relationship is: stronger yuan → lower export revenue in yuan terms → pressure on margins Why Exporters Care About the Yuan Chinese companies often sell goods overseas in U.S. dollars.…

  • Southeast Asia’s Data Center Boom: Is Singapore-Johor-Riau Becoming the Next AI Hub?

    AI needs more than chips. It needs enormous amounts of: land + electricity + cooling + connectivity That is turning the Singapore-Johor-Riau region into one of Asia’s most important emerging AI infrastructure hubs. The boom in Southeast Asia data centers is essentially a search for where AI computing can expand cheaply and reliably. Why Singapore…