Triangle Calculator

Calculated on this device
Length of side a (opposite angle A)
units
Length of side b (opposite angle B)
units
Length of side c (opposite angle C)
units
SCALENE · RIGHT TRIANGLE
Area = 6

Perimeter: 12 · Inradius: 1 · Circumradius: 2.5

Sides (a, b, c)3, 4, 5
Angles (A, B, C)36.87°, 53.13°, 90°
Altitudes (hₐ, h_b, h_c)4, 3, 2.4
Semiperimeter (s)6

Solved using the Law of Cosines, Law of Sines, and Heron's formula.

HOW IT WORKS

Law of Cosines, Law of Sines & Heron's formula

A Euclidean triangle is uniquely determined by three independent measurements (at least one side). Select SSS, SAS, ASA, or AAS to solve all remaining sides, angles, and geometric properties.

01

Law of Cosines (SSS & SAS)

Relates all three sides to one interior angle:

c² = a² + b² − 2ab·cos(C)
02

Law of Sines (ASA & AAS)

Relates each side to the sine of its opposite angle:

a ÷ sin(A) = b ÷ sin(B) = c ÷ sin(C)
03

Heron's Formula & Radii

Computes area from semiperimeter s = (a + b + c) ÷ 2:

K = √(s(s−a)(s−b)(s−c)) · r = K ÷ s · R = abc ÷ (4K)

TRIANGLE SOLVING GUIDE

Choosing SSS, SAS, ASA, or AAS and checking triangle feasibility

Right triangles vs. general triangles

Every valid Euclidean triangle has interior angles summing to exactly 180° (π radians). If your triangle has a known 90° angle, our Right Triangle Calculator or Pythagorean Theorem Calculator lets you solve from just two inputs.

Frequently asked questions

What is the triangle inequality theorem?

The sum of the lengths of any two sides of a triangle must be strictly greater than the length of the third side. If a + b ≤ c, the segments cannot close into a triangle.

What is the difference between ASA and AAS?

In ASA (Angle-Side-Angle), the known side lies directly between the two known angles. In AAS (Angle-Angle-Side), the known side is opposite one of the known angles rather than between them.

What are inradius and circumradius?

The inradius (r) is the radius of the largest circle inscribed inside the triangle; the circumradius (R) is the radius of the unique circle passing through all three vertices.

Why is AAA not supported?

Three angles alone determine a triangle's shape (similarity) but not its size—infinitely many scaled triangles share the same three angles.