Draft. A work in progress, shared for feedback.
The Comfort Score: Measuring Safety the Way People Feel It (Draft)
Updated
Written by Claude. A method page behind Part 1. See every score on the comfort map.
Why We Built It#
San Francisco judges street safety mostly by where people were killed or severely injured. That leaves out the people who never walk or bike a route because it feels too dangerous, so they never show up in a crash report. And it misses all the places where people do walk, bike and take transit every day and feel traffic stress or risk of crime.
We want to measure safety the way each road user feels it: a parent walking a child across a busy main street, a senior who can't finish crossing before the light changes, a new rider deciding whether to bike to the store.
The comfort score gives every block, crossing and bike left turn the share of people who'd be comfortable walking or biking there, from 0 to 100%. A trip is only as comfortable as its worst block, crossing or turn. Adding up trips across the city tells us how many residents could make an everyday trip comfortably today, and which fixes would add the most. Biking is set to match what San Franciscans told SFMTA in a 2023 survey. Walking and crossings use published models that haven't been checked against SF yet, and the table below shows what parts of this data are reliably backed by research and local SF data, versus parts that aren't or that we don't yet have enough data for.
What It Shows Today#
About 703,000 San Franciscans could walk comfortably to a grocery store, 89% of the 791,509 who live within a 15-minute walk of one. Only about 229,000 could bike there comfortably, 26% of the 870,359 within a 15-minute ride. The gap holds for every kind of place, because most SF streets have no bike lane, so a ride usually shares the lane with cars somewhere, and the survey puts that at 24% comfortable. Figures come from the How Residents Travel analysis, with street data read on 27 November 2026.
The walking figures are likely high, since walking isn't yet set to SF residents' own ratings. They are most sensitive to how we score signals: for high schools, other reasonable conversions move the walking figure from 2.6 points lower to 5.2 points higher.
How a Trip Is Scored#
flowchart TD A["A home"] --> B["Routes to the nearest grocery, school, library, park or job, within 15 minutes and a small detour"] B --> C["Every block, crossing and bike left turn on a route gets a share comfortable"] C --> D["A route scores as its lowest share"] D --> E["The trip takes its best route"] E --> F["Residents in that home times the trip's share, summed over the city"]
A route can be up to 25% or 1,760 feet longer than the shortest one, whichever allows more, the standard from Mekuria, Furth and Nixon 2012 (pp. 14 to 15). So a short four-block walk may detour up to a third of a mile to avoid a busy crossing. We use 3 mph for walking and 10 mph for biking. Work trips are the real commutes of SF residents who work in SF, and also count e-bikes at 15 mph within 15 and 30 minutes. Each kind of place gets its own figure, not one combined count.
What Each Score Responds To#
| Where | What raises comfort | What lowers it | Model |
|---|---|---|---|
| Walking along a block | Wider sidewalk, trees, parked cars or a bike lane as a buffer, a median | More cars, faster cars, four or more lanes | Jensen 2007, Danish ratings |
| Walking across, no signal | A marked crosswalk, a quiet street crossed | 90 or more cars an hour on the street crossed | A fixed share by control, traffic and marking, averaged from Jensen 2012 and the Highway Capacity Manual |
| Walking across at a signal | More lanes to cross, more traffic and turning cars, a walk signal too short for older walkers | The Highway Capacity Manual, the national traffic engineering handbook | |
| Biking along a block | A better bike facility, set to SF residents' own ratings | More cars, faster cars, more lanes | SFMTA's 2023 survey, then Jensen 2007 |
| Biking through a corner | A quiet street crossed | A signal, or 90 or more cars an hour on the street crossed | A fixed share by control and traffic, averaged from Jensen 2012 and the Highway Capacity Manual |
| Biking left turns | Crossing one direction at a time from a protected bike lane | More traffic, more lanes to cross, parked cars | A federal rating of how risky an intersection feels for bikes (FHWA) |
The Danish models come from S. U. Jensen's studies, where randomly chosen Danes rated videos of real streets (blocks, 2007 and crossings, 2012). "Comfortable" is the top three of his six levels. Walking across at a signal keeps the Highway Capacity Manual's score for that crossing (Huff and Liggett 2014), so it moves with the traffic, speed and width there. Every other straight crossing takes a fixed share, set by its control and by whether the street crossed is quiet or busy (90 or more cars an hour at the time of day scored), in the table below. With no signal or stop, the share is the average Jensen's crossing model gives over SF's crossings of that kind, scored once as marked and once as unmarked, so a marked crosswalk adds the 10 to 13 points his ratings give it. Riding straight across a signal takes the average of the manual's bicycle score. Walking across a street with a stop sign, and biking across an all-way stop, take the higher of the signal and no-signal averages, because FHWA's pedestrian safety index weighs a stop almost like a signal and the 2024 CPBS stress tables grade stops with signals (prior work). Left turns keep FHWA's turn model (FHWA-HRT-06-125, Table 16), converted to a share; most score about 85%, so they rarely set a trip's score (our review). How the scores are tested is in the validation note.
| Control on the street crossed | Walking, quiet or busy | Biking, quiet or busy |
|---|---|---|
| No signal or stop | Marked crosswalk 89% or 84%, unmarked 79% or 71% | 66% or 48% |
| All-way stop | 81% or 74% | 66% or 48% |
| A stop sign for that street only | 81% or 74% | Not scored |
| Signal | Its own Highway Capacity Manual score | 53% or 45% |
Biking Is Set to What San Franciscans Told SFMTA#
EMC Research asked 1,000 residents for SFMTA in 2023 how comfortable they'd be biking on six kinds of street, where comfortable means 4 or 5 out of 5 (survey).
Each direction of a block takes the type that matches its bikeway: an off-street path counts as a rigid barrier, and a painted lane on a street the city classes as a main street counts as busy. A Slow Street is one SF has closed to through traffic. Jensen's formula then ranks blocks of the same type by their traffic, speed and lanes, and we shift each type so its average across SF equals the survey's share. Shared streets are ranked instead by the mixed-traffic stress table of Mekuria, Furth and Nixon 2012 (Table 4: speed limit and lanes), then by traffic, with each time of day read on its own traffic.
How Sure We Are#
Each part of the score is one of five kinds. Set to SF's survey means we adjusted it to match what San Franciscans told SFMTA. SF data means the input comes from city records. Published model means a standard published method, used as published and not yet checked against SF. Our assumption is a step we chose. Default means the data is missing and a typical value stands in. The figures come from our review of the code on 1 December 2026.
| Part | Kind | What it means for the figures |
|---|---|---|
| Biking comfort by facility type | Set to SF's survey | Each type's average matches the survey's share. That's an adjustment, not an independent test |
| Sidewalk width, trees, medians, parking spaces, one-way streets | SF data | From city inventories on DataSF, linked below |
| Traffic on main streets | SF data | 95% of main-street blocks have a counted or modelled figure |
| Ranking blocks of the same bike type by traffic and speed | Published model | Danish ratings, not checked in SF |
| Walking along a block | Published model | Barely varies across SF: most blocks score 94% to 99% |
| Walking and biking across a street with no signal | Published model, averaged, with a default | One share for quiet streets and one for busy: walking 89% or 84% with a marked crosswalk and 79% or 71% without, biking 66% or 48%. Two thirds of these crossings have no marking record and count as unmarked |
| Signals | Published model, our conversion | The national handbook gives a letter grade, A to F, and turning it into a share comfortable is our step. The median signal scores 57%. Other reasonable conversions put a typical signal anywhere from 48% to 68%. Riding straight across takes the average for its traffic, 53% quiet or 45% busy |
| Seniors' walk time at signals | Default | We hold no SF signal timing, so every signal gets the same assumed walk and cycle times |
| Bike left turns | Published model, our conversion | A risk rating placed on the comfort scale |
| Quiet residential streets with no bike lane | Our assumption | The survey asked about sharing the lane (24%) but showed no quiet residential street, so these may be more comfortable than we score |
| Stop signs | Our assumption | Walking across a street with a stop sign, and biking across an all-way stop, score as the average crossing with no signal or stop: 81% or 74% walking, 66% or 48% biking. Riding past a side street's stop sign isn't scored. Drivers rolling through stops aren't modelled |
| Traffic on residential streets | Default | Only about a third of residential street miles have a count or a modelled figure. The rest take an estimate from the parallel main street or a typical value for their street type |
| Speeds | Default | Measured on about 1,000 of 15,000 blocks. Elsewhere the posted limit times the typical ratio of measured to posted speed |
| A trip scored by its worst part | Our assumption | Assumes the same people feel uncomfortable everywhere along a route, so the figures are an upper bound |
Where the Inputs Come From#
| Input | Source |
|---|---|
| Rush-hour traffic | SFMTA's counts where measured. Elsewhere the city's traffic model, then an estimate from the parallel main street, then the median for the street type |
| Average speed | SFMTA's measured speeds where counted. Elsewhere the posted limit times the typical ratio of measured to posted speed |
| Bike facility | SFMTA's bikeway network, by direction |
| Sidewalk width | Sidewalk Widths, 4g86-grxu |
| Parked cars | Parking census, 9ivs-nf5y. We assume 86% of spaces are filled, the weekday average in SFMTA's permit parking study |
| Trees and medians | Street Tree Inventory, tkzw-k3nq |
| One-way streets | Street centerlines, 3psu-pn9h |
| Signals and stop signs | Traffic signals, ybh5-27n2 and stop signs, 4542-gpa3 |
What Would Make It Better#
| Step | What it fixes | Size |
|---|---|---|
| Ask 500 to 800 San Franciscans to rate photos or videos of SF streets and crossings | Sets walking, every kind of crossing and quiet residential streets to SF. The biggest single gain | About $5,000 to $15,000 with online volunteers, or $25,000 to $60,000 with a randomly chosen group of residents. 3 to 4 weeks |
| Map the rest of SF's marked crosswalks | OpenStreetMap and SFMTA's continental crosswalk list cover a third of uncontrolled crossings; the other two thirds count as unmarked | A records request for SFMTA's striping records, then about a day |
| Get signal timing for SF's 1,255 signals by records request | Replaces the assumed walk and cycle times | 2 to 6 weeks' wait, then 2 to 3 days |
| Count traffic on 200 to 300 residential blocks | Replaces estimates on quiet streets | About $40,000 to $120,000 for rubber-hose counters. A records request for SFMTA's unpublished counts comes first |
| Weight places by the trips people actually make | Counts trips, not just the nearest place of each kind | 1 to 2 days of computing |
| Refit the bike ranking to UC Davis's Bay Area video ratings | Ranks blocks within a bike type by US riders' ratings | 1 to 2 days |
All sizes on this page are our estimates, not quotes.
From Describing Today to Predicting a Change#
Today the score describes the streets as they are. To predict what a change would do, it needs to know where traffic goes and to be tested against changes SF has already made. The Street Roles tool is where those changes get drawn. It marks each street as local or through.
Today that tool cuts traffic on a street made local by 32% and adds 4% on a through street, from London's low-traffic neighborhoods, and cuts a new Slow Street's traffic by 57%, from SF's Slow Streets evaluation (our review). It doesn't yet move the cut traffic onto other streets. A new bike facility can already be scored, because the survey says how comfortable each type is.
| Step | What it adds | Size |
|---|---|---|
| 1. Test against SF's Slow Streets | Predict the before and after counts in SFMTA's Slow Streets evaluation and see how close we get | 3 to 5 days, no new data |
| 2. Gather other SF before and after counts | A wider test set from past projects | 1 to 2 weeks, plus a records request |
| 3. Reroute traffic when a street closes | Cars moved onto nearby streets, from SFCTA's travel model or our own | 2 to 3 weeks |
| 4. Score SFMTA's plans | Bikeway plans first. Plans with fewer car lanes or new signals wait on steps 1 to 3 | 2 to 3 days for bikeway plans |
| 5. Add lighting and crime | A separate night safety score from streetlights, incident data and survey ratings | 2 to 3 weeks after the survey |