Spring Creek Advisory Spring Creek Advisory BANK CREDIT RISK
Not for Profit Data Analysis / Methodology & field reference

Methodology and field reference

Every number in the Not for Profit Data Analysis tool is a figure an organization reported on its own IRS Form 990, 990-EZ or 990-PF, or an arithmetic combination of those figures. This page says where each one comes from, line by line, and states every formula the tool computes. Nothing here is estimated, modeled or adjusted.

What the published dataset contains

Rebuild with scripts/harvest_990.py then scripts/build_990_dataset.py and scripts/build_nfp_dataset.py.

Where the data comes from

The IRS publishes every electronically filed 990-series return as XML, in ZIP archives organized by filing year, on its Form 990 series downloads page. The tool covers the five most recent filing years. Because the archives are organized by when the IRS received a return rather than the year it covers, five filing years is what it takes to see three complete tax years for most filers.

The pipeline is three steps, each a script in scripts/:

  1. harvest_990.py reads the download page, fetches each archive with resume support, and records what it got in a manifest.
  2. build_990_dataset.py streams every return out of the archives without unpacking them, maps the XML elements onto columns, and writes a local SQLite database of all three return types.
  3. build_nfp_dataset.py exports the slice the web tool needs as sharded JSON under data/nfp/.

Two mechanical details are worth recording because they change the counts. Five of the archives are written with Deflate64 compression, which Python's zipfile refuses; those are extracted with Info-ZIP unzip instead, and dropping them silently would have lost about 412,000 returns. And Form 990-T returns are skipped: a 990-T reports an exempt organization's unrelated business income, not its own financial statements.

Which return is used when an organization filed more than once

The same tax year can appear more than once — an amended return, or a return that shows up in two archives. For each organization and tax year the tool uses the latest submission, ranked by filing year, then amended status, then object id, which runs in submission order within a filing year. The three years on a spread are that organization's three most recent tax years on file, so a spread is not necessarily three consecutive years: the period-ended row on each sheet says exactly what each column covers.

How current the most recent year is

The dataset holds every archive the IRS has published. What it cannot hold is a return nobody has filed yet, and that is why the most recent fiscal year differs from one organization to the next. A Form 990 is due four and a half months after year end and two three-month extensions are routine, so a calendar-year 2025 return can arrive any time up to November 2026.

Measured on this build: tax year 2024 holds 684,947 returns and is effectively complete, while tax year 2025 holds 273,204 and is roughly 40% in. Of the organizations in the tool, 33.8% have a 2025 return as their most recent, 53.9% have 2024, and the remaining 12% last filed in 2023 or earlier — organizations that dissolved, dropped below the filing threshold, or moved to the 990-N postcard.

Every view therefore states the year it is showing rather than implying a common one: the spread columns carry the fiscal year and the period ended date, sheet three says which year its ratios are as of, and the prospecting report has a Year column because its rows are deliberately each organization's own latest return. Comparing two organizations means checking you are comparing the same year.

The formulas on sheet three

Line numbers are Form 990 references: X-26 means Part X line 26. The tool computes nothing that is not listed here.

Debt to equity Total liabilities (X-26) ÷ total net assets or fund balances (X-32).
Current ratio (proxy) (X-1 cash + X-2 savings and temporary cash investments + X-3 pledges and grants receivable + X-4 accounts receivable + X-7 other notes and loans receivable + X-8 inventories + X-9 prepaid expenses) ÷ (X-17 accounts payable and accrued expenses + X-18 grants payable + X-19 deferred revenue).
Working capital (proxy) The same two groups of lines as the current ratio, subtracted instead of divided.
Cash and equivalents X-1 cash (non-interest-bearing) + X-2 savings and temporary cash investments. On a 990-EZ, Part II line 22, which combines cash, savings and investments on one line.
Net assets without donor restriction X-27 as reported. For returns filed on the pre-2018 presentation, the unrestricted net assets line in the same position.
Days cash on hand Cash and equivalents ÷ ((total functional expenses IX-25 − depreciation, depletion and amortization IX-22) ÷ 365). Depreciation is removed because it is not a cash cost.
Days cash and investments (Cash and equivalents + investments in publicly traded securities X-11 + other securities X-12) ÷ ((total functional expenses IX-25 − depreciation IX-22) ÷ 365). Reported cash on its own understates liquidity badly for an organization that holds reserves in investments: one large hospital system shows ten days of cash against $6.3 billion on line 12. Note that line 12 is where pooled funds and partnership interests are reported, some of which are illiquid, and the return does not break them out — so read this as an upper bound and the cash figure as a lower one. Neither is adjusted for donor restrictions.
Net asset growth rate Total net assets (X-32) for the most recent year ÷ the prior year − 1. The compound annual rate shown beside it spans the oldest to the newest year on the spread and is only shown when both are positive.
Operating margin (Total revenue VIII-12 − total functional expenses IX-25) ÷ total revenue.
Program expense ratio Program service expenses (IX-25 column B) ÷ total functional expenses (IX-25 column A).
Notes, bonds and mortgages X-20 tax-exempt bond liabilities + X-23 mortgages and notes payable secured by real property + X-24 unsecured notes and loans payable. Interest expense shown beside it is IX-20.
Cash donations (prospecting report) Total contributions, gifts and grants (VIII-1h) − government grants (VIII-1e) − non-cash contributions (VIII-1g). Program service revenue (VIII-2g) is not included. Line 1g is a memo line reporting how much of line 1h arrived as property rather than money, so subtracting it leaves money actually given. That it is a subset rather than an addend was checked, not assumed: across 275,063 returns reporting both, lines 1a–1f sum exactly to 1h in 100.0% of them.
In-kind (prospecting report) Line VIII-1g on its own. Only the full Form 990 asks for it. A 990-EZ or 990-PF filer may well have received donated goods, but its return never separates them, so those rows show "n/r" and their cash donations figure may include in-kind giving. Where the distinction matters for a 990-EZ or 990-PF organization, Schedule B or the audited statements are the place to look.
Common-size percentages On the income statement, each line ÷ that year's total revenue (VIII-12). On the balance sheet, each line ÷ that year's total assets (X-16). Blank when the base is zero or missing.

What the 990 cannot tell you

The balance sheet is unclassified. Form 990 Part X does not split current from long-term assets or liabilities. The current ratio and working capital on sheet three are therefore proxies built from the lines that are ordinarily current, and they are labeled that way everywhere they appear. An organization with a large receivable due in three years, or a mortgage payment due next month, will not look the way a classified balance sheet would show it.
Unrestricted cash is not a reported figure. The 990 reports cash (X-1, X-2) and, separately, net assets without donor restriction (X-27). It does not report how much of the cash is unrestricted. The tool shows both reported figures and does not combine them into a single "unrestricted cash" number, because the return does not support one.

Field reference

Every column in the database and the exact XML element it is read from, rendered live from data/nfp/lines.json — which is generated from scripts/nfp990_fields.py, the same map the parser uses. Where more than one element is listed, they are alternates tried in order, because the IRS renamed elements between return versions. Element names were taken from the IRS schema packages on the TEOS schemas page, and the build reports how often each column was actually populated so a missed rename shows up as a column of nulls rather than passing silently.

How much of the corpus is published

The database holds every e-filed return for the covered years. The site carries a sharded slice of it, because the host allows 250 MB of static content per app and the full three-year export runs to roughly 2.7 GB before compression.

What keeps it inside that budget is compression and encoding, not exclusion. The shards are stored gzipped — roughly a third of raw size for the indexes and a quarter for the statements — and decompressed in the browser, which needs no host configuration and behaves identically on a local server. Statement lines are written as [column index, year, year, year] against a column list carried in each shard rather than repeating the column name on every organization. Beginning-of-year balances are not exported at all, because three years of end-of-year figures already give the spread its three columns and the growth rate its two points. Mission text is cut to one line, which is what the sheet shows.

The exporter also accepts a revenue floor, which governs only which organizations get a pre-built spread; the figure is reported at the top of this page, and when it is set to none every filer carries one. The state index always carries every filer — name, city, TIN, subsection, donations, cash and net assets from its most recent return — so search and the prospecting report are complete whatever the floor. An organization above the floor is marked "index only" in the results, and its spread appears as soon as the export is rebuilt with a lower one; the local database already holds every year of it.

Rebuilding

The archives are roughly 17 GB and the local database roughly 4 GB, so neither is kept in the repository — only the exported JSON under data/nfp/ is. To refresh after the IRS posts new archives:

The IRS publishes a new archive roughly once a month. A scheduled check runs every Monday, compares what the IRS lists against the archive list recorded in this dataset, and raises an issue when the two diverge; it does not rebuild, because the pipeline needs the archive cache. The rebuild is one command on the machine holding that cache:

  1. python scripts/refresh_990.py — checks, harvests only new archives, re-parses only the archives whose shard is out of date, rebuilds the database, and re-exports data/nfp/. Budget about eighty minutes, most of it the export.

Or the same steps by hand, which is what that script runs:

  1. python scripts/check_990_updates.py — is a refresh due?
  2. python scripts/harvest_990.py — downloads anything new.
  3. python scripts/build_990_dataset.py --changed-only --audit — re-parses the new archives, merges every shard, prints coverage.
  4. python scripts/build_nfp_dataset.py --size-report — shows what each detail floor would cost.
  5. python scripts/build_nfp_dataset.py --min-revenue <floor> — writes data/nfp/. Add --indexes-only to rewrite just the search and prospecting indexes.

Read the coverage audit before publishing a refresh. An element the IRS renames between return versions shows up as a column that drops to zero rather than as an error, which is how four extraction faults in this dataset were found; a rebuild that committed itself would have published them silently.

← Back to the tool