Triangle Calculator

Triangle Calculator. Enter any 3 values (at least one side) for a triangle — side a, side b, side c, angle A, angle B, or angle C — and the Triangle Calculator solves for all missing sides and angles, plus area, perimeter, and height. Works with degrees or radians, and handles all triangle types: right, oblique, equilateral, isosceles, and scalene. Also try the Circumference Calculator.

Triangle Calculator inputs

Leave blank if unknown

Leave blank if unknown

Leave blank if unknown

Leave blank if unknown

Leave blank if unknown

Leave blank if unknown

Results

Area

--

Perimeter

--

Side a

--

Side b

--

Side c

--

Angle A (°)

--

Angle B (°)

--

Angle C (°)

--

Height (from a)

--

Triangle Type

--

Use this triangle calculator to find every missing side and angle once you know three measurements, as long as one of them is a side. You also get the area and full right triangle results, so geometry homework or a building plan ends with a complete, checked answer.

How to Solve Any Triangle from Three Known Values

Type your numbers into the calculator at the top of the page. At least one value must be a side, because three angles fix only the shape, not the size. Any length unit works, and each angle goes in degrees. Keep one unit throughout: sides in centimeters give an area in square centimeters.

  1. Enter three sides, two sides plus an angle, or two angles plus a side.
  2. Press Solve and read the missing sides and angles, plus the area and perimeter.
  3. Compare the drawing with your own sketch before you rely on it.

Triangle calculator right-side checks and valid inputs

Each side must be shorter than the other two combined, the triangle inequality, so sides of 3, 4 and 9 have no solution. Convert radians to degrees first.

Triangle Solver Cases: SSS, SAS, ASA, AAS and SSA

A good triangle solver first classifies what you entered, because each combination of known values needs a different method.

CaseYou knowMethodSolutions
SSSthree sideslaw of cosines1
SAStwo sides and the included anglelaw of cosines1
ASAtwo angles and the included sideangle sum, then law of sines1
AAStwo angles and a non-included sideangle sum, then law of sines1
SSAtwo sides and a non-included anglelaw of sines0, 1 or 2

Triangle Calculation with the Law of Cosines and Law of Sines

Every triangle calculation rests on two formulas. Each pairs a side with the cosine or sine of an angle, so one known ratio unlocks the rest.

Law of cosines for SSS and SAS

Use the law of cosines when you know three sides or two sides and the included angle:

$$c^{2} = a^{2} + b^{2} - 2ab\cos C$$

Rearranged, \(\cos A = \frac{b^{2}+c^{2}-a^{2}}{2bc}\) gives each angle from the sides.

Law of sines for ASA and AAS

Subtract the two known angles from 180°, then apply the law of sines:

$$\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}$$

The SSA ambiguous case

With two sides and a non-included angle, side a may meet side b in two places. Compare a with the height \(b\sin A\): shorter means no triangle, equal means one right triangle, and between that value and b gives two answers, one acute and one obtuse.

Right Triangle Calculator: Pythagorean Theorem and Trigonometry

Because one 90° right angle is fixed, two values are enough. The two sides a and b meet there, and the Pythagorean theorem gives the side opposite:

$$c^{2} = a^{2} + b^{2}$$

The tangent of A is the leg opposite angle A divided by the adjacent leg, and the inverse tangent returns A. The same formula rearranged gives a missing leg: \(b = \sqrt{c^{2}-a^{2}}\).

Right triangle hypotenuse and acute angle

Sides of 6.5 and 14.4 give a hypotenuse of \(\sqrt{42.25 + 207.36} \approx 15.80\). Then \(A = \tan^{-1}(6.5/14.4) \approx 24.3\) degrees, so the other acute angle is 90° − 24.3° = 65.7°.

Right-Angled Triangle Shortcuts: 30-60-90 and 45-45-90

A special right triangle has fixed proportions, so one side is enough. The 3-4-5 shape is the classic whole-number example. Spotting a special case also lets you check the calculator's answer in your head.

30-60-90 triangle

The ratio is 1 : √3 : 2. A short leg of 7.5 gives a long leg of about 12.99 and a hypotenuse of 15.

45-45-90 triangle

This isosceles shape has equal legs in the proportion 1 : 1 : √2, so a leg of 7.5 gives a hypotenuse near 10.61.

Solve Triangle Dimensions for a Shade Sail Layout

I'm planning a shade sail over a patio, and the supplier prices fabric by area, so I need the sail's area and its edge length before ordering. Three posts are already set, and a tape gives me 4.6 m, 5.8 m and 3.9 m between them, a clean SSS case.

First a quick check of the triangle inequality: 4.6 + 3.9 = 8.5, which beats 5.8, so the layout is valid. I enter the three measurements into the triangle solver and read off the sides and angles it derives, from the law of cosines and Heron's formula with a semi-perimeter of 7.15 m.

  • Corner angles: 52.26°, 85.64° and 42.10°, which add to 180°.
  • Area: 8.94 m². Perimeter: 14.30 m.

The 85.64° corner is the one to watch, since it is only 4.36° short of a 90° right angle. That matters because a square-looking corner lets me reuse a standard fitting, while an obtuse one needs an angled bracket. To see how fragile it is, I rerun with the short side at 3.4 m:

Short sideLargest cornerArea
3.9 m85.64°8.94 m²
3.4 m91.69°7.82 m²

Half a meter of post movement flips the corner from just under 90° to obtuse, and the area drops by 1.12 m². My decision: keep 3.9 m and order a cable of 14.30 m plus 5% slack, 15.0 m. As a sanity check I recompute the area with ½ × 4.6 × 5.8 × sin 85.64° and get 8.94 again.

One caveat: with posts at different heights the sail is tilted, so these are true straight-line distances and the area is the fabric, not the ground shadow. Order fabric slightly smaller than the post-to-post rectangle, because tensioning hardware eats about 10% of each side. That figure is my own rule of thumb, not a standard.

Triangle Properties: Area, Perimeter, Heights and Radii

Beyond sides and angles, the results list further triangle properties. The area formula is ½ × base × height, the perimeter adds all the sides, and an altitude is a perpendicular drawn to its base. Area is measured in a square unit such as cm². The triangle type is scalene, isosceles or equilateral by sides, and right or obtuse by angles.

Heron's formula and the semi-perimeter

With all sides known, let \(s = \frac{a+b+c}{2}\) and compute:

$$\text{Area} = \sqrt{s(s-a)(s-b)(s-c)}$$

Inradius and circumradius

The inradius is r = Area ÷ s, the largest circle that fits inside. The circumradius is R = abc ÷ (4 × Area), the circle through all three corners.

Solve a Triangle Step-by-Step: A Worked Example

Take a = 8.4, b = 11.2 and an included angle C = 37°, an SAS case.

  1. Square the sides: 70.56 + 125.44 = 196.
  2. Find 2ab cos 37° = 188.16 × 0.7986 = 150.27.
  3. Apply the formula: c² = 196 − 150.27 = 45.73, so c ≈ 6.76.
  4. Solve cos A = 100.61 ÷ 151.47 = 0.6642, so A ≈ 48.38°.
  5. Then B = 180° − 37° − 48.38° = 94.62°, and the area is ½ × 8.4 × 11.2 × sin 37° ≈ 28.31.

The three sides total 26.36, and every value is rounded to two decimals. A diagram drawn to scale shows B as the wide corner. Change only the included angle to 45° and c grows to about 7.93, because a wider opening between the same two sides stretches the opposite side.

Checking the answer

As a sanity check, 48.38° + 94.62° + 37° = 180 degrees, and the longest side, 11.2, faces the largest angle.

Where a Right Angle Triangle Calculator Helps

Every use comes down to the same step: turn two or three measurements into the missing sides, angles and area. Students check geometry and trigonometry homework that way. Carpentry crews size a roof rafter, construction and engineering teams brace frames, and surveying crews turn field readings into distances. Whenever you must solve triangle problems from measured data, round only the final answer. A framer with a run of 3.6 m and a rise of 1.4 m gets a rafter near 3.86 m at a 21.2° pitch, and the same two-value entry works for stair stringers and ramps.