Superficie.org
Free Geometry Tool

Triangle Calculator

Solve a triangle from its side lengths or angles. Calculate missing sides, interior angles, area, perimeter, heights, medians, inradius, and circumradius with this free online triangle solver.

Choose the information you know, enter your measurements, and calculate the remaining properties. Lengths can be entered in metric or imperial units.

Calculate a Triangle

Select a method based on the measurements available to you.

Enter positive side lengths. Angles must be greater than 0° and their sum must be less than 180°. Results are rounded for display.

Triangle Diagram

c b a A B C

Standard notation: side a is opposite angle A, side b is opposite angle B, and side c is opposite angle C. The diagram is illustrative and not drawn to scale.

Triangle Formulas

The correct formula depends on which measurements are known. These are the main formulas used by the triangle calculator.

1. Area from base and height

Area = ½ × base × perpendicular height

Multiply the base by the perpendicular height and divide by two. The height must meet the base at a right angle; it is not necessarily the length of one of the sloping sides.

2. Heron's formula

s = (a + b + c) / 2
Area = √[s(s − a)(s − b)(s − c)]

Use Heron's formula when all three side lengths are known but the height is not. Here, s is the semiperimeter.

3. Law of cosines

c² = a² + b² − 2ab cos(C)

Use this formula to find a missing side when two sides and their included angle are known. Similar formulas find the other sides or angles.

4. Law of sines

a / sin(A) = b / sin(B) = c / sin(C)

This relationship is useful when two angles and one side are known. First calculate the third angle, then use the sine ratios to find the missing side lengths.

5. Interior angle sum

A + B + C = 180°

The three interior angles of a Euclidean triangle always add up to 180 degrees. If two angles are known, subtract their sum from 180°.

6. Right-triangle theorem

c² = a² + b²

In a right triangle, the hypotenuse c is opposite the 90° angle. The Pythagorean theorem calculates its length from the two perpendicular legs.

7. Perimeter and semiperimeter

P = a + b + c
s = P / 2

The perimeter is the total length around the triangle. The semiperimeter is half of the perimeter.

8. Heights and radii

hₐ = 2 × Area / a
r = Area / s
R = abc / (4 × Area)

The formulas give the altitude to side a, the inradius r of the inscribed circle, and the circumradius R of the circumscribed circle.

Worked Triangle Examples

Use these examples to check your calculations and understand how different triangle-solving methods work.

Example 1: A 3-4-5 right triangle

Given sides a = 3, b = 4, and c = 5.

Area = √[6(6−3)(6−4)(6−5)]
Area = √36 = 6 square units

The perimeter is 12 units. Its angles are approximately 36.87°, 53.13°, and 90°.

Example 2: Two sides and an angle

Given a = 5, b = 7, and included angle C = 60°.

c² = 5² + 7² − 2 × 5 × 7 × cos(60°)
c² = 39; c ≈ 6.245

The law of cosines gives the third side. The calculator can then determine the remaining angles, area, and perimeter.

Example 3: Two angles and one side

Given A = 45°, B = 60°, and side c = 10.

C = 180° − 45° − 60° = 75°
a / sin(45°) = c / sin(75°)

The law of sines gives side a, and the same method finds side b. This method is useful when angles are measured directly.

Example 4: A right triangle

Given perpendicular legs a = 6 and b = 8.

c = √(6² + 8²) = √100 = 10
Area = ½ × 6 × 8 = 24 square units

The hypotenuse is 10 units, and the perimeter is 24 units. The right angle is 90°.

Types of Triangles

Triangles can be classified by their side lengths or by their interior angles.

Triangle type Definition Useful property
Equilateral All three sides are equal. Every angle is 60°.
Isosceles At least two sides are equal. Angles opposite equal sides are equal.
Scalene All three sides have different lengths. All three interior angles are different.
Right One angle is exactly 90°. Follows the Pythagorean theorem.
Acute All three angles are less than 90°. No interior angle is a right or obtuse angle.
Obtuse One angle is greater than 90°. Only one angle can be obtuse.

The triangle inequality

Three positive lengths form a valid triangle only if the sum of any two sides is greater than the third side.

a + b > c
a + c > b
b + c > a

If these conditions fail, the three lengths cannot form a proper triangle. The calculator checks this condition before calculating a triangle from three sides.

Triangle Measurement Units

The calculator uses the selected length unit consistently for side lengths, heights, medians, and radii. Areas are reported in the corresponding squared unit.

Unit Equivalent in meters Typical use
Millimeter (mm)0.001 mSmall components and technical drawings
Centimeter (cm)0.01 mSchool geometry and everyday measurements
Meter (m)1 mRooms, construction, and surveying
Kilometer (km)1,000 mLarge distances
Inch (in)0.0254 mImperial measurements
Foot (ft)0.3048 mBuilding and property measurements
Yard (yd)0.9144 mLonger imperial measurements

Remember: converting a length to a different unit changes the numerical value of its area by the square of the length conversion factor. For example, 1 m² = 10,000 cm².

Frequently Asked Questions

1. How do I calculate the area of a triangle?

Multiply the base by the perpendicular height and divide by two. If all three side lengths are known, Heron's formula calculates the area without requiring a separate height measurement.

2. How do I find the missing side of a triangle?

The law of cosines is useful when two sides and their included angle are known. The law of sines works when two angles and one side are known. For right triangles, use the Pythagorean theorem.

3. Do the angles of a triangle always add up to 180 degrees?

Yes, for a triangle in ordinary flat, Euclidean geometry, the three interior angles total 180 degrees.

4. What is the difference between perimeter and area?

Perimeter measures the total distance around the triangle and is expressed in length units. Area measures the two-dimensional space inside it and is expressed in squared units.

5. Can I calculate a triangle from three angles alone?

Three valid angles determine the triangle's shape, but not its size. You also need at least one side length to calculate the actual dimensions, area, and perimeter.

6. What is the inradius of a triangle?

The inradius is the radius of the circle that fits inside the triangle and touches all three sides. It can be calculated as the area divided by the semiperimeter.

7. What is the circumradius?

The circumradius is the radius of the circle passing through all three vertices. For a triangle with area K and side lengths a, b, and c, the formula is R = abc / (4K).

8. Can a triangle have two right angles?

No. Two right angles already total 180 degrees, leaving no angle for the third vertex. A triangle can have only one right angle.