How San Francisco County compares

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.

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

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.

Grants and federal money

Item — open one to see every countySan FranciscoMiddle of the groupMiddle halfRank, highest first
Federal grants, fiscal 2025$4,114$515$219 – $8983rd of 59
American Rescue Plan money, 2021 to date$4,316$1,217$723 – $2,90111th 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.

From the counties’ own budgets, line by line

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 countySan FranciscoMiddle of the groupMiddle halfRank, highest first
Whole budget, all funds$20,364$1,860$1,153 – $3,3641st of 34
Capital projects · dead end: no line matched — may sit inside a combined fund$0.00$1.08$0.00 – $89.91—
Debt and bond payments · dead end: no line matched — may sit inside a combined fund$0.00$27.65$0.00 – $88.73—
County judge, commissioners and governing body$581$7.93$0.00 – $17.231st of 34
Jail and detention · dead end: no line matched — may sit inside a combined fund$0.00$85.45$4.30 – $115—
Prosecutor and county attorney$119$0.00$0.00 – $23.911st of 34
Public defender$73.65$0.00$0.00 – $18.831st of 34
Sheriff and patrol$1,476$108$40.77 – $2251st of 34
Courts and court clerks$78.96$48.94$1.82 – $76.467th of 34
Public safety and justice, combined (not split by office) · dead end: no line matched — may sit inside a combined fund$0.00$5.36$0.77 – $36.88—
Treasurer and tax collection · dead end: no line matched — may sit inside a combined fund$0.00$9.41$0.00 – $27.97—
County clerk and records · dead end: no line matched — may sit inside a combined fund$0.00$0.86$0.00 – $7.37—
Emergency management and 911$135$0.00$0.00 – $22.301st of 34
Fire protection$677$0.00$0.00 – $24.501st of 34
Public health and mental health$4,321$61.08$4.27 – $1281st of 34
Indigent care and human services$3,322$48.13$0.01 – $2951st of 34
Roads and bridges$2,307$53.40$25.87 – $1281st of 34
Solid waste and recycling · dead end: no line matched — may sit inside a combined fund$0.00$1.56$0.00 – $59.08—
Libraries$239$0.10$0.00 – $12.491st of 34
Parks, fair and recreation$416$11.09$0.00 – $44.351st of 34
Planning, zoning and development$215$29.41$5.55 – $54.232nd of 34
Utilities (water, sewer, power, airport, port, transit)$4,686$37.89$0.00 – $1631st of 34
Buildings and maintenance · dead end: no line matched — may sit inside a combined fund$0.00$3.81$0.00 – $22.23—
General government, insurance and grants$72.98$92.90$32.51 – $24021st of 34
General fund, not split by office$914$0.00$0.00 – $0.002nd of 34
Lines not matched to a category yet$731$20.95$0.00 – $71.033rd 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.

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—$1,034$719 – $1,888—
Jail and corrections · dead end: no figure—$78.09$51.45 – $103—
Sheriff and police · dead end: no figure—$93.16$45.80 – $170—
Courts and legal · dead end: no figure—$62.40$39.76 – $80.81—
Roads and highways · dead end: no figure—$61.52$30.61 – $95.06—
Public health · dead end: no figure—$74.41$45.54 – $172—
Public welfare · dead end: no figure—$37.38$9.23 – $134—
Fire protection · dead end: no figure—$0.57$0.00 – $13.93—
Parks and recreation · dead end: no figure—$15.32$3.92 – $32.94—
Trash and recycling · dead end: no figure—$4.08$0.00 – $43.46—
Sewers · dead end: no figure—$3.08$0.00 – $66.24—
Housing and community development · dead end: no figure—$6.26$0.00 – $19.56—
Running the government (finance, staff, buildings) · dead end: no figure—$61.85$51.61 – $116—
Utilities (water, power, transit) · dead end: no figure—$0.58$0.00 – $54.92—
Everything else · dead end: no figure—$149$77.57 – $254—

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.