dash–calculator

01 Vectors and Coordinates

Accurate Triangulation Calculator: How It Works

Readout 01-0254 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This calculator works out the unknown sides and angles of a triangle when you enter three known values, using the standard laws of sines and cosines. You enter sides and angles in any combination, and it returns the missing side lengths, angles, area, and perimeter. The result is accurate to the precision you choose, and it flags impossible inputs so you never get a misleading answer.

Formula

The calculator uses the law of cosines to find an angle from three sides:

cos(A) = (b² + c² − a²) / (2bc)

where a, b, and c are the side lengths opposite angles A, B, and C respectively. The same formula is cycled for angles B and C. The area is computed with Heron’s formula:

Area = √(s(s−a)(s−b)(s−c)), where s = (a+b+c)/2.

All angles are in degrees. The perimeter is simply the sum of the three sides.

Worked Example

Using the default values a=5, b=6, c=7:

  1. Angle A: cos(A) = (6² + 7² − 5²) / (2×6×7) = (36+49−25)/84 = 60/84 = 0.7143 → A = 44.42°
  2. Angle B: cos(B) = (5² + 7² − 6²) / (2×5×7) = (25+49−36)/70 = 38/70 = 0.5429 → B = 57.12°
  3. Angle C: cos(C) = (5² + 6² − 7²) / (2×5×6) = (25+36−49)/60 = 12/60 = 0.2 → C = 78.46°
  4. Check: 44.42 + 57.12 + 78.46 = 180.00°
  5. Area: s = (5+6+7)/2 = 9 → √(9×4×3×2) = √216 = 14.70 units²
  6. Perimeter: 5+6+7 = 18 units

The calculator gives the same results: A=44.42°, B=57.12°, C=78.46°, area=14.70, perimeter=18.

When to Use Triangulation

Triangulation is used whenever you need to find a distance or angle that you cannot measure directly. Common real-world uses include:

  • Land surveying: measuring property lines or distances across a river.
  • Navigation: determining position from bearings to known landmarks.
  • Astronomy: estimating the distance to nearby stars using parallax.
  • Construction: laying out foundations or roof trusses.
  • GPS: trilateration (a related method) uses distances from satellites.

In each case, you measure a baseline and two angles, then the triangle maths gives you the rest.

How to Choose Which Values to Enter

This calculator accepts three sides (SSS). For other combinations (SAS, ASA, etc.), you would need a more general solver. For SSS, the only requirement is that the triangle inequality holds: the sum of any two sides must be greater than the third. If you enter sides that violate this, the calculator returns “Cannot compute” because no such triangle exists.

For real-world measurement, always use the longest side as the baseline. This reduces the effect of angle measurement error. Also, avoid very flat triangles (where one angle is near 180°) because small measurement errors cause large errors in the computed sides.

Common Mistakes and Misconceptions

  • Mixing units: All sides must be in the same unit. If you enter feet for one side and meters for another, the angles will be wrong (though the calculator doesn’t know units, so you must be consistent).
  • Degrees vs radians: This calculator uses degrees. If you are used to a scientific calculator in radian mode, you will get different numbers.
  • Rounding too early: If you round intermediate values to 2 decimals, the final angles can be off by a few tenths of a degree. Keep full precision until the end.
  • Thinking the law of sines is always easier: The law of sines works well when you know an angle and its opposite side, but for SSS you must use the law of cosines.

Limits of the Formula

The law of cosines and Heron’s formula are exact for Euclidean triangles. They do not apply to spherical triangles (on a globe) or hyperbolic geometry. For very large distances on Earth, you need spherical trigonometry. Also, the calculator only handles SSS; if you have two sides and an included angle (SAS), you would use a different formula (law of cosines for the third side). This tool is designed for the most common case of knowing all three sides.

Accuracy and Precision Tips

To get the most accurate results from any triangulation:

  • Measure sides to the finest precision your tool allows (e.g., millimeters instead of centimeters).
  • Use a total station or laser rangefinder for surveying; tape measures are fine for small projects.
  • Repeat measurements and average them to reduce random error.
  • For angles, use a theodolite or digital protractor; a standard protractor gives only about ±1° accuracy.
  • If your triangle is nearly equilateral, the results are most robust to measurement errors.

Remember that the calculator is only as good as your inputs. If your side measurements are off by 1%, the computed angles will be off by roughly the same percentage.

Frequently Asked Questions

Can this calculator handle SAS (side-angle-side) inputs?

No, this specific calculator only accepts three sides (SSS). For SAS, you would need a different tool that uses the law of cosines to find the third side first. If you have two sides and the angle between them, you can compute the third side as c = √(a² + b² − 2ab·cos(C)), then use this calculator with the resulting three sides.

What if my triangle has a right angle?

It still works. The law of cosines reduces to the Pythagorean theorem when the angle is 90°. For example, if a=3, b=4, c=5, the calculator will return A=36.87°, B=53.13°, C=90.00°, and area=6.00.

Why does the calculator show “Cannot compute” for some side combinations?

Because the triangle inequality is violated. For example, sides 1, 2, and 5 cannot form a triangle because 1+2 < 5. The calculator detects this and shows "Cannot compute" instead of giving you a misleading negative angle or imaginary area.

How do I convert the angle from degrees to radians?

Multiply the degree value by π/180. For example, 44.42° × π/180 = 0.7753 radians. If your work requires radians, do this conversion after getting the degree result from the calculator.

Is triangulation the same as trilateration?

No. Triangulation uses angles to determine distance, while trilateration uses distances to determine position (as in GPS). Both use triangles, but the measurements differ. This calculator is for triangulation (angles from sides).

Related

Formula used
in a | Side a | - | 5 | 0 | 100000
in b | Side b | - | 6 | 0 | 100000
in c | Side c | - | 7 | 0 | 100000
out A | Angle A | ° | acosd((b^2 + c^2 - a^2) / (2 * b * c)) | 2
out B | Angle B | ° | acosd((a^2 + c^2 - b^2) / (2 * a * c)) | 2
out C | Angle C | ° | acosd((a^2 + b^2 - c^2) / (2 * a * b)) | 2
out area | Area | units² | 0.25 * sqrt((a+b+c)*(-a+b+c)*(a-b+c)*(a+b-c)) | 2
out per | Perimeter | units | a + b + c | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this panel

The whole Vectors and Coordinates panel →