GEOMETRY CALCULATOR

Triangle Calculator

Enter all three side lengths to calculate a triangle’s area, perimeter, angles, and perpendicular heights.

Calculator

Use the same length unit for every side.
YOUR RESULTS
Triangle area6 square units
Perimeter
12 units
Angle opposite side a
36.8699 °
Angle opposite side b
53.1301 °
Angle opposite side c
90 °

Side and opposite-angle reference
Side and opposite-angle reference
SideLengthHeight to this sideOpposite angle (°)
a3436.87
b4353.13
c52.490

Understanding your result

Each angle is opposite the side with the matching letter. Area uses squared length units. The table gives the altitude measured perpendicular to each side or its extended line.

The formula

Semiperimeter s = (a+b+c)/2. Area = √[s(s−a)(s−b)(s−c)]. cos(A) = (b²+c²−a²)/(2bc). Height to side a = 2 × area/a.

Heron’s formula determines area without needing an entered angle. The calculation uses an equivalent rearrangement to reduce cancellation for narrow triangles. Angles follow the same geometry as the law of cosines, with a two-argument arctangent preserving the correct acute or obtuse angle.

Worked example

Sides of 3, 4, and 5 units give a semiperimeter of 6 and area √(6 × 3 × 2 × 1) = 6 square units. The perimeter is 12, and the angle opposite side 5 is 90°. The height to side 5 is 2.4 units.

How to use this calculator

  1. Measure or obtain all three side lengths in the same unit.
  2. Enter each side using its letter in your drawing.
  3. Read the angles opposite those sides and expand the table for altitudes.

The triangle inequality

The longest side must be strictly shorter than the sum of the other two. Equal values create a straight line, not a triangle with positive area. Measurement rounding can create this problem for a very narrow real shape. Recheck the original measurements rather than forcing a zero-area line through a triangle formula.

Using area in a practical estimate

If the sides are metres, the area is square metres; if they are feet, it is square feet. A material order may require waste, overlaps, thickness, or packaging increments after the area is known. For an obtuse triangle an altitude can meet the extended base outside the triangle, so it should not automatically be interpreted as an internal clearance.

Assumptions & limitations

What this calculation assumes

  • The inputs are straight sides of a flat, nondegenerate Euclidean triangle.

What to keep in mind

  • Three-side solving only; no ambiguous two-side/angle cases, spherical geometry, or measurement uncertainty propagation.

Common questions

Can the same three sides give two different triangles?

They determine one size and shape up to rotation and reflection. Reflecting the drawing does not change its area or angles.

Why do displayed angles sometimes not add to exactly 180?

Each angle is rounded separately for display. The underlying geometry sums to 180 degrees, but the displayed decimal values can differ slightly after rounding.

Sources & further reading