Triangle Calculator
Enter the lengths of the three sides. The calculator checks that they can make a triangle, then gives the area, the perimeter, all three angles and the type of triangle.
Your numbers
How we calculate it
Three lengths make a triangle only when the longest is shorter than the other two added together. The area comes from Heron’s formula, area = √(s × (s − a) × (s − b) × (s − c)), where s is half the perimeter.
Each angle comes from the law of cosines: cos A = (b² + c² − a²) ÷ (2 × b × c). The type by sides is equilateral (all equal), isosceles (two equal) or scalene (none). By angles it is acute, right or obtuse, found by comparing the square of the longest side with the squares of the other two. For 3, 4 and 5 the area is 6 and the triangle is right.
Assumptions and limits
- Use the same unit for all three sides. The area is in that unit squared.
- Sides that only just fail the test, such as 1, 2 and 3, make a flat shape with no area, so they are rejected.
- Angles are shown in degrees and add up to 180.
Frequently asked questions
How do I know if three lengths can make a triangle?
Add the two shorter sides. If the total is greater than the longest side, they can form a triangle. For 2, 3 and 6, 2 + 3 is 5, which is less than 6, so they cannot.
What is Heron’s formula?
It gives the area of a triangle from its three sides alone. Work out s, half the perimeter, then take the square root of s times (s − a) times (s − b) times (s − c).
How do I tell if a triangle is right, acute or obtuse?
Compare the square of the longest side with the sum of the squares of the other two. Equal means right, larger means obtuse and smaller means acute.
Related calculators
- Pythagorean Theorem CalculatorEnter any two sides of a right triangle and leave the third empty.
- Area CalculatorChoose a shape, pick your unit and enter the measurements.
- Circle CalculatorPick the measurement you know, enter it, and the calculator works out the other three.
- Roof Pitch CalculatorEnter the rise and run of your roof to get the pitch ratio roofers use, the angle in degrees and the factor for converting flat area to actual roof surface.
Worked example (a fixed example using the starting numbers, it does not change as you type)
Inputs: Side a = 3; Side b = 4; Side c = 5.
- Area 6
- Perimeter 12
- Angle A 36.87 degrees
- Angle B 53.13 degrees
- Angle C 90.00 degrees
- Type by sides Scalene
- Type by angles Right
Embed this calculator
Add this calculator to your own page. Paste the code where you want it. The small link keeps credit to the source.
More math calculators
- Percentage Calculator
- Percent Change Calculator
- Percent of a Number Calculator
- Standard Deviation Calculator
- GCF and LCM Calculator
- Quadratic Formula Calculator
- Fraction Calculator
- Prime Factorization Calculator
- Factorial Calculator
- Exponent Calculator
- Square Root Calculator
- Percent Error Calculator
- Ratio Calculator
- Roman Numeral Converter
- Pythagorean Theorem Calculator
- Area Calculator
- Circle Calculator
- Volume Calculator
- Slope, Distance and Midpoint Calculator
- Logarithm Calculator
- Number Sequence Calculator
- Factor Calculator
- Rounding Calculator
- Scientific Notation Calculator
- Long Division Calculator
- Basic Calculator
- Random Number Generator
- Half-Life Calculator
- Matrix Calculator
- Big Number Calculator
- P-Value Calculator
- Density Calculator
- Molarity Calculator
- Molecular Weight Calculator