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$4,114$430$290 – $6882nd of 16
American Rescue Plan money, 2021 to date$4,316$1,131$710 – $1,4272nd 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$20,364$3,537$2,851 – $3,9281st of 16
Capital projects · dead end: no line matched — may sit inside a combined fund$0.00$158$133 – $231—
Natural resources and environment · dead end: no line matched — may sit inside a combined fund$0.00$1.86$0.00 – $38.00—
Debt and bond payments · dead end: no line matched — may sit inside a combined fund$0.00$48.57$31.89 – $91.98—
County judge, commissioners and governing body$581$35.25$21.71 – $40.201st of 16
Juvenile services · dead end: no line matched — may sit inside a combined fund$0.00$34.01$27.78 – $42.06—
Jail and detention · dead end: no line matched — may sit inside a combined fund$0.00$143$107 – $190—
Prosecutor and county attorney$119$70.78$58.39 – $80.501st of 16
Public defender$73.65$40.31$36.42 – $47.351st of 16
Sheriff and patrol$1,476$244$184 – $2861st of 16
Coroner and medical examiner · dead end: no line matched — may sit inside a combined fund$0.00$6.48$2.16 – $7.41—
Courts and court clerks$78.96$125$81.07 – $14812th of 16
Public safety and justice, combined (not split by office) · dead end: no line matched — may sit inside a combined fund$0.00$8.60$5.97 – $22.42—
Elections · dead end: no line matched — may sit inside a combined fund$0.00$12.58$9.75 – $15.34—
Assessor and property valuation · dead end: no line matched — may sit inside a combined fund$0.00$23.12$17.01 – $24.16—
Treasurer and tax collection · dead end: no line matched — may sit inside a combined fund$0.00$24.64$17.55 – $35.27—
County clerk and records · dead end: no line matched — may sit inside a combined fund$0.00$7.37$5.24 – $8.60—
Emergency management and 911$135$5.06$0.00 – $10.131st of 16
Fire protection$677$35.08$1.76 – $1971st of 16
Public health and mental health$4,321$599$482 – $6691st of 16
Veterans services · dead end: no line matched — may sit inside a combined fund$0.00$1.15$0.05 – $2.39—
Indigent care and human services$3,322$675$591 – $7751st of 16
Roads and bridges$2,307$90.30$62.44 – $1101st of 16
Solid waste and recycling · dead end: no line matched — may sit inside a combined fund$0.00$26.89$9.74 – $47.79—
Extension, 4-H and conservation · dead end: no line matched — may sit inside a combined fund$0.00$15.64$11.05 – $18.22—
Libraries$239$14.12$11.99 – $30.001st of 16
Parks, fair and recreation$416$9.86$6.73 – $28.421st of 16
Planning, zoning and development$215$26.98$19.18 – $61.451st of 16
Utilities (water, sewer, power, airport, port, transit)$4,686$6.67$0.00 – $55.521st of 16
Buildings and maintenance · dead end: no line matched — may sit inside a combined fund$0.00$12.39$3.15 – $31.07—
General government, insurance and grants$72.98$74.83$31.41 – $1109th of 16
Cemeteries, airports, museums and other · dead end: no line matched — may sit inside a combined fund$0.00$0.99$0.00 – $4.28—
General fund, not split by office$914$0.00$0.00 – $0.001st of 16
Lines not matched to a category yet$731$305$199 – $3752nd 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,912$2,479 – $3,037—
Jail and corrections · dead end: no figure—$222$167 – $246—
Sheriff and police · dead end: no figure—$200$145 – $232—
Courts and legal · dead end: no figure—$115$92.35 – $127—
Roads and highways · dead end: no figure—$95.78$55.64 – $126—
Public health · dead end: no figure—$437$365 – $516—
Hospitals · dead end: no figure—$52.83$0.00 – $592—
Public welfare · dead end: no figure—$483$404 – $553—
Fire protection · dead end: no figure—$2.19$0.00 – $52.82—
Parks and recreation · dead end: no figure—$10.63$4.09 – $39.89—
Libraries · dead end: no figure—$11.88$9.14 – $23.12—
Trash and recycling · dead end: no figure—$19.69$7.25 – $40.18—
Sewers · dead end: no figure—$10.77$4.87 – $30.58—
Schools and colleges · dead end: no figure—$166$122 – $237—
Running the government (finance, staff, buildings) · dead end: no figure—$112$80.74 – $124—
Utilities (water, power, transit) · dead end: no figure—$10.45$1.31 – $30.56—
Everything else · dead end: no figure—$225$189 – $270—

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.