Court Confirms: Neighbors Must Share Costs of Walls and Fences Separating Properties, Even Without Agreement. Understand How the Law Works.
Few topics generate as much tension in daily interactions between neighbors as the construction of walls and fences to delineate properties. At first glance, it seems like a simple question: whoever wants to build the structure pays for it. But the legal reality is quite different. The Brazilian Civil Code establishes that demarcation between properties is of common interest and, therefore, costs must be shared among property owners. This rule, although clear in the text of the law, still causes strangeness and often ends up in court when one side refuses to bear the expense.
The topic occasionally draws attention precisely because it involves not only the interpretation of neighborhood rights, but also values such as solidarity, proportionality, and shared responsibility. After all, the wall protects not just one property: it provides security, privacy, and appreciation for both sides.
What the Civil Code Says About Walls and Dividers
The starting point for understanding the issue lies in the Article 1,297 of the Civil Code, which states that any property owner can demand from the neighbor the demarcation of the land. This demarcation can occur through markers, fences, or walls, and the obligation to bear the costs of the work is proportionally divided among the neighbors.
-
The noise law will no longer be in effect at 10 PM starting in June with a new rule valid during the 2026 World Cup.
-
The Chamber opens a debate on driver’s licenses at 16 years old as part of a reform that includes around 270 proposals to change the Brazilian Traffic Code and may redesign rules for licensing, enforcement, and circulation in the country.
-
The new Civil Code could revolutionize marriages in Brazil with “express divorce” and changes that could exclude spouses from inheritance.
-
Banco do Brasil sues famous influencer for million-dollar debt and intensifies debate on delinquency, risks of seizure, and direct impact on Gkay’s credibility.
In other words, no one can exempt themselves by claiming they do not want the wall. The right is not solely that of one neighbor: it is a reciprocal right and duty. Furthermore, legislation seeks to prevent abuses. A property owner who builds alone can legally charge the other party for their share, as long as they prove the need for the work and the costs incurred.
This legal provision has existed for decades, but it has only recently gained more visibility due to the increase in legal conflicts involving the issue.
How Cost Sharing Works in Practice
In practical terms, the cost sharing of walls and fences works as follows:
- The interested property owner informs the neighbor of their intention to build the structure.
- The budget is presented, so both can evaluate and decide the best way to carry out the work.
- If there is consensus, the costs are shared, and the work is carried out by mutual agreement.
- If there is no understanding and the construction proceeds, the initiating party can later charge half, including in court.
This logic also applies to maintenance and repair. If a wall that divides two properties shows cracks, leaks, or risk of collapse, the responsibility for fixing it equally falls on both neighbors.
Recent Court Decisions Confirm the Understanding
The Judiciary has repeatedly confirmed that costs must be shared, even when there is no prior agreement. In Minas Gerais, for example, a rural property owner built a barbed-wire fence alone to contain cattle and later won a court ruling requiring the neighbor to pay half of the costs.
In São Paulo, an urban resident fully covered the costs of building a masonry wall between two lots, but subsequently filed a lawsuit and obtained a favorable ruling determining proportional reimbursement.
The Superior Court of Justice (STJ) has already consolidated the understanding that the obligation to share costs arises directly from the law and does not depend on the explicit will of the neighbors.
When Refusal Becomes a Legal Dispute
Despite the clarity of the rule, many neighbors insist on refusing to contribute, claiming they do not want the work or that they cannot afford it. It is precisely in these situations that the topic often ends up in court.
In various cases, judges have determined that reimbursement should be made in cash, proportional to the proven cost of the work, and even authorized the seizure of assets in cases of non-compliance. In other words, the wall may be built solely by one party, but the final bill, sooner or later, is shared by both.
This understanding seeks to curb injustices. Imagine a neighbor investing alone in a security structure, even enhancing the neighboring property, without the other contributing anything. It would be an evident imbalance.
Economic and Social Impacts of the Rule
The obligation to share costs has a direct impact on the market value of properties. A plot with well-defined boundaries, sturdy fences, and well-constructed walls tends to have greater liquidity and a higher price. This appreciation benefits both those who paid and those who tried to evade the expense.
Moreover, the wall serves not only as a physical barrier: it delineates rights, prevents future conflicts, and reduces litigation related to area invasions, irregular constructions, or disputes over square meters.
From a social standpoint, the rule also seeks to promote balanced coexistence among neighbors. Although many see cost sharing as a burdensome obligation, it is a mechanism to ensure that everyone participates in caring for the property.
Specific Cases: Retaining Walls and Rural Areas
One important point is that cost sharing also applies to more complex structures, such as retaining walls, used in properties with sharp gradients.
When the risk of landslides or collapse involves two properties, the judiciary understands that both neighbors are responsible for bearing the costs of the work.
The same applies to rural areas. Fences to contain animals, protect crops, or separate agricultural lots also fall under the cost-sharing logic. The jurisprudence reinforces that the obligation does not depend on the type of property: whether urban or rural, the principle of cost solidarity remains.
Wall is Not a Favor, It’s a Shared Obligation
The message conveyed by the courts and legislation is clear: a wall is not a favor from one neighbor to another, but a shared obligation of both.
Building it alone, without seeking reimbursement, may indeed be a gesture of good neighborliness, but legally, no one is obliged to assume a cost that brings mutual benefits alone.
In times of increasingly valued properties and growing conflicts over urban and rural space, understanding this right is fundamental to avoid wear and tear. More than a matter of bricks and cement, the construction of walls and fences is an example of how coexistence requires not only rules but also balance and common sense.


Moro na área rural pedi pra um dos vizinhos conter a água do seu terreno q é acima do meu ele me disse ” se vira constrói um muro aí ” eu me calei e fiz o meu muro na época como podia , (a divisão dele era com cipreste), meu muro é baixo cerca de 1,50 e nao tem estruturas para mais , acontece q ele e um pobre metido a rico, e nem manutenção do cipreste fez em 10 anos podou 2 x, e esse cipreste cresceu a 10 m de altura invadindo e sombreado meu terreno , agora ele quer subir o meu muro pra nao perder a privacidade da casa dele . Pensa num ser ****! Eu nao deixo , pois nem o cipreste ele poda e parte do terreno eu construir sozinha em alambrado. Eu acho muita cara de **** da parte dele fazer o q ele faz , fora q ele poda o mato dele e joga na frente do meu terreno que e área verde.Acho q essa pessoa ta precisando de uma lição, mas a vida vai dar a ela , espero! Porq eu quero distância embora tenho q aturar por ser vizinho.
Muito bom
Aí aparece o vizinho e fala que só pode comprar as varinhas de bambus,para fazer uma maloca.