
An agricultural or storage shed located near a boundary fence must comply with urban planning and civil law regulations that vary depending on the municipality, the zoning of the local urban plan (PLU), and the exact nature of the project. Installing a shed near a neighbor’s fence without understanding these parameters exposes one to lengthy and costly litigation, and sometimes to a demolition order.
Encroachment on Neighboring Property: The Game-Changing Jurisprudence
Competitors detail the regulatory distances but omit a point that has become central in recent years. The Court of Cassation (third civil chamber, decisions published between 2023 and 2026) firmly reminds that an encroachment of even a few centimeters – a roof overhang, a slab edge, a structural post – can justify the demolition of the part of the building that exceeds.
Read also : What size corresponds to the letter L in clothing: a guide to equivalences and measurements
The judge does not have to consider the good faith of the builder or the disproportionate cost of demolition work. This tightening of jurisprudence makes prior boundary marking by a land surveyor almost essential before any installation of a shed at the property line.
Regarding boundary marking, a decision from the third civil chamber on March 28, 2024, specifies that a boundary marking already completed renders any new action concerning the same boundary inadmissible. If your markers have disappeared or were never installed, you can learn more on Botagora to understand the practical implications of this situation before launching your project.
Recommended read : The rules to know for installing a mobile home on agricultural or natural land

Distance Between Shed and Boundary: What the Urban Planning Code Provides
The urban planning code does not set a single distance applicable everywhere. It is the local urban plan (PLU) of your municipality that determines the installation rules in relation to boundary lines. In the absence of a PLU, the national urban planning regulations (RNU) apply.
Two Common Scenarios in PLUs
- Construction Set Back: The PLU imposes a minimum distance between the shed and the property line, often calculated based on the height of the building (for example, a distance equal to half the height, with a minimum of three meters).
- Construction at the Boundary: Some zones allow installation directly on the boundary, provided that the wall in contact with the neighboring parcel has no openings (windows, through ventilation) and complies with height regulations.
- Agricultural Zones: Specific rules may apply, particularly regarding the purpose of the shed, the area used, and the link between the construction and the declared agricultural activity.
Before any steps, it is essential to consult the PLU at the town hall or with the urban planning department. The rules vary from one parcel to another depending on zoning, and a misreading of the document can invalidate a building permit.
Urban Planning Authorization for a Shed: Prior Declaration or Building Permit
The nature of the authorization depends on the floor area and ground footprint of the proposed shed. A small footprint shed may only require a simple prior declaration of work, while a larger shed necessitates a building permit.
Engaging an Architect
Engaging an architect becomes mandatory beyond a certain surface area threshold. Agricultural operators benefit from a specific exemption for buildings related to their activity, under certain conditions. In all cases, the file must include a scaled site plan indicating precisely the distance between the construction and the boundary lines.
The instructing service checks the project’s compliance with the PLU. A neighbor may contest the issued permit before the administrative court within two months from the posting on the site.
Party Wall and Property Rights: What Complicates Installation at the Boundary
When the existing fence is a party wall, the legal situation becomes more complex. Party walls confer rights and obligations to both owners. Leaning a shed against a party wall without the neighbor’s consent constitutes a private use that can be contested.
On the other hand, if the wall exclusively belongs to the neighbor (private wall), leaning against it or attaching a structure is prohibited without their written consent. The distinction between a party wall and a private wall is based on property titles or, in the absence of such, on the presumptions of the civil code.
Right of View and Abnormal Disturbance of Neighbors
Even when respecting the distances of the PLU, a shed can cause an abnormal disturbance of neighbors: massive loss of sunlight, runoff of rainwater onto the neighboring parcel, noise related to the use of the building. Recent jurisprudence (third civil chamber, decisions 2024-2026) confirms that this type of disturbance engages the builder’s liability regardless of any fault.

The rules of the right of view also apply: no direct view (window, opening) can be created within a certain distance from the boundary, a distance set by the civil code. A closed shed without lateral openings avoids this issue, but an open-sided shed may be subject to it.
Concrete Precautions Before Starting the Work
- Have a contradictory boundary marking done if the property lines are not marked by official markers, to avoid any risk of encroachment.
- Request an operational urban planning certificate at the town hall to verify the feasibility of the project on the concerned parcel, even before submitting an authorization.
- Inform the neighbor of the project in writing, specifying the nature, height, and intended distance of the shed from the fence. This step is not legally mandatory, but it significantly reduces the risk of opposition.
- Keep all documents (scaled plans, acknowledgment of receipt of the declaration or permit, boundary marking certificate) for the entire duration of the construction.
A well-positioned shed, compliant with the PLU and located on boundaries verified by a surveyor remains the best protection against neighbor disputes. Prescription does not protect in all cases, and a demolition ordered several years after construction remains a real scenario, as confirmed by recent decisions from the Court of Cassation.