Pythagorean Theorem

Mathematics

This right-triangle calculator solves for any missing side dimension using the foundational Pythagorean equation a² + b² = c². Input two known side lengths to determine the hypotenuse or either perpendicular leg for construction framing, land surveying, and spatial layout projects.

Calculated Result
5

Hypotenuse c = 5

Formula: c = √(3² + 4²)

About this calculator

Squaring building corners, measuring diagonal spans, and calculating direct line-of-sight paths between two spatial points rely on right-triangle geometry. Users select whether they need to compute the hypotenuse or solve for a missing perpendicular leg, then enter two known numerical side lengths. In carpentry and architecture, this principle underlies the classic 3-4-5 framing method used by builders to ensure wall foundations and roof rafters form exact ninety-degree right angles.

The output displays the precise calculated side length alongside the expanded algebraic formula for immediate verification. Reading this distance provides the exact diagonal hypotenuse or missing baseline leg for your layout. A fundamental practical caveat is that the Pythagorean theorem applies exclusively to Euclidean right-angled triangles; if the angle between the two legs deviates from ninety degrees, you must apply the generalized law of cosines instead to calculate accurate structural dimensions.

How It Works & Formula

Formulac = √(a² + b²)

When solving for the hypotenuse c, the formula sums the squares of both perpendicular legs a and b before taking the square root: c = √(a² + b²). When solving for a missing leg, the square of the known leg is subtracted from the square of the hypotenuse: a = √(c² - b²). The computation requires that the hypotenuse is strictly longer than either individual leg.