Free browser-based calculators.Back home
%Compound Calculator

Triangle Calculator

Calculate triangle area, perimeter, or both.

ResultArea: 20 | Perimeter: 12

Area = base x height / 2. Perimeter = side A + side B + side C.

Short answer: Heron's formula: area = square root of s(s-a)(s-b)(s-c), with s half the perimeter. Sides 3, 4, 5 give area 6; sides 7, 8, 9 give 26.833.

Area and perimeter from three sides

abcAreaPerimeter
345612
5561216
78926.83324
66615.58818

Is it a triangle?

Sides form a triangle only if each is shorter than the sum of the other two. Sides 2, 3 and 6 fail because 2 + 3 is less than 6.

Type and angles

If a squared + b squared = c squared the triangle is right-angled; if less it is obtuse, if more acute. By the law of cosines, for sides 7, 8, 9 the largest angle is 73.4 degrees, and the angles sum to 180.

Other area formulas

With a base and height, area = base x height / 2: base 10 and height 6 give 30. Equilateral side a gives a squared x root 3 / 4, so side 6 gives 15.588.

How this calculator works

The form above runs in your browser with the same arithmetic described on this page; nothing you type is sent to a server. Results are rounded for display only, so a long decimal may differ from the last digit of a hand calculation. Empty, zero or non-numeric inputs return a message instead of a result, and division by zero is never evaluated.

Use the tool to check your own working rather than to replace it: write the formula, substitute your numbers, and compare. If the two disagree, look first at units, the order of the inputs and whether a percentage was entered as 5 or as 0.05.

The tables on this page are generated by script from the formulas shown, not typed by hand, and are rebuilt whenever the page is reviewed. The reviewed date above is the date those numbers were last recomputed.

Typical input errors are worth a second look before you rely on a result: a comma used as a decimal separator, a value typed in the wrong unit, or two inputs swapped. If a result looks implausible, test the tool with a case you can do in your head, such as round numbers, and confirm it matches before trying your real figures.

Sources

Related tools

Educational tool. Found an error? Tell us.