Home / Learn / Maths / Pythagoras proof playgroundTool #L69 (formerly #1152)

Pythagoras theorem playground: drag a right triangle, see four proofs and make Pythagorean triples

Drag a right triangle and watch the squares on its sides add up. Slide through four visual proofs (rearrangement, Bhaskara, similar triangles, Baudhayana) with your own side lengths, and list Pythagorean triples.

Keep it one tap away for everyday use.

Bookmark Pythagoras proof playground?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Drag
  2. Squares
  3. Proofs
  4. Triples
Nothing is uploadedWorks offline once open

Squares on the sides

Drag the two blue corners to change the legs a and b. The right angle stays at the corner marked with a small square.

a
b

Why it is true: four proofs

tstart

    Pythagorean triples

    Whole numbers a, b, c with a² + b² = c². A primitive triple has no common factor; the others are its multiples.

    Tap a row to draw that triangle above.

    Try this

    • Make a = 6 and b = 8. Is c a whole number? Now try a = 6, b = 7.
    • In the Rearrange proof, slide t slowly. The four triangles only slide; the empty space changes shape but never changes area.
    • Set a = b. Bhaskara's middle square disappears, and Baudhayana's square-doubling picture appears inside it.
    • Pick m = 5, 6 and 7 in the Class 8 rule. Check each triple in the triangle above.

    Check yourself

    Fresh questions every time. Give answers to 2 decimal places when they are not whole. Nothing is saved.

    What it does

    Pythagoras’ theorem says that in a right triangle the square on the hypotenuse equals the sum of the squares on the other two sides: a² + b² = c². This playground lets you see that. Drag the corners of a right triangle and the three squares on its sides grow and shrink with their areas written inside, so you can check the sum for any shape you like.

    Then it shows why it is true with four short visual proofs that use your own side lengths, and it lists Pythagorean triples, whole numbers such as 3, 4, 5 that fit the rule. It fits the Class 8 topic on squares and square roots (Pythagorean triples), the Class 7 and Class 10 work on right triangles and similar triangles, and is useful for the right-triangle problems in Class 10 trigonometry.

    Next, solve quadratics that come out of right-triangle problems with the quadratic explorer, draw your own constructions with interactive geometry construction, or explore the number patterns behind triples in the number theory toolkit.

    How to use it

    1. Drag the blue corners (or use the a and b sliders, or type exact values). The right angle stays fixed.
    2. Read the three areas: a² in one colour, b² in another and c² on the hypotenuse. The line under the picture adds them for you and gives c as a square root.
    3. Pick a proof: Rearrange, Bhaskara, Similar triangles or Baudhayana. Each draws its own figure for your a and b and lists the steps with your numbers in them. In Rearrange, slide t to move the triangles.
    4. In Pythagorean triples, choose the largest hypotenuse to list, tick Primitive triples only to hide multiples, and try the Class 8 rule 2m, m² − 1, m² + 1. Tap a row to draw that triangle.

    The four proofs in one line each

    • Rearrange: the same four triangles in the same big square leave either one square c² or two squares a² and b² empty, so the two must be equal.
    • Bhaskara: four triangles and a small square of side b − a fill the square on c, so c² = 2ab + (b − a)² = a² + b².
    • Similar triangles: the height to the hypotenuse makes two smaller triangles similar to the big one, which gives a² = cp and b² = cq.
    • Baudhayana: the square on the diagonal of a square has twice its area. The Sulba Sutra rule for altar building states the general case for rectangles too.

    A worked example

    Start with the page’s example, a = 3 and b = 4.

    • a² = 9 and b² = 16, so c² = 25 and c = 5: a whole number, so (3, 4, 5) is a triple.
    • Rearrange: the big square has side 7 and area 49. Four triangles of area 6 each cover 24, leaving 25 = c².
    • Bhaskara: the small square has side 1, so c² = 4 × 6 + 1 = 25.
    • Similar triangles: the height cuts the hypotenuse into p = 1.8 and q = 3.2, and 5 × 1.8 = 9 = a², 5 × 3.2 = 16 = b².

    Now type a = 6, b = 7: c² = 85 and c = √85 ≈ 9.22, not a whole number, so (6, 7, c) is not a triple even though the theorem still holds.

    Check yourself

    Four fresh questions each time: a hypotenuse, a ladder against a wall, the diagonal of a rectangle and a triple from the Class 8 rule. Type a number, press Check, and open the worked answer if you need it. Nothing is saved.

    FAQ

    Does it work for triangles without a right angle? No. For other triangles a² + b² is bigger or smaller than c², which is how you can test whether a triangle is right-angled (the converse of the theorem).

    What is a primitive triple? One whose three numbers share no common factor, like 5, 12, 13. Doubling it gives 10, 24, 26, which is a triple but not primitive.

    Is this from the NCERT book? It covers the same ideas but the pictures, examples and questions are fibub’s own. fibub is not part of NCERT.

    Where the numbers come from

    • Pythagoras' theorem and its classic proofs (rearrangement, Bhaskara II's figure, similar triangles, the square-doubling rule of the Baudhayana Sulba Sutra) are standard mathematics. Pictures and wording are fibub's own.
    • Triples come from Euclid's formula; checked by brute force against every triple with hypotenuse up to 100 (16 primitive). Proof figures checked by their areas.

    Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

    Last updated 2026-11-09.

    Change log for Pythagoras proof playground

    1. Add #1152 Pythagoras proof playground Details on GitHub

    Every change to fibub

    Related tools

    Number theory toolkit #T372 Test whether a huge number is prime, factorise it, find gcd and lcm with the extended Euclid table, work out modular powers and inverses, solve Chinese remainder systems, and expand continued fractions with their convergents. Exact whole-number arithmetic, in your browser. Interactive geometry construction #T381 Build ruler-and-compass constructions: points, segments, lines, circles, midpoints, perpendiculars, parallels, bisectors and intersections, with distances, angles and areas that update live when you drag a point. Download SVG, PNG or CSV. Runs in your browser. Quadratic explorer #L68 Slide a, b and c and watch the parabola move: vertex, roots and the discriminant update live, completing the square is drawn with tiles, and the middle term is split for you. With fresh practice questions. Trig ratio explorer #L70 Drag the angle of a right triangle and see sin, cos and tan as ratios of its sides, with the exact values at 0°, 30°, 45°, 60° and 90°, the identities checked live, and the full unit circle for Class 11. Heights and distances #L71 A tower, one or two observers and their lines of sight. Drag the person, set the angles, and get the height, the distance or the angle of elevation with every step of the trigonometry shown. HCF and LCM #L72 Type two numbers and watch their prime factor trees grow. Shared primes land in the middle of a Venn picture to give the HCF; all of them give the LCM. Euclid's division steps and the HCF × LCM check are shown too. Similar triangles #L76 Drag a line parallel to one side of a triangle and watch AD/DB = AE/EC hold. Test two triangles for similarity with AA, SSS or SAS, and find a tree's height from its shadow. Section formula #L77 Drag two points on a grid and see the distance formula, the point that divides the segment in any ratio m : n, and the midpoint, worked with your numbers. Add a third point for the centroid and the area of the triangle. Circle sectors #L78 Drag the edge of a sector to change its angle and get the sector area, arc length, perimeter and segment area with π = 22/7, 3.14 or exact. Drag a point outside a circle to see its two equal tangents meet the radii at right angles. Heron's formula explorer #L81 Slide three side lengths (or drag a corner) and see the triangle drawn, or why the sides can't make one. The area by Heron's formula is worked step by step and checked against ½ × base × height. Quadrilateral explorer #L83 Drag four corners on a grid and see the sides, the angles adding to 360°, the diagonals and the area, and whether the shape is a square, rectangle, rhombus, parallelogram, kite or trapezium (and which of those it also is). Squares and cubes #L114 Grow a square out of odd-numbered L-shapes and a cube out of unit cubes. Test any number for being a perfect square or cube from its prime factors, find the smallest number that makes it one, and hunt numbers like 1729 that are a sum of two cubes in two ways.

    Also related: Square root finder, Coordinate treasure hunt, Number line zoom, Square root spiral, Converse checker, Solids lab, Combined solids, Triangle from coordinates, Irrational √2