CalculatorForEver
MATH / GUIDE

Can I use a² + b² = c² for any triangle?

Calculator ForEver 3 min read

The equation a² + b² = c² requires a right triangle with c opposite the 90-degree angle. A general triangle needs its angle relationship, such as the law of cosines.

Look for the missing angle term

The law of cosines is c² = a² + b² − 2ab cos C. At C = 90 degrees, cosine is zero and the extra term disappears. At another angle, dropping that term changes the side length.

Compare equal adjacent sides

With sides a = b = 5 and included angle 60 degrees, the opposite side is 5. Treating those sides as perpendicular legs would give √50, about 7.071, which describes a 90-degree included angle instead. The same two lengths do not determine a general triangle without another condition.

Use the matching input type

Calculator ForEver’s Right Triangle calculator assumes perpendicular legs. Its separate Triangle calculator accepts three side lengths and uses a general side-based method. Confirm a genuine right angle before choosing the simpler tool; a roughly rectangular drawing is not a measurement.

Keep the included-angle term in the general equation

For adjacent sides a and b with included angle C, the opposite side satisfies c² = a² + b² − 2ab cos C. When C equals ninety degrees, cosine is zero and the Pythagorean expression remains. At sixty degrees, cosine is one half, so the extra subtraction changes c. With a = b = five, c² = 25 + 25 − 50 × 0.5 = twenty-five, giving c = five. Treating the sides as perpendicular would give √50, about 7.071. Those two results describe different included angles rather than a disagreement between formulas. The right-angle condition determines when the shorter formula is applicable.

Check what information the known sides provide

Two side lengths alone can form triangles with different included angles and therefore different third sides. To determine a general triangle, obtain enough independent information, such as all three sides or two sides and their included angle. Calculator ForEver's general Triangle Calculator uses three sides, while its Right Triangle Calculator starts with two perpendicular legs. Entering arbitrary adjacent sides into the right-triangle tool imposes a ninety-degree angle even if your source never supplied one. If a diagram contains a right-angle marker, that can justify the model for an ideal geometry problem. A drawing that merely appears square or horizontal does not establish the condition for a measured object.

Use the converse for an exact three-side check

For positive side lengths forming a triangle, order them so c is longest and compare c² with a² + b². Equality identifies an exact theoretical right triangle. A larger c² gives an obtuse largest angle; a smaller value gives an acute triangle. The triangle inequality must hold before any classification. For physical measurements, a small discrepancy can reflect rounding or uncertainty, so retain the recorded precision rather than declaring an exact right angle from an arbitrary tolerance. The calculation does not set an engineering acceptance limit. If the model supports a right triangle, verify a derived side by substituting it back into the original squared equation, with consistent length units and sufficient intermediate precision.

Questions about this calculation

Can side lengths verify a right angle?

Yes for exact theoretical lengths: the longest-side square must equal the sum of the other two squares.

Try these values in the calculator

Find a hypotenuse and acute angles from two legs.

Use the right triangle calculator

References

More right triangle questions

Related tools