Skip to main content
Credit Risk

Nonperforming Loan Ratio: Bank Data Analysis in Python

Most U.S. banks carry NPL ratios well under 2%; the right tail flags asset-quality stress.

5 MIN READ
Distribution of nonperforming loan ratios across U.S. banks
Most U.S. banks carry NPL ratios well under 2%; the right tail flags asset-quality stress.

Why Does the Nonperforming Loan Ratio Belong in Every Bank Analyst’s Toolkit?

The nonperforming loan (NPL) ratio is one of those metrics that looks simple on a slide deck and turns into a research project the moment you try to build it rigorously from source data. Loans 90 or more days past due plus loans on nonaccrual status, divided by total loans, straightforward enough in concept. In practice, getting there cleanly across a population of U.S. commercial banks requires pulling FFIEC Call Report schedules, reconciling MDRM codes across filing periods, handling charter changes, and deciding whether you are including held-for-sale positions and what to do with troubled debt restructurings reported before ASU 2022-02 eliminated TDR accounting.

If you have sat in an ALCO meeting where someone challenged the peer comparison because “their NPLs include consumer, ours do not,” you know exactly what I mean.

BankRegReports puts the RC-N schedules and the UBPR ratios for every FDIC-insured bank behind one API, so the builds below start from data that is already reconciled across filing periods. No enterprise data contract, no spreadsheet exports from a legacy portal, no manual schedule reconciliation.


What Goes Into the NPL Ratio

Before the code, it is worth being precise about the components, because the raw regulatory filings give you multiple valid construction paths. The one-line formula and a worked bank example are on the NPL ratio glossary page.

Nonaccrual loans are reported on Call Report Schedule RC-N, Column C. These are loans where the bank has stopped accruing interest because collection of principal or interest in full is doubtful. MDRM code RCON1403 captures the total for commercial banks on the quarterly Call Report. The official source is the FFIEC.

Loans 90+ days past due and still accruing appear in RC-N Column B. MDRM code RCON1407 is the aggregate. Banks keep these accruing when they believe collection is still probable; FHA/VA guaranteed residential mortgages show up here frequently and can distort peer comparisons if you are not careful.

The standard NPL ratio used in bank examinations and most UBPR-based peer analysis is:

NPL Ratio = (Nonaccrual Loans + 90+ DPD Still Accruing) / Total Loans and Leases

Total loans and leases net of unearned income is RCON2122 on Schedule RC-C (it must equal the sum of Schedule RC items 4.a and 4.b).

One note on prefixes before you pull anything. The same call report item carries a different prefix depending on which form the bank files. FFIEC 041 and 051 filers report RCON, for domestic offices. FFIEC 031 filers report RCFD on a consolidated basis, and RCFN for foreign offices, so total deposits for an 031 filer is RCON2200 plus RCFN2200 rather than RCON2200 alone. Schedule RC-R Part I (regulatory capital and the capital ratios) moved off RCON with the Basel III revisions of 2014 and 2015 and now uses RCOA on the 041 and 051 and RCFA on the 031; Part II (risk-weighted assets) still reports under RCON and RCFD. Query a single prefix and you will silently drop a whole population rather than get an error, and for an RCON-only query that population is the largest banks in the country.

The UBPR publishes this ratio directly as UBPR7414, noncurrent loans and leases (90 days or more past due plus nonaccrual) as a percent of gross loans and leases. BankRegReports ingests both the raw MDRM codes and the pre-computed UBPR ratios, so you can validate your own builds against the regulatory ground truth, something legacy financial data providers rarely let you do because their formulas are opaque.


Common Analytical Patterns

Vintage Deterioration: Watching NPLs Build

NPL ratios are a lagging indicator. By the time a loan migrates to nonaccrual, the credit deterioration happened quarters earlier. One useful pattern is to track the rate of change in the ratio rather than the level:

import pandas as pd

# df: one row per bank per quarter, with columns rssd_id, report_date,
# RCON1403 (nonaccrual), RCON1407 (90+ days past due, still accruing)
# and RCON2122 (total loans and leases, net of unearned income)
df = df.sort_values(["rssd_id", "report_date"])
df["npl_ratio"] = (df["RCON1403"] + df["RCON1407"]) / df["RCON2122"] * 100

# change over four quarters, in percentage points
df["npl_change_4q"] = df.groupby("rssd_id")["npl_ratio"].diff(4)

latest = df[df["report_date"] == df["report_date"].max()]
risers = latest[(latest["npl_ratio"] < 1.0) & (latest["npl_change_4q"] > 0.25)]

This is particularly useful when you are screening a large peer set for early stress signals: banks where NPLs are still low in absolute terms but rising sharply are often more interesting than banks already at elevated levels.

CRE Concentration and NPL Correlation

Commercial real estate concentration is one of the primary drivers of elevated NPLs at community banks. You can pull CRE concentration ratios alongside NPL data to build a simple risk quadrant:

# cre_to_capital: CRE loans (excluding owner-occupied) divided by
# Tier 1 capital plus the allowance, in percent, computed beforehand
latest = latest.copy()
npl_cut = latest["npl_ratio"].quantile(0.75)
latest["quadrant"] = (
    latest["cre_to_capital"].ge(300).map({True: "high CRE", False: "low CRE"})
    + " / "
    + latest["npl_ratio"].ge(npl_cut).map({True: "high NPL", False: "low NPL"})
)
print(latest["quadrant"].value_counts())

The 300% CRE-to-capital level comes from the 2006 interagency guidance, where, paired with portfolio growth of 50% or more over the prior 36 months, it screens banks for closer supervisory review. It is a screen, not a limit. Layering that against NPL trends gives you a rapid triage of which institutions in a peer set are likely to draw the most examiner scrutiny in the next cycle.


Data Sources Behind the Numbers

BankRegReports standardizes and normalizes data from multiple regulatory filings, which matters when you are doing multi-institution analysis:

  • FFIEC Call Reports: the primary source for bank-level asset quality schedules (RC-N), balance sheet items (RC), and income data (RI). Updated quarterly; banks file within 30 days of the report date (35 for banks with multiple foreign offices).
  • UBPR: the Uniform Bank Performance Report, which contains pre-computed ratios that examiners use. Useful as a cross-check against your own calculations.
  • FDIC Summary of Deposits and Institutions: charter metadata, branch counts, and geographic footprint needed for peer group construction.
  • Federal Reserve NIC and Y-9C: holding company data, ownership structure, and consolidated financials for banks that file as part of a BHC. Essential for getting to the right legal entity when a bank operates under a holding company structure.
  • NCUA 5300 Call Report: the credit union equivalent, useful when your peer analysis spans beyond commercial banks.
  • SEC EDGAR: 10-K and 10-Q filings with XBRL-tagged financials, which provide an additional validation layer and capture disclosures that do not flow through the regulatory call reports.

Having all of these in a single normalized API means you are not stitching together five different download formats and resolving entity identifiers manually, which is most of the work in any serious bank data project.


Building This Into a Workflow

The patterns above are building blocks for larger analytical workflows:

  • ALCO reporting: automated peer comparison tables that update quarterly without manual data pulls
  • Examination prep: replicating the UBPR ratios your examiners will have in hand before they walk in the door
  • Credit portfolio monitoring: screening correspondent banking counterparties or interbank exposure against regulatory asset quality trends
  • Acquisition due diligence: rapid NPL trend analysis across a target’s filing history to surface vintage deterioration before the detailed loan review

Get Started

If you have been managing bank data workflows through spreadsheet exports or enterprise data platform subscriptions that charge for every query, BankRegReports is worth fifteen minutes of your time.