Geometry Calculators

##### Related Content

- 3 4 5 Triangle
- 30 60 90 Triangle
- 45 45 90 Triangle
- 5 12 13 Triangle
- Arc Length Calculator
- Area of a Circle Calculator
- Area of a Hexagon
- Area of a Kite
- Area of a Parallelogram
- Area of a Pentagon
- Area of a Rectangle
- Area of a Rhombus
- Area of a Sector
- Area of a Semicircle
- Area of a Square
- Area of a Trapezoid
- Area of a Triangle
- Center of Mass Calculator
- Circumference Calculator
- Distance Formula
- Distance Formula Calculator
- Geometry Calculators
- How to Find the Height of a Triangle
- Isosceles Triangle Theorem
- Law of Cosines Calculator
- Perimeter of a Circle
- Perimeter of a Pentagon
- Perimeter of a Rectangle
- Perimeter of a Rhombus
- Perimeter of a Semicircle
- Perimeter of a Square
- Perimeter of a Trapezoid
- Perimeter of a Triangle
- Properties of a Parallelogram
- Pythagorean Theorem Calculator
- Side Angle Side Theorem
- Side Splitter Theorem
- Similar Triangles
- Special Right Triangles
- Surface Area of a Cone
- Surface Area of a Cube
- Surface Area of a Cylinder
- Surface Area of a Hemisphere
- Surface Area of a Pyramid
- Surface Area of a Sphere
- Surface Area of a Triangular Prism
- Triangle Inequality Theorem
- Types of Triangles
- Vertical Angles
- Volume of a Cone
- Volume of a Cube
- Volume of a Hexagonal Prism
- Volume of a Pyramid
- Volume of a Sphere
- Volume of Hemisphere
- Volume of Parallelepiped

Programmers and Teachers:

# Pythagorean Theorem Calculator

*a*and

*b*values below. Try it out!

## Pythagorean Theorem Lesson

#### Lesson Contents

### What is the Pythagorean Theorem?

The Pythagorean theorem gives us the relationship between the two legs (the shorter sides that form the right angle) of a right triangle and its hypotenuse (the longer, diagonal side). The formula is given as:

Where *a* and *b* are the legs and *c* is the hypotenuse. There is a variation of the Pythagorean theorem formula known as the distance formula which allows us to find the distance between two points.

### How to Hand Calculate a Hypotenuse

To solve for any of three sides in a right triangle, we simply plug two of the known sides into the Pythagorean theorem formula. Let’s go through an example of this together.

A right triangle has a hypotenuse length of 5 and one of its legs has a length of 3. What is the length of the other leg?

1.) Let’s plug the two known sides into the Pythagorean Theorem formula *√(a ^{2} + b^{2}) = c* and then solve for

*b*.

2.) √(3

^{2}+ b

^{2}) = 5

3.) √(9 + b

^{2})

^{2}= 5

^{2}

4.) 9 + b

^{2}= 25

5.) b

^{2}= 16

6.) b = 4

7.)

**The other leg of the right triangle has a length of 4.**

## How the Calculator Works

The calculator on this page is written in the programming language *JavaScript*. The JavaScript code runs in your internet browser continuously which is why the hypotenuse and triangle automatically update when the inputs change.

The code itself uses the Pythagorean theorem formula that is given in the lesson above. The inputs for *a* and *b* are squared, then added, and finally the square root of that sum is taken. This output is rounded to the fifth significant digit and displayed as the result for *c*.

The triangle is drawn by using a scaled version of the three side lengths. It draws lines along a path that uses the scaled side lengths as Cartesian coordinates. The side lengths are rounded to four significant digits and displayed next to their corresponding side.

Result :

Worksheet 1

Download.pdf

Cheat sheet

Download.pdf