Data through Q3 2026 · 4,211 institutions
Data through Q3 2026 · 4,211 institutions

Guide

Net interest margin explained: formula, drivers and how to compare

Net interest margin (NIM) is a bank's net interest income divided by its average earning assets, expressed as an annual rate. It shows how much a bank earns on its loans and securities after paying for its funding.

Guides · Last reviewed 2026-11-27. Figures named here are published by the sources listed at the end; this page is not a rating or financial advice.

1. The formula

NIM = annualized net interest income / average earning assets. Net interest income is interest earned on loans and securities minus interest paid on deposits and borrowings. Earning assets are the assets that produce interest, mainly loans, securities and balances held at other banks.

Illustrative example: a bank earns $60 million of net interest income in a year on average earning assets of $2 billion. Its margin is 3.0%.

Net interest margin calculator · Net interest margin on OptimaYield (UBPR official)

2. What moves the margin

A margin rises when asset yields rise faster than funding costs, and falls when deposit costs catch up. The mix matters too: a higher share of loans, which usually yield more than securities, and a larger share of noninterest-bearing deposits both lift the margin.

What is deposit beta

3. Tax-equivalent and other conventions

Some versions adjust tax-exempt income, such as municipal bond interest, to a tax-equivalent basis so it compares with taxable income. The official UBPR figure uses a tax-equivalent convention, so the version used must be stated whenever two margins are compared.

4. How to compare banks

Compare banks of a similar size and business model, in the same quarter, on the same definition. A credit card lender and a mortgage lender have very different structural margins. Read the margin with the cost of funds and the loan-to-deposit ratio to see whether a high margin comes from yield or from cheap funding.

How to calculate cost of funds · Loan-to-deposit ratio explained

5. Limits of the measure

The margin is a rate, not a dollar amount, so a bank can earn more total income at a lower margin if it is larger. It also reflects one period's balance sheet and says nothing about credit losses, which show up in the provision on the income statement.

How to read a Call Report

Frequently asked questions

What is net interest margin?
It is net interest income divided by average earning assets, annualized. It measures what a bank earns on its loans and securities after paying for deposits and other funding.
How do you calculate net interest margin?
Annualize net interest income and divide by average earning assets. A bank with $60 million of annual net interest income on $2 billion of earning assets has a margin of 3.0%.
What are earning assets?
Assets that produce interest income, mainly loans, securities and interest-bearing balances at other banks.
What is a tax-equivalent margin?
A version that adjusts tax-exempt interest, such as municipal bond interest, to the pre-tax equivalent so it compares with taxable income. The official UBPR margin uses this convention.
Why does net interest margin change?
Because asset yields and funding costs move at different speeds, and because the mix of loans, securities and deposit types changes.

Sources