You are walking through the Sunset or the Richmond and you pass a grocery the size of a living room, wedged into the ground floor of what is obviously a house, on a street where every other building is a home. It feels like a holdover — something that got grandfathered in decades ago and nobody bothered to stop. Some of them are. But many are entirely current, and San Francisco's planning code says exactly how they are allowed to exist.
The short answer: San Francisco's residential districts permit a limited corner commercial use on a corner lot, with no part of the use extending more than 50 feet in depth from the corner in the house and lower-density mixed districts, or 100 feet in the higher-density mixed districts. Hours are 6:00 a.m. to 10:00 p.m. (Table 209.1, Table 209.2).
The code is explicit that this is a design intent, not an accident. The residential districts exist partly to promote "balanced and convenient neighborhoods" with "suitable nonresidential activities that are compatible with housing and meet the needs of residents" (§ 209). The corner store is policy.
Key numbers
| Rule | The limit | Where it says so |
|---|---|---|
| Depth from the corner — house districts and lower-density mixed districts | 50 feet | Table 209.1 |
| Depth from the corner — higher-density mixed districts | 100 feet | Table 209.2 |
| Permitted hours of operation | 6:00 a.m. to 10:00 p.m. | Table 209.1 |
| Not permitted hours | 10:00 p.m. to 6:00 a.m. | Table 209.1 |
| Floor area ratio for non-residential development | 1.8 to 1 | Table 209.1 |
| Off-street parking required for these uses | None required; a maximum is set instead | Table 209.1 |
How to read a zoning control table
San Francisco does not write its residential rules as paragraphs. It writes them as tables — one column per district class, one row per topic — and the code points you at them directly: the uses and features permitted in these districts "are listed in the Zoning Control Tables" (§ 209).
The cells use a shorthand. P marks a use permitted outright. NP marks one that is not permitted. C marks one that needs conditional use authorization — a discretionary approval rather than an over-the-counter permit. The tables spell that last one out when they have room: limited commercial uses "may be conditionally permitted in historic buildings," and removing a residential unit is listed as C.
The house districts are covered by one table and the mixed residential districts by another, and the rows are largely parallel — which is what makes the differences between them easy to spot.
The corner rule
Here is the operative language:
P on a Corner Lot, with no part of the use extending more than 50 feet in depth from said corner
Two things are doing the work. It has to be a corner lot — a mid-block storefront is not eligible under this provision. And the use is capped by depth from the corner, not by floor area. That single choice is why these businesses look the way they do: shallow, wrapped around the corner, visible from two streets, and unable to creep down the block.
The denser mixed residential districts get 100 feet instead of fifty (Table 209.2). More people on the block, more storefront allowed to serve them.
Housing is protected first
The same row carries a hard limit. The corner commercial use is not permitted where it would require the residential conversion of a residential unit or an unauthorized unit under the code's conversion rules — unless the space being converted is a garage or storage space located in the basement or first story.
That exception is the whole practical path. You cannot turn a flat into a shop; you can turn the ground-floor garage under it into one. It is the same instinct visible elsewhere in the tables, where removal of one or more residential units or unauthorized units is a conditional use rather than something done by right.
Separately, a district may carry limited commercial uses that are continuing nonconforming uses — businesses that predate the current rules and are permitted to carry on subject to their own section. That is the genuine "grandfathered" category, and it is distinct from the corner rule.
What is off the table entirely
The residential district tables mark a long list as not permitted, and read together they describe what a neighborhood-serving business is supposed to be: formula retail, drive-up facilities, walk-up facilities, open air sales, public parking lots, automotive uses, maritime uses, and canopies or marquees are all NP.
What is allowed alongside housing is narrower and quieter. Neighborhood agriculture is permitted. Broader agricultural uses and private parking garages and lots are conditionally permitted. Awnings are permitted subject to a note. Signs are governed by their own section rather than by the table.
And note the parking line, which surprises people: for these non-residential uses, no off-street parking is required — the code sets a maximum instead of a minimum.
What these tables do not settle
They tell you what is permitted, conditionally permitted or prohibited by district. They do not walk you through the conditional use process, and they do not tell you which district your specific parcel is in — the residential districts break into several classes each, and neighboring blocks are routinely different. The property-specific answer comes from the Planning Department's own map, and our San Francisco jurisdiction overview is a starting point for the wider local rules.
Every cell also carries section references pointing to the rules behind it. The table gives you the verdict; those sections give you the conditions, and for anything you intend to build or open, the conditions are where the project actually lives or dies.
Finally, this is local law. San Francisco's planning code governs land use within the city, but California housing statutes operate on top of it and can permit things a local table does not show — accessory dwelling units being the familiar example. Where state law grants a right, a local table cannot take it away. For a commercial use in a residential district, though, these tables are the controlling document.