Triangle Calculator

Calculate all sides, angles, area, and perimeter of a triangle from three sides, two sides and the angle between them, or two angles and the side between them.

By Konstantin Iakovlev · Updated September 2026 · Source: Khan Academy

Known Values

Area

17.32

Perimeter

20.00

Type

Scalene / Acute

Sides

Side a5.0000
Side b7.0000
Side c8.0000

Angles

Angle A38.21°
Angle B60.00°
Angle C81.79°
Sum of Angles180.00°

Properties

By SidesScalene
By AnglesAcute
Area17.3205
Perimeter20.0000

Use the Triangle Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only. Results are estimates based on the information you provide and the assumptions described on this page.

How It Works

Give this calculator three known values—all three sides, two sides and the angle between them, or two angles and the side between them—and it reconstructs the triangle in full, returning every remaining side and angle along with the area and perimeter. That completeness is what makes it practical work: an architect detailing a triangular facade panel or a surveyor mapping an irregular plot needs exactly that kind of full geometric picture.

Several classical relationships do the heavy lifting. The Law of Sines (a/sin A = b/sin B = c/sin C) and the Law of Cosines (c² = a² + b² - 2ab cos C) handle most side-and-angle combinations, and the area always comes from Heron's formula, √(s(s − a)(s − b)(s − c)) with s the semi-perimeter, once all three sides are known. The solver works through these step by step, pinning down each unknown from whichever triplet you supply.

Enter angles in degrees; there is no radians option. Three angles alone cannot fix a triangle's size, so the calculator asks for at least one side, and two angles that add up to 180 degrees or more give no result. Two sides and an angle that is not between them (SSA) is not one of the input modes, because that combination can fit two different triangles—the ambiguous case—so solve it with the Law of Sines and check both possibilities.

Example: A Triangular Solar Panel Array

  1. 1 Input: a roof design calls for a triangular solar array with sides of 7.5 m and 9.0 m and a 70° angle between them. Choose 2 Sides + Angle and enter Side a = 7.5, Side b = 9 and Angle C = 70.
  2. 2 Law of Cosines: c² = 7.5² + 9.0² − 2 × 7.5 × 9.0 × cos 70° = 56.25 + 81 − 135 × 0.342020 = 91.0773, so c = 9.5434 m.
  3. 3 Angles: A = arccos((9.0² + c² − 7.5²) / (2 × 9.0 × c)) = 47.60°, and B = 180° − 70° − 47.60° = 62.40°.
  4. 4 Area (Heron's formula, which here equals 0.5 × 7.5 × 9.0 × sin 70°) = 31.71 m², and the perimeter, the edge to be sealed, is 7.5 + 9.0 + 9.5434 = 26.04 m. The calculator classes the triangle as Scalene / Acute.

Source: Khan Academy · Last updated: September 2026

Frequently Asked Questions

How do you find the area of a triangle?
The most common formula is area = 1/2 times base times height. If you know all three sides, use Heron formula: area = square root of s(s-a)(s-b)(s-c), where s is the semi-perimeter.
How do you find the missing angle of a triangle?
The three angles of any triangle always add up to 180 degrees. Subtract the two known angles from 180 to find the third. For example, if two angles are 45 and 60, the third is 180 - 45 - 60 = 75 degrees.
What is the Pythagorean theorem?
In a right triangle, the square of the hypotenuse (longest side) equals the sum of the squares of the other two sides: a squared plus b squared equals c squared. This only works for right triangles.