Home › Calculators › Pythagorean Theorem Calculator

Pythagorean Theorem Calculator

Enter any two sides of a right triangle to find the third with a² + b² = c². You also get the exact square-root form, both acute angles, area, perimeter, the height to the hypotenuse, a scaled diagram and the full working, all calculated in your browser.

Last updated:

Solve for
Examples
c = 5
Angle α (opposite a)
—
Angle β (opposite b)
—
Area
—
Perimeter
—
Height to hypotenuse
—
Hypotenuse segments
—

Step-by-step

    Advertisement

    How to use the Pythagorean Theorem Calculator

    1. Choose what to solve: the hypotenuse c, leg a or leg b.
    2. Enter the two known sides; the missing side updates instantly.
    3. Pick units and decimal places if you need them.
    4. Press Solve triangle to confirm, then read the exact form, angles and step-by-step working.
    5. Copy the results or try one of the example triangles.

    Pythagorean theorem formulas

    FindFormulaExample
    Hypotenuse cc = √(a² + b²)a = 5, b = 12 → c = √169 = 13
    Leg aa = √(c² − b²)c = 10, b = 6 → a = √64 = 8
    Leg bb = √(c² − a²)c = 4, a = 2 → b = √12 = 2√3 ≈ 3.4641
    AreaA = a × b ÷ 2a = 3, b = 4 → A = 6
    Height to hypotenuseh = a × b ÷ c3-4-5 → h = 12 ÷ 5 = 2.4
    Angle αα = atan(a ÷ b)3-4-5 → α ≈ 36.87°, β ≈ 53.13°

    Common Pythagorean triples

    Whole-number right triangles are handy for exams and for checking square corners on site: measure 3 ft along one wall and 4 ft along the other, and the diagonal should be exactly 5 ft (or use 6-8-10 or 9-12-15 for larger layouts).

    abcSmallest angle
    34536.87°
    5121322.62°
    8151728.07°
    7242516.26°
    20212943.60°
    9404112.68°

    Special right triangles

    • 45°-45°-90°: the legs are equal and the hypotenuse is leg × √2 (≈ 1.4142). Legs of 1 give c = √2.
    • 30°-60°-90°: the sides are in the ratio 1 : √3 : 2. The short leg is half the hypotenuse.
    • Converse: if a² + b² = c² for three side lengths, the triangle is a right triangle. If a² + b² > c² it is acute, and if a² + b² < c² it is obtuse.

    Need other roots? Use the Square Root Calculator, or the Scientific Calculator for trig functions.

    Frequently asked questions

    What is the Pythagorean theorem?

    In a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the two legs: a² + b² = c². It only applies to triangles with a 90° angle.

    How do I find the hypotenuse?

    Square both legs, add them and take the square root: c = √(a² + b²). For legs 6 and 8: 36 + 64 = 100, so c = √100 = 10.

    How do I find a missing leg?

    Subtract the square of the known leg from the square of the hypotenuse, then take the square root: a = √(c² − b²). For c = 13 and b = 5: 169 − 25 = 144, so a = 12. The hypotenuse must be the longest side.

    What is simplest radical form?

    It writes a square root with the largest possible perfect square taken out. For legs 2 and 4, c = √20 = √(4 × 5) = 2√5 ≈ 4.4721. The calculator shows this exact form whenever the answer is not a whole number.

    What are Pythagorean triples?

    Sets of three whole numbers that satisfy a² + b² = c², such as 3-4-5, 5-12-13, 8-15-17 and 7-24-25. Any multiple of a triple, like 6-8-10, is also a triple. Builders use 3-4-5 to check that corners are square.

    How are the angles calculated?

    With trigonometry: angle α opposite leg a is atan(a ÷ b), and the other acute angle is β = 90° − α. The three angles of the triangle always add up to 180°.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Square Root CalculatorFind square, cube and nth roots with simplified radical form and steps.Scientific CalculatorTrig, logs, powers and more in your browser.Quadratic Equation SolverSolve ax² + bx + c = 0 with exact roots, steps, vertex and a parabola graph.Exponent CalculatorRaise any number to a power, including negative and fractional exponents.Arc Length CalculatorArc length, sector area and chord from radius and angle, or solve for the radius or angle.Cone Volume CalculatorVolume, slant height and surface area of a right cone from its radius and height.Degrees to RadiansConvert degrees to radians (° to rad) instantly, with formula and chart.Displacement CalculatorDisplacement from velocity and time, s = ut + ½at², or start and end coordinates, with steps.Roofing Calculator (Roof Squares)Estimate roof area, squares, shingle bundles and cost from pitch.Body Surface Area CalculatorCalculate body surface area in m² with the Du Bois, Mosteller, Haycock and other formulas.Area CalculatorFind the area of squares, rectangles, triangles, circles, trapezoids, ellipses and sectors.Volume CalculatorVolume of a cube, box, cylinder, sphere, cone, pyramid or capsule, in liters and gallons too.Surface Area CalculatorSurface area of a cube, box, cylinder, sphere, cone or pyramid, with lateral and base areas.Circle CalculatorEnter a circle's radius, diameter, circumference or area and get all the others.Triangle CalculatorSolve any triangle from SSS, SAS, ASA, AAS or right-triangle values: sides, angles, area, type.Slope CalculatorSlope, angle, line equation y = mx + b and distance from two points, with a graph.Midpoint CalculatorFind the midpoint of two points in 2D or 3D, or the missing endpoint from a midpoint.Distance Formula CalculatorDistance between two points in 2D or 3D with step-by-step work and an exact radical answer.Pascal's Triangle GeneratorGenerate Pascal's triangle up to row 30, highlight a row and expand (ax + by)ⁿ.Cylinder Volume CalculatorCylinder volume in liters, gallons and cubic units from radius or diameter, plus surface area.Aquarium Volume CalculatorFish tank gallons, liters and water weight: rectangle, cylinder, bow-front and hexagon tanks.Tank Volume CalculatorTotal and filled volume of cylinder, rectangular and capsule tanks in gallons and liters.Circle Skirt CalculatorWaist radius, fabric yardage and cutting layout for full, half or quarter circle skirts.Camera Field of View CalculatorAngle of view and frame size from focal length, sensor size and subject distance.Law of Sines and Cosines CalculatorSolve SSS, SAS, ASA, AAS and SSA triangles with the laws of sines and cosines, steps shown.Miter Angle CalculatorMiter saw angle for any polygon or corner, plus crown molding miter and bevel settings.Simplify Square Root CalculatorSimplify square, cube and nth roots to simplest radical form a√b, with steps.Interactive Unit CircleDrag an angle on the unit circle to see degrees, radians and exact sin, cos and tan. Printable chart.Perimeter CalculatorPerimeter of a square, rectangle, triangle, circle, trapezoid, polygon or sector, with a diagram.Point Slope Form CalculatorLine equation in point-slope form from a point and slope or two points, plus y = mx + b.Polar to Cartesian ConverterConvert polar coordinates (r, θ) to rectangular (x, y) with steps, a plot and bulk lists.Right Triangle CalculatorSolve a right triangle from any two values: sides, angles, area, perimeter and altitude.Slope Intercept Form CalculatorGet y = mx + b from two points, a point and slope, or standard form, with steps and a graph.Sphere Volume CalculatorVolume and surface area of a sphere from radius, diameter or circumference, or the reverse.Trapezoid Area CalculatorArea, perimeter, median and missing base or height of a trapezoid, with a diagram.30-60-90 Triangle CalculatorEnter one side of a 30-60-90 triangle to get the other sides, area and perimeter in exact radical form.45-45-90 Triangle CalculatorSolve an isosceles right triangle from a leg or hypotenuse, with sides in exact √2 form.Complementary and Supplementary Angle CalculatorComplement, supplement and explement of any angle in degrees or radians, with diagrams.Implicit Differentiation CalculatorFind dy/dx for any equation in x and y with steps, plus the slope and tangent at a point.Inverse Trig Calculatorarcsin, arccos, arctan, arcsec, arccsc and arccot in degrees and radians, with exact values.Polygon Area from CoordinatesArea, perimeter and centroid of any polygon from its vertex coordinates (shoelace formula).Reference Angle CalculatorFind the reference angle and quadrant of any angle in degrees or radians, with a unit circle sketch.Tangent Line CalculatorFind the tangent and normal line to f(x) at a point, with the derivative, slope and a graph.Coordinate Plane PlotterPlot points, segments and polygons on an interactive coordinate grid, or print blank planes.Coterminal Angle CalculatorList positive and negative coterminal angles and the principal angle, in degrees and radians.Heron's Formula CalculatorFind a triangle's area from its three sides with Heron's formula, semi-perimeter and steps.
    See all 46 Geometry & Trigonometry Calculators →