Net Interest Margin Explained: Formula, Bank Profitability, and Interest Rate Sensitivity

May 9, 2026 · guides · 11 min read

Net Interest Margin Explained: Formula, Bank Profitability, and Interest Rate Sensitivity

Net interest margin is the single most important profitability metric in banking. It tells you how efficiently a bank converts its interest-bearing assets into income, and it drives nearly every other measure investors use to evaluate a financial institution. Understanding net interest margin (NIM) is essential for anyone analyzing bank stocks, comparing lenders, or trying to make sense of how rising or falling interest rates ripple through the financial sector.

This guide covers the NIM formula, what earning assets are, why NIM compresses in low-rate environments, how asset-sensitive and liability-sensitive balance sheets respond differently to rate changes, and how NIM fits into bank valuation.

What Is Net Interest Margin?

Net interest margin measures the difference between what a bank earns on its loans and investments and what it pays out on deposits and borrowings, expressed as a percentage of the bank's total earning assets.

Think of a bank as a spread business. It borrows money from depositors at a low rate (say, 1.5% on a savings account) and lends that money to borrowers at a higher rate (say, 6% on a mortgage). The gap between those two rates, after accounting for all earning assets and funding costs across the entire balance sheet, is what NIM captures.

A higher NIM generally means more profitable lending operations. A compressed NIM puts pressure on earnings and return on equity.

The NIM Formula

NIM = Net Interest Income / Average Earning Assets

Every term in that formula has a specific meaning.

Net interest income is the dollar value of interest earned on loans and investments minus the interest paid on deposits and other borrowed funds. You find it near the top of a bank's income statement, above the provision for loan losses.

Average earning assets is typically calculated as the simple average of earning assets at the start and end of the reporting period (or sometimes the average of each quarter-end balance across four quarters for annual reporting). Using the average rather than an end-of-period snapshot smooths out timing effects from large transactions that close near period-end.

The result is expressed as an annualized percentage. If a bank reports quarterly figures, the quarterly NIM is annualized by multiplying by 4 (or more precisely by 365/days in the quarter).

Worked Example

Consider a regional bank, First Valley Bank, with the following figures for a full year:

NIM = $325M / $5,200M = 6.25%

That 6.25% is First Valley Bank's net interest margin. For every $100 of earning assets the bank holds on average throughout the year, it earns $6.25 in net interest income after funding costs.

Now compare that to a large money-center bank with $850 billion in average earning assets and net interest income of $34 billion.

NIM = $34B / $850B = 4.0%

The money-center bank earns a lower NIM, which is typical given its different mix of assets and lower-cost institutional deposit base. Neither figure is 'good' or 'bad' in isolation; they need to be benchmarked against peer institutions and historical trends.

What Are Earning Assets?

Earning assets are the interest-generating assets on a bank's balance sheet. They are the denominator in the NIM formula and the engine of a bank's interest income.

Primary Categories of Earning Assets

Loans and leases are the largest category for most banks. This includes commercial and industrial loans, commercial real estate loans, residential mortgages, home equity lines of credit, auto loans, credit card receivables, and student loans. Each carries a different yield, duration, and credit risk profile.

Investment securities include US Treasury bonds, agency mortgage-backed securities, municipal bonds, and corporate bonds held in the bank's portfolio. Banks hold securities partly for liquidity and partly for income. Yields on the securities portfolio are generally lower than loan yields but also carry less credit risk.

Interest-bearing deposits at other banks include balances held at the Federal Reserve (excess reserves) and at correspondent banks. Since 2008, the Fed has paid interest on reserve balances (IORB), making this a more meaningful earning asset category than it was historically.

Federal funds sold and repurchase agreements are short-term lending instruments between banks.

Non-earning assets (such as cash in vault, bank premises, goodwill, and other non-interest-bearing balances) are excluded from the denominator. Including them would dilute the ratio and misrepresent the actual yield on deployed capital.

Why NIM Is the Primary Profitability Metric for Banks

For non-financial companies, analysts focus on gross margin or operating margin to measure how efficiently the business generates profit. For banks, NIM plays an equivalent role, but it is more foundational because interest income is the core revenue stream of the business model.

Unlike industrial companies where revenue and costs are often unrelated in their pricing dynamics, a bank's revenue (interest earned) and its primary cost (interest paid) are directly linked through the same rate environment. When the Federal Reserve raises its policy rate, both sides of a bank's balance sheet reprice, but they reprice at different speeds and magnitudes. NIM captures that net effect.

NIM vs. Net Interest Income

Net interest income (NII) is an absolute dollar figure. NIM is the rate-adjusted version expressed as a percentage. Both matter.

NII tells you the total profit dollars generated from the spread business. A bank can grow NII simply by growing its balance sheet, even if its NIM is falling, as long as asset growth offsets margin compression.

NIM tells you whether the bank is earning an appropriate spread on each dollar deployed. A bank expanding rapidly while NIM compresses may be growing into lower-quality or lower-yielding assets, which is a red flag.

Analysts track both together. Growing NII with stable or expanding NIM is the ideal scenario. Growing NII with a shrinking NIM requires more scrutiny.

How Interest Rates Affect Net Interest Margin

The relationship between interest rates and NIM is the most important dynamic in bank analysis. It determines which banks benefit from a rising rate environment and which ones struggle.

Asset-Sensitive vs. Liability-Sensitive Balance Sheets

A bank's 'rate sensitivity' describes whether rising rates help or hurt its NIM.

An asset-sensitive bank holds more short-duration or variable-rate assets than liabilities. When rates rise, its earning assets reprice upward faster than its funding costs increase. NIM expands. This is the more common positioning for regional and community banks, especially those with large commercial loan books tied to floating rate benchmarks like SOFR (the successor to LIBOR) or the prime rate.

A liability-sensitive bank holds more long-duration assets funded by shorter-duration or variable-rate liabilities. When rates rise, its funding costs climb faster than its asset yields. NIM compresses. Large banks with significant trading liabilities or brokered deposit books can find themselves in this position.

Most banks try to manage toward a modestly asset-sensitive position, since the US rate cycle has historically spent more time rising than falling. However, the composition of a bank's balance sheet, not its intentions, determines its actual sensitivity.

Deposit Repricing: The Key Variable

Deposit repricing behavior is the most important, and most misunderstood, element of rate sensitivity analysis.

When the Fed raises rates, loan yields adjust relatively quickly for floating-rate products. But deposits do not automatically reprice at the same pace. This phenomenon is called 'deposit beta' in bank analysis: it measures what percentage of a rate increase is passed through to deposit holders.

During the early stages of a rate-hiking cycle, banks often capture most of the upside. Depositors move slowly, loyalty is sticky, and checking and savings accounts sit far below market rates. NIM expands.

As a hiking cycle matures, deposit betas accelerate. Customers move money from low-yield savings accounts to money market funds or higher-rate CDs. Banks must compete for deposits by raising rates. Funding costs catch up to or exceed the pace of asset yield increases. NIM peaks and can begin to compress even as the policy rate remains high.

This dynamic was visible clearly in the 2022-2023 rate-hiking cycle. US commercial bank NIMs expanded sharply in 2022 as the Fed hiked aggressively, then faced more pressure in 2023 as deposit costs finally caught up.

Fixed-Rate Asset Drag

Banks with large fixed-rate mortgage portfolios or long-duration bond portfolios face a different problem in a rising rate environment. Their existing fixed-rate loans reprice slowly (only as loans mature or prepay) while their funding costs rise. This creates an 'asset drag' that compresses NIM even for nominally asset-sensitive institutions.

The 2022-2023 period illustrated this problem for several banks, where large unrealized losses on long-duration bond portfolios purchased during the low-rate era compressed both reported NIM and tangible book value.

Historical NIM Trends for US Commercial Banks

NIM for US commercial banks, as tracked by the Federal Reserve's H.8 data, has been in a long-term structural decline since the 1990s.

In the 1990s, the average NIM for US commercial banks was in the 4.0% to 4.5% range. During the pre-financial-crisis period of 2000-2007, it averaged closer to 3.5% to 3.8%. Following the financial crisis and the decade of near-zero interest rates (2010-2021), NIM compressed to historic lows, reaching approximately 2.5% to 2.9% for the aggregate US banking system.

The Federal Reserve's aggressive rate-hiking cycle that began in March 2022 pushed the average commercial bank NIM back above 3.0%, reaching approximately 3.3% to 3.4% in late 2022 and 2023 before softening slightly as deposit costs rose.

This long-term downward trend reflects structural changes: increased competition for deposits from money market funds, the growth of fee-based businesses, tighter spreads from financial technology competition, and prolonged periods of unconventional monetary policy.

NIM Compression in Low-Rate Environments

When the Federal Reserve holds rates near zero, as it did from 2009-2015 and again from 2020-2022, banks face a 'zero lower bound' problem on their liability side. They cannot charge depositors a negative interest rate on savings accounts (in most cases). But rates on short-term assets like Treasury bills or short-duration loans fall sharply toward zero.

The practical result is that the floor on funding costs prevents banks from fully benefiting when asset yields collapse. NIM compresses. Banks respond by extending asset duration (buying longer-term bonds or growing mortgage portfolios) to capture more yield, which introduces rate risk when the cycle eventually turns.

This was the seed of the 2023 regional bank stress. Institutions that extended duration aggressively in 2020-2021 to offset zero-rate NIM compression found their bond portfolios deeply underwater when the Fed hiked 525 basis points in 18 months.

NIM by Bank Type

NIM is not uniform across the banking industry. Different business models and funding structures produce meaningfully different NIM profiles.

Community Banks

Community banks (generally those with under $10 billion in assets) tend to have the highest NIMs, often ranging from 3.5% to 5.0% or above for high-performing institutions. They rely heavily on relationship-based deposits (often checking accounts with minimal yield), focus on commercial real estate and small business lending at premium rates, and have limited non-interest income diversification. Their entire profitability model is more dependent on NIM than larger institutions.

Regional Banks

Mid-tier regional banks (roughly $10 billion to $100 billion in assets) show more variation. Their NIMs typically range from 2.8% to 3.8%, reflecting more diverse loan books, some capital markets fee income, and a more competitive deposit environment in their markets. Many regional banks have commercial loan books that are predominantly floating-rate, making them meaningfully asset-sensitive.

Money-Center Banks

Large money-center banks (the top tier by asset size) typically report the lowest NIMs, often in the 2.0% to 3.0% range. These institutions have large trading books, significant fee-generating businesses (investment banking, wealth management, transaction processing), and complex funding structures that include institutional deposits, commercial paper, and long-term debt. Their lower NIM is offset by substantial non-interest income, which can represent 40% to 60% of total revenues.

Non-Interest Income as a Complement to NIM

One reason it is important not to evaluate NIM in isolation is that banks differ substantially in how much of their revenue comes from non-interest sources.

Non-interest income includes service charges on deposit accounts, investment banking fees, trust and wealth management fees, mortgage banking gains, card interchange fees, and trading income. For large diversified banks, a lower NIM may be more than compensated by higher non-interest income as a share of total revenue.

The efficiency ratio (non-interest expense divided by net revenue, where net revenue is NII plus non-interest income) captures this broader picture. A bank with a 2.5% NIM but a highly efficient fee-income engine can be significantly more profitable than a community bank with a 4.0% NIM and no fee businesses.

When comparing banks, analysts look at NIM alongside:

NIM in Bank Valuation: The P/TBV and ROE Connection

NIM feeds directly into bank valuation through its impact on ROE and the price-to-tangible-book-value (P/TBV) multiple that analysts use to value bank stocks.

The Chain of Logic

A higher NIM produces higher net interest income, which drives higher pre-provision net revenue (PPNR). Higher PPNR gives banks more cushion to absorb loan losses without reporting net losses and also flows through to higher net income when credit conditions are benign.

Higher net income relative to equity produces a higher ROE. And P/TBV multiples for bank stocks are highly correlated with ROE. Banks that earn a consistent 14% to 16% ROE typically trade at 1.5x to 2.5x tangible book value or above. Banks stuck at 7% to 9% ROE often trade at or below tangible book value.

Since NIM is the primary driver of net interest income for most banks, it sits at the beginning of this valuation chain. Even a 20 to 30 basis point difference in NIM across otherwise similar banks can produce a material difference in ROE and a corresponding difference in valuation multiples.

Worked Valuation Example

Consider two hypothetical regional banks, each with $10 billion in average earning assets, $1.5 billion in shareholders' equity, and an efficiency ratio of 58%.

Bank A has a NIM of 3.6%.

Bank B has a NIM of 4.2%.

A 60 basis point difference in NIM, all else equal, produces a meaningful difference in net income and a 22% difference in estimated equity market capitalization in this simplified example. In practice, the sensitivity is even larger for banks that can push ROE above 12% to 13%, where valuation multiples expand more aggressively.

Practical Considerations When Analyzing NIM

When you encounter NIM figures in bank earnings reports or research, several nuances are worth keeping in mind.

Tax-equivalent adjustments. Some banks report NIM on a tax-equivalent (TE) basis, which grosses up tax-exempt municipal bond income as if it were taxable income. This makes comparisons across banks with different municipal bond exposure more consistent, but it overstates reported NIM relative to as-reported figures. Both versions are valid; just be consistent when comparing.

Purchase accounting accretion. Banks that have grown through acquisitions may report NIM that includes purchase accounting accretion, the amortization of fair value marks on acquired loans. This inflates NIM during the years following an acquisition and then creates a 'NIM headwind' as the accretion runs off. Analysts typically strip it out to assess 'core NIM.'

One-time items. Prepayment penalties on commercial loans, PPP loan fee recognition, or large payoff events can cause NIM to spike in a single quarter. Trailing four-quarter averages or management's 'normalized NIM' guidance helps smooth these effects.

Loan mix shifts. NIM changes not only when rates move but also when a bank changes the mix of its loan book. A bank that shifts from lower-yield residential mortgages to higher-yield commercial and industrial loans can expand NIM without any change in interest rates.

Key Takeaways

Net interest margin is the spread between what a bank earns on its interest-bearing assets and what it pays on its funding sources, divided by average earning assets. It is the central profitability metric for lending institutions because it directly measures the efficiency of the core business model.

The NIM formula is straightforward: net interest income divided by average earning assets. But the factors that drive it, including deposit repricing behavior, asset duration, loan mix, and the path of interest rates, require genuine analysis to interpret correctly.

Rising interest rates tend to help asset-sensitive banks and hurt liability-sensitive ones, but the benefit depends heavily on how quickly deposit costs rise relative to asset yields. In a mature hiking cycle, deposit betas accelerate and NIM gains can reverse.

Over the past three decades, structural forces have compressed average US bank NIM. The institutions that sustain higher NIMs tend to be those with strong core deposit franchises (checking accounts with low yield sensitivity), focused commercial lending relationships, and disciplined pricing.

When evaluating a bank's NIM, compare it to peers of similar size and business model, track the trend over multiple interest rate cycles, and connect it to the downstream profitability metrics: return on assets, return on equity, and ultimately the price-to-tangible-book valuation multiple that the market assigns.