Calculate Net Interest Margin (NIM)

Enter gross investment interest income ($), interest expense paid ($), and total average earning assets ($).

$
Interest earned from loans and investments.
$
Interest paid on deposits and borrowings.
$
Average total income-generating assets.

NIM Banking Profitability Output

Net Interest Margin (NIM %) 0.00%
Net Interest Income (NII $) $0.00
Yield on Earning Assets (%) 0.00%
Cost of Funds Rate (%) 0.00%
Profitability Rating HEALTHY COMMERCIAL MARGIN

*NIM Benchmark: Net Interest Margin is the core profitability metric for commercial banks and credit unions. A higher NIM indicates that a financial institution generates strong interest income relative to deposit funding costs.

Quick Summary

Our net interest margin calculator NIM banking profitability formula measures the net spread earned by banks and financial institutions between interest income earned on loans and securities versus interest expenses paid on deposits and borrowings, scaled by average earning assets.

How It Works: Net Interest Margin & NII

Net Interest Margin (NIM) measures a financial institution's success at deploying capital profitably.
1. **Net Interest Income ($NII$):** Calculated as gross interest income minus interest expenses ($NII = InterestIncome - InterestExpense$).
2. **NIM Percentage:** Calculated by dividing $NII$ by total average earning assets ($NIM = \NII / AverageEarningAssets \times 100\%$).
3. **Federal Reserve Rate Impacts:** When interest rates change, a bank's loan yields and deposit funding costs reprice at different speeds, expanding or compressing NIM.

Formula Explanation

Your Net Interest Margin ($NIM_{\%}$) and Net Interest Income ($NII$) are calculated as follows:

NII = GrossInterestIncome - InterestExpenses
NIM_{\%} = \left(\NII / AverageEarningAssets\right) \times 100\%
NIM_{\%} = AssetYield_{\%} - CostOfFunds_{\%}

Step-by-Step Worked Example

Here is a detailed 5-step breakdown for a regional bank earning $50,000,000 in gross interest income with $20,000,000 in interest expenses across $1,000,000,000 in Average Earning Assets:

  1. Step 1 (Calculate Net Interest Income NII): $\$50,000,000 - \$20,000,000 = \mathbf{\$30,000,000 \text{ Net Interest Income}}$.
  2. Step 2 (Calculate Asset Yield %): $\\$50,000,000 / \$1,000,000,000 \times 100\% = \mathbf{5.00\% \text{ Yield on Earning Assets}}$.
  3. Step 3 (Calculate Cost of Funds %): $\\$20,000,000 / \$1,000,000,000 \times 100\% = \mathbf{2.00\% \text{ Cost of Funding Assets}}$.
  4. Step 4 (Calculate Net Interest Margin NIM): $NIM = \\$30,000,000 / \$1,000,000,000 \times 100\% = \mathbf{3.00\% \text{ NIM}}$ ($5.00\% - 2.00\%$).
  5. Step 5 (Evaluate Profitability): A 3.00% NIM falls into the **STANDARD COMMERCIAL MARGIN** benchmark range, generating $30M in annual net spread income!

Calculation Examples: Real-World Scenario Comparison

Compare NIM Profitability across financial institution types:

Institution Type & Asset Size Interest Income ($) Interest Expense ($) Net Interest Income ($NII$) Net Interest Margin (NIM %)
Large Money-Center Bank ($10B Assets) $450,000,000 $200,000,000 $250,000,000 2.50% NIM
Regional Commercial Bank ($1B Assets) $50,000,000 $20,000,000 $30,000,000 3.00% NIM
High-Yield Credit Union ($500M Assets) $28,000,000 $9,000,000 $19,000,000 3.80% NIM (Strong Margin)
Community Retail Lender ($250M Assets) $15,500,000 $4,000,000 $11,500,000 4.60% NIM (Exceptionally High)

Benefits of Using the Net Interest Margin Calculator

Utilizing this calculator provides essential bank financial analysis advantages:

  • Primary Banking Metric: Evaluates core operational performance for commercial banks, credit unions, and thrifts.
  • Deconstructs Asset Yield vs Cost of Funds: Identifies whether margin changes are caused by falling loan rates or rising deposit interest costs.
  • Facilitates Peer Bank Benchmarking: Enables financial analysts and investors to compare bank profitability across different asset sizes.
  • Monitors Rate Cycle Sensitivity: Helps bank management stress-test interest rate sensitivity during Fed tightening or easing cycles.

Frequently Asked Questions (FAQ)

What is Net Interest Margin (NIM)?

Net Interest Margin is a financial ratio measuring the difference between the interest income generated by a bank's assets and the interest expenses paid to depositors, relative to total earning assets.

How is NIM calculated?

NIM = [(Gross Interest Income - Interest Expense) ÷ Total Average Earning Assets] × 100%.

What are Average Earning Assets?

Earning assets are assets that generate interest or dividend income for a bank, including residential/commercial loans, mortgages, Treasuries, and securities.

What is Net Interest Income (NII)?

Net Interest Income is the absolute dollar difference between total interest earned on loans/investments and total interest paid on deposits (NII = Interest Income - Interest Expense).

What is a good Net Interest Margin for a bank?

A healthy NIM for US commercial banks typically ranges between 2.8% and 3.8%. Community banks often have higher NIMs (4.0%+) due to higher-yielding retail loans.

How do Federal Reserve interest rate hikes affect NIM?

Initially, rate hikes boost NIM as variable-rate loans reprice higher immediately. However, if deposit competition forces banks to pay higher deposit rates, funding costs rise and compress NIM.

What is Interest Rate Spread?

Interest Rate Spread is the difference between average yield on earning assets and average cost of interest-bearing liabilities (Spread = Asset Yield % - Liability Rate %).

What compresses a bank's Net Interest Margin?

NIM compresses when deposit funding costs rise faster than loan yields, or when an inverted yield curve reduces long-term lending margins.

How does an inverted yield curve impact NIM?

An inverted yield curve (short-term rates higher than long-term rates) squeezes bank margins because banks borrow short-term (deposits) and lend long-term (30-year mortgages).

How does NIM differ from Net Profit Margin?

NIM only considers interest income and interest expenses relative to earning assets. Net Profit Margin considers all income (including non-interest fees), operating expenses, and taxes relative to revenue.