Everyone knows the 3-4-5 right triangle. But there is much more hidden in those three numbers. The sides of a right triangle determine its area, perimeter, and inradius through a collection of unexpectedly simple identities. For integer-sided right triangles, these identities lead naturally to number theory and rational points on a circle.
1. Can perimeter and hypotenuse determine the area?
Let the legs of a right triangle be a and b, its hypotenuse c, its perimeter P, and its area K. We know that:
a^2+b^2=c^2,\qquad P=a+b+c,\qquad K=\frac{ab}{2}Now square the sum of the legs. Using the Pythagorean theorem, we obtain:
(a+b)^2=a^2+b^2+2ab=c^2+4KBecause the sum of the legs is P minus c, the same identity becomes:
(P-c)^2=c^2+4KExpanding and simplifying gives our first surprising formula:
\boxed{K=\frac{P(P-2c)}{4}}Knowing only the perimeter and the hypotenuse determines the area of a right triangle. For a 5-12-13 triangle, the perimeter is 30, so the area is:
K=\frac{30(30-26)}4=30The formula also works in reverse: if we know the perimeter and area, we can recover the hypotenuse.
\boxed{c=\frac P2-\frac{2K}{P}}2. How large a fraction of the perimeter is the hypotenuse?
The triangle inequality tells us that the hypotenuse is smaller than the sum of the legs. Therefore, it occupies less than half of the perimeter. But we can also find a sharp lower bound.
c\lt a+b\quad\Longrightarrow\quad\frac cP\lt\frac12By the Cauchy-Schwarz inequality, the sum of the legs cannot exceed the square root of 2 times the hypotenuse:
a+b\leq\sqrt{2(a^2+b^2)}=\sqrt2\,cConsequently, the perimeter is at most (1 + square root of 2) times the hypotenuse. Combining the two inequalities gives:
\boxed{\sqrt2-1\leq\frac cP\lt\frac12}The lower bound is achieved when the legs are equal, so the triangle is an isosceles right triangle. The upper bound is approached by very thin right triangles. For integer-sided right triangles, the lower inequality is strict too, because an isosceles right triangle cannot have all three sides integers.
3. The inradius appears almost automatically
Let r denote the radius of the circle tangent to all three sides of the right triangle. Its center lies a distance r from each leg. The tangent segments along the two legs show that:
r=\frac{a+b-c}{2}Since the perimeter is a + b + c, this simplifies to a particularly memorable identity:
\boxed{r=\frac P2-c}\qquad\text{or}\qquad\boxed{c+r=\frac P2}Substituting into our area formula gives:
\boxed{K=\frac{Pr}{2}}This is the familiar area-equals-inradius-times-semiperimeter formula, now emerging directly from the Pythagorean theorem. For the 3-4-5 triangle, P is 12 and r is 1; the area is 6.
4. Can we recover both legs?
Suppose the perimeter P and hypotenuse c are known. We already know the sum of the legs and, from the area formula, their product:
a+b=P-c,\qquad ab=\frac{P(P-2c)}2Thus a and b are the two roots of the quadratic equation:
t^2-(P-c)t+\frac{P(P-2c)}2=0Its discriminant simplifies to:
(P-c)^2-2P(P-2c)=c^2+2Pc-P^2Therefore:
\boxed{a,b=\frac{P-c\pm\sqrt{c^2+2Pc-P^2}}2}The perimeter and hypotenuse determine the two legs, up to interchange. For integer-sided triangles, the expression under the square root must be a perfect square, and the resulting roots must be positive integers. This gives a quick arithmetic test for proposed perimeter-hypotenuse pairs.
5. Three different right triangles with perimeter 120
Can different Pythagorean triangles have the same perimeter? Yes. A striking example, noted in a 1979 paper by J. H. Jordan, Ray Walch, and R. J. Wisner, is perimeter 120:
| Legs | Hypotenuse | Perimeter | Area | Inradius |
|---|---|---|---|---|
| 20, 48 | 52 | 120 | 480 | 8 |
| 24, 45 | 51 | 120 | 540 | 9 |
| 30, 40 | 50 | 120 | 600 | 10 |
The three triangles share a perimeter but have different hypotenuses, areas, and inradii. The area formula makes the pattern transparent: with P fixed, the area decreases linearly as c increases.
6. Why Euclid’s formula explains the arithmetic
Every primitive Pythagorean triple, after possibly swapping its legs, can be written using integers m and n with m greater than n, gcd(m,n) equal to 1, and m and n of opposite parity:
a=m^2-n^2,\qquad b=2mn,\qquad c=m^2+n^2Multiplying all three sides by a positive integer k produces every integer-sided right triangle. Its perimeter is:
\boxed{P=2km(m+n)}So counting Pythagorean triangles of a prescribed perimeter becomes a problem about integer factorizations, together with coprimality and parity restrictions. For example, the 3-4-5 triple comes from m = 2 and n = 1. Scaling by k = 10 produces 30-40-50, one of our perimeter-120 triangles.
7. From integer triangles to rational points on a circle
Divide each side by the hypotenuse. The normalized legs give a rational point on the unit circle:
x=\frac ac,\qquad y=\frac bc,\qquad x^2+y^2=1Conversely, every rational point in the first quadrant of the unit circle with both coordinates positive produces an integer-sided right triangle after clearing denominators.
To parametrize those points, draw a line of rational slope t through the point (-1, 0). Its second intersection with the unit circle has coordinates:
\boxed{x=\frac{1-t^2}{1+t^2},\qquad y=\frac{2t}{1+t^2}}When t = n/m is a positive rational number less than 1, clearing denominators yields exactly Euclid’s expressions. This is the geometric reason Pythagorean triples admit such an elegant parametrization.
8. A final challenge: can two different triangles share both area and perimeter?
We have already seen that different right triangles can share a perimeter. But can two noncongruent right triangles have both the same perimeter and the same area?
No. Our first formula shows that the perimeter and area determine the hypotenuse:
c=\frac P2-\frac{2K}{P}Once P and c are fixed, the quadratic equation in Section 4 determines the legs, up to their order. Thus two right triangles with the same perimeter and area must be congruent. This is true for all right triangles, not just those with integer sides.
What began with the familiar Pythagorean theorem has led us through sharp inequalities, the incircle, quadratic equations, integer factorization, and rational points on a circle. The interesting part is not any single formula: it is how the formulas fit together.
Further reading
- J. H. Jordan, Ray Walch, and R. J. Wisner, Triangles with Integer Sides, American Mathematical Monthly 86 (1979), 686-689. The article includes the three perimeter-120 examples.
- For a related counting question, see our article How Many Triangles Can You Make with a Fixed Perimeter?
- Euclid’s formula for Pythagorean triples also follows from multiplying complex numbers; see How to Generate Infinitely Many Pythagorean Triples Using Complex Numbers. For a different pattern hidden in 3² + 4² = 5², see From Pythagorean Runs to Cubic Runs.

Leave a Reply