Net Interest Margin Calculator

Net interest margin4.50%
Net interest income540 million
Yield on earning assets7.08%
Cost of funds (on earning assets)2.58%
Net interest income / total assets4.00%
How this was calculated
  1. Net interest margin is a bank's lending spread expressed on the assets that earn it: (interest income - interest expense) / average earning assets.
  2. Here the bank earns 850 million and pays 310 million, keeping net interest income of 540 million on 12,000 million of earning assets.
  3. NIM = 540 / 12,000 = 4.50%. The gross yield on earning assets is 7.08% and the funding cost eats 2.58% of it - the margin is what survives.
  4. Measured against all 13,500 million of assets, net interest income contributes 4.00% - the rest of the balance sheet (cash, premises, goodwill) earns nothing and dilutes the spread.

This net interest margin calculator turns two figures — the interest a lender earns on its earning assets and the interest it pays on funding — into the net interest margin, or NIM, the percentage of earning assets that survives the spread. Enter the numbers and the calculator gives you that single percentage, so you can see at a glance how much of each dollar of assets the institution actually keeps. The result is easy to read against real cases. A regional bank earning 850 million and paying 310 million on 12,000 million of earning assets runs a NIM of 4.50%: its assets yield 7.08% while funding costs 2.58%, and the 4.50% margin is what survives the spread. A small lender in a high-rate year keeps only 25 million of spread on 2,000 million of assets, a NIM of 1.25%, with funding eating 4.75% of a 6.00% yield. Scale does not guarantee margin either — 1,500 million of net interest income on 90,000 million of assets is a NIM of just 1.67%.

The method behind the answer is the accepted standard for this calculation: net interest income divided by earning assets, expressed as a percentage. That is why the same approach is used to compare lenders of very different sizes, and why the results above line up with the spreads described. This page shows the formula in full, the step-by-step workings, worked examples and the sources behind the numbers, so you can follow every step and check the result yourself rather than taking a figure on trust.

Worked examples

Regional bank: 850 in, 310 out, 12,000 earning assets

(850 m · 310 m · 12000 m · 13500 m)

Net interest margin4.50%
Net interest income540 million
Yield on earning assets7.08%
Cost of funds (on earning assets)2.58%
Net interest income / total assets4.00%

Small lender in a high-rate year: thin 25 million spread

(120 m · 95 m · 2000 m · 2300 m)

Net interest margin1.25%
Net interest income25 million
Yield on earning assets6.00%
Cost of funds (on earning assets)4.75%
Net interest income / total assets1.09%

Large bank: 5,400 in, 3,900 out, 90,000 earning assets

(5400 m · 3900 m · 90000 m · 102000 m)

Net interest margin1.67%
Net interest income1,500 million
Yield on earning assets6.00%
Cost of funds (on earning assets)4.33%
Net interest income / total assets1.47%

How net interest margin is calculated

Net interest margin is built from three numbers: the interest income a lender earns on its assets, the interest expense it pays on its funding, and the average earning assets that produced that income. The formula is NIM = (interest income − interest expense) / average earning assets. The numerator is net interest income, the money left after funding costs are covered; the denominator is the average balance of the loans, securities and other assets that actually generate interest. A net interest margin calculator applies that formula for you, but the logic is simple enough to check by hand.

Work a regional bank through it. The bank earns 850 million in interest income and pays 310 million in interest expense, so net interest income is 850 − 310 = 540 million. Divide 540 by 12,000 million of average earning assets and you get 0.045, or 4.50%. That single figure summarizes the whole book. Look at the two sides separately and the story sharpens: its assets yield 7.08% while its funding costs 2.58%, and the 4.50% margin is what survives the spread. The gap between the yield and the cost of funds is the margin, and the margin is what the bank keeps.

The same math explains why a high-rate year can be brutal for a small lender. On 2,000 million of assets, a 6.00% yield produces 120 million of interest income, but funding at 4.75% costs 95 million, leaving only 25 million of spread. That is a NIM of 1.25% — the lender is earning a healthy-looking yield and still keeping very little, because funding ate 4.75 points of it. Run the numbers through a net interest margin calculator and the result is the same: yield alone tells you nothing until you subtract the cost of the money behind it.

Scale does not guarantee margin, either. A large bank with 1,500 million of net interest income on 90,000 million of assets runs a NIM of just 1.67%. Its net interest income is nearly three times the regional bank's 540 million, yet its margin is far thinner, because the asset base is more than seven times larger. Size buys volume, not percentage. What moves NIM is the relationship between what assets earn and what funding costs, not the size of the balance sheet.

Two habits keep the calculation honest. First, use average earning assets over the period, not a single quarter-end or year-end balance, since balances swing and a point-in-time figure can distort the ratio. Second, keep the numerator and denominator on the same basis — the same period, the same definition of interest income and expense. Get those right and the output is a clean measure of how profitably a lender turns its balance sheet into spread.

NIM = (interest income − interest expense) / average earning assets. Regional bank: (850 − 310) / 12,000 = 540 / 12,000 = 4.50%.

Yield, cost and spread

The net interest margin calculator is easiest to understand when you split the margin into its two moving parts: what the assets earn and what the funding costs. A regional bank with 12,000 million of earning assets that earns 850 million and pays 310 million runs a NIM of 4.50%. That single figure hides the structure underneath it. Its assets yield 7.08%, while its funding costs 2.58%. Subtract the second number from the first and you get the 4.50% margin — the share of the spread that survives after the cost of money is paid.

The subtraction is the whole story: 7.08% minus 2.58% equals 4.50%. The yield is the average return on loans and securities; the cost is the average rate paid on deposits and borrowings. Neither number alone tells you how profitable the balance sheet is. A bank can post a high yield and still keep very little if its funding is expensive, and a bank can fund itself cheaply and still earn a thin margin if its assets pay little. The margin is the difference, and the difference is what the calculator isolates.

A high-rate year can compress that same structure sharply. Consider a small lender with 2,000 million of assets that keeps only 25 million of spread. Its NIM is 1.25%. Here the assets yield 6.00%, but funding eats 4.75% of that yield. The spread that remains — 6.00% minus 4.75% — is 1.25%, and on 2,000 million of assets that is the 25 million the lender keeps. Compare this with the regional bank: the small lender's yield is lower (6.00% against 7.08%) and its funding cost is far higher (4.75% against 2.58%). Both sides of the subtraction moved against it, and the margin collapsed from 4.50% to 1.25%.

Scale does not guarantee margin, either. A large bank with 90,000 million of assets and 1,500 million of net interest income runs a NIM of just 1.67%. Its balance sheet is many times bigger than the regional bank's, but its margin is less than half as wide. Size changes the dollar amount of net interest income, not the percentage that survives the spread. A big book of low-yielding assets funded at a cost that leaves little room produces a thin margin no matter how many billions sit on the balance sheet.

Put the three cases side by side and the pattern is clear. The regional bank keeps 4.50% of 7.08% yield after 2.58% funding. The small lender keeps 1.25% of 6.00% yield after 4.75% funding. The large bank keeps 1.67% on its 90,000 million of assets. Yield, cost and spread move independently, and the margin is the residue. When you run the numbers through a net interest margin calculator, enter the yield and the funding cost separately so you can see which side is doing the damage — a falling yield, a rising cost, or both at once.

7.08% yield − 2.58% funding cost = 4.50% NIM. In the high-rate year: 6.00% yield − 4.75% funding cost = 1.25% NIM.

Why total assets dilute the figure

The 4.50% figure for the regional bank is measured against 12,000 million of earning assets, not against everything on its balance sheet. That distinction matters because a bank's total assets include items that produce no interest at all: cash held for operations, premises, equipment, and other non-earning holdings. When you move the denominator from earning assets to total assets, the same 850 million of interest income and 310 million of interest expense produce a smaller percentage. The bank's contribution becomes 4.00% rather than 4.50%, purely because cash and premises earn nothing. No loan turned bad, no deposit repriced, no decision changed — only the base of the calculation widened.

This is why a net interest margin calculator should make you state which denominator you are using before you read the result. A margin quoted on earning assets answers the question of how well the bank's productive assets are priced against its funding. A margin quoted on total assets answers a broader question about how much of the balance sheet is actually working. Both are legitimate, but they are not interchangeable, and comparing one bank's earning-asset margin with another bank's total-asset margin will mislead you. The gap between the two figures is a rough measure of how much of the balance sheet sits idle with respect to interest income.

The spread mechanics behind the regional bank's number are worth separating out. Its assets yield 7.08% while its funding costs 2.58%. The 4.50% margin is simply what survives that spread once the two rates are applied to the earning-asset base. The 4.00% total-asset figure is not a different spread; it is the same spread compressed by a larger denominator. If you want to know whether the bank is pricing loans well relative to deposits, the earning-asset version isolates that. If you want to know how much net interest income the whole institution generates per dollar of balance sheet, the total-asset version is the honest one.

Scale is no protection against a thin margin. The large bank earns 1,500 million of net interest income on 90,000 million of assets, a NIM of just 1.67%. At the other end, a small lender in a high-rate year keeps only 25 million of spread on 2,000 million of assets — a NIM of 1.25%, with funding eating 4.75% of a 6.00% yield. In that case the yield is high but the cost of funds is higher still in proportional terms, and very little spread survives. A big balance sheet and a high headline yield each tell you less than the margin computed on a clearly stated base.

The practical rule: when you enter figures into a net interest margin calculator, use net interest income over earning assets for the pricing view, and be explicit if you switch to total assets. Whichever base you choose, keep it consistent across the banks or periods you compare, and treat any drop caused solely by adding non-earning assets as a change in the denominator, not a change in performance.

Same income, wider base: 4.50% on 12,000 million of earning assets becomes 4.00% on total assets — because cash and premises earn nothing.

Reading your result

Once the net interest margin calculator returns a number, the next step is to decide whether it signals strength, caution, or something in between. The clearest way to read the result is to compare it with the worked range from real-world examples. At the top, a regional bank earning 850 million and paying 310 million on 12,000 million of earning assets runs a NIM of 4.50%. That 4.50% is a strong result: its assets yield 7.08% while funding costs 2.58%, and the 4.50% margin is what survives the spread. A margin near this level tells you the institution is keeping a healthy share of what it earns on loans and securities after paying for its funding.

At the other end, a small lender in a high-rate year keeps only 25 million of spread on 2,000 million of assets, for a NIM of 1.25%. Here funding eats 4.75% of a 6.00% yield, leaving a thin 1.25% margin. A result in this neighborhood is a warning. It means rising funding costs have consumed most of the yield on assets, and the institution has little cushion if deposit costs climb further or asset yields slip. If your own calculation lands near 1.25%, treat it as a prompt to examine the spread between asset yield and funding cost, not just the bottom-line margin.

Scale does not guarantee margin. The large bank's 1,500 million of net interest income on 90,000 million of assets is a NIM of just 1.67%. Despite its size, that result sits much closer to the warning zone than to the strong 4.50% benchmark. The 1.67% figure shows wholesale funding pressure: a big balance sheet can still produce a modest margin when the cost of funds is high relative to what assets earn. So when you read your own result, do not assume that a larger asset base automatically means a better margin. The number that matters is the one your net interest margin calculator produces from your own income and earning-asset figures.

Use these three reference points as a simple scale. A NIM around 4.50% is strong, a NIM around 1.25% is a warning, and the large bank's 1.67% shows that wholesale funding pressure can hold down even a sizable institution. Your result will fall somewhere along that range, and where it lands should guide how closely you look at the underlying spread. If the margin is high, confirm that the asset yield and funding cost figures behind it are complete. If it is low, check whether funding costs are taking an unusually large share of yield. In either case, the benchmark range turns a single percentage into a meaningful signal about the balance between what the institution earns and what it pays.

Benchmark your result: 4.50% is strong, 1.25% is a warning, and the large bank's 1.67% shows wholesale funding pressure.

FAQs

What is net interest margin?

Net interest margin is net interest income divided by average earning assets. For the regional bank in our example, net interest income of 540 divided by average earning assets of 12,000 gives 4.50%. That percentage shows how much the bank earns from its interest-bearing assets after paying interest on its funding.

What is a good net interest margin?

Healthy retail banks sit in the range of the worked examples. The regional bank's 4.50% is at the strong end of that range, while the small lender's 1.25% is thin. Use these examples as reference points rather than fixed targets, since results vary by bank type and market conditions.

What is the difference between NIM and spread?

Spread is yield minus funding cost on the same assets. NIM here equals the spread only because both are measured against earning assets: 7.08% minus 2.58% gives the same result. If the denominators differ, the two measures can diverge even for the same bank.

Why use earning assets rather than total assets?

Only earning assets generate the income being measured. Using total assets instead spreads the same net interest income over a larger base and understates performance: on total assets, the regional bank's figure drops from 4.50% to 4.00%. Earning assets keep the ratio focused on the money actually at work.

How can a big bank have a low NIM?

Wholesale funding is expensive. In the example, the large bank pays 4.33% on its funding against a 6.00% yield on its assets, leaving a margin of just 1.67%. A large balance sheet does not guarantee a wide margin when the cost of the money it uses is high.

What moves NIM most?

Funding cost is the biggest driver. In the high-rate case, funding cost climbs to 4.75% while the yield stays at 6.00%, halving the margin. Because the yield did not change, the entire drop came from what the bank paid for its funds.

Sources

Related calculators

Quick Ratio Calculator
The acid test: current assets minus inventory and prepaids, over current liabilities — can the business pay this year's bills without selling any stock?
Working Capital Calculator
Current assets minus current liabilities — the short-term cushion a business actually runs on, with the current ratio and the cushion's share of assets.
Altman Z-Score Calculator
Edward Altman's 1968 bankruptcy predictor for manufacturers — five balance-sheet ratios weighted into one score with its safe, grey and distress zones.