How San Francisco County compares

San Francisco County (827,526 residents) beside every county in California — 57 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: Every county and county-equivalent in the state.

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$131.5 million$38.9 million – $280.6 million3rd of 58
American Rescue Plan money, 2021 to date$3.57 billion$239.4 million$59.1 million – $565.0 million6th of 58

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 57 of 57 every county 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$628.6 million$183.7 million – $1.79 billion2nd of 58
Capital projects · dead end: no line matched — may sit inside a combined fund$0$33.2 million$11.2 million – $70.6 million—
Natural resources and environment · dead end: no line matched — may sit inside a combined fund$0$27,161$0 – $5.2 million—
Debt and bond payments · dead end: no line matched — may sit inside a combined fund$0$7.3 million$1.2 million – $30.5 million—
County judge, commissioners and governing body$480.4 million$6.8 million$2.7 million – $18.0 million4th of 58
Juvenile services · dead end: no line matched — may sit inside a combined fund$0$3.9 million$203,414 – $12.2 million—
Jail and detention · dead end: no line matched — may sit inside a combined fund$0$21.8 million$6.2 million – $73.6 million—
Prosecutor and county attorney$98.6 million$14.1 million$3.4 million – $35.4 million8th of 58
Public defender$60.9 million$5.8 million$1.6 million – $24.8 million9th of 58
Sheriff and patrol$1.22 billion$34.0 million$12.9 million – $134.0 million4th of 58
Coroner and medical examiner · dead end: no line matched — may sit inside a combined fund$0$477,164$0 – $3.1 million—
Courts and court clerks$65.3 million$19.2 million$6.2 million – $73.8 million16th of 58
Public safety and justice, combined (not split by office) · dead end: no line matched — may sit inside a combined fund$0$1.6 million$282,835 – $7.3 million—
Elections · dead end: no line matched — may sit inside a combined fund$0$1.9 million$598,426 – $6.7 million—
Assessor and property valuation · dead end: no line matched — may sit inside a combined fund$0$4.4 million$1.7 million – $13.2 million—
Treasurer and tax collection · dead end: no line matched — may sit inside a combined fund$0$5.8 million$2.9 million – $11.2 million—
County clerk and records · dead end: no line matched — may sit inside a combined fund$0$1.5 million$582,204 – $3.6 million—
Emergency management and 911$111.5 million$1.0 million$183,978 – $2.7 million1st of 58
Fire protection$560.6 million$5.4 million$523 – $28.9 million2nd of 58
Public health and mental health$3.58 billion$109.5 million$27.4 million – $309.9 million3rd of 58
Veterans services · dead end: no line matched — may sit inside a combined fund$0$343,672$70,028 – $625,082—
Indigent care and human services$2.75 billion$135.3 million$35.0 million – $388.8 million2nd of 58
Roads and bridges$1.91 billion$30.3 million$12.0 million – $58.7 million1st of 58
Solid waste and recycling · dead end: no line matched — may sit inside a combined fund$0$2.6 million$219,373 – $15.5 million—
Extension, 4-H and conservation · dead end: no line matched — may sit inside a combined fund$0$2.7 million$1.0 million – $7.2 million—
Libraries$198.0 million$2.4 million$866,162 – $11.4 million1st of 58
Parks, fair and recreation$344.4 million$1.8 million$248,439 – $10.4 million2nd of 58
Planning, zoning and development$177.9 million$5.8 million$2.4 million – $19.0 million4th of 58
Utilities (water, sewer, power, airport, port, transit)$3.88 billion$832,766$0 – $6.3 million1st of 58
Buildings and maintenance · dead end: no line matched — may sit inside a combined fund$0$3.2 million$1.2 million – $9.0 million—
General government, insurance and grants$60.4 million$11.6 million$4.2 million – $47.3 million11th of 58
Cemeteries, airports, museums and other · dead end: no line matched — may sit inside a combined fund$0$320,313$0 – $1.4 million—
General fund, not split by office$756.2 million$0$0 – $01st of 58
Lines not matched to a category yet$604.5 million$45.9 million$9.7 million – $150.9 million4th of 58

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—$487.6 million$138.1 million – $1.66 billion—
Jail and corrections · dead end: no figure—$36.1 million$7.2 million – $123.9 million—
Sheriff and police · dead end: no figure—$32.4 million$7.9 million – $122.9 million—
Courts and legal · dead end: no figure—$21.4 million$4.3 million – $66.3 million—
Roads and highways · dead end: no figure—$31.4 million$11.1 million – $63.6 million—
Public health · dead end: no figure—$88.4 million$21.3 million – $244.5 million—
Public welfare · dead end: no figure—$101.5 million$25.3 million – $263.4 million—
Fire protection · dead end: no figure—$20,000$0 – $7.3 million—
Parks and recreation · dead end: no figure—$1.7 million$345,000 – $9.3 million—
Libraries · dead end: no figure—$2.2 million$706,000 – $8.9 million—
Trash and recycling · dead end: no figure—$2.5 million$294,000 – $12.1 million—
Sewers · dead end: no figure—$237,000$0 – $8.3 million—
Schools and colleges · dead end: no figure—$45.9 million$17.4 million – $97.2 million—
Running the government (finance, staff, buildings) · dead end: no figure—$24.2 million$8.1 million – $55.8 million—
Utilities (water, power, transit) · dead end: no figure—$1.0 million$13,000 – $5.0 million—
Everything else · dead end: no figure—$43.1 million$14.6 million – $169.1 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.