Skip to main content
RT
RoughTools.com
free online toolsNo signup required
📐

Free Triangle Calculator

Solve any triangle: calculate unknown sides, angles, area, perimeter, and height. Supports the law of sines, law of cosines, right triangles, and Heron's formula.

⚡ Instant results🔒 100% private🆓 Always free🚫 No signup📐 All triangle types
AcuteScalene
14.6969
Area
sq units
18.0000
Perimeter
1.6330
Inradius r
3.5722
Circumradius R
Sides
a5.000000
b6.000000
c7.000000
Angles
A44.4153°
B57.1217°
C78.4630°

About This Triangle Calculator

The Triangle Calculator solves any triangle given sufficient information. Enter any combination of sides and angles and the calculator will determine all remaining values — including the third angle, all three sides, area, perimeter, and height. It applies the three fundamental triangle-solving methods: the Pythagorean theorem (right triangles), the law of sines, and the law of cosines.

The Formulas

Law of Sines: a/sin(A) = b/sin(B) = c/sin(C) Law of Cosines: c² = a² + b² − 2ab·cos(C) Heron's Area: s = (a+b+c)/2 → Area = √[s(s−a)(s−b)(s−c)] Right Triangle: a² + b² = c²

Which formula is applied depends on what information you provide. The law of cosines is the most general formula and reduces to the Pythagorean theorem when the included angle is 90°. The law of sines is more efficient when two angles are known.

When to Use Each Approach

  • SSS (three sides known): use law of cosines to find angles, then Heron's for area
  • SAS (two sides + included angle): use law of cosines to find the third side
  • ASA or AAS (two angles + any side): use angle sum then law of sines
  • SSA (two sides + non-included angle): use law of sines — watch for ambiguous case
  • Right triangle (one angle = 90°): use Pythagorean theorem + basic trig

Privacy Notice

All calculations run in your browser. No data is transmitted or stored. See our Privacy Policy.

Quick Reference

Input / ParameterDescriptionExample Value
Side aLength of side opposite angle A5 units
Side bLength of side opposite angle B7 units
Side cLength of side opposite angle C9 units
Angle AAngle opposite side a33.6°
Angle BAngle opposite side b51.3°
Angle CAngle opposite side c — angles sum to 180°95.1°
Area (Heron's)s = (a+b+c)/2; Area = √[s(s−a)(s−b)(s−c)]17.41 units²
PerimeterP = a + b + c21 units

When to Use This Calculator

📚
Trigonometry homework

Solve for unknown sides and angles in any triangle using the law of sines and cosines, and verify your hand-calculated answers.

🏗️
Construction and framing

Calculate roof truss angles, rafter lengths, and hip-to-ridge dimensions for construction projects where triangles define the structure.

🗺️
Land surveying

Determine the distance to an inaccessible point or the area of a triangular land parcel using the angle and distance measurements you can take.

Navigation

Calculate distances and bearings using triangulation when two reference points and angles are known — the classic navigation technique used at sea and in aviation.

🎨
Design and art

Calculate the exact dimensions of triangular design elements, vector graphics, and architectural features to ensure precise proportions.

💡 Pro Tips

1

The ambiguous SSA case (two sides and a non-included angle) can produce 0, 1, or 2 valid triangles. Always check: if the given angle is obtuse, there can be at most one solution. If the side opposite the angle is shorter than the other given side and the angle is acute, there may be two solutions. Real-world surveying problems use this distinction constantly.

2

The law of cosines is a generalisation of the Pythagorean theorem. When angle C = 90°, cos(90°) = 0, so c² = a² + b² − 0, which is exactly the Pythagorean theorem. This relationship makes the law of cosines the universal formula for all triangles — you never need to check if a triangle is right-angled before applying it.

3

For very obtuse triangles (angle close to 180°), the opposite side becomes very long relative to the others. This is why long, thin triangles are numerically unstable in geometric algorithms — small measurement errors in an obtuse angle create large errors in the computed side lengths. In engineering, avoid designs that rely on very obtuse triangles.

4

Heron's formula can be numerically unstable for very flat triangles (where one side is nearly equal to the sum of the other two). The Kahan variant — which rearranges the formula to avoid catastrophic cancellation — is used in professional CAD and GIS software for better numerical accuracy.

Frequently Asked Questions

📐
Area Calculator
Area and perimeter of 10 shapes
📦
Volume Calculator
Volume of 3D shapes
📏
Slope Calculator
Slope, distance, and midpoint of a line
🔢
Quadratic Formula
Solve ax² + bx + c = 0
📊
Statistics Calculator
Mean, median, mode, standard deviation

Your input is processed locally in your browser and is never stored, transmitted, or shared with any server. See our Privacy Policy.

Share This Tool

X / TwitterWhatsAppLinkedIn