Skip to content

Math

Triangle Calculator

Enter your values and the result updates as you type. The formula and a worked example are below the calculator.

Fill in any three values, with at least one side. The other three sides and angles and every measure below are worked out as you type.

Sides
Angles
Angle unit

Optional. It is added to the lengths and areas in the results.

Right scalene triangle

Worked out from three sides (SSS).

a = 40 ftb = 30 ftc = 50 ftA = 53.13°B = 36.87°C = 90°
Side a
40 ft
Side b
30 ft
Side c
50 ft
Angle ∠A
53.13°53°7′48″ = 0.9273 rad
Angle ∠B
36.87°36°52′12″ = 0.6435 rad
Angle ∠C
90°1.5708 rad = π/2
Area
600 ft²
Perimeter p
120 ft
Semiperimeter s
60 ft

Heights

Height ha
30 ft
Height hb
40 ft
Height hc
24 ft

Medians

Median ma
36.05551 ft
Median mb
42.72002 ft
Median mc
25 ft
Inradius r
10 ft
Circumradius R
25 ft

Coordinates

Vertex A
[0, 0]
Vertex B
[50, 0]
Vertex C
[18, 24]
Centroid
[22.66667, 8]
Incentre (inscribed circle)
[20, 10]
Circumcentre (circumscribed circle)
[25, 0]

Corner A sits at [0, 0] and corner B on the horizontal line.

Plot area in local measures

Square feet
600
Square yards (gaj)
66.67
Guntha
0.551
Square metres
55.74
Acres
0.01377

One guntha is 1,089 square feet. Bigha, kanal and cent differ by state, so they are not shown.

How to use

  1. Fill in any three of the six boxes: the sides a, b, c and the angles A, B, C. At least one must be a side. Side a is opposite angle A, side b opposite B, and side c opposite C.
  2. Pick degrees or radians. In radians you can type values such as pi/3 or 2pi/3. Add a unit of length if you want it shown in the results.
  3. Read the kind of triangle, the drawing (to scale), the missing sides and angles, the area, perimeter, heights, medians, inradius, circumradius and the corner coordinates.
  4. Open the calculation steps to see how each value was found. When two sides and an angle opposite one of them fit two different triangles, both are shown.

Formula

Law of cosines: c = sqrt(a² + b² − 2ab cos C) and A = arccos((b² + c² − a²) ÷ 2bc). Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C. The angles add up to 180°. Area = ½ b c sin A, height = 2 × area ÷ side, median to a = ½ sqrt(2b² + 2c² − a²), inradius = area ÷ semiperimeter, circumradius = a ÷ (2 sin A).

Example

A plot corner with sides 40 ft, 30 ft and 50 ft is a right triangle (30² + 40² = 50²) with an area of 600 sq ft, about 66.67 sq yards (gaj) or 0.55 guntha. Sides 9 and 7 with a 30° angle between them give a third side of 4.56955 and an area of 15.75.

Two sides and an angle that is not between them can give two triangles, one, or none. Three angles give only the shape, never the size. The drawing follows the real lengths, so a long thin triangle looks long and thin.