Rows of San Francisco houses over garages climbing the slopes toward Bernal HeightsHouses on the slopes approaching Bernal Heights · Photo: Ken Lund, CC BY-SA 2.0 (creativecommons.org/licenses/by-sa/2.0/), via Wikimedia Commons

Unwarranted Unit San Francisco: Legalize or Remove

An unwarranted unit in San Francisco is living space, usually a ground-floor in-law apartment, used as a separate home without the permits that make it a legal dwelling. You can buy a home that has one, but the permit problem comes with it: a tenant there is still covered by the Rent Ordinance, the City's Unit Legalization program allows one such unit per lot if it existed before January 1, 2013, and removing a unit has generally needed Conditional Use authorization since 2016.

1Unauthorized unit per lot that the legalization program can approveSF Planning FAQ, updated May 10, 2026
Jan 1, 2013The unit must have existed before this date to qualifysf.gov, checked November 2026
$3793R report fee per residential building, seven to ten business daysDBI on sf.gov, checked November 2026
30,000–50,000City planners' estimate of unauthorized units in San FranciscoSF Planning Community Stabilization research
Legalize Unit Legalization program, DBI then SF PlanningRemove Section 317; Conditional Use generally requiredTenants Covered by the Rent Ordinance regardless of legal statusRecords 3R report and DBI permit history

What counts as an unwarranted unit in San Francisco?

San Francisco's own term is "unauthorized unit": one or more rooms in a building used, without a permit, as a separate living or sleeping space independent of the building's other residential units. Agents and owners also call these in-law units, illegal units or unwarranted units.

A finished ground floor with a bedroom and a bathroom is not automatically one. What matters is whether the space is used, or set up to be used, as a separate home. The pattern is common in the city's houses built over a garage, where the ground floor behind the garage was finished in later decades; city planners have estimated that San Francisco has 30,000 to 50,000 unauthorized units (SF Planning Community Stabilization research). For the city overview, start with our San Francisco real estate guide, and for the house type where these rooms most often appear, the Sunset lower-level space workbook.

How do you find out whether a San Francisco unit is legal?

Start with the Report of Residential Building Record, or 3R report, which a San Francisco seller must give the buyer. It shows the building's authorized use and building-permit history, so a 3R that says "single-family dwelling" on a house with a second kitchen downstairs tells you the second unit was never approved.

The Department of Building Inspection charges $379 for each residential building on a lot, plus 2.5% for online card payment ($388.48 in total), and issues the report in seven to ten business days (sf.gov, checked November 2026). The 3R does not include plumbing, electrical or commercial permits, which are requested separately as public building records.

  • Read the 3R against the floor plan and what is actually on site
  • Pull the full DBI permit history, including plumbing and electrical permits
  • Ask for any Notice of Violation and any past screening or legalization filing
  • Ask who lives in the space and on what terms

Our list of San Francisco seller requirements covers ordering the 3R, and the San Francisco property evidence checklist helps organize permits, plans and photos.

What are the options for an unwarranted unit in San Francisco?

A San Francisco owner has three basic choices for an unwarranted unit: leave it, legalize it or remove it. Each has a different cost and a different effect on the tenant, the City record and the next sale.

PathWhat it involvesMain trade-off
Leave it as isNo permits; the space keeps its current useEnforcement risk remains, a tenant is still protected, and the space cannot be marketed as a legal unit
Legalize itThe City's Unit Legalization program or, for some units, state ADU rulesConstruction cost and time; a unit that was under rent control stays under it, and it cannot be sold separately
Remove itReturn the space to the main homeUnder the rules in place since 2016, generally Conditional Use authorization and a Planning Commission hearing, plus tenant law; confirm current Section 317 requirements

SF Planning Dwelling Unit Legalization Program FAQ (updated May 10, 2026); SF Planning code summary of Ordinances 33-16 and 23-16 (2016), read October 2026.

How does the San Francisco Unit Legalization program work?

The Board of Supervisors created the program with Ordinance 43-14, effective May 2014, adding Planning Code section 207.3 and Building Code section 106A.3.1.3. It allows one unauthorized unit per lot, single-family or multifamily, to be legalized even where the lot is already at its density limit.

Who qualifies

  • One unit per lot through the program
  • The unit existed before January 1, 2013. Direct proof includes a signed, dated lease, rent deposits or eviction records; indirect proof can combine voter rolls, utility bills, letters from neighbors or former occupants and earlier City enforcement cases
  • No disqualifying evictions: a unit is ineligible if an owner move-in eviction was filed after March 13, 2014 and noticed within five years before the permit application, or another no-fault eviction filed after that date was noticed within ten years
  • DBI decides eligibility, and all Building Code life-safety conditions must be met

What the program waives and what it does not

SF Planning's May 2026 FAQ says the Planning Code waives density, rear yard, open space, exposure for light and air, and parking. Every Building Code requirement still applies, including ceiling height, ventilation, light, fire safety and egress, and legalization cannot create or worsen a nonconformity for the building's existing legal units. That is usually where the cost sits.

The steps

  • Confirm eligibility, including eviction history from the Rent Board
  • Hire a licensed architect, engineer or contractor to complete and stamp the City's screening form and estimate code corrections; DBI's screening has no filing fee
  • Gather floor plans of the whole building, a site plan and proof the unit existed before 2013, and send the packet to DBI's Technical Services Division
  • File a Project Application with SF Planning and get a Planning approval letter
  • Apply to DBI for the building permit using the program's fee waivers, then build and pass inspections

If the City has already issued a Notice of Violation for the unit, it can be suspended for one year while you legalize (sf.gov, checked November 2026). The City's 2019 community stabilization research put the average cost of bringing a unit to code at about $60,000, based on DBI permit data; treat that as dated and get a current estimate for the specific space.

Is a tenant in a San Francisco in-law unit protected?

Yes. The San Francisco Rent Board defines a rental unit under the Rent Ordinance as a residential dwelling unit "regardless of zoning or legal status," so a tenant in an unpermitted unit has the ordinance's protections, including its eviction rules.

Legalizing does not change that. A unit that was subject to rent control stays subject to it after legalization, the cost of the legalization work cannot be passed through to tenants, and a legalized unit cannot be subdivided or converted to a condominium, so legalization is not a route to a separate sale. See our San Francisco condo guide for how condo status actually works.

Permanent removal of the unit from housing use is a just cause for eviction, but the Rent Board says the landlord must first obtain all permits needed to remove it before serving notice. If a building is tenant-occupied, involve a tenant-law attorney before signing a contract, and read our guide to selling a tenant-occupied home.

Can you remove an unauthorized unit in San Francisco?

Usually only with Planning Commission approval. Under Ordinance 33-16, effective April 10, 2016, Planning Code section 317 required Conditional Use authorization for the loss of an unauthorized unit by demolition, conversion or merger in zoning districts that allow housing, for building permits issued on or after March 1, 2016.

  • The exception: DBI can exempt a unit from the Conditional Use process if its screening finds the unit cannot be legalized under the Building Code
  • What the Commission weighed: whether the cost to legalize is reasonable against the average, whether legalization is financially feasible, and whether it would cause the owner financial hardship
  • Enforcement: after a Notice of Violation, the owner had to file to legalize unless the Commission approved removal, with one year to abate

These are the rules as SF Planning summarized them in 2016. We could not check them against the current text of Section 317 for this review, and the City's unit-loss rules have been revised repeatedly, so treat them as background and confirm current requirements with SF Planning and a land-use attorney before planning around removal.

Two current points are confirmed in SF Planning's May 10, 2026 FAQ: merging a legalized unit with an original unit requires Conditional Use authorization with a Planning Commission hearing, and the floor area of an existing dwelling unit generally cannot be reduced by more than 25%.

Does California ADU law help legalize an older San Francisco unit?

Sometimes. California law, cited as Government Code section 66311.7 (formerly 66332) when we read it in October 2026, limits when a city can deny a permit to legalize an unpermitted accessory dwelling unit built before January 1, 2020. The city generally cannot deny it for violating building standards or ADU rules unless the fix is needed to meet the substandard-housing standards in Health and Safety Code section 17920.3.

Whether a particular San Francisco space fits the state rule or the City program depends on how it was built and used. Confirm the current statute and its conditions with SF Planning before you rely on it. Our guide to unpermitted ADUs in California explains the state side, and buying a home with an ADU covers permitted units. An architect who handles City ADU and legalization permits can tell you which route fits.

What should you check when buying a San Francisco home with an unwarranted unit?

Price the decision you will actually make. In San Francisco, legalizing costs money and keeps rent control, removal may need a hearing, and leaving the unit carries enforcement risk, so each buyer check below feeds one of those three outcomes.

CheckWhy it mattersWhere it comes from
3R report and permit history against the floor planShows whether the second unit was ever authorizedSeller, DBI
Occupancy, lease, rent records and noticesA tenant is protected whatever the unit's statusSeller, Rent Board
Eviction historyCan disqualify the unit from legalizationRent Board
Contractor's or architect's feasibility opinionCost and practicality of meeting code, before contingencies are removedYour professional
Lender and appraiser treatmentWhether the space and any rent countYour lender
Property tax effectCompleted new construction is assessed under Proposition 13, so legalization work can add to the billSF Assessor-Recorder

Our guide to buying a home in San Francisco covers offers and contingencies, the San Francisco property tax guide explains assessments, and investors looking at small buildings should read our San Francisco multifamily guide. Ground-floor rooms in low areas can also sit on a mapped flood or liquefaction zone; our San Francisco hazard maps guide shows where to check. Diamond may refer you to partners we work with; you are free to choose any provider.

How do you sell a San Francisco home with an unwarranted unit?

Describe the space accurately and decide early whether to legalize, remove or sell as is. Do not market a permitted single-family home as a two-unit building, and disclose what you know about how the space was built and used.

Legalizing before listing can widen the buyer pool but takes months and money. Selling as is with clear documents, a contractor's estimate and tenancy records lets a buyer price the decision. Our guide to California seller disclosures lists the forms, and selling a home in San Francisco covers timing and preparation.

  • Order the 3R early; it takes seven to ten business days
  • Gather plans, permits, any screening results and the tenancy file
  • Owners can ask for a San Francisco home valuation that prices the space as it legally stands
Matthew's read on unwarranted units in San Francisco

I have represented buyers and sellers here across every property type we cover: single-family homes, condos and townhomes, luxury estates, land and vineyard parcels, multifamily and commercial property. Every recommendation starts with the parcel’s own records and the most recent matching sales.

Unwarranted unit FAQs for San Francisco

Answers reviewed November 2026.

Is it illegal to buy a house with an unwarranted unit in San Francisco?

No. The sale itself is legal. You take on the permit problem and any tenancy, along with the decision to legalize, remove or leave the space and the enforcement risk that goes with leaving it.

Can I evict a tenant from an illegal in-law unit in San Francisco?

Only for a just cause under the Rent Ordinance, which covers units regardless of legal status. Removing the unit is a just cause, but the Rent Board says you must first get all permits needed to remove it, and removal has generally required Conditional Use authorization since 2016. Talk to a tenant-law attorney first.

Is a legalized in-law unit rent controlled?

If the unit was subject to rent control before legalization, it stays subject to it. The cost of the legalization work cannot be passed through to tenants.

How long does legalization take in San Francisco?

The City does not publish an overall timeline. You need DBI screening, Planning approval and a building permit, then construction and inspections, so plan for months rather than weeks.

Can I legalize more than one unit on a lot?

Not through the Unit Legalization program, which allows one unit per lot. Other routes, such as the City's ADU program, may apply; ask SF Planning about the specific property.

Does the 3R report tell me if a unit is legal?

It shows the building's authorized use and building-permit history, which is the starting point. It does not list plumbing, electrical or commercial permits, so compare it with the full permit record and the space itself.

Can a legalized unit be sold as a condo?

No. Legalized units cannot be subdivided, so they cannot be sold separately from the rest of the building.

Can Diamond Real Estate Group help with a home that has an in-law unit?

Yes. Diamond Real Estate Group (broker Matthew Martinez, DRE #01869679) gathers the 3R, permit history and tenancy records and lines up the right professionals before you commit; use the form on this page.

Sources and notes

Sources are named in plain text without links. General information, not legal advice; talk to a San Francisco real estate or tenant-law attorney about a specific property. Last reviewed November 2026 by Matthew Martinez.

  • SF Planning, Dwelling Unit Legalization Program FAQ (updated May 10, 2026), read November 30, 2026
  • City and County of San Francisco, Check the feasibility of legalizing an illegal unit in your home, checked November 30, 2026
  • Department of Building Inspection, Request a Report of Residential Building Record (3R), fee and processing time, checked November 30, 2026
  • San Francisco Rent Board, Topic 253: renting an illegal unit, checked November 30, 2026
  • SF Planning, code summary of Ordinance 43-14 (Board File 131148), read October 2026
  • SF Planning, code summary of Ordinances 33-16 and 23-16 (Board Files 160115 and 150494), read October 2026
  • SF Planning, Community Stabilization Strategy: stemming the loss of unauthorized units, read October 2026
  • California Government Code section 66311.7 (formerly 66332) (unpermitted ADUs built before 2020), read October 2026
  • Photo: Houses approaching Bernal Heights by Ken Lund, CC BY-SA 2.0 (creativecommons.org/licenses/by-sa/2.0/), via Wikimedia Commons

San Francisco real estate agent for homes with in-law units

Diamond Real Estate Group is a licensed California brokerage (DRE #02163490) led by broker Matthew Martinez (DRE #01869679), working with buyers and sellers across San Francisco.

On a home with ground-floor living space we read the 3R against the plan, pull the permit and Rent Board history, get a feasibility opinion before contingencies run out, and price the home on what is legal today. The California buying process explains where these checks fit in escrow.

  • Buyers: send the address and we will list the records to request
  • Sellers: we can help you decide whether to legalize, remove or sell as is

Talk with a San Francisco agent

Send the address and what you know about the space, and we will reply by phone, text or email.

Ask about an in-law unit

Send a property inquiry

Matthew Martinez

Visit our San Francisco office

Matthew Martinez | San Francisco Real Estate

893 Beach St, San Francisco, CA 94109

(800) 661-5080

Open 24 hours

Your agent here: Matthew Martinez, Founder and Broker, DRE #01869679. Diamond Real Estate Group, brokerage DRE #02163490.

Serving San Francisco and its neighborhoods: homes, condos, luxury homes, commercial and multifamily property.

Book a call with Matthew

Compare Listings