Mathematics
Triangle calculator
Calculate area, perimeter, angles, altitudes and circle radii of an equilateral, isosceles, right or general triangle from its sides, in mm, cm or m.
Also available for Germany, in German
Also available for Poland, in Polish (dobrykalkulator.pl)
Type numbers as you normally would, for example 1,250 or 2.5.
Result
Formula / calculation:
Equilateral: A is a side. Isosceles: A is the base, B is a leg. Right: A and B are the legs. General: A, B, C are the three sides. Each input side must be > 0 and ≤ 1000000. Each altitude is labelled by its corresponding side.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
The chosen triangle type determines which sides are needed. General triangles must satisfy the triangle inequality; their area uses Heron's formula.
Worked example
A right triangle with legs 3 and 4 has hypotenuse 5, perimeter 12 and area 6 square units.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Triangle type
- Right
- A
- 3
- B
- 4
- Length unit
- cm
- Precision
- 4
- Fixed-format rounding
- Nearest
Result
- Area
- 6 cm²
- Perimeter
- 12 cm
- Side a
- 3 cm
- Side b
- 4 cm
- Side c
- 5 cm
- Height on a
- 4 cm
- Height on b
- 3 cm
- Height on c
- 2.4 cm
- Angle α
- 36.8698976458 °
- Angle β
- 53.1301023542 °
- Angle γ
- 90 °
- Inradius
- 1 cm
Frequently asked questions
What can the triangle calculator work out?
It calculates area, perimeter, angles, altitudes and circle radii of an equilateral, isosceles, right or general triangle. Each altitude is labelled by its corresponding side.
Which sides do I enter for each triangle type?
Equilateral: A is a side. Isosceles: A is the base and B is a leg. Right: A and B are the legs. General: A, B and C are the three sides.
How is the area of a general triangle calculated?
The triangle calculator uses Heron's formula. General triangles must also satisfy the triangle inequality.
What is the area of a 3, 4, 5 right triangle?
A right triangle with legs 3 and 4 has hypotenuse 5, perimeter 12 and area 6 square units.
What are the limits for side lengths?
Each input side must be greater than 0 and at most 1000000. You can choose mm, cm or m as the length unit.
Can I choose how results are rounded?
Yes. You can set precision from 0 to 12 and choose standard, fixed, scientific or engineering format. Fixed-format rounding can be nearest, down or up.
How do I enter decimals?
Use a decimal point and no thousands separators. Examples are −2.5 or 1e3.