Do you need a permit for a shipping container? Sometimes. A container sitting on blocks in a rural county for storage often needs nothing at all. The same container in a residential subdivision, wired for power with a desk inside, will likely need a building permit, an electrical permit and possibly a zoning hearing. Whether yours needs a permit comes down to four questions, and one short call to your planning office usually answers them.
Below you'll find those four questions as a simple decision tree, the rules you're most likely to run into, a script for the call, and what tends to happen if you skip it. This is practical guidance and not legal advice, and the only answer that counts comes from your own city or county.
It depends on four things
- How long will it be there? Weeks or months during a project, or years.
- Will anyone be inside it? Storage only, or a workshop, office, gym or living space.
- What is the property zoned? Residential, agricultural, commercial or industrial.
- Where on the lot and how big? Setbacks, lot coverage, front yard or back, 20ft or 40ft.
The more of your answers fall on the harder side, the closer you move from "probably no permit" to "definitely a permit." A temporary, storage-only box on an agricultural parcel behind the barn is the easy end. A permanent, occupied container in a residential front yard is the hard end. Most people land in the middle, with a permanent storage container on a residential lot. That often means an accessory-structure permit, setback rules and sometimes a screening requirement.
Temporary vs permanent placement
Many places have a separate, lighter process for a container that will leave again. The common patterns look like this:
- Temporary use permit. Often good for 30 to 180 days, sometimes renewable, for construction storage, a move or a renovation. It's usually a short form and a small fee.
- No permit for a limited period. Some places allow a container for a set number of days a year with nothing in writing, as long as it sits on private property and off the public right-of-way.
- Permanent placement. The container is treated as an accessory structure, like a detached garage or a large shed, which brings in the rules in the sections below.
Time is part of how codes draw the line. The International Building Code, which most states adopt in some form, treats structures put up for less than 180 days as temporary and caps temporary permits at 180 days unless extended. A foundation, anchors or utilities also make a container look permanent, whatever the calendar says. If you're putting a box on gravel and plan to keep it, assume it's permanent and ask about the accessory-structure rules. The permanent vs temporary structure guide looks at how different places draw that line.
Storage vs people inside
This question changes the answer more than any other. Used for storage, a container is treated much like a shed. Once someone works, trains or sleeps in it, it's an occupied structure, and building codes written for human safety apply.
For storage containers, the rules are mostly about where it sits and what it looks like: setbacks, screening and maybe a size limit. How a factory-built box was made rarely comes up.
For an occupied container, expect some or all of these:
- A building permit with drawings showing the openings you plan to cut.
- An electrical permit for any wiring, and in many places a licensed electrician to do it.
- Egress: at least one exit door that opens from inside without a key, and an emergency escape opening, such as an egress window, in any room used for sleeping.
- Insulation and ventilation that meet the energy and mechanical codes.
- Sometimes an engineer's letter confirming the modified box is still sound, especially after a large opening in a side wall.
- Plumbing permits if there is water.
A jobsite office is usually the lightest case because it's temporary and commercial. A backyard office container is the heaviest common case, since it's occupied, permanent and residential all at once. A container home goes further still and falls under the full residential code.
Residential, agricultural and commercial zoning
Zoning decides what's allowed on the land before building codes decide how it's built. The same container with the same use can get a different answer in each of these zones.
| Zone | Typical treatment of a storage container | What usually trips people up |
|---|---|---|
| Residential | Allowed as an accessory structure with a permit, or restricted, or banned outright in some cities | Front-yard placement, visibility from the street, HOA rules, size limits on accessory structures |
| Agricultural | Often exempt or lightly regulated when used for farm storage | Using an "ag exempt" container for a non-farm business or as a dwelling |
| Commercial | Generally allowed with site plan review, screening often required | Parking-space counts, fire lane access, signage rules if it faces the road |
| Industrial | Usually the easiest, since containers are expected there | Stacking without engineering, blocking fire access |
Residential is where most questions come from and where the answers vary most. Some cities treat a container exactly like a prefab shed. Some allow it only in the rear yard, screened from neighbors. Some prohibit containers in residential zones entirely while allowing a steel building of the same size assembled on site. The containers on residential property guide covers that case in detail. If you have a homeowners association, read the HOA rules guide before you order, because an HOA can say no even when the city says yes.
Setbacks, height and screening rules
Even where a container is allowed, the same four rules tend to come up.
Setbacks. This is the minimum distance from property lines, and sometimes from the house. Accessory-structure setbacks of 3 to 10 ft from side and rear lines are common, and front-yard placement is often prohibited or needs the full front setback. Measure before you pick a spot, because a narrow side yard often has less room inside the setbacks than people expect.
Size thresholds. Many codes exempt small accessory structures from a building permit, usually at 120 sq ft or 200 sq ft. The International Residential Code that most states use for houses says 200, the International Building Code says 120, and some towns set their own number. A 20ft container is 20 ft by 8 ft, or 160 sq ft, so it clears a 200 sq ft exemption and fails a 120 sq ft one. A 40ft is 320 sq ft and fails both. Ask for your town's number, and whether it covers containers at all, since some towns treat them differently from sheds.
Height. Accessory-structure height limits of 12 to 15 ft are common. A standard container is 8 ft 6 in tall and a high cube 9 ft 6 in, plus whatever it sits on, so a single container nearly always passes. Two stacked won't.
Screening and appearance. Some codes call for fencing, landscaping or paint so the container can't be seen from the street or by neighbors. A new one-trip box painted to match the house tends to pass a visual review more easily than a rust-streaked used one. Lot coverage limits, which cap the share of a lot that structures may cover, can also catch small urban lots.
Where on the lot to put it, with all of these in mind, is covered in the where to put the container guide.
How to call your planning office (a script)
Find the planning or zoning department for your city if you're inside city limits, or the county if you're not. Ask for the planner on duty and say something like this:
"Hi, I'm at [address]. I'd like to place a steel shipping container on the property for storage only, with nobody working or living inside. It's 20 feet by 8 feet, 8 feet 6 inches tall, about 160 square feet of footprint, sitting on concrete blocks rather than a permanent foundation. I plan to keep it [for about six months / permanently]. I have a few questions:
- Do I need a permit for that, and which one?
- What are the setbacks from the side and rear property lines, and from the house?
- Is there a rule about placement, like rear yard only, or screening from the street?
- Is there a size or height limit on accessory structures, or a lot coverage limit?
- Does it need to be anchored?
- If I later add electrical or cut in a door, what changes?
- Could you point me to the code section so I have it in writing?"
Swap in 40 feet and 320 square feet for a 40ft box. Write down the planner's name, the date and the code section. If the answer is "no permit needed," ask for that in an email. A ten-minute call costs far less than anything in the next section.
What happens if you skip the permit
A container is hard to miss. It sits in plain view, which is how code enforcement usually finds it, often after a neighbor calls.
The usual sequence starts with a notice of violation and a deadline to apply for a permit or remove the box. Miss the deadline and fines begin, and in many places they're charged by the day. Apply late and you may pay an investigation fee on top of the permit fee, which some building departments set equal to the permit fee itself. If the container can't be permitted where it sits, you'll pay to have it moved, which means another truck visit and possibly another pad.
There are two quieter costs. An unpermitted occupied container can complicate a homeowner's insurance claim if something goes wrong inside it. And an unpermitted structure can surface when you sell, if a buyer's inspector or lender asks for paperwork.
Very little of that is likely for a storage container on acreage behind a barn, and most of it is likely for a wired, occupied container in a subdivision.
State and city patterns
Container rules are set locally, so a table of "laws by state" wouldn't tell you much. The broad patterns are more useful:
- Rural counties tend to be the most relaxed, especially on agricultural land, where a container is just another piece of farm storage.
- Cities and suburbs are where most restrictions live, from rear-yard-only rules and screening to size thresholds and sometimes outright bans in residential zones.
- Coastal and storm-prone areas commonly call for ground anchors or tie-downs, and some local rules require them for any container kept more than a short time, since an empty 40ft catches a lot of wind.
- HOAs are often stricter than the city and can act faster, and their rules apply on top of the city's rather than instead of them.
If your property falls into two of those categories, both sets of rules apply, so the stricter one decides.
Frequently asked questions
Do I need a permit for a temporary shipping container?
Often not, or only a short temporary-use permit, if it's there for storage during a project and leaves within the allowed window. That window ranges from a few weeks to several months depending on where you live, so ask for the number of days. Either way, keep it off the street and out of the front setback.
Is a shipping container considered a building?
For zoning, a permanently placed container is usually an accessory structure, in the same category as a detached garage or shed. For building codes, it becomes a building once people occupy it. A storage box on blocks sits in a gray area, and your local office decides which side it falls on.
Can my neighbor stop me from putting a container on my property?
Usually not directly, unless they're enforcing an HOA rule or a deed restriction. But a complaint is how code enforcement usually learns a container exists. If the container meets the rules, the complaint goes nowhere, and if it doesn't, it starts the notice-and-fine sequence. Screening and a tidy box head off most complaints.
Does a shipping container count toward my lot coverage?
It usually does once it's permanent. A 20ft adds 160 sq ft and a 40ft adds 320 sq ft to the covered area. On a small lot with a large house and a garage, that can push you over the limit, so ask for the coverage percentage along with the setbacks.
Permits and HOA approval aren't part of a container quote. Once the rules check out, send your ZIP and we'll get you one delivered price while the paperwork moves.