Triangle calculator
Solve all sides and angles and find the perimeter and area using one of three supported input sets.
Side a is opposite angle A, with the same pairing for b and B, and c and C. For two sides, use their included angle. An angle opposite a given side can admit two triangles.
Calculation inputs
Area (square units)
- Side a
- 3
- Side b
- 4
- Side c
- 5
- Perimeter
- 12
- Angle A
- 36.869897646 °
- Angle B
- 53.130102354 °
- Angle C
- 90 °
QR code
How the calculation works
Use Heron's formula for area from three sides and sine and cosine relationships for the angles. For two sides and their included angle, the law of cosines gives the third side. For two angles and their included side, subtract the known angles from 180° and use the law of sines to find the other sides.
Example
Sides of 3, 4, and 5 give an area of 6 square units, a perimeter of 12 units, and angles of about 36.87°, 53.13°, and 90°.
OpenStax — law of cosines and Heron's formulaMethod checked