What makes an in-law apartment legal is compliance with four separate layers of regulation: local zoning has to permit a second unit on your lot, the unit itself must meet building and safety codes, you must pull the right permits before construction, and the finished space has to pass inspection and receive a certificate of occupancy. Miss any one layer and the unit is technically illegal, which creates real problems when you sell the home, file an insurance claim, or try to collect rent. The specifics vary by jurisdiction, but the core framework is remarkably consistent across the country.
Zoning Comes First
Before you draw a floor plan, confirm that your local zoning code allows an accessory dwelling unit on your property. Zoning dictates which types of housing can exist in each district, and not every residential zone allows a second unit. Some jurisdictions permit ADUs only on single-family lots, others allow them in multi-family zones, and some ban them in certain districts entirely. Your city or county planning department can answer this in minutes.
Even where ADUs are allowed, zoning usually caps size, placement, and design. Common limits include a maximum unit size pegged to a percentage of the main home or to a fixed square footage (often around 800 to 1,200 square feet), minimum setbacks from property lines, and height restrictions of one or two stories. Some jurisdictions still require off-street parking, though a growing number have relaxed or eliminated parking rules, particularly near public transit.
State Laws Can Override Local Rules
A significant shift has happened at the state level. As of 2025, at least 18 states have passed laws broadly allowing homeowners to build and rent ADUs, often preempting local zoning that previously blocked them. Arizona, California, and Washington have removed the most barriers. These state laws typically bar cities from imposing unreasonable size limits, excessive parking requirements, or outright bans in residential zones. If your city says no but your state has passed ADU legislation, the state law generally wins. Check both levels before assuming you’re out of options.
Owner-Occupancy Rules
Some zoning codes require the property owner to live in either the main house or the ADU, which is meant to keep the property from becoming purely investor-owned. Several states have moved to eliminate these requirements as part of broader ADU reforms, but they remain common. Where one applies, you need to keep your primary residence on the property as long as the ADU is occupied.
Building Code Requirements
Zoning approval is the starting line. The unit itself has to meet building and safety codes, which cover everything from room dimensions to fire protection. Most jurisdictions base their residential codes on the International Residential Code, with local amendments. The items below are what inspectors look for most closely.
Minimum Room Dimensions
Habitable rooms need a ceiling height of at least 7 feet. Rooms with sloped ceilings get some flexibility: at least half the required floor area must reach 7 feet, and no portion can drop below 5 feet. Basement conversions regularly run into this requirement because existing ceiling heights may fall short once you add ductwork, plumbing, and finished flooring. If your basement clears 7 feet by only an inch, account for what construction will subtract before you commit.
Emergency Egress
Every sleeping room needs an emergency escape opening, typically a window large enough to climb through. The standard minimums are a net clear opening of 5.7 square feet, at least 24 inches high and 20 inches wide, with the bottom of the opening no more than 44 inches above the floor. Basement bedrooms almost always need an egress window well when the window sits below grade. This is one of the most commonly failed inspection items for basement ADUs, and retrofitting an egress window after the fact is expensive.
Fire Safety
Smoke alarms go in every sleeping room, outside each sleeping area, and on every story of the unit including basements. Carbon monoxide alarms are required on any story with a sleeping area and on any story with a fuel-burning appliance or an attached garage. Both types must be hardwired with battery backup, and when multiple alarms are required they must be interconnected so triggering one activates all of them. Some jurisdictions also require fire-rated separation between the ADU and the main house when they share a structure.
Plumbing, Electrical, Mechanical, and Energy
The ADU typically needs its own dedicated electrical circuits sized for its load, and the plumbing must support a full kitchen and bathroom without overtaxing the existing system. Heating and cooling must maintain habitable temperatures, and kitchens and bathrooms need adequate ventilation. Inspectors check insulation and moisture control, particularly in basement and garage conversions where water intrusion is a known problem.
Energy efficiency rules apply by project type. A new detached ADU is held to the same energy code as a new single-family home, while a garage conversion or basement finish is treated as an addition or alteration with somewhat less stringent requirements. Local amendments may mandate specific insulation values, high-efficiency windows, or energy-recovery ventilation, so check the energy code early because it affects materials and budget.
It Has to Function as an Independent Unit
A legal in-law apartment is a self-contained dwelling. That means a separate entrance, a kitchen with cooking appliances and a sink, a bathroom with a toilet, sink, and shower or tub, and a sleeping area. Without all of these, most jurisdictions classify the space as a room inside the existing house rather than a separate dwelling unit, which changes the legal and tax picture entirely.
The entrance doesn’t have to be elaborate. An exterior door from a converted garage, a side entry to a basement, or a separate stairway to an upper-level unit all work. What matters is that someone living there has reasonable privacy and doesn’t depend on the main household for basic daily functions.
Permits, Inspections, and the Certificate of Occupancy
You need permits before construction begins. The process typically starts with a zoning review to confirm setback, size, and location compliance, followed by a building permit application with detailed documentation: site plans, architectural drawings with floor plans and elevations, and structural, electrical, and plumbing specifications. Some jurisdictions also require energy calculations and erosion control plans.
Permit fees vary widely. Based on available data, homeowners should budget anywhere from a few thousand dollars to $20,000 or more in permit and application fees, depending on jurisdiction and project scope. Some areas charge development impact fees on new ADUs to offset demands on local infrastructure, though a number of states have capped or waived impact fees for smaller ADUs.
Once plans are approved and permits issued, inspections occur at key stages: foundation, framing, rough electrical and plumbing, insulation, and final completion. Failing an inspection means correcting the deficiency and scheduling a re-inspection, which adds time and cost.
After the unit passes its final inspection, you need a certificate of occupancy. This document confirms the ADU meets all applicable codes and is safe for people to live in. Without it, the unit cannot legally be occupied or rented, and occupying a building that requires a certificate of occupancy before actually obtaining one is a code violation that can trigger fines. Keep the certificate with your property records. You’ll need it when selling, refinancing, or responding to complaints. Some jurisdictions also require periodic re-inspections, particularly if codes have been updated since the original certificate was issued.
HOA Rules and Deed Restrictions
Here’s a trap that catches homeowners off guard. Your zoning and building codes may fully allow an ADU, but your homeowners association or a recorded deed restriction may still prohibit it. HOA covenants, conditions, and restrictions are private agreements that can impose rules stricter than local zoning. Some HOAs ban outbuildings, limit the number of kitchens on a property, or restrict rental activity in ways that effectively block an ADU.
A handful of states have passed laws preventing HOAs from unreasonably restricting ADUs, but this remains the exception. Pull your CC&Rs and check for conflicts before you spend money on design and permits. Getting an HOA variance after you’ve already built is far harder than getting clarity upfront.
How You Use the Unit Matters Too
Legalizing the physical space is only half the equation. Some jurisdictions restrict ADU occupancy to family members, caregivers, or people with specific relationships to the property owner. These rules have become less common as states reform ADU laws, but where they still exist, renting to an unrelated tenant could jeopardize the unit’s legal status.
Short-term rentals are another common restriction. Many jurisdictions prohibit renting ADUs for periods shorter than 30 days, and some require a recorded deed restriction confirming the unit won’t be used as a vacation rental. ADU-friendly zoning was typically adopted to add long-term housing supply, not tourist accommodations. Violating a short-term rental ban can bring fines and, in some cases, revocation of the ADU’s permits.
The Legal Status Follows the Unit Into Insurance, Taxes, and Financing
A detached ADU may fall under the “other structures” coverage in a standard homeowners policy, but that coverage is often limited to a percentage of your dwelling coverage and may not be enough to rebuild the unit. An interior ADU like a basement conversion might be covered under your main dwelling policy, but verify this with your insurer. Renting the unit creates additional liability exposure, and you may need a landlord policy or an umbrella policy to cover tenant injuries or property damage.
Building an ADU increases your property’s assessed value, which raises property taxes. The reassessment typically applies only to the value added by the ADU. A garage conversion generally adds less assessed value than new construction, but either way the county assessor can give you an estimate before you finalize your budget.
If you rent the ADU, the IRS treats the income as rental income reported on Schedule E. You must report all rent you receive, including advance rent and any tenant-paid expenses that count as income. Security deposits are not income when received, but any portion you keep because the tenant breached the lease becomes income in the year you keep it.1Internal Revenue Service. Publication 527 (2025), Residential Rental Property Rental property also comes with deductions for mortgage interest allocable to the ADU, property taxes, insurance, repairs, and depreciation of the structure over 27.5 years.2Internal Revenue Service. 2025 Instructions for Schedule E (Form 1040) One wrinkle: if you later sell the home, the portion used as a rental may not qualify for the full capital gains exclusion on your primary residence.
On the financing side, Fannie Mae treats an ADU the same as any other home feature, so you can finance a property with an ADU using standard purchase or refinance products, and a HomeStyle Renovation loan can cover construction costs when you’re adding one. Fannie Mae won’t finance properties with multiple ADUs or properties where a manufactured home is the primary residence.3Fannie Mae. Accessory Dwelling Units
What Happens If You Skip the Process
Plenty of homeowners convert a basement or garage without pulling permits, figuring no one will notice. The consequences tend to surface at the worst possible time. When you sell, you’re legally obligated to disclose known unpermitted work to buyers. Appraisers often can’t count unpermitted square footage in the home’s valuation, which directly reduces what buyers will pay. Mortgage lenders get nervous about unpermitted construction and some will walk away from the deal entirely.
Insurance is another landmine. If an electrical fire starts in your unpermitted ADU, your insurer may deny the claim on the grounds that the work was never inspected and never met code. And if a tenant or guest is injured in a unit without a certificate of occupancy, your liability exposure is substantially worse than it would be in a permitted space.
If you already have an unpermitted unit, check whether your city runs an amnesty or legalization program. Many jurisdictions have created pathways for existing unpermitted units, allowing owners to bring them up to code and obtain permits retroactively. These programs typically require meeting all current life-safety standards and may include affordability requirements. Pursuing legalization is almost always better than hoping no one finds out.