Triangle Calculator
This triangle calculator needs exactly three known values, at least one of them a side – leave the rest blank. It fills in every side, angle and measurement.
Source: Wolfram MathWorld – Law of cosines. Updated: .
How it is calculated
A triangle is fixed by three values as long as at least one is a side: three sides (SSS), two sides and the included angle (SAS), or one side and two angles (ASA, AAS). Only two sides with a non-included angle (SSA) can give two different triangles – the “ambiguous case”.
Formulas
- Angle sum: A + B + C = 180°.
- Law of cosines: c² = a² + b² − 2ab·cos C – for SSS and SAS; with C = 90° it becomes the Pythagorean theorem.
- Law of sines: a ÷ sin A = b ÷ sin B = c ÷ sin C = 2R – for ASA, AAS and SSA.
- Area (Heron): A = √(s(s − a)(s − b)(s − c)) with s = (a + b + c) ÷ 2; also area = ½ × base × height.
- Circles: inradius r = area ÷ s, circumradius R = abc ÷ (4 × area).
Labels
Sides are a, b, c and angles A, B, C, each angle opposite the side with the same letter. The height hₐ is perpendicular to side a through the opposite vertex. Enter angles in degrees.
Type of triangle
The calculator reports whether the triangle is acute, right or obtuse, and whether it is equilateral, isosceles or scalene. For right triangles with two known sides, the Pythagorean theorem calculator is quicker; sines and cosines of single angles come from the scientific calculator, and you can measure angles on screen with the online protractor.
Frequently asked questions
How do you find the angles of a triangle with three sides?
Use the law of cosines: cos A = (b² + c² − a²) ÷ (2bc). For a 3-4-5 triangle that gives A ≈ 36.87°, B ≈ 53.13° and C = 90°.
How do you find the area of a triangle?
Half base times height, or Heron’s formula from the three sides. From two sides and the included angle: area = ½ab·sin C.
How do you find a missing angle?
If two angles are known, subtract from 180°: C = 180° − A − B. Otherwise use the law of cosines or sines.
What is the ambiguous case?
With two sides and an angle not between them (SSA), the second angle can be acute or obtuse, so two triangles may fit. If the side opposite the given angle is the longer one, there is only one.
When is a triangle impossible?
When two sides together are not longer than the third (triangle inequality) or when the given angles already add up to 180° or more.
Sources and legal basis
- Wolfram MathWorld – Law of cosines
- Wolfram MathWorld – Law of sines
- Wolfram MathWorld – Heron’s formula
- Wolfram MathWorld – Triangle: incircle, circumcircle, altitudes
As of: · Editorial policy
Related tools
- Complementary Angle CalculatorComplementary angle calculator: find the complement (90° − α) and supplement (180° − α) of any angle, in degrees, minutes and seconds, or solve angle pairs.
- Pythagorean Theorem CalculatorPythagorean theorem calculator: enter two sides to get the third side, both angles, area and height – with exact square roots, working and a right-angle check.
- Angle Bisector Calculator for TrianglesAngle bisector calculator: enter the three sides of a triangle to get the length of each bisector, the half angles and how each one splits the opposite side.
- Scientific CalculatorFree online scientific calculator: sin, cos, tan in degrees or radians, log, ln, roots, powers, factorial and nCr – with step-by-step working and history.
- Online protractorOnline protractor: measure an angle on your screen with three points, or get your phone’s tilt angle from its sensor, in degrees and percent. No app needed.
- Volume CalculatorVolume calculator for 12 shapes: cylinder, box, sphere, cone, prism, horizontal tank … Mix cm, m, inches and feet – with litres, gallons, formula and sketch.
- Online CalculatorCalculator online, free and instant: type or tap and see the answer as you go – order of operations, brackets, percent, square root, steps and a history list.
- Pentagon calculatorPentagon calculator for a regular pentagon: enter the side, radius, area, perimeter, diagonal or height and get every other value with the formulas.
- Henderson Hasselbalch calculator: buffer pH and mixing ratioHenderson Hasselbalch calculator for buffer pH: pKa plus log of base over acid, or the base-to-acid ratio for a target pH, with Ka values of common acids.