Net Interest Margin (NIM) Calculator
Calculate a bank's or lender's Net Interest Margin — the difference between interest income earned on assets and interest paid on liabilities, expressed as a percentage of average earning assets.
How to use this tool
- Enter interest income, interest expense and average earning assets in the fields above.
- Results update instantly as you type — or click Calculate.
- Read your net interest margin (nim) and the full breakdown beneath it.
⚠ This tool provides general estimates for education only and is not financial, tax or legal advice. Figures may not reflect your situation — verify with a qualified professional.
Formula
Net Interest Income = Interest Income − Interest Expense
NIM = (Net Interest Income ÷ Average Earning Assets) × 100
How it works
Net Interest Margin (NIM) measures how effectively a financial institution earns income on its interest-bearing assets relative to the interest it pays on its liabilities. Earning assets typically include loans, securities, and other interest-generating instruments.
NIM is a core profitability metric for banks and credit unions. Higher NIM generally indicates better interest rate management or exposure to higher-yielding (riskier) assets. Industry benchmarks vary by institution size and economic cycle.
Worked example
Community Bank with $5M Earning Assets
- Net Interest Income = $500,000 − $200,000 = $300,000
- NIM = ($300,000 ÷ $5,000,000) × 100 = 6.0000%
The bank's Net Interest Margin is 6.0000%, meaning it earns 6 cents of net interest for every dollar of earning assets.
Common mistakes to avoid
- Including non-earning assets (cash held in reserve, goodwill) in the denominator of the NIM calculation — only interest-earning assets (loans, investment securities) belong in the denominator.
- Using total assets instead of average earning assets: NIM should reflect only the assets generating interest income, not the entire balance sheet.
- Confusing NIM with net profit margin — NIM measures only the spread on interest-related activities and ignores fee income, provisions for loan losses, and operating expenses.
Key terms
- What are earning assets?
- Earning assets are interest-generating assets such as loans, leases, investment securities, and deposits at other banks. Cash, fixed assets, and goodwill are excluded.
- What is a good NIM for a bank?
- For US commercial banks, NIM has historically averaged between 3% and 4%. Community banks often report higher NIMs than large money-center banks due to different loan mixes.
- How does NIM differ from interest rate spread?
- Interest rate spread is simply the average lending rate minus the average funding rate. NIM also accounts for non-interest-bearing funding sources, making it a more complete profitability measure.
- Why does NIM matter to investors?
- NIM directly drives a bank's revenue. A declining NIM can signal margin compression from a flat yield curve, competitive lending markets, or rising deposit costs.
Frequently asked questions
- What is a typical NIM for US commercial banks?
- US commercial bank NIMs have historically ranged from about 2.5% to 4.5%. NIM tends to expand when interest rates rise (if banks reprice loans faster than deposits) and compress in low-rate environments.
- How do rising interest rates affect NIM?
- Rising rates generally improve NIM for banks with variable-rate loan portfolios because loan yields reprice upward quickly. However, if deposit costs also rise quickly, the benefit is partially offset. The net effect depends on the bank's asset-liability sensitivity.
- Is a higher NIM always better for a bank?
- Not necessarily. A very high NIM may reflect riskier lending (higher credit risk borrowers who pay more) rather than superior efficiency. It should be evaluated alongside credit loss provisions and loan-quality metrics.