Hypotenuse or a missing leg from a² + b² = c², as an exact surd and a decimal
Runs in your browser. Nothing you type is sent anywhere. Checked against sources on 22 Nov 2026.The Pythagorean theorem says that in a right triangle the square on the hypotenuse equals the sum of the squares on the other two sides: a² + b² = c². Type any two sides and the calculator finds the third, as an exact square root in simplest form (√50 = 5√2) and as a decimal. Nothing is uploaded.
Checked against the tool’s code on 18 November 2026. Figures read from their sources on 22 November 2026. What we collect
Nothing is uploaded: this runs in your browser.
Type the two legs, a and b, and leave the hypotenuse c empty; 3 and 4 are already there.
Square and add them: 3² + 4² = 9 + 16 = 25.
Take the square root: c = √25 = 5. For a missing leg, subtract instead: b² = c² − a².
The calculator shows each line, the exact surd and both angles.
It also gives both acute angles, the area, the perimeter and the steps, and the other modes solve triangles that have no right angle.
Use the law of cosines once for each angle: cos A = (b² + c² − a²) / 2bc. For sides 5, 6 and 7, cos A = (36 + 49 − 25) / 84 = 0.7143, so A = 44.42°; the same rule gives B = 57.12°, and C = 180° − A − B = 78.46°. The three angles of every triangle add up to 180°.
Given sides a and b and the angle A opposite a, sin B = b·sin A / a. If that is more than 1, side a is too short to reach and there is no triangle. If it is exactly 1, there is one right triangle. Otherwise B can be that angle or 180° minus it, and both fit when a is shorter than b; the calculator then shows both triangles.
The rest of the article, and all 5 questions about Triangle Calculator: Sides, Angles and Area, With Steps, are on the Triangle Calculator: Sides, Angles and Area, With Steps page.
With two sides and the angle between them, use the law of cosines: c² = a² + b² − 2ab·cos C. For sides 8 and 5 with 60° between them, c² = 64 + 25 − 40 = 49, so c = 7. In a right triangle use Pythagoras: c² = a² + b².
Use Heron’s formula. Halve the perimeter to get s, then area = √(s(s − a)(s − b)(s − c)). For sides 5, 6 and 7, s = 9 and the area is √(9 × 4 × 3 × 2) = √216 = 6√6, about 14.697.
Two sides and an angle that is not between them (SSA) can fit two different triangles: the side opposite the angle can swing to meet the third side in two places. With a = 6, b = 8 and A = 40°, angle B is 58.987° or 121.013°. Both are shown; a drawing or one more measurement tells which is meant.
In the right-triangle mode, whole-number sides give the exact square root in simplest form, such as 2√6, next to the decimal. Every other result is computed in double precision and shown to 4 decimal places.
Rates and rules change; check the source before you rely on a figure.
Still stuck? Ask about Triangle Calculator: Sides, Angles and Area, With Steps and anybody who knows can answer. No account needed.
Same job, other tools: Percentage to CGPA Calculator – Percentage back to a CGPA on a 10-point scale, with an editable divisor.
On the related tools: CBSE Percentage Calculator (Best of Five) – Class 10 or 12 percentage over your best five subjects, with the 33% pass mark in each.