NathanTools
NathanTools
Text Tools 13
SEO Tools 7
Image Tools 19
YouTube Tools 38
Device Tests 4
PDF Tools 10
Calculators 52
Electrical Calculators 10
Time Tools 7
Random Tools 9
Converters 14
Developer Tools 11
Hash Generators 5
Password & Security 2
Network & DNS 3
Website Tools 9

Pythagorean Theorem Calculator

Enter two sides of a right triangle to find the third, with the working, the angles and the area.

100% free No sign-up Works on any device

–

–

    –Angle A (opposite a)
    –Angle B (opposite b)
    –Area
    –Perimeter

    Updated November 2026 · Calculated in your browser

    How to use the Pythagorean theorem calculator

    1. Choose which side to find: the hypotenuse or one of the legs.
    2. Enter the two sides you know, in any unit.
    3. Read the missing side with the working, plus both acute angles, the area and the perimeter.

    Formulas

    c = √(a² + b²) a = √(c² − b²) b = √(c² − a²)

    Example: a ladder 5 m long leans against a wall with its foot 1.5 m out. The height it reaches is √(5² − 1.5²) = √(25 − 2.25) = √22.75 ≈ 4.77 m.

    Common Pythagorean triples

    3, 4, 5✓
    5, 12, 13✓
    8, 15, 17✓
    7, 24, 25✓
    20, 21, 29✓
    9, 40, 41✓
    12, 35, 37✓
    11, 60, 61✓

    Everyday uses

    • TV and screen sizes: a 16:9 screen 48 in wide and 27 in tall has a diagonal of √(48² + 27²) ≈ 55 in.
    • Squaring a corner: mark 3 ft along one wall and 4 ft along the other; the diagonal should be exactly 5 ft.
    • Distance on a map: 3 km east and 4 km north is 5 km in a straight line.

    For other angles and sides use the trigonometry calculator; for roots, the square root calculator.

    Frequently asked questions

    In a right triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the other two sides: a² + b² = c². A triangle with legs 3 and 4 has a hypotenuse of √(9 + 16) = 5.

    Rearrange the formula: a = √(c² − b²). If the hypotenuse is 13 and one leg is 5, the other leg is √(169 − 25) = √144 = 12. The hypotenuse must be the longest side, or there's no triangle.

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

    Only for right triangles. For other triangles use the law of cosines, c² = a² + b² − 2ab cos C, which becomes Pythagoras when C = 90° because cos 90° = 0.

    Square the two shorter sides and add them. If the sum equals the square of the longest side, the angle opposite it is 90°. If it's larger, the triangle is acute; if smaller, it's obtuse.
    All Calculators
    Age Calculator Find your exact age in years, months and days. BMI Calculator Calculate body mass index from height and weight. Loan Calculator Monthly payment, total interest and amortization schedule. Mortgage Calculator Monthly mortgage payment with taxes, insurance and PMI. Time Calculator Add or subtract time, or find the time between two times or dates. Date Calculator Days between two dates, or add and subtract days from a date. Scientific Calculator Trigonometry, logarithms, powers, roots and memory. Percentage Calculator Percent of a number, percentage change, increase and decrease. Tip Calculator Work out the tip and split the bill between friends. GPA Calculator Semester and cumulative GPA, weighted or unweighted. Grade Calculator Weighted course grade and the final exam score you need. Fraction Calculator Add, subtract, multiply and divide fractions with steps. Compound Interest Calculator Grow savings with compound interest and monthly deposits. Car Loan Calculator Monthly car payment with trade-in, sales tax and fees. Calorie Calculator Daily calories to maintain, lose or gain weight. TDEE Calculator Total daily energy expenditure at every activity level. BMR Calculator Basal metabolic rate with three formulas. Macro Calculator Daily protein, carbs and fat in grams for your goal. Body Fat Calculator Body fat % from a tape measure (US Navy method). Due Date Calculator Pregnancy due date and how far along you are. Ovulation Calculator Fertile window and ovulation dates for the next 6 cycles. Inflation Calculator What US dollars are worth across years, 1913 to today. Sales Tax Calculator Add tax to a price, take it out, or find the rate. Discount Calculator Sale price, savings and stacked discounts. Margin Calculator Profit margin, markup and selling price. Concrete Calculator Cubic yards and bags for slabs and post holes. Square Footage Calculator Area of rooms and plots in sq ft and m². Paint Calculator Gallons or litres of paint for a room. Time Card Calculator Weekly hours worked, overtime and pay. Sleep Calculator When to go to bed or wake up, in sleep cycles. Graphing Calculator Plot functions and explore them with pan and zoom. Roman Numeral Converter Convert numbers to Roman numerals and back. Square Root Calculator Square, cube and nth roots, simplified. Ratio Calculator Simplify ratios, solve proportions, split amounts. Average Calculator Mean, median, mode and weighted average. Standard Deviation Calculator Sample and population SD and variance, with steps. Quadratic Formula Calculator Solve ax² + bx + c = 0 with steps and a graph. Percent Error Calculator Percent error and percent difference, with steps. LCM & GCF Calculator Least common multiple and greatest common factor, with steps. Log Calculator Logarithms in any base, natural log and antilog. Exponent Calculator Powers with negative, fractional and huge exponents. Factorial Calculator Exact n! up to 10,000, double factorial and gamma. Remainder Calculator Quotient and remainder with long division steps. Scientific Notation Calculator Convert and calculate in scientific and E notation. Trigonometry Calculator sin, cos, tan and inverses in degrees or radians. Complex Number Calculator Add, multiply, divide and convert complex numbers. Exponential Growth Calculator Growth and decay, doubling time and half-life. Multiplication Table Printable times tables up to 30 × 30, plus a quiz. Decimal to Fraction Converter Decimals, fractions and percents, including repeating decimals. Simple Interest Calculator I = P × r × t, solving for any value. APY Calculator APR to APY (effective annual rate) and back.
    Esc
    ↑ ↓ to moveEnter to open