Elecmetric

Pythagorean Theorem Calculator

Enter any two sides of a right triangle, the legs a and b or a leg and the hypotenuse c, and get the third side, the two acute angles

Side a (a leg) 3, side b (the other leg) 4 gives
Side a: 3 · Side b: 4 · Hypotenuse c: 5

Estimate only. Not engineering or safety advice. Check the result against the applicable standard and the equipment data, and have a competent engineer review it before it is relied on. Terms of use.

Open in the calculator with these values

About this calculator

This page calculates side a, side b, hypotenuse c and 4 more results from side a, side b and side c. Change any value or its unit and the result updates. The steps below show the working for the default values, so you can check each line against your own method.

Limits of this calculator

Use this to find the diagonal of a rectangular panel or a trench, the length of a sloping cable run from its horizontal and vertical parts, the length of a guy wire, or the missing side of a right-angled impedance or power triangle. To work out the sides of any triangle from its three sides use the triangle calculator.

Cross-check: 38 reference cases, calculated from textbook formulas coded separately from the engine by the same author, agree with this calculator. This is not an independent review.

Verification status: Engineering reference

Engineering reference. Formula and method documented and tested against separately coded reference calculations. Not yet Verified: the evidence listed on this page is still needed.

What this calculator checks

What remains unverified

Verification register entry

Calculation authorRahul Sharma (author)
Technical reviewNo independent technical review has been carried out
Individual professional approvalNot recorded
Formula referencenot recorded
Standard and editionNot applicable: Pure mathematics or statistics; no electrical standard governs the method
Standard review stateNot applicable
Scope-screening notenot recorded
Cross-check test cases38 reference vectors (tests/reference_vectors.json)
Review datenot recorded
Next review datenot recorded
StatusEngineering reference

Needed before this calculator can be marked Verified: reviewer name, qualification and review date; exact formula reference; formula source (textbook or standard); next review date.

Formula

a² + b² = c² c = √(a² + b²) a = √(c² − b²) b = √(c² − a²) angle A = atan(a / b), angle B = atan(b / a) area = a b / 2 perimeter = a + b + c

Worked example

InputValue
Side a (a leg)3
Side b (the other leg)4
  1. Given two sides, the third is found from a² + b² = c²: c = √(a² + b²)
  2. a = 3 b = 4 c = 5
  3. Angle A = atan(a / b) = 36.86989765° Angle B = atan(b / a) = 53.13010235°
  4. Area = a × b / 2 = 6 Perimeter = a + b + c = 12

Assumptions

Use this to find the diagonal of a rectangular panel or a trench, the length of a sloping cable run from its horizontal and vertical parts, the length of a guy wire, or the missing side of a right-angled impedance or power triangle. To work out the sides of any triangle from its three sides use the triangle calculator.

Inputs and results

InputUnitAllowed or shownNote
Side a (a leg)(number)0 or more, up to 1,000,000,000,000; may be left blankEnter exactly two of the three sides and leave the one you want to find blank. All must be above zero, in one consistent unit.
Side b (the other leg)(number)0 or more, up to 1,000,000,000,000; may be left blank
Side c (the hypotenuse)(number)0 or more, up to 1,000,000,000,000; may be left blankThe longest side, opposite the right angle.
ResultUnitAllowed or shownNote
Side a(number)Shown to 10 decimal places
Side b(number)Shown to 10 decimal places
Hypotenuse c(number)Shown to 10 decimal places
Angle A, opposite side a (degrees)(number)Shown to 8 decimal places
Angle B, opposite side b (degrees)(number)Shown to 8 decimal places
Area(number)Shown to 10 decimal places
Perimeter(number)Shown to 10 decimal places

How it is calculated

Each input is converted to the base unit of its quantity, the formula above is applied in the order shown in the worked example, and each result is shown in the unit you choose. Results are held at full precision and rounded only for display, except where a step selects a standard size, as the worked example shows. A value outside its allowed range is refused with a message instead of giving a result.

How the result changes with side a (a leg)

Side a (a leg)Side aSide bHypotenuse c
0.30.344.011234224
0.750.7544.069705149
1.51.544.2720018727
3345
6647.2111025509
1212412.6491106407
3030430.2654919008

Other inputs are the same as in the worked example above.

Standards and further reading

Complex numbers, rectangular and polar form and angle conversion are standard mathematics, not the subject of a standard. Standards apply when the result feeds an electrical design, and they set the method there.

Frequently asked questions

What do I need to enter?

Enter side a (a leg), side b (the other leg) and side c (the hypotenuse). Change the unit of a value with its selector and the result stays the same.

What does this calculator assume?

The triangle has one right angle (90°); c is the longest side, opposite it, and a and b are the two legs. Exactly two sides must be entered. The side left blank is found; entering all three, or only one, is rejected. When the hypotenuse is entered it must be longer than the leg entered with it, because the hypotenuse is always the longest side. The tool works on plain numbers and does not track units: enter both sides in the same unit; the area is in that unit squared. The two acute angles add up to 90°.

Which calculators should I use next?

Common next steps are Triangle Calculator (Three Sides), Trigonometry (Sin, Cos, Tan), Complex Numbers (Rectangular and Polar) and Circle Calculator (Radius, Diameter, Circumference, Area). The related links at the bottom of this page open them.

How accurate are the results?

Every figure comes from the same tested engine as the Elecmetric calculators and is meant for estimating. 38 reference cases, calculated from textbook formulas coded separately from the engine by the same author, agree with this calculator. This is not an independent review. Check design values against the standard and the equipment data you work to.

Formula guides and reference

Longer explanations with worked examples and tables, written for the same topic.

More Engineering Mathematics calculatorsAll engineering calculatorsPythagorean Theorem (Right Triangle) Calculator in Elecmetric

Tell us how to improve this page

This opens your email app. Nothing is sent until you press send.