A triangulation calculator finds the distance to a target, and its position, from a baseline of known length and the angles measured to the target from both ends. This is the surveyor's method, and it is used in navigation, mapping, astronomy and even in finding the source of a signal. Enter the baseline and the two angles, press the button and read the distances. It works in your browser.
How to use the triangulation calculator
- Enter the baseline length between two stations A and B.
- Enter the angle at A and the angle at B, each measured from the baseline to the target.
- Press Calculate.
What triangulation is
The Wikipedia article on surveying triangulation describes it as determining the location of a point by measuring only angles to it from known points at either end of a fixed baseline, by using trigonometry.[1] It says that the position of any vertex of a triangle can be calculated if the length of one side and two angles are known.[1] The page notes that this method gave the first accurate surveys of large regions, with the modern triangulation networks of Willebrord Snell in 1615 to 1617, and that it was largely replaced by satellite navigation from the 1980s.[1] You do not need to travel to the target, which is why the method is so useful for distant or unreachable points, such as the far bank of a river or a mountain peak.
The formulas
The page gives the distance of the target from the baseline as d = ℓ · sin α · sin β ÷ sin(α + β), where ℓ is the length of the baseline and α and β are the two measured angles. It writes the baseline as ℓ = d ÷ tan α + d ÷ tan β, which simplifies to that formula.[1] The page notes that these formulas apply to a flat surface, and that spherical trigonometry is needed for the curvature of the Earth.[1] For a baseline of 100 and two angles of 60 degrees, d = 100 × 0.866 × 0.866 ÷ 0.866 = 86.60.
The law of sines
The distances to the target from each station follow from the law of sines. The Wikipedia article on that law says that a ÷ sin α = b ÷ sin β = c ÷ sin γ = 2R, where R is the radius of the circle around the triangle, and that the common value is the diameter of that circle.[2] The page notes that with two angles and one side known, the remaining sides follow, which it calls triangulation.[2] The third angle at the target is γ = 180° − α − β, so the distance from A to the target is ℓ sin β ÷ sin γ, and from B it is ℓ sin α ÷ sin γ. For the 60-60 example, both distances are 100, since the triangle is equilateral.
The position of the target
With station A at the origin and B at (ℓ, 0), the target lies at x = d ÷ tan α along the baseline and y = d away from it. For the 60-60 case, the position is (50, 86.60), above the middle of the baseline. For a baseline of 100 with angles of 45 and 45, the target is at (50, 50). If the angle at B is 90 degrees, the target is directly above B, and x equals the baseline. A baseline of 100 with 30 and 90 degrees gives a target at (100, 57.74). These are the coordinates in the frame of the baseline, and you can rotate them to a map frame if you know the direction of the baseline.
Choosing a good baseline
Accuracy depends on the shape of the triangle. If the angle at the target is very small, a small error in an angle moves the position by a lot, so the baseline should be long compared with the distance to the target. An angle at the target of 60 to 90 degrees gives the best results. Measure the angles as carefully as you can, and repeat the measurements to average out errors. If you need the highest precision, measure from a third station as well.
Worked example
To find the width of a river, mark two points A and B on your bank, 80 m apart. From A, the angle to a tree on the far bank is 50 degrees to the baseline. From B it is 70 degrees. The distance of the tree from the baseline is 80 × sin 50° × sin 70° ÷ sin 120°, which is 66.5 m, and that is the river's width if the baseline runs along the bank. Enter the numbers to confirm. The distance from A to the tree is 80 × sin 70° ÷ sin 60° = 86.8 m.
Triangulation in everyday technology
The idea is used far beyond surveying. A phone can be located by the angles at which its signal reaches two towers, a ship can fix its position by bearings to two lighthouses, and a stereo camera finds the distance to an object from the small difference between the two views. In every case, two angles and a known baseline fix the position of the third point. The calculator lets you try the numbers for these cases, in any units that you like, since the baseline and the distances share the same unit.
Common mistakes
- Measuring the angle from the wrong line. Both angles are between the baseline and the line of sight.
- Using angles that add up to 180 degrees or more. The target is then at infinity or on the other side.
- Using a short baseline. The result is then sensitive to errors.
- Ignoring the curvature of the Earth over long distances. The formulas are for a flat surface.
What next
Use this often? Add Triangulatio to your Home screen.
Frequently asked questions
What is a triangulation calculator?
A tool that finds the distance to a target and its position from a baseline of known length and the angles measured to the target from both ends.
What is the triangulation formula?
The distance from the baseline is d = ℓ sin α sin β ÷ sin(α + β), where ℓ is the baseline and α and β are the angles.
What is the law of sines?
a ÷ sin α = b ÷ sin β = c ÷ sin γ. With two angles and one side, you can find the other sides.
Why is a long baseline better?
A longer baseline makes the angle at the target larger, so a small error in an angle has less effect on the position.
Does triangulation work over long distances on the Earth?
Not on a flat-surface formula. For long distances, the curvature of the Earth means that you need spherical trigonometry.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.