How San Francisco County compares

San Francisco County (827,526 residents) beside counties of similar size in California — 15 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.

Compare with:My size, my stateMy size, nationwideMy neighborsMy whole stateThe whole nation
Show:Per residentTotal dollars

Who’s in the group: Counties in the same state with between half and double its population (2024 Census estimate). If fewer than five fit, the eight closest in population.

Grants and federal money

Item — open one to see every countySan FranciscoMiddle of the groupMiddle halfRank, highest first
Federal grants, fiscal 2025$3.40 billion$280.6 million$185.1 million – $388.0 million2nd of 16
American Rescue Plan money, 2021 to date$3.57 billion$603.6 million$452.4 million – $1.09 billion3rd of 16

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.

From the counties’ own budgets, line by line

San Francisco County’s own 2027 budget, line by line, beside the 15 of 15 counties of similar size in California whose budgets we’ve read.

Item — open one to see every countySan FranciscoMiddle of the groupMiddle halfRank, highest first
Whole budget, all funds$16.85 billion$2.65 billion$1.54 billion – $3.12 billion1st of 16
Capital projects · dead end: no line matched — may sit inside a combined fund$0$99.6 million$67.7 million – $183.6 million—
Natural resources and environment · dead end: no line matched — may sit inside a combined fund$0$898,020$0 – $33.1 million—
Debt and bond payments · dead end: no line matched — may sit inside a combined fund$0$30.5 million$20.3 million – $69.9 million—
County judge, commissioners and governing body$480.4 million$18.2 million$11.4 million – $27.3 million1st of 16
Juvenile services · dead end: no line matched — may sit inside a combined fund$0$17.7 million$12.7 million – $30.8 million—
Jail and detention · dead end: no line matched — may sit inside a combined fund$0$90.5 million$79.5 million – $113.4 million—
Prosecutor and county attorney$98.6 million$37.1 million$33.4 million – $66.2 million3rd of 16
Public defender$60.9 million$26.5 million$19.1 million – $34.9 million3rd of 16
Sheriff and patrol$1.22 billion$140.4 million$105.7 million – $214.0 million1st of 16
Coroner and medical examiner · dead end: no line matched — may sit inside a combined fund$0$3.1 million$1.1 million – $5.7 million—
Courts and court clerks$65.3 million$74.7 million$55.8 million – $103.6 million10th of 16
Public safety and justice, combined (not split by office) · dead end: no line matched — may sit inside a combined fund$0$6.7 million$2.9 million – $13.6 million—
Elections · dead end: no line matched — may sit inside a combined fund$0$7.0 million$6.0 million – $11.7 million—
Assessor and property valuation · dead end: no line matched — may sit inside a combined fund$0$14.0 million$10.3 million – $19.7 million—
Treasurer and tax collection · dead end: no line matched — may sit inside a combined fund$0$14.1 million$10.1 million – $24.6 million—
County clerk and records · dead end: no line matched — may sit inside a combined fund$0$3.8 million$2.6 million – $7.9 million—
Emergency management and 911$111.5 million$3.4 million$0 – $8.1 million1st of 16
Fire protection$560.6 million$16.7 million$2.1 million – $168.8 million1st of 16
Public health and mental health$3.58 billion$335.6 million$284.8 million – $491.9 million2nd of 16
Veterans services · dead end: no line matched — may sit inside a combined fund$0$625,082$25,327 – $1.2 million—
Indigent care and human services$2.75 billion$400.0 million$314.7 million – $760.5 million1st of 16
Roads and bridges$1.91 billion$45.6 million$39.2 million – $97.9 million1st of 16
Solid waste and recycling · dead end: no line matched — may sit inside a combined fund$0$24.6 million$4.2 million – $36.6 million—
Extension, 4-H and conservation · dead end: no line matched — may sit inside a combined fund$0$8.2 million$7.1 million – $12.1 million—
Libraries$198.0 million$11.5 million$8.5 million – $21.4 million1st of 16
Parks, fair and recreation$344.4 million$8.0 million$4.5 million – $16.0 million1st of 16
Planning, zoning and development$177.9 million$22.0 million$13.7 million – $27.3 million2nd of 16
Utilities (water, sewer, power, airport, port, transit)$3.88 billion$3.0 million$0 – $36.3 million1st of 16
Buildings and maintenance · dead end: no line matched — may sit inside a combined fund$0$6.9 million$1.9 million – $19.0 million—
General government, insurance and grants$60.4 million$36.3 million$21.7 million – $92.7 million6th of 16
Cemeteries, airports, museums and other · dead end: no line matched — may sit inside a combined fund$0$669,307$0 – $2.1 million—
General fund, not split by office$756.2 million$0$0 – $01st of 16
Lines not matched to a category yet$604.5 million$170.0 million$99.6 million – $346.8 million2nd of 16

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); employee benefits, workers’ comp and fleet; technology and data; ambulance and ems; hospitals; health and human services, combined (not split); weed, pest and mosquito control; schools and colleges.

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.

San Francisco County’s lines not matched to a category yet — dead ends to fix

If you know what one of these pays for, tell us.

County government spending, by the Census Bureau’s national categories

Item — open one to see every countySan FranciscoMiddle of the groupMiddle halfRank, highest first
All county government spending · dead end: no figure—$2.23 billion$1.29 billion – $2.61 billion—
Jail and corrections · dead end: no figure—$125.4 million$106.6 million – $183.2 million—
Sheriff and police · dead end: no figure—$122.9 million$93.7 million – $165.9 million—
Courts and legal · dead end: no figure—$74.2 million$50.4 million – $98.7 million—
Roads and highways · dead end: no figure—$70.5 million$49.3 million – $80.4 million—
Public health · dead end: no figure—$262.3 million$207.3 million – $375.3 million—
Hospitals · dead end: no figure—$29.1 million$0 – $472.5 million—
Public welfare · dead end: no figure—$273.4 million$212.5 million – $503.5 million—
Fire protection · dead end: no figure—$1.2 million$0 – $54.6 million—
Parks and recreation · dead end: no figure—$6.0 million$2.6 million – $23.8 million—
Libraries · dead end: no figure—$8.2 million$5.1 million – $16.8 million—
Trash and recycling · dead end: no figure—$12.1 million$3.0 million – $30.7 million—
Sewers · dead end: no figure—$9.8 million$2.1 million – $27.3 million—
Schools and colleges · dead end: no figure—$86.9 million$75.0 million – $175.3 million—
Running the government (finance, staff, buildings) · dead end: no figure—$57.1 million$49.5 million – $117.3 million—
Utilities (water, power, transit) · dead end: no figure—$5.0 million$891,000 – $16.3 million—
Everything else · dead end: no figure—$183.4 million$103.3 million – $257.2 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.