San Francisco County (827,526 residents) beside counties of similar size across the nation — 59 counties. Every figure links to where it comes from. “Middle of the group” is the median; “middle half” is the range the middle half of counties fall in. A dead end means the figure hasn’t been gathered yet, never that it’s hidden.
Who’s in the group: Counties anywhere in the U.S. within 25% of its population (2024 Census estimate), either way. If fewer than five fit, the eight closest in population.
| Item — open one to see every county | San Francisco | Middle of the group | Middle half | Rank, highest first |
|---|---|---|---|---|
| Federal grants, fiscal 2025 | $3.40 billion | $429.3 million | $180.2 million – $723.4 million | 2nd of 59 |
| American Rescue Plan money, 2021 to date | $3.57 billion | $1.08 billion | $610.3 million – $2.16 billion | 12th of 59 |
Source: Federal grants: USAspending.gov, grant awards by place of performance, fiscal 2025 (Oct. 2024 to Sept. 2025) — money for work done in the county by anyone: the county, its cities, schools, hospitals, nonprofits and others, not only the county government. American Rescue Plan: USAspending.gov, disaster emergency fund code V, by recipient location, March 2021 to date. Both pulled through the USAspending API (spending by geography). Per resident uses the 2024 Census population estimate.
San Francisco County’s own 2027 budget, line by line, beside the 33 of 59 counties of similar size across the nation whose budgets we’ve read — the other 26 are dead ends until theirs are read.
| Item — open one to see every county | San Francisco | Middle of the group | Middle half | Rank, highest first |
|---|---|---|---|---|
| Whole budget, all funds | $16.85 billion | $1.65 billion | $841.4 million – $2.94 billion | 1st of 34 |
| Capital projects · dead end: no line matched — may sit inside a combined fund | $0 | $1.1 million | $0 – $75.1 million | — |
| Debt and bond payments · dead end: no line matched — may sit inside a combined fund | $0 | $22.6 million | $0 – $70.9 million | — |
| County judge, commissioners and governing body | $480.4 million | $6.8 million | $0 – $15.9 million | 1st of 34 |
| Jail and detention · dead end: no line matched — may sit inside a combined fund | $0 | $70.7 million | $3.9 million – $94.6 million | — |
| Prosecutor and county attorney | $98.6 million | $0 | $0 – $22.7 million | 1st of 34 |
| Public defender | $60.9 million | $0 | $0 – $14.2 million | 1st of 34 |
| Sheriff and patrol | $1.22 billion | $84.5 million | $36.1 million – $193.4 million | 1st of 34 |
| Courts and court clerks | $65.3 million | $46.3 million | $1.4 million – $63.9 million | 9th of 34 |
| Public safety and justice, combined (not split by office) · dead end: no line matched — may sit inside a combined fund | $0 | $5.5 million | $575,254 – $30.6 million | — |
| Treasurer and tax collection · dead end: no line matched — may sit inside a combined fund | $0 | $8.7 million | $0 – $23.3 million | — |
| County clerk and records · dead end: no line matched — may sit inside a combined fund | $0 | $795,876 | $0 – $6.2 million | — |
| Emergency management and 911 | $111.5 million | $0 | $0 – $15.6 million | 2nd of 34 |
| Fire protection | $560.6 million | $710 | $0 – $23.7 million | 1st of 34 |
| Public health and mental health | $3.58 billion | $56.3 million | $3.7 million – $113.5 million | 1st of 34 |
| Indigent care and human services | $2.75 billion | $38.7 million | $7,925 – $215.4 million | 1st of 34 |
| Roads and bridges | $1.91 billion | $40.8 million | $18.3 million – $115.2 million | 1st of 34 |
| Solid waste and recycling · dead end: no line matched — may sit inside a combined fund | $0 | $1.2 million | $0 – $53.9 million | — |
| Libraries | $198.0 million | $96,000 | $0 – $11.1 million | 1st of 34 |
| Parks, fair and recreation | $344.4 million | $9.8 million | $0 – $35.0 million | 1st of 34 |
| Planning, zoning and development | $177.9 million | $23.8 million | $4.7 million – $47.9 million | 2nd of 34 |
| Utilities (water, sewer, power, airport, port, transit) | $3.88 billion | $35.5 million | $0 – $154.5 million | 1st of 34 |
| Buildings and maintenance · dead end: no line matched — may sit inside a combined fund | $0 | $3.2 million | $0 – $17.5 million | — |
| General government, insurance and grants | $60.4 million | $80.8 million | $32.0 million – $202.0 million | 21st of 34 |
| General fund, not split by office | $756.2 million | $0 | $0 – $0 | 2nd of 34 |
| Lines not matched to a category yet | $604.5 million | $14.7 million | $0 – $71.3 million | 3rd of 34 |
Not shown, because San Francisco County and most of the group show $0: transfers between funds and reserves; federal relief and payments (arpa, cares, latcf, pilt, opioid); natural resources and environment; employee benefits, workers’ comp and fleet; juvenile services; coroner and medical examiner; elections; assessor and property valuation; technology and data; ambulance and ems; hospitals; health and human services, combined (not split); veterans services; weed, pest and mosquito control; extension, 4-h and conservation; schools and colleges; cemeteries, airports, museums and other.
Source: Each county’s own adopted budget: Arkansas counties from their appropriation ordinances, Idaho counties from their filings with the State Controller, and the other full County Commons sites from their published budgets. Every line is matched to one shared category, by Arkansas’s standard department code where there is one, otherwise by words in its name — open any category to see each line and the rule that matched it, and download every line. Years differ (most are 2026 or fiscal 2025) and so do the jobs counties do, so read these as a guide to scale. Only counties whose budgets we’ve read can appear here; for the rest this is a dead end until their budget is read.
If you know what one of these pays for, tell us.
| Item — open one to see every county | San Francisco | Middle of the group | Middle half | Rank, highest first |
|---|---|---|---|---|
| All county government spending · dead end: no figure | — | $860.7 million | $497.4 million – $1.52 billion | — |
| Jail and corrections · dead end: no figure | — | $61.8 million | $37.9 million – $85.5 million | — |
| Sheriff and police · dead end: no figure | — | $65.2 million | $37.0 million – $146.8 million | — |
| Courts and legal · dead end: no figure | — | $46.5 million | $30.4 million – $71.3 million | — |
| Roads and highways · dead end: no figure | — | $48.4 million | $25.7 million – $82.0 million | — |
| Public health · dead end: no figure | — | $58.7 million | $33.4 million – $125.9 million | — |
| Public welfare · dead end: no figure | — | $31.0 million | $8.9 million – $108.2 million | — |
| Fire protection · dead end: no figure | — | $520,000 | $0 – $11.2 million | — |
| Parks and recreation · dead end: no figure | — | $12.2 million | $2.9 million – $28.4 million | — |
| Trash and recycling · dead end: no figure | — | $3.7 million | $0 – $34.5 million | — |
| Sewers · dead end: no figure | — | $3.1 million | $0 – $54.9 million | — |
| Housing and community development · dead end: no figure | — | $5.7 million | $0 – $15.4 million | — |
| Running the government (finance, staff, buildings) · dead end: no figure | — | $52.5 million | $38.8 million – $94.8 million | — |
| Utilities (water, power, transit) · dead end: no figure | — | $375,000 | $0 – $44.3 million | — |
| Everything else · dead end: no figure | — | $116.6 million | $58.2 million – $198.4 million | — |
Source: U.S. Census Bureau, 2022 Census of Governments: Finance, individual unit file, fiscal 2022. The Census Bureau sorts every county government’s spending into the same categories, so these compare across states — but counties do different jobs in different states (in some, counties run hospitals or schools; in others, cities or the state do), so the closest comparisons are within a state. Counties where the Bureau estimated half or more of the figures are left out of the middle and range. Per resident uses the population the Bureau used.