
A used 20-foot container can look like the cheapest shed you'll ever buy: steel walls, a lockable door, and a truck that drops it in your yard in an afternoon.
Then a neighbor complains, or the city sends a letter, and you find out the box you paid for may not be allowed where it's sitting. So before you order one, ask the question that sellers tend to rush past: do you need a permit for a shipping container in your yard?
The answer depends on two separate sets of rules. Zoning decides whether a container can sit on a residential lot at all, where it can go, and for how long. The building code decides whether you need a building permit, how the box has to be anchored, and what happens if you add windows, power, or a desk. We read the published rules from seven U.S. cities and counties, and they don't agree with each other. Below is what each one actually says, so you know which questions to ask your own building department.
Do you need a permit for a shipping container? The short answer
Often yes, and in some places the container isn't allowed in a residential yard at all, permit or not. A few jurisdictions skip the building permit for small storage containers (Portland, Oregon and Larimer County, Colorado draw the line at 200 square feet), but even those still expect you to meet zoning setbacks. Others, like San Diego County and Monroe County, Florida, require a building permit for any container placed on a lot. Once a container becomes a studio, office, or living space, it's treated as a building and has to meet the building code, with separate trade permits for electrical or plumbing work.
Zoning comes first: some cities don't allow them in yards
Check zoning before you look at sizes or foundations, because it can end the conversation. Chula Vista, California says shipping containers "shall not be allowed in any residential zoning district, except in conjunction with an active construction permit." (Chula Vista Municipal Code 19.58.445)
San Antonio, Texas lists shipping container storage as "not permitted in residential zoning districts" in its use table. There's a path, but it changes what you're building. A container can be used as a residential accessory structure only if it's modified to meet the city's accessory structure rules and the residential or building code, with a permit application and inspections. Because of that, the permit comes with a requirement to add siding and roof material so the container no longer looks like a shipping container or moving pod. San Antonio also says these permits must meet all accessory structure requirements, including engineered foundation designs and inspections. (City of San Antonio: Information Bulletin 540, Portable Storage Units)
Don't use the neighbors as your guide, either. In Waldport, Oregon, containers have been effectively banned outside certain commercial and industrial areas since around 2019 or 2020, but older ones were grandfathered in. The city manager told the Lincoln Chronicle that residents see a neighbor's container and order one, and sellers from outside town "just drop it off." The city was weighing new rules in August 2026. (Lincoln Chronicle, August 6, 2026) A container that was legal when it arrived next door can still be a violation when yours shows up. If it gets reported, our guide to what code enforcement does after a neighbor complaint walks through what happens next.
The 200-square-foot question for storage containers
Where containers are allowed, size is usually what decides whether you need a building permit. Standard containers are 8 feet wide, so a 20-footer works out to about 160 square feet and a 40-footer to about 320. Check the seller's spec sheet for the exact outside dimensions, since that's the number the building department will use.
Portland, Oregon
Portland's code guide on cargo containers, approved August 18, 2026, says a container accessory to a one- or two-family home needs a building permit if it's larger than 200 square feet or taller than 15 feet. Smaller containers don't need a building permit, but the guide's other requirements and the zoning code still apply. The shortcut only covers storage. It doesn't apply if the container is used as a shop, studio, hobby room, office, or playhouse, if it stores a car, if it's stacked, if it has plumbing, or if it has electrical power beyond lighting. (City of Portland: Building Code Guide 96-11, Cargo Containers)
Larimer County, Colorado
Larimer County also requires a building permit for cargo containers over 200 square feet of floor area. It adds that containers can't be placed in flood hazard areas, and they have to meet land use setbacks from property lines, roads, and waterways "whether or not a permit is required." (Larimer County: Cargo Containers, updated 2/1/2022)
King County, Washington
King County's Permitting Division handout (January 2019) requires a building permit for containers used as a building or structure. It exempts residential accessory storage structures under 200 square feet, but only if they're out of required setbacks, at least 10 feet from all other buildings, unheated, and not used as habitable space. (King County: Cargo Shipping Containers, Building Permit Requirements) The handout is older, so check it against the county's current rules.
San Diego County, California
Unincorporated San Diego County takes the opposite approach. A building permit is required to place a sea cargo container on a lot, and a demolition permit is required to remove it. On residential sites under 2 net acres, only one container is allowed, it can't exceed 320 square feet, and it's permitted for up to 180 consecutive days in any five-year period, even if it's fully screened. It also can't be visible from the road that borders the parcel, it must meet accessory structure setbacks, and it has to be painted one of the county's approved colors, such as flat, non-reflective dark green or tan. (County of San Diego: PDS-726, Requirements for Placing a Sea Cargo Container on a Private Lot)
Monroe County, Florida
In the Florida Keys, Monroe County treats a storage container at a home as an accessory structure that needs a building permit, with planning, structural, and floodplain review. The container plus all other accessory structures has to be smaller in area than the house, and it can't sit in required setbacks. (Monroe County Growth Management: Shipping/Storage Containers at Residential Locations)
So the 200-square-foot line isn't universal. It's the same kind of size cutoff many towns use for sheds, which our shed permit requirements guide explains, but some counties set no threshold at all for containers. Ask your building department which rule applies to a container specifically, not just to a "shed."
Foundations, tie-downs, and setbacks
Photo: Billy, CC BY-SA 2.0, via Wikimedia Commons (cropped)
A container sitting on bare ground isn't automatically a problem, but it may need anchoring. Portland allows containers on firm, level, undisturbed natural ground or on an existing paved area and doesn't require a permanent foundation. Containers over 200 square feet, though, have to be anchored against sliding and overturning from seismic and wind loads. Portland also requires an egress door at least 3 feet wide by 6 feet 8 inches high (the standard container doors can count if they meet that size and can latch open). If the container sits less than 5 feet from a property line, its walls have to be one-hour fire-resistance rated, or lined inside with two layers of 5/8-inch Type X gypsum board. (City of Portland: BCG 96-11)
Larimer County's permit application calls for a plot plan and either an engineer-designed foundation and anchorage system or minimum tie-downs submitted by the applicant, with anchors at least 3 feet deep at each corner. An engineered design is required if the container exceeds 400 square feet, exceeds 10 feet in height, is used for anything other than private storage, or is open to the public. (Larimer County) Monroe County requires an engineered tie-down system or foundation plans with the permit application, and in flood zones the container has to be anchored against flotation, collapse, and lateral movement. (Monroe County) If your lot is in a mapped flood zone, our guide to flood zone rules explains why floodplain review shows up on so many permits.
Setbacks trip people up most, because delivery trucks need room and the easiest drop spot is often against a fence line. Before you pick a spot, check side and rear setbacks, easements, and utility lines the same way you would for a shed. Our checklist on checking setbacks and easements before you buy a shed works for containers too.
Temporary containers: moving pods and renovation storage
Photo: HireAHelper, CC BY 2.0, via Wikimedia Commons
Short-term containers usually follow different rules than permanent ones, and moving pods are often treated differently from steel shipping containers. In San Antonio, moving pods can sit on a residential lot for up to 60 days in any 12-month period without a temporary use permit, in the front yard area but behind the minimum front and side setback lines. A shipping container is different. The building official can issue a temporary use permit for no more than 30 days when the container stores tools, materials, or equipment for a construction project on the same parcel. Extensions are case by case, and the container has to be removed 10 days after the project is finished. (City of San Antonio: IB 540)
Chula Vista allows one portable storage container per residential lot. It goes in the garage first, then the driveway, and it can't block the sidewalk. On private property, it can stay up to 30 consecutive days. In the public right-of-way, which needs a temporary encroachment permit, the limit is 14 consecutive days. Either way, it can't be on the same lot for more than 90 total days in a calendar year. (Chula Vista Municipal Code 19.58.445)
Containers on an active job site get their own exceptions. San Diego County allows them in all zones to store building materials under an active building permit. If that permit expires, the container has to be removed with a demolition permit. (County of San Diego: PDS-726) Portland doesn't require a building permit for a contractor's storage container on a site with a valid building permit, as long as it's removed within 30 days after the final inspection. (City of Portland: BCG 96-11) Removal paperwork can feel odd for a box that's just picked up by a truck, but San Diego County spells it out. Our guide to demolition permits for houses, garages and sheds covers how those permits usually work.
Turning a container into a studio, office, or backyard ADU
Photo: Nicolás Boullosa, CC BY 2.0, via Flickr
This is where container projects get expensive. Every storage exception above stops as soon as the box becomes a space people use. Portland's guide says containers that don't meet its storage-only limits "must meet all applicable requirements of the Building Code for a site-built structure," and it points to the Oregon Structural Specialty Code section on intermodal shipping containers. It also says trade permits "are always required for mechanical, electrical, and plumbing work," whether or not a building permit is needed. (City of Portland: BCG 96-11)
The other jurisdictions say much the same. San Antonio allows containers as a building material for a home under a residential building permit, built to the International Residential Code or International Building Code. (City of San Antonio: IB 540) San Diego County says a container used for an approved purpose other than storage, such as a residence or recreation room, must be completely screened so it no longer looks like a sea cargo container. (County of San Diego: PDS-726) Monroe County says repurposing a container for anything beyond limited storage requires full compliance with the Florida Building Code. (Monroe County)
If you want someone to sleep in it, you're really planning an accessory dwelling unit, with all the zoning and utility questions that come with one. Start with our guide to ADU permit requirements. Even a simple office with lights and outlets will usually need an electrical permit, which our electrical permit guide covers.
HOA rules can still say no
A city permit doesn't override your HOA's covenants. Waldport's city manager noted that many neighborhoods there already have homeowners association bans on containers, even while the city reconsiders its own rules. (Lincoln Chronicle) Read your CC&Rs for anything about outbuildings, storage structures, or exterior appearance, and see our guide to HOA approval vs. a city building permit for why you often need both.
Shipping container permit checklist
- Find out who has jurisdiction over your address: the city, or the county if you're in an unincorporated area.
- Ask zoning whether a shipping container is allowed on your residential lot at all, and whether it has to be screened, painted, or re-sided.
- Ask whether a building permit is required for your container's size. Have the footprint ready (about 160 square feet for a 20-footer, about 320 for a 40-footer).
- Confirm setbacks, easements, flood zone status, and any limit on total accessory structure area.
- Ask what anchoring or foundation the county or city expects, and whether an engineer has to design it.
- If the container is temporary, get the time limit in writing and plan the pickup date.
- If you'll add power, plumbing, insulation, or a workspace, plan for a full building permit and trade permits before you buy.
- Check your HOA covenants and deed restrictions.
FAQ
Is a shipping container considered a permanent structure?
Often, yes. San Antonio says permanent storage in a container is an accessory use, and Monroe County calls a storage container at a home an accessory structure that needs a building permit. Temporary job-site and moving containers are usually treated separately, with time limits.
Can I put a shipping container on my property without a permit?
Sometimes. In Portland and Larimer County, a storage-only container of 200 square feet or less doesn't need a building permit, though setbacks and zoning still apply. In San Diego County and Monroe County, a permit is required regardless of size, and Chula Vista doesn't allow them in residential zones except with an active construction permit.
Can I live in a shipping container in my backyard?
Only if your city or county allows a second dwelling on your lot and the container is built and permitted as a home under the building code. Portland, San Antonio, San Diego County, and Monroe County all treat a container used for anything beyond storage as a building that has to meet the code.
My container is already here without a permit. What now?
Call the building or zoning office and ask what it would take to legalize it, or whether it has to go. Our guide to code enforcement after a neighbor complaint explains the usual sequence if the city contacts you first.
Container rules change often, and several of the places above have updated theirs recently. Treat this as a starting point and confirm the current rules with your local building and zoning department before you buy or schedule a delivery.
Last checked: October 31, 2026.
Official sources
- City of Portland, OR: Building Code Guide 96-11, Cargo Containers (approved August 18, 2026)
- Larimer County, CO: Cargo Containers (updated 2/1/2022)
- King County, WA: Cargo Shipping Containers, Building Permit Requirements (January 2019)
- County of San Diego, CA: PDS-726, Sea Cargo Containers on a Private Lot (rev. 02/24/2024)
- Monroe County, FL: Shipping/Storage Containers at Residential Locations (February 25, 2021)
- City of San Antonio, TX: Information Bulletin 540, Portable Storage Units (revised September 18, 2025)
- City of Chula Vista, CA: Municipal Code 19.58.445, Portable Storage and Shipping Containers



Comments
Post a Comment