Triangle Calculator
Solve area, perimeter and angles from sides or base & height
🔺 Enter the three side lengths
The angle opposite each side is solved with the law of cosines; area uses Heron's formula. Sides can be in any unit - results use the same unit.
📐 Area
📊 Angles (degrees)
The three angles add up to 180° (always 180° for any flat triangle). The largest angle is opposite the longest side.
📋 Full breakdown
| Side | Length | Opposite angle | Altitude to side |
|---|---|---|---|
| a | 3 | 36.87° | 4 |
| b | 4 | 53.13° | 3 |
| c | 5 | 90° | 2.4 |
The altitude to each side is the perpendicular height you would use with that side as the base: area = ½ × side × altitude.
Angles from the law of cosines, area from Heron's formula. All values are computed in your browser; nothing is uploaded.
Last updated June 2026
Method: Area from three sides uses Heron's formula; angles use the law of cosines (converted to degrees). Base-and-height area uses ½ × base × height. Every result is computed in your browser with exact formulas.
Included: Triangle area, perimeter, semi-perimeter, the three interior angles, side/angle classification (scalene, isosceles, equilateral, right, acute, obtuse) and the altitude to each side.
Not included: Coordinate-geometry input, SAS/ASA/SSA solving, and 3D figures. The triangle inequality is enforced, so impossible side combinations return a clear warning instead of a number.
Triangle calculator: area, perimeter and angles explained
Give this triangle calculator three side lengths and it returns the area, the perimeter, and all three interior angles in seconds. Enter a classic 3-4-5 triangle, for instance, and you get an area of 6 square units, a perimeter of 12, and angles of about 36.87°, 53.13° and 90° - confirming it is a right triangle. If you only know a base and a height, switch modes and the calculator returns the area directly from ½ × base × height. Everything updates instantly as you type, with no button to press.
How to find the area of a triangle
There are two common situations, and this tool handles both. When you know the three side lengths, the calculator uses Heron's formula:
s = (a + b + c) ÷ 2 Area = √( s × (s − a) × (s − b) × (s − c) ) Here s is the semi-perimeter (half the perimeter), and a, b and c are the three sides. When you instead know a base and the perpendicular height, the area is simpler:
Area = ½ × base × height Both formulas give the same answer for the same triangle - they just start from different information. The key requirement for the second formula is that the height must be measured perpendicular to the base, not along a slanted side.
How the angles are calculated
When all three sides are known, each angle is found with the law of cosines. The angle opposite side a is:
A = arccos( (b² + c² − a²) ÷ (2 × b × c) ) The same pattern gives angles B and C. The calculator converts each result from radians to degrees, so you read familiar values like 60° or 90°. As a built-in check, the three angles always sum to exactly 180° for any flat (Euclidean) triangle, and the largest angle always sits opposite the longest side.
How to use this triangle calculator
You only need a few numbers. Follow these steps:
- Pick a mode: choose 3 sides (SSS) if you know all three lengths, or Base & height if you know one side and its perpendicular height.
- Enter your values: type the side lengths (a, b, c) or the base and height. Any unit works as long as you keep it consistent.
- Read the headline: the large blue number is the area in square units.
- Check the angles and breakdown: in SSS mode you also get the three angles, the perimeter, the triangle type, and the altitude to each side.
- Watch for warnings: if the three sides break the triangle inequality, the calculator tells you they cannot form a triangle instead of returning a wrong number.
Try the preset buttons (Right, Equilateral, Isosceles, Obtuse) to see how different shapes change the angles and area at a glance.
Who this calculator is for
- Students checking geometry or trigonometry homework on area, perimeter and angles.
- Teachers generating quick worked examples with consistent, correct numbers.
- DIY and trades measuring a triangular patch of floor, roof, garden or fabric to estimate material.
- Designers and makers who need the angles of a triangular piece before cutting.
- Anyone who remembers ½ × base × height but wants area and angles straight from three measured sides.
Key terms explained
- Perimeter: the total distance around the triangle, a + b + c.
- Semi-perimeter (s): half the perimeter, used inside Heron's formula.
- Altitude (height): the perpendicular distance from a side to the opposite vertex. Each side has its own altitude.
- Law of cosines: a generalization of the Pythagorean theorem that works for any triangle, used here to recover angles from sides.
- Triangle inequality: the rule that any two sides must together be longer than the third.
- Scalene / isosceles / equilateral: classifications by how many sides are equal (none, two, or all three).
- Acute / right / obtuse: classifications by the largest angle (under 90°, exactly 90°, or over 90°).
Worked example 1: the 3-4-5 right triangle
With sides a = 3, b = 4, c = 5, the semi-perimeter is s = (3 + 4 + 5) / 2 = 6. Heron's formula gives area = √(6 × 3 × 2 × 1) = √36 = 6 square units. The law of cosines puts the angle opposite the longest side (5) at exactly 90°, with the other two angles at roughly 36.87° and 53.13°. Because 3² + 4² = 9 + 16 = 25 = 5², it is the textbook right triangle.
Worked example 2: an equilateral triangle
For sides a = b = c = 6, the semi-perimeter is 9, and the area is √(9 × 3 × 3 × 3) = √243 ≈ 15.59 square units. Every angle is exactly 60°, and the triangle is classified as equilateral. This matches the shortcut for equilateral area, (√3 / 4) × side², which equals (1.732 / 4) × 36 ≈ 15.59.
Worked example 3: area from base and height
Suppose a triangular garden bed has a base of 12 feet and a perpendicular height of 5 feet. The area is ½ × 12 × 5 = 30 square feet. Notice you do not need the slanted sides for the area - only the base and the perpendicular height. To also find the angles, you would measure the three sides and use SSS mode.
Quick reference table
Common triangles and their results, computed with the formulas above (lengths in the same unit, area in square units):
| Triangle | Sides | Perimeter | Area | Angles |
|---|---|---|---|---|
| Right (3-4-5) | 3, 4, 5 | 12 | 6.00 | 36.87°, 53.13°, 90° |
| Right (6-8-10) | 6, 8, 10 | 24 | 24.00 | 36.87°, 53.13°, 90° |
| Equilateral | 6, 6, 6 | 18 | 15.59 | 60°, 60°, 60° |
| Isosceles | 5, 5, 8 | 18 | 12.00 | 36.87°, 36.87°, 106.26° |
| Acute scalene | 6, 7, 8 | 21 | 20.33 | 46.57°, 57.91°, 75.52° |
| Obtuse | 4, 5, 8 | 17 | 8.18 | 24.15°, 30.75°, 125.10° |
Tips for accurate results
- Keep one unit: mixing feet and inches gives a wrong area. Convert first, then enter.
- Measure the perpendicular height: in base-and-height mode, do not use a slanted side length as the height.
- Use more decimals for small triangles: rounding sides too early can noticeably shift the area.
- Sanity-check with the triangle inequality: if two sides barely exceed the third, the triangle is very "thin" and its area will be small.
Common pitfalls
Most mistakes come from the wrong height or impossible sides. Using a slanted edge instead of the perpendicular height overstates the area, and entering three lengths that violate the triangle inequality describes no real triangle at all. The calculator guards against the second case directly; the first is on the measurer. Another subtle point: a base and height alone fix only the area, never the angles, because the apex can slide along a parallel line without changing either the base or the height.
Related concepts and calculators
Triangles connect to a lot of everyday math. If you are computing the slanted side of a right triangle, the Pythagorean theorem (a² + b² = c²) is the special case of the law of cosines when one angle is 90°. For powers and roots that show up inside these formulas, the Square Root Calculator and Exponent Calculator are handy. For general arithmetic and trigonometric functions, the Scientific Calculator covers sine, cosine and tangent directly. And when you need to scale a triangle up or down while keeping its shape, the Ratio Calculator and Percentage Calculator help with proportional resizing.
⚠️ Common mistakes & edge cases
Using a slanted side as the height
The height in ½ × base × height must be the perpendicular distance from the base to the opposite vertex - not the length of one of the other sides. Using a slant length overstates the area. If you only have the three sides, use SSS mode instead.
Entering impossible side lengths
Three numbers only form a triangle if every pair of sides adds up to more than the third (the triangle inequality). Sides like 1, 2 and 5 fail because 1 + 2 is less than 5. The calculator flags this rather than returning a meaningless area.
Expecting angles from base and height
A base and a perpendicular height fix the area but not the shape, so the angles are undetermined. Many different triangles share the same base, height and area. To get angles you need the three sides or two sides plus the included angle.
Mixing units
Entering one side in inches and another in feet produces a wrong perimeter and area. Convert all measurements to the same unit before calculating; the area then comes out in that unit squared.
❓ Frequently asked questions
How do you find the area of a triangle from three sides?
Use Heron's formula. First find the semi-perimeter s = (a + b + c) / 2, then area = sqrt(s x (s - a) x (s - b) x (s - c)). For example, a 3-4-5 triangle has s = 6, so area = sqrt(6 x 3 x 2 x 1) = sqrt(36) = 6 square units. This calculator does that automatically in SSS mode.
How do you find the area from base and height?
Area = 0.5 x base x height, where the height is the perpendicular distance from the base to the opposite vertex. A triangle with a base of 10 and a height of 6 has an area of 0.5 x 10 x 6 = 30 square units. Use the Base & height mode for this.
How are the angles calculated?
From three known sides, each angle is found with the law of cosines. The angle opposite side a is A = arccos((b^2 + c^2 - a^2) / (2 x b x c)), and similarly for B and C. The result is converted from radians to degrees. The three angles always add up to 180 degrees.
What is the triangle inequality?
The triangle inequality states that the sum of the lengths of any two sides must be greater than the length of the third side. If a + b is less than or equal to c (for the longest side c), the three lengths cannot form a triangle. The calculator checks this and warns you when the sides are invalid.
Why can't I get angles from base and height alone?
A base and a perpendicular height fix the area, but not the shape: the apex can sit anywhere along a line parallel to the base, producing many different triangles with the same area. To solve the angles you need the three side lengths (SSS) or another sufficient set such as two sides and the included angle (SAS).
What is the difference between scalene, isosceles and equilateral triangles?
A scalene triangle has three different side lengths and three different angles. An isosceles triangle has two equal sides and two equal angles. An equilateral triangle has all three sides equal and all three angles equal to 60 degrees. The SSS mode reports which type your triangle is.
How do I know if a triangle is a right triangle?
A triangle is a right triangle if one angle equals 90 degrees. With three sides, you can check the Pythagorean theorem: if the two shorter sides satisfy a^2 + b^2 = c^2 (with c the longest side), the triangle is right. A 3-4-5 triangle is the classic example because 9 + 16 = 25.
What units does this triangle calculator use?
The calculator is unit-agnostic. Whatever unit you enter for the sides or base and height (inches, feet, meters, centimeters), the perimeter comes out in that same unit and the area comes out in those units squared. Angles are always shown in degrees.
Does the order of the sides matter?
No. Side a, b and c can be entered in any order - the calculator simply matches each angle to the side opposite it. By convention the largest angle is opposite the longest side, but you do not need to sort the sides yourself.
How accurate are the results?
The calculations use exact mathematical formulas (Heron's formula and the law of cosines) and standard floating-point arithmetic, then round the displayed values for readability. For any real-world measurement, the accuracy of your result depends mostly on how precisely you measured the sides or height.
💡 Good to know
Heron's formula needs only the sides
You do not need an angle or a height to find the area - three side lengths are enough. That makes Heron's formula ideal for real-world triangles where you can measure the edges but not the perpendicular height.
The angles always add up to 180°
For any flat triangle, the three interior angles sum to exactly 180°. If your hand calculations give something else, you have a rounding or input error - this is a quick way to check your work.
Right triangles are easy to spot
If the two shorter sides satisfy a² + b² = c² for the longest side c, the triangle has a 90° angle. The 3-4-5 and 6-8-10 triangles are the most familiar examples, and the calculator labels them automatically.
Related Calculators
Percentage Calculator
Solve any percentage problem - what is X% of Y and more
Fraction Calculator
Add, subtract, multiply and divide fractions
Scientific Calculator
A full scientific calculator with trig, logs and more
Average Calculator
Calculate the mean, median and mode of numbers
Square Root Calculator
Find the square root of any number
Exponent Calculator
Raise numbers to any power