Free Triangle Length Calculator
Enter known sides and angles, then click Calculate
What This Triangle Solver Does
A triangle length calculator—often called a missing side of triangle calculator—determines the unknown side length when you supply two side lengths and the included angle. This free online triangle solver relies on the Law of Cosines, making it equally effective for right, acute, and obtuse triangles.
Understanding the Law of Cosines
The interior angles of a triangle always sum to , but that property alone does not relate side lengths. The Law of Cosines fills that gap:
where and are the known sides, is the angle between them, and is the opposite (unknown) side. The same formula can be rearranged for any pair of sides and their included angle.
How to Use the Calculator
- Enter the length of the first side ().
- Enter the length of the second side ().
- Specify the included angle () in degrees or radians (depending on the calculator’s setting).
- The tool instantly returns the length of the third side ().
If all three sides are already known, the equation can be solved for any angle:
Thus, the triangle side length calculator also works as an angle finder when three sides are provided.
Example Calculations
Right triangle
A right triangle has legs of 3 and 4 units and a right angle between them (). Because , the Law of Cosines simplifies to the Pythagorean theorem:
The calculator outputs a third side of 5 units.
Non‑right triangle
Consider a triangle with sides and and an included angle . The Law of Cosines gives:
Hence, units. This shows the law of cosines calculator handles obtuse angles just as well as acute ones.
Key Benefits of This Approach
Because it uses the Law of Cosines, this missing side of triangle calculator directly handles the SAS (side‑angle‑side) case without needing to first compute an angle via the Law of Sines. The result is fast, reliable, and applicable to a wide range of geometry, physics, and engineering problems.
What It Covers (and What It Does Not)
The tool is optimized for the SAS configuration. If your known values are two sides and a non‑included angle (SSA), the Law of Cosines cannot be applied directly, and a different triangle solver that accounts for the ambiguous case would be needed. For the common SAS scenario, however, this calculator is the simplest way to find triangle side length online.
FAQ
1. Can I use this calculator for any type of triangle, not just right triangles?
Yes. The Law of Cosines applies to all triangles—right, acute, or obtuse—as long as you know two sides and the included angle.
2. What should I do if I know two sides but the angle is opposite one of them (SSA)?
This calculator expects the known angle to be the one between the two given sides (SAS). For the SSA case, you would need a different approach that often involves the Law of Sines and analysis of the ambiguous case.
3. Do I need to enter side lengths in a specific unit?
No. The calculator treats input values as pure numbers. The result will be in the same unit you used. For example, entering lengths in inches yields the missing side in inches.
4. Can I also find an angle if I enter all three sides?
Yes. The Law of Cosines can be rearranged to solve for any angle: γ = arccos((a² + b² − c²)/(2ab)). If you input three sides, the calculator will compute the corresponding angle using the inverse cosine function.
How to Use
- Enter the known side lengths and angles of your triangle. At least three values are required, including at least one side.
- Select the appropriate units for sides (mm, cm, m, km, in, ft, yd, mi) and angles (degrees or radians).
- Click the Calculate button to solve for the missing side lengths and angles, area, perimeter, and triangle type.