Law

Containers on the property line: neighbour law and setbacks

A site close to the boundary is the most common source of dispute. Which rules apply, why a high cube or a 40 ft unit can tip the balance, when the neighbour's consent helps and how to avoid trouble.

12 min read Updated: 18 November 2026

Why the boundary distance matters

When containers on private property lead to conflict, it is almost always about the distance to the property line. A container is compact, so it tends to be pushed into the far corner of the plot – exactly where German building law looks most closely.

The legal core is the concept of Abstandsflächen (setback areas): areas in front of external walls that must remain free of buildings and normally lie on your own plot. They secure daylight, ventilation and fire safety. They are governed by the state building codes (Landesbauordnungen, LBO or BauO) – state law, not a single nationwide rule.

Alongside this sits private neighbour law: the Nachbarrechtsgesetze of the individual states plus provisions of the Civil Code, covering boundary fences, planting distances, roof drainage and the ladder and scaffolding right. Both systems exist side by side: a permit from the building authority does not automatically remove a neighbour’s civil-law claims, and vice versa.

Understanding setback areas

The basic principle is similar in every federal state; the details differ:

  1. Determine the height. What counts is the wall height from ground level to the upper edge of the wall. A standard container is about 2.59 m high externally, a high cube about 2.90 m (see sizes and dimensions); any foundation or substructure is added. On sloping ground the codes generally use the mean wall height.
  2. Calculate the depth. A factor set by state law converts that height into the depth of the setback area: the higher the wall, the greater the distance.
  3. Respect the minimum. Many state codes also set a minimum depth that applies even to very low structures.
  4. Keep it clear. The setback area must in principle lie on your own plot and not overlap with other setback areas.

The table below is based on the model building code (Musterbauordnung, MBO, § 6), a template the federal states follow. The values are expressly not binding for your plot – factor, minimum and exceptions differ in individual state codes.

Value (order of magnitude)What is typically examinedCaveat
Factor applied to wall height (H)MBO: 0.4 H, in commercial and industrial areas 0.2 HVaries by federal state and type of area
Minimum depth of the setback areaMBO: 3 mSome states differ, in part lower
Building on the boundary without own setbackMBO: garages and buildings without habitable rooms and combustion appliances with a mean wall height of up to 3 mOnly under the conditions set by state law
Length of such boundary buildingsMBO: up to 9 m per boundary, up to 15 m on the plot in totalExisting garages or sheds count; figures set by state law

Use such numbers only as rough orientation for initial planning. What is binding is your federal state’s building code together with the information from your local building authority.

Worked example: which variant fits on the boundary?

The calculation below applies the MBO system from the table to typical container variants. Assumptions: level ground, pad or strip foundations about 15 cm above ground, external dimensions 20 ft about 6.06 × 2.44 m, 40 ft about 12.19 × 2.44 m, height 2.59 m (standard) or 2.90 m (high cube). The long side runs parallel to the boundary. Your state’s law may lead to a different result.

VariantWall height (approx.)Length on the boundaryBoundary building possible under the MBO system?Otherwise required distance
20 ft standard for storage2.59 + 0.15 = 2.74 m6.06 mCriteria met: under 3 m, under 9 m, no habitable room–
20 ft high cube for storage2.90 + 0.15 = 3.05 m6.06 mNo, wall height above 3 m3 m (0.4 × 3.05 = 1.22 m, minimum applies)
40 ft standard for storage2.74 m12.19 mNo, longer than 9 m3 m
20 ft standard next to an existing 6 m garage on the same boundary2.74 m6.06 + 6.00 = 12.06 mNo, together over 9 m per boundary3 m or another location
As above, but container on a different boundary2.74 m6.06 m and 6.00 m per boundaryCriteria met: under 9 m per boundary, 12.06 m in total, under 15 m–
20 ft standard as a home office2.74 m6.06 mNo, habitable room3 m
Two 20 ft standard units stacked2 × 2.59 + 0.15 = 5.33 m6.06 mNo, wall height above 3 m3 m (0.4 × 5.33 = 2.13 m, minimum applies)

Three lessons follow:

  • For containers the minimum almost always decides. With a factor of 0.4, the calculated depth only exceeds 3 m from a wall height of 7.5 m – roughly three stacked standard containers. For a single container this means: either meet the criteria for boundary buildings or plan for about 3 m (or your state’s minimum).
  • A few centimetres can tip the balance. A high cube is already 2.90 m without a substructure; a 15 cm foundation lifts it over the MBO’s 3 m limit. When planning near the boundary, fix the height of container and foundation together – see container foundation.
  • Length is often overlooked. Existing garages, carports or sheds on the same boundary count. A 40 ft container exceeds 9 m on its own.

Fire protection at the boundary: Independently of setbacks, the building codes generally require increased fire resistance for external walls closer than 2.50 m to the boundary (a fire wall or, depending on the building class, a substitute). The MBO exempts buildings without habitable rooms and combustion appliances of no more than 50 m³ gross volume. A 20 ft container at about 6.06 × 2.44 × 2.59 m comes to roughly 38 m³ (high cube roughly 43 m³); a 40 ft unit, at roughly 77 m³, is well above. How the states have adopted this exemption varies; details in fire safety regulations for containers.

When a container may stand close to the boundary

Some constellations make a boundary-adjacent location conceivable. Whether they apply must always be checked individually.

  • Procedure-free small structures. Many state codes exempt structures below certain size thresholds from the permit requirement. Being exempt from the procedure does not mean being exempt from the rules: setbacks generally still apply, only the official prior check falls away.
  • Privileges for garages and ancillary buildings. Some state codes allow garages, carports or certain ancillary buildings on the boundary without their own setback area, provided height, wall length and use stay within defined limits. Whether a container qualifies depends on its design and use; the worked example above shows how tight the limits are.
  • No habitable rooms. Once people work or live permanently inside, requirements tighten. Boundary privileges are usually limited to structures without habitable rooms and without combustion appliances. A garden office or home office in a container therefore regularly does not qualify, even if the unit is identical to a storage container.
  • Temporary placement. Site containers used during ongoing construction work are often treated differently from permanent ones; again, the details are state law.

On whether a permit is needed at all, see our article on the container building permit.

If the desired location does not respect the setbacks, the neighbour’s consent is often the most practical route – but it must be done properly.

InstrumentWhat it meansWhat to watch out for
Signature on the building applicationThe neighbour declares agreement with the projectEffective mainly within the permit procedure; describe the scope precisely
Deviation or exemptionOfficial decision to depart from a requirementApplication to the building authority; a discretionary decision
Baulast (in most states)Public-law obligation on the neighbouring plot, entered in the register of building encumbrancesAlso binds later owners; a formal act
Private agreementContract between neighbours, possibly an easement in the land registerOnly a land register entry reliably binds legal successors

Two points matter most. First, written form: a verbal promise over the garden fence helps little in a dispute and is worthless once ownership changes. Second, durability: if the container is to stay long term, consent should hold against a future neighbour too. A Baulast or an easement are the usual routes; both require a formal declaration, so seek professional advice.

Typical points of dispute

  • Overshadowing. A tall container on the southern boundary can shade beds, terraces or windows. Setback law protects exactly this interest, which is why overshadowing often triggers a complaint.
  • Visual impact. A closed steel wall on the boundary is often experienced as oppressive. Purely visual effects are legally harder to pin down than setback violations, but they shape the atmosphere in the neighbourhood.
  • Rainwater from the roof. Precipitation must not be discharged onto the neighbouring plot. A gutter draining onto your own plot is usually the simplest fix; on falls and drainage see sealing a container roof.
  • Noise from commercial use. A workshop, cooling unit, ventilation or customer traffic creates emissions; immission control law and the permitted use of the area come into play. Technical mitigation is covered in noise protection and acoustics.
  • Access and delivery. Even installation can cause dispute if a crane swings over the neighbouring plot. For entering someone else’s property during construction work, the state neighbour law acts provide the ladder and scaffolding right, usually with a duty to give notice.
  • The actual boundary line. Uncertainty about where the boundary runs is a frequent source of error; in doubt, only the official site plan or a marking by the surveying office helps.

What to do in a dispute

  1. Talk first. Many conflicts can be defused before installation: show the location, explain the height, name the use. Early involvement avoids the impression of a fait accompli.
  2. Establish the facts. Record the site plan, heights, photos and dates; without them every further step becomes difficult.
  3. Ask the building authority. It can say whether the location is permissible – but it can also act on violations, so expect an enquiry to have consequences.
  4. Check conciliation. In some states, certain neighbour law disputes require out-of-court conciliation before a lawsuit; whether this applies is governed by state law.
  5. Involve a lawyer. If a removal order looms or substantial investment is at stake, advice from a lawyer specialising in building and neighbour law is sensible – ideally before the container is in place.

Checklist before installation

  • Obtain the official site plan and verify where the boundary actually runs
  • Determine the wall height including foundation or substructure and compare it with the height limit for boundary buildings (MBO: 3 m)
  • Add up the length along each boundary, including existing garages and sheds (MBO: 9 m per boundary, 15 m in total)
  • If closer than 2.50 m, clarify fire protection for the external wall
  • Review your federal state’s building code on setback areas
  • Check the development plan for building lines and rules on ancillary structures
  • Define the intended use honestly: storage, hobby, office, living, commercial
  • Plan roof drainage so that water stays on your own plot
  • Inform neighbours early and secure consent in writing where needed
  • Obtain information from the building authority and document it
  • Plan the installation: access, crane standing area, notice to neighbours

If you are planning residential use rather than storage, see Tiny house: site and law.

Important note

This article contains general information and does not constitute legal advice. In Germany, building law and neighbour law are matters for the individual federal states: decisive are the state building code, the neighbour law act of that state, the development plan for your plot and the information of the locally competent building authority. The orders of magnitude and procedural steps mentioned here are orientation only, not a binding statement about your case. For a binding assessment, contact the lower building supervisory authority or a lawyer practising in building and neighbour law.

Conclusion

The boundary distance decides whether a container is permissible more often than its size does. As the worked example shows, a 20 ft standard storage container may fit on the boundary under the MBO system, while a high cube on a foundation, a 40 ft unit or a home office regularly does not and needs about 3 m of distance. Anyone who knows the wall height, looks up their state’s setback rules, checks the development plan and involves the neighbour early prevents most conflicts before they arise. Where the preferred location does not meet the setbacks, a deviation, a Baulast or an agreement secured in the land register can offer a way forward – but always in writing and coordinated with the building authority. A few metres of planning up front are far cheaper than a removal order later.

← All guides