Math

Triangle Calculator

Solve any triangle instantly — enter sides and angles (SSS, SAS, or right triangle) to find area, perimeter & more.

Did this calculator help you?

What is Triangle Calculator?

A triangle is fully determined once you know enough of its sides and angles — this calculator supports the three most common cases. SSS (side-side-side) solves a triangle from all three side lengths using the Law of Cosines and Heron's Formula. SAS (side-angle-side) solves a triangle from two sides and the angle between them. The right-triangle mode uses the Pythagorean theorem to find the hypotenuse and both acute angles from the two legs. Whichever mode you use, the calculator returns every missing side and angle, the area, the perimeter, and a complete step-by-step solution so you can see exactly how each value was derived.

When to Use This Calculator

  • You're solving a geometry or trigonometry homework problem and need to find unknown sides or angles
  • You're calculating land area from three surveyed boundary measurements
  • You're working on a construction or engineering project requiring precise angle or distance calculations
  • You need to verify triangle measurements for a woodworking, architecture, or 3D modeling project
  • You're studying for a math exam and want to practice with step-by-step solutions
  • You're working on navigation, surveying, or triangulation problems in the field

Steps:

  1. Choose the mode that matches what you know: three sides (SSS), two sides and the included angle (SAS), or the two legs of a right triangle.
  2. Enter the known measurements.
  3. The calculator solves for every missing side, angle, the area, and the perimeter.
  4. Review the full step-by-step derivation for each value.

Formula

Law of Cosines: c² = a² + b² - 2ab·cos(C) Law of Sines: a/sin(A) = b/sin(B) = c/sin(C) Heron's Formula: Area = √(s(s-a)(s-b)(s-c)), where s = (a+b+c)/2 Pythagorean Theorem: c² = a² + b² (right triangles only) SAS Area: Area = ½ab·sin(C)

Use Cases

  • Solving geometry and trigonometry homework
  • Calculating land area from surveyed triangle measurements
  • Engineering and construction — finding unknown angles or distances
  • Navigation and triangulation problems

Key Benefits

  • Solves three different triangle configurations (SSS, SAS, right triangle)
  • Returns all sides, angles, area, and perimeter at once
  • Full step-by-step working using the Law of Cosines, Law of Sines, and Heron's formula
  • Automatically flags whether the triangle is right or oblique

Pro Tips

  • In SSS mode, the largest angle is always opposite the longest side
  • For a right triangle, you can skip the Law of Cosines entirely and just use the Pythagorean theorem
  • Heron's formula works for any triangle, not just right triangles — it's often faster than trigonometry when you only know the sides
  • Double-check your triangle is valid: the sum of any two sides must exceed the third

Common Mistakes to Avoid

  • Confusing degrees and radians when entering or interpreting angles
  • Entering three sides that violate the triangle inequality (no valid triangle exists)
  • Mixing up which angle is "included" between two sides in SAS mode
  • Forgetting that angle sum must equal 180° when checking your own work

Key Terms Explained

Law of Cosines: Relates one side to the other two sides and the angle between them
Law of Sines: Relates each side to the sine of its opposite angle
Heron's Formula: Computes triangle area directly from the three side lengths
Hypotenuse: The longest side of a right triangle, opposite the right angle

Related Concepts

  • Law of Cosines: A formula relating one side of a triangle to the other two sides and the included angle, generalizing the Pythagorean theorem to all triangles
  • Law of Sines: A relationship stating that the ratio of each side to the sine of its opposite angle is constant for all three sides
  • Heron's Formula: A method for computing triangle area directly from the three side lengths using the semi-perimeter
  • Pythagorean Theorem: In a right triangle, the square of the hypotenuse equals the sum of squares of the two legs (c² = a² + b²)
  • Triangle Inequality: The rule that the sum of any two side lengths must be greater than the third side for a valid triangle to exist

Example

For a triangle with sides a=5, b=6, c=7 (SSS mode): angle A ≈ 44.4°, angle B ≈ 57.1°, angle C ≈ 78.5°, and the area (via Heron's formula) is √(9×4×3×2) = √216 ≈ 14.7.

Interpreting Your Results

The calculator supports three configurations: SSS (three sides known), SAS (two sides and the included angle), and right triangle (two legs known). Each mode uses different mathematical relationships to solve for the remaining values. The step-by-step solution shows you exactly which formula was applied at each stage, making it easy to follow the derivation or reproduce it by hand. The area calculation uses Heron's formula for SSS mode, which works for any triangle regardless of type. For SAS mode, the area formula uses the sine of the included angle. The right triangle mode uses the simplest approach — half the product of the two legs. All three methods converge to the same area for a given set of measurements, so you can use any mode as a cross-check. The triangle type indicator tells you whether the triangle is acute (all angles < 90°), right (one angle = 90°), or obtuse (one angle > 90°). This classification is important in engineering because structural load paths differ depending on triangle type, and in trigonometry because different identity sets apply to acute versus obtuse triangles.

Frequently Asked Questions

What information do I need to solve a triangle?
You need at least three pieces of information, including at least one side length: three sides (SSS), two sides and the included angle (SAS), two angles and a side (ASA/AAS), or the two legs of a right triangle.
How is triangle area calculated from three sides?
Heron's formula computes area from the three side lengths alone: Area = √(s(s-a)(s-b)(s-c)), where s is the semi-perimeter, (a+b+c)/2.
What's the difference between the Law of Sines and the Law of Cosines?
The Law of Cosines relates all three sides to one angle and is used when you know SSS or SAS. The Law of Sines relates sides to the sines of their opposite angles and is typically used once you already know one side-angle pair.
Why doesn't my triangle solve — I entered three sides?
The three sides must satisfy the Triangle Inequality: each side must be shorter than the sum of the other two. If a + b ≤ c (or any similar combination), no triangle can be formed with those measurements.
What's the difference between SAS and SSS modes?
SSS (side-side-side) uses three known side lengths to find all angles and area. SAS (side-angle-side) uses two sides and the angle between them to find the remaining side, other angles, and area. Choose whichever matches the information you have — both produce a fully solved triangle.
Can this calculator solve an isosceles triangle?
Yes. An isosceles triangle has two equal sides. Enter the two equal sides and the third side in SSS mode, or enter the two equal sides and the angle between them in SAS mode. The calculator will correctly identify that two angles are equal.
What does 'oblique triangle' mean?
An oblique triangle is any triangle that is not a right triangle — meaning all three angles are either less than 90° (acute) or one angle is greater than 90° (obtuse). The calculator automatically flags whether your triangle is right or oblique based on the computed angles.
How do I convert radians to degrees?
Multiply radians by 180/π (approximately 57.296). For example, π/4 radians × 180/π = 45°. The calculator works in degrees by default, so you shouldn't need to convert unless you're working from radian-based measurements.
Why can't I enter three sides that are 1, 2, and 5?
Those measurements violate the triangle inequality — the sum of any two sides must be greater than the third. Since 1 + 2 = 3, which is not greater than 5, no valid triangle can be formed with these measurements. The calculator flags this as an error.
What is a Pythagorean triple?
A Pythagorean triple is a set of three whole numbers that satisfy the Pythagorean theorem: a² + b² = c². Common examples include 3-4-5, 5-12-13, and 8-15-17. These triples are useful for quick mental calculations and appear frequently in geometry problems.
Can I use this calculator for non-Euclidean geometry?
No. This calculator uses Euclidean (flat-plane) geometry. In non-Euclidean spaces (like on a sphere or hyperbolic surface), the angle sum of a triangle is not 180° and different formulas apply. For navigation on Earth's surface, spherical trigonometry is required.

Discover More Tools

Fresh picks from across our tool library.