Perpendicular Offset Calculator

Drop a perpendicular from any lat/lon coordinate to a line defined by two points. Get the foot of perpendicular, offset distance, left / right side, and along-line station. Built for surveyors, road designers, and construction staking crews.

Foot of Perpendicular Left / Right Side Along-Line Station t Parameter Pure Go — No API
Share this tool

Line Start (A)

Line End (B)

External Point (P)

Quick Load:
Calculating offset…

Enter Line Start A, Line End B, and External Point P above, then click Calculate Offset.

Or use a quick-load preset to see an example result instantly.

How the Perpendicular Offset Works

The diagram below shows the geometry: a point P dropped perpendicularly onto line AB, landing at the foot F. The offset distance d is the shortest distance from P to the line.

t × |AB| (1−t) × |AB| d (offset) ⊥ A B F P Line AB Foot F Point P Offset d

What Is a Perpendicular Offset in Surveying?

A perpendicular offset is the shortest distance from an external point to a line. In surveying and civil engineering it is one of the most frequently computed quantities: every road cross-section, boundary stakeout, and pipeline alignment check reduces to dropping a perpendicular from a known point onto a design centreline.

The foot of perpendicular (also called the dropped foot or orthogonal projection) is the point on the line that is closest to the external point. Its position along the line is described by the t parameter — a value between 0 and 1 when the foot falls within the segment, and outside that range when the line must be extended to reach it.

The left/right side classification tells you which side of the line the point sits on, measured relative to the direction from A to B. Standing at A and facing B, a point to your left is a Left offset; a point to your right is a Right offset. This matches road-design convention where lane widths, drainage channels, and utility offsets are always referenced to the centreline direction.

How to Calculate the Foot of Perpendicular from a Point to a Line

This calculator uses a local flat-Earth projection to convert geographic coordinates into a metric Cartesian frame, then applies coordinate geometry to find the foot. The key steps are:

  1. Project all three coordinates (A, B, P) to a local (easting, northing) frame in metres, using the mid-latitude cosine correction to keep east and north distances proportional.
  2. Compute the scalar projection parameter: t = (P − A) · (B − A) / |B − A|². This is the normalised distance from A where the foot lands.
  3. Compute the foot coordinates in the local frame: F = A + t × (B − A).
  4. Convert F back to latitude and longitude.
  5. Compute offset distance as the Euclidean distance from P to F in the local metric frame.
  6. Determine the left/right side using the sign of the 2D cross product (B − A) × (P − A).

This approach is accurate to better than 0.1 % for line segments under 50 km, which covers the full range of construction staking and cadastral survey work.

Left Side vs Right Side — How Is the Offset Direction Determined?

The side classification uses the right-hand rule in a north-up coordinate system. Imagine standing at Line Start A and looking toward Line End B:

  • Left — the point is to the left of the A→B direction (positive cross-product z-component).
  • Right — the point is to the right (negative z-component).
  • On Line — the cross product is effectively zero, meaning P already lies on the line.

In road design, the alignment direction defines the stationing direction (increasing chainages go from A to B). Left and right offsets in the results match what a survey crew would read from a design drawing — no conversion needed.

Construction Staking: How Perpendicular Offsets Are Used in the Field

Construction staking (also called setting out or layout) converts a design plan into physical marks in the ground. Perpendicular offsets appear in three common scenarios:

  • Centreline check: A known GPS point (a utility pole, fence corner, or survey monument) is checked against a proposed road centreline. The offset distance and left/right side tell the engineer how far off the existing feature is from the design.
  • Offset stake placement: Construction stakes are driven at a fixed offset from the centreline (e.g. 5 m Right) so earthworks crews can work without disturbing the actual centreline marker. The foot of perpendicular gives the stake's position on the centreline.
  • Pipe and cable routing: Utility corridors follow a design alignment. The perpendicular offset from each structure to the pipeline centreline confirms clearance requirements are met.

When the Foot Falls Outside the Segment

If the t parameter is less than 0, the foot of perpendicular falls before point A on the extended line. If t is greater than 1, it falls beyond point B. In either case, the nearest point on the segment is the closest endpoint, not the foot.

The calculator always reports the true geometric foot (which may lie on the extension), and flags the result with a yellow warning when the foot is outside the segment. This is important for construction staking: if the offset foot is beyond the end of the submitted alignment, the crew needs to extend the alignment or use a different reference line.

t ValueLocation of FootMeaning
t < 0Beyond endpoint AP is closest to a point before A — line must be extended
t = 0Exactly at AP is perpendicular to the line start point
0 < t < 1Within segment ABNormal case — foot lies on the defined line
t = 1Exactly at BP is perpendicular to the line end point
t > 1Beyond endpoint BP is closest to a point past B — line must be extended

Frequently Asked Questions

What is the foot of perpendicular in surveying?

The foot of perpendicular is the point on a line that is closest to an external point — the landing point of a 90° drop from the point to the line. In surveying it is used in construction staking, cross-section computation, and boundary determination. This calculator returns its latitude, longitude, and bearing for easy field use.

How do I find the perpendicular distance from a GPS point to a road centreline?

Enter the centreline as Line Start A and Line End B using decimal degree coordinates, and your GPS position as Point P. The offset distance returned is the shortest (perpendicular) distance from your GPS point to the line, in metres and feet. The along-line distance tells you where on the centreline the foot falls.

What does "left offset" and "right offset" mean in construction staking?

Left and right are always relative to the direction of travel along the alignment — from Line Start A to Line End B. Standing at A and facing B, a point to your left is a Left offset and a point to your right is a Right offset. This matches the sign convention used on road and railway design drawings.

What is a station offset in road design?

A station offset is a two-part description of a point's position: the station (also called chainage) is the distance along the centreline from the alignment start, and the offset is the perpendicular distance from the centreline. Together they locate any design or as-built point. This calculator gives you the along-line station from A (under "Along-Line Dist") and the perpendicular offset in metres.

Can I use this calculator for curved alignments?

This calculator is for straight lines only. Curved alignments (circular arcs, clothoid spirals) require a different approach: break the curve into a series of short chord segments and compute the offset to each chord, then take the smallest. for precise horizontal curve offset work, use your total station or design software with full alignment geometry.

How accurate is this tool for large geographic distances?

The local flat-Earth projection used here is accurate to better than 0.1 % for line segments shorter than 50 km, which covers all practical construction staking. for very long alignments (pipelines crossing hundreds of kilometres), project your coordinates to a suitable UTM or national grid CRS before computing offsets to avoid accumulating projection error.