When a neighbor's fence, wall, driveway, building extension, or deck sits on your land, New York law gives you a specific statutory cause of action to force its removal: Real Property Actions and Proceedings Law (RPAPL) § 871. The statute authorizes a court to issue a mandatory injunction — an order directing the encroaching owner to physically remove the offending structure. But the remedy is not automatic. New York courts apply a balancing-of-the-equities test, and the outcome frequently turns on facts that owners on both sides of the boundary line misunderstand until it is too late.
This page explains what RPAPL 871 actually says, what a plaintiff must prove, how courts weigh the equities, the procedural steps and deadlines involved, and the most common mistakes made by both the owner seeking removal and the owner defending the structure.
RPAPL § 871(1) provides that an action may be maintained by the owner of any legal estate in land for an injunction directing the removal of a structure encroaching on such land. The statute goes on to say that nothing in it limits the court's power to award damages in an appropriate case in lieu of an injunction, or to render such other judgment as the facts may justify.
Read together, those two sentences define the entire architecture of a New York encroachment case:
In other words, proving that the structure crosses your boundary line gets you into court, but it does not by itself get the structure torn down. The court decides which remedy fits the equities.
New York appellate courts have distilled RPAPL 871 into a two-part showing. To obtain a mandatory injunction compelling removal, the plaintiff must demonstrate:
This is a question of title and survey evidence. The plaintiff must establish (a) ownership of the disputed strip and (b) that the defendant's structure physically intrudes onto it. In practice this almost always requires a current boundary survey by a licensed land surveyor, tied to the deed descriptions of record. Old surveys, tax maps, and fence lines are not reliable substitutes; tax maps in particular are expressly not evidence of boundary location. Where the deed descriptions themselves are ambiguous or conflicting, the encroachment claim is often paired with a quiet title claim under RPAPL Article 15 so the court can first fix the boundary and then address the structure.
This is the balancing test. The Appellate Division has repeatedly held that a plaintiff seeking a mandatory injunction under RPAPL 871 must show that the benefit to be gained by compelling removal outweighs the harm that would result to the defendant from granting that relief. See, e.g., Broser v. Schubach, 68 A.D.3d 897 (2d Dep't 2009); Marsh v. Hogan, 81 A.D.3d 1241 (3d Dep't 2011). The burden is on the plaintiff — not the encroaching owner — to make this showing. Plaintiffs who prove the encroachment but put in no evidence on the balance of hardships routinely see their injunction claims dismissed, sometimes with only nominal damages awarded.
No single factor controls, but New York decisions consistently examine the following:
| Factor | Favors removal (injunction) | Favors damages instead |
|---|---|---|
| Extent of the encroachment | Substantial intrusion; occupies a meaningful portion of the lot; blocks development or access | De minimis — a few inches of foundation, roof overhang, or fence line |
| Defendant's state of mind | Willful, knowing, or reckless construction; built after warning or after a survey showed the true line | Innocent, good-faith mistake based on an existing fence line or an erroneous survey |
| Cost and difficulty of removal | Removal is feasible at modest cost (fence, shed, pavement) | Removal requires demolishing or structurally compromising a building |
| Harm to the plaintiff if the structure stays | Encroachment prevents construction, violates zoning setbacks, clouds marketability, or interferes with use | Strip has little practical utility; plaintiff's use of the parcel is essentially unaffected |
| Plaintiff's conduct | Prompt objection once the encroachment was discovered | Plaintiff stood by silently during construction (laches, estoppel) |
A critical asymmetry runs through the case law: a willful encroacher generally cannot invoke the balancing test in its favor. An owner who builds over the line knowing where the line is — or who continues building after being told — will rarely be heard to complain that removal is expensive. Courts do not permit a party to buy a neighbor's land by deliberately building on it and then paying damages. Conversely, an innocent encroacher whose building wall crosses the line by two inches will almost never be ordered to demolish.
A survey commissioned for a refinance reveals that the neighbor's chain-link fence, installed twelve years ago, sits six inches onto the owner's side along a 90-foot run. Removal cost is trivial. But under RPAPL § 543, a de minimis, non-structural encroachment such as a fence, hedge, shed, or non-structural wall is deemed permissive and non-adverse for adverse possession purposes — so the neighbor has not acquired title despite the passage of ten years. Because the fence is cheap to relocate and the encroachment is proven by survey, an RPAPL 871 injunction directing relocation is a realistic outcome, though the modest benefit to the plaintiff means courts often push these cases toward negotiated relocation or a boundary line agreement rather than trial.
A homeowner builds a rear addition in reliance on a licensed survey that later proves erroneous. The finished addition — foundation, framing, roof — extends 14 inches onto the neighbor's yard. The neighbor sues under RPAPL 871 demanding demolition of the encroaching portion. Here the balancing test does real work: the encroachment is genuine, but removal would require partial demolition of a structural wall at a cost wildly disproportionate to the value of a 14-inch strip the neighbor was not using. A New York court is likely to deny the injunction and award damages in lieu — typically measured by the diminution in value of the burdened parcel or the fair value of the strip — sometimes coupled with a judgment effectively confirming the encroachment may remain. The parties often resolve such cases with a recorded easement or a lot-line adjustment.
A developer's surveyor flags that a planned retaining wall and drainage structure will cross the boundary. The adjoining owner sends a written objection before pouring begins. The developer builds anyway, gambling that a court will never order removal of finished work. This is the fact pattern where RPAPL 871 injunctions issue with the least hesitation: the encroachment was willful, and the developer forfeits the sympathy the balancing test otherwise provides. Courts have ordered removal of substantial structures on these facts precisely to prevent private condemnation by construction.
RPAPL 871(1) expressly preserves the court's power to award damages instead of removal. When a court takes that path, damages are typically measured by one of the following:
Plaintiffs should understand that pleading only for an injunction is risky: if the court denies removal on the equities and the complaint contains no damages demand supported by valuation evidence (usually an appraiser), the plaintiff can win on liability and still walk away with a dollar. A well-drafted RPAPL 871 complaint pleads the injunction, damages in the alternative, and — where the boundary itself is disputed — a claim under RPAPL § 1501 to determine title to the disputed strip.
The single most important deadline in any encroachment dispute is not found in RPAPL 871 at all — it is the ten-year adverse possession period under CPLR § 212(a) and RPAPL Article 5. If an encroaching structure has stood for ten years under a claim of right, hostile, open and notorious, exclusive, and continuous, the encroacher may have acquired title to the strip, extinguishing the RPAPL 871 claim entirely. Two features of the 2008 amendments to Article 5 matter here:
Substantial structural encroachments — building walls, foundations, garages — are a different matter and can still support adverse possession. The interplay between encroachment claims, adverse possession, and prescriptive easements is covered in more depth on our page on boundary line encroachments, adverse possession, and easements.
Owners on the receiving end of an encroachment suit are not without options. The principal defenses are: (1) the structure does not actually encroach — survey and deed-description challenges; (2) adverse possession — title to the strip has already vested; (3) prescriptive easement — a right to maintain the structure even without title; (4) the balancing test — removal costs grossly disproportionate to any benefit, good-faith construction, and plaintiff's acquiescence; and (5) laches and estoppel where the plaintiff watched the work proceed. A defendant with a strong equities record can often convert a demolition demand into a modest damages payment or a negotiated easement.
Our firm litigates RPAPL 871 encroachment actions on both sides of the boundary. For owners whose land has been built upon, we assemble the survey and valuation proof, move quickly to enjoin ongoing construction, and prosecute removal or damages claims — paired with quiet title relief where the line itself is disputed. For owners defending a structure, we build the good-faith and disproportionate-hardship record that defeats mandatory injunctions and negotiate easements, lot-line agreements, or damages resolutions that let the structure stay.
You can contact us by phone at 212-233-1233 or by email at [email protected].