Triangulation Calculator - Intersection From Two Bearings

Use this triangulation calculator to find the (x, y) coordinates of an unknown landmark from two known observation points and the bearings measured at each.

Updated: June 16, 2026 • Free Tool

Triangulation Calculator

X coordinate of the first observation point A, in the same length unit as the other coordinates.

Y coordinate of the first observation point A, in the same length unit as the other coordinates.

Bearing (azimuth) from A toward the unknown landmark, measured in degrees clockwise from north. 0 = north, 90 = east, 180 = south, 270 = west.

X coordinate of the second observation point B, in the same length unit as the other coordinates.

Y coordinate of the second observation point B, in the same length unit as the other coordinates.

Bearing (azimuth) from B toward the unknown landmark, measured in degrees clockwise from north. Must not be parallel to bearing at A.

Results

Landmark x coordinate
0units
Landmark y coordinate 0units
Distance from A to landmark 0units
Distance from B to landmark 0units

What Is the Triangulation Calculator?

A triangulation calculator takes the Cartesian coordinates of two known observation points and the compass bearings (azimuths) measured at each one toward an unknown landmark, then returns its (x, y) coordinates where the two bearing lines cross.

  • Locate a landmark from two observation points: Stand at two known positions, sight the unknown object with a compass or theodolite, and the panel resolves the two bearing lines into a single coordinate pair.
  • Reconstruct the layout of a survey network: Given a recorded base of two coordinates and a pair of measured bearings from each, recover the location of a control point that is no longer reachable.
  • Check homework and textbook problems: Type in the two observation points and the two bearings, and the panel shows the intersection point and the observation distances for a quick sanity check.

The native use case is the intersection case: two known observation points A(x1, y1) and B(x2, y2) and two compass bearings alpha and beta that point at the same unknown landmark. The landmark C(x3, y3) sits where the two bearing lines cross, and the panel also reports the distance from each observation point to C for a sanity check on the geometry.

Once the three vertices A, B, and C are known, a general Triangle Calculator can finish the same triangle by computing its perimeter, area, and the remaining angles from the same coordinates.

How the Triangulation Calculator Works

Behind the panel sit two line equations in Cartesian coordinates, a 2x2 linear system, and Cramer's rule. The form takes two points and two bearings, then returns the unknown landmark (x, y) and the distance from each observation point.

x3 = (sin(a) * cos(b) * x2 - cos(a) * sin(b) * x1 + sin(b) * sin(a) * (y1 - y2)) / D, y3 = (cos(a) * cos(b) * (x2 - x1) + cos(b) * sin(a) * y1 - cos(a) * sin(b) * y2) / D, D = sin(a) * cos(b) - sin(b) * cos(a)
  • x1, y1: Cartesian coordinates of the first observation point A, in any consistent length unit (m, ft, km, ...).
  • x2, y2: Cartesian coordinates of the second observation point B, in the same length unit as A.
  • alpha: Compass bearing (azimuth) measured at A toward the unknown landmark, in degrees clockwise from north. 0 = north, 90 = east, 180 = south, 270 = west.
  • beta: Compass bearing (azimuth) measured at B toward the unknown landmark, in the same convention as alpha. Must not be parallel to alpha.
  • x3, y3: Computed Cartesian coordinates of the unknown landmark, in the same length unit as the inputs.

Each bearing defines a straight line that passes through one of the observation points. The landmark sits at the intersection of the two lines. The closed-form solution uses the sine and cosine of both bearings and Cramer's rule.

Reference case: A=(0,0), alpha=30 deg, B=(5,0), beta=330 deg

A=(0,0), alpha=30 deg, B=(5,0), beta=330 deg (30 deg west of north). sin(a)=0.5, cos(a)=0.866, sin(b)=-0.5, cos(b)=0.866. D = 0.866. x3 = 2.5, y3 = 4.3301.

x3 = 2.50, y3 = 4.33, distance from A to landmark = 5.00, distance from B to landmark = 5.00.

The intersection lands halfway in x between the two observation points and one altitude of an isoceles triangle above them, with both observation distances equal to 5 units.

Symmetric case: A=(0,0), alpha=45 deg, B=(10,0), beta=135 deg

A=(0,0), alpha=45 deg, B=(10,0), beta=135 deg. D = -1. x3 = 5.0, y3 = 5.0.

x3 = 5.00, y3 = 5.00, distance from A to landmark = 7.07, distance from B to landmark = 7.07.

The symmetric 45 / 135 bearing pair forces the intersection straight up at (5, 5). Both observation distances are equal because the geometry is isoceles.

According to Wikipedia: Triangulation (surveying), triangulation in surveying is the method of determining the location of an unknown point by forming triangles to it from known points, with intersection and resection as the two general types.

Each bearing becomes a line with a known slope, and a Slope Calculator gives the same slope from two coordinates if the user wants to verify the geometry of any one of those lines before reading the intersection.

Key Concepts Behind Triangulation

Four ideas carry the whole method. Once you can name them, the intersection case this form expects feels mechanical.

Bearing measured clockwise from north

A compass bearing is an angle in degrees measured clockwise from north. North is 0, east is 90, south is 180, and west is 270. The form takes the bearing in this convention so the line equation matches surveying practice.

Each bearing defines one line

A bearing together with its observation point defines a single straight line in the plane. Two bearings therefore define two lines, and the landmark sits where the two lines cross.

Intersection vs resection

Intersection: two observation points and two bearings to a single unknown landmark (this form). Resection: one observation point and bearings to two known landmarks to recover the observer's own position.

The parallel-bearings degeneracy

If the two bearings differ by 0 or 180 degrees, the two lines are parallel and never meet. The determinant sin(alpha - beta) is zero, and the panel surfaces a validation error.

The same identity also explains why the panel takes six inputs instead of fewer. Two coordinates fix one observation point, one bearing fixes one line, and two such pairs give a 2x2 system with a unique solution as long as the two bearings are not parallel.

The same x and y differences that drive the intersection also drive a 2D Distance Calculator, so the two panels can be cross-checked at any time.

How to Use This Calculator

Five steps from typing the first coordinate to reading the distance from each observation point. The form expects two observation points and two compass bearings measured at each one toward the same unknown landmark.

  1. 1 Pick two observation points and record their coordinates: Choose two positions A and B whose x and y coordinates you know in the same length unit (m, ft, km, ...).
  2. 2 Measure the compass bearing at each point: Stand at A, point a compass at the landmark, and read the bearing in degrees clockwise from north. Repeat at B.
  3. 3 Type the four coordinates and two bearings: Enter x1, y1, x2, y2, alpha, and beta. The two pairs share the same length unit.
  4. 4 Read the (x, y) coordinates of the landmark: The first two rows of the results panel show x3 and y3 in the same unit as the inputs.
  5. 5 Read the distance from each observation point: The next two rows show distance A to landmark and distance B to landmark. Use them to sanity-check the geometry.

Try A=(0,0) with bearing 30 degrees and B=(5,0) with bearing 330 degrees. The panel shows x3=2.5, y3=4.33, matching the Omni triangulation example case.

If the two observation points sit on the same line as the landmark, a Midpoint Calculator gives the half-way point along that line.

Benefits of Using the Triangulation Calculator

Four practical reasons to let the panel solve the intersection instead of hand-substituting into the 2x2 system.

  • Closed-form answer from six inputs: Two observation points, two bearings, and a single Cramer's-rule pass return the (x, y) coordinates of the landmark and the distance from each observation point.
  • Works for any pair of bearings: The matrix form handles bearings at 0, 90, 180, and 270 degrees cleanly because cos and sin stay finite.
  • Same length unit for every output: The (x, y) coordinates, the distance from A, and the distance from B all inherit the unit of the input coordinates.
  • Catches the parallel-bearings degeneracy: When the two bearings are equal or differ by 180 degrees, the panel returns a validation error instead of returning Infinity or NaN.

Once A, B, and the landmark are pinned down, an Area Triangle Coordinates Calculator closes the same triangle with the shoelace formula for area, signed sum, and perimeter.

Factors That Affect Your Results

Four things that move the (x, y) coordinates and the observation distances, plus two honest caveats about the method.

Bearing precision controls the geometric precision

A bearing measured to the nearest 0.1 degree maps to roughly 0.0017 rad of angular uncertainty. At a 1 km observation distance that uncertainty is about 1.7 metres of lateral error in the answer.

Observation points should be far enough apart

If A and B are very close together, the two bearing lines cross at a shallow angle and a small bearing error becomes a large (x, y) error. The rule of thumb is to keep the baseline at least as long as the distance to the landmark.

All four coordinates must use the same length unit

x1, y1, x2, and y2 share one length unit. Mixing metres with feet returns a real number, but for the wrong landmark.

A bearing very close to a cardinal direction

Cardinal-direction bearings are still finite inputs, but the geometry can push the landmark far away. The matrix form handles them, but a bearing of exactly 0 or 360 should be entered as 0.0001 or 359.9999 to avoid the sin(alpha - beta) degeneracy.

  • The form targets the intersection case. Resection (find the observer's own position from two known landmarks) needs a separate panel and is not auto-branched here.
  • The panel cannot detect a typo. Enter 30 in the alpha box when you meant 3 and the panel happily shows a result for a 30-degree bearing.

Cross-check the two observation distances against the real-world geometry before treating the result as final.

As published by Britannica: Triangulation, triangulation in surveying relies on measuring the angles of a network of triangles to determine distances and relative positions of locations spread over the survey area using trigonometry.

According to Wikipedia: Trilateration, trilateration uses distance measurements from known points to determine an unknown location, while triangulation uses angle measurements; GPS uses trilateration, not triangulation.

If the two observation distances look off, recompute one of them by hand with a Length of a Line Segment Calculator from the same x and y values to see whether the coordinates or the bearings are the problem.

triangulation calculator showing two observation points with bearings on a coordinate plane and the resulting unknown landmark (x, y) plus distance from each point
triangulation calculator showing two observation points with bearings on a coordinate plane and the resulting unknown landmark (x, y) plus distance from each point

Frequently Asked Questions

Q: What is triangulation in surveying?

A: Triangulation in surveying is the method of determining the location of an unknown point by forming triangles to it from known points. The two observation points and the unknown landmark form a triangle whose angles and two known sides fix the third vertex in closed form.

Q: What inputs does this triangulation calculator accept?

A: It accepts two observation points A(x1, y1) and B(x2, y2) in Cartesian coordinates, and the compass bearing (azimuth) at each point toward the unknown landmark. The bearings are entered in degrees clockwise from north, the standard surveying convention.

Q: How do I triangulate an unknown landmark with two known points?

A: Type the (x, y) coordinates of the two known points, type the compass bearings measured at each one toward the landmark, and read the (x, y) coordinates of the landmark plus the distance from each observation point. The calculator solves the 2x2 line-intersection system in closed form.

Q: What is the difference between intersection and resection in triangulation?

A: Intersection (this panel) starts from two known observation points and two bearings to a single unknown landmark. Resection starts from one observation point and bearings to two known landmarks to recover the observer's own position. Both reduce to a 2x2 linear system with the right sign convention.

Q: How does triangulation differ from trilateration?

A: Triangulation uses angle (bearing) measurements from known points, while trilateration uses distance measurements from known points. GPS uses trilateration because the satellites only measure distances, not angles.

Q: What does it mean if the two bearings are the same or differ by 180 degrees?

A: When the two bearings are equal or differ by exactly 180 degrees, the two bearing lines are parallel and never meet. The panel detects the zero determinant and surfaces a validation error instead of returning Infinity or NaN.