Vol. I a living index of named laws · est. mmxxvi no ads · no account
The Law Tomeindex of named laws
In tension

The Pythagorean Theorem vs Fermat's Last Theorem

These two pull in opposite directions: what one recommends, the other warns against. Here is what each actually claims, field by field.

The Pythagorean Theorem compared with Fermat's Last Theorem
AttributeThe Pythagorean TheoremFermat's Last Theorem
FieldMathematics & proofMathematics & proof
ReliabilityEmpiricalEmpirical
Coined—1637
Named afterPythagoras of SamosPierre de Fermat
TypeEstablishedEstablished

What they have in common

Side by side

What it claims

The Pythagorean TheoremIn a right triangle, the square of the longest side equals the sum of the squares of the other two.
Fermat's Last TheoremNo three positive whole numbers can satisfy a to the n plus b to the n equals c to the n for any power above two.

In plain English

The Pythagorean TheoremIn a right-angled triangle, the square of the hypotenuse (the side opposite the right angle) equals the sum of the squares of the two shorter sides. Knowing the two legs, you can find the longest side by squaring each, adding, and taking the square root. Geometrically, the square built on the hypotenuse has the same area as the two squares on the legs combined.
Fermat's Last TheoremFermat's Last Theorem states that no three positive integers a, b, and c can satisfy the equation a to the power n plus b to the power n equals c to the power n whenever the exponent n is an integer greater than two. For the exponent two the equation is just the Pythagorean relation, which has infinitely many whole-number solutions, the Pythagorean triples like three, four, five. Fermat's claim is that this abundance vanishes the moment the power exceeds two: no solutions exist at all. Scrawled by Pierre de Fermat around 1637 in the margin of a book, alongside the tantalising note that he had a marvellous proof too large to fit, it became the most famous unsolved problem in mathematics, resisting proof for over three hundred and fifty years.

How it works

The Pythagorean TheoremHundreds of distinct proofs exist. One classic drops a perpendicular from the right angle to the hypotenuse, splitting the triangle into two smaller ones each similar to the original; the proportions among their sides, summed, give the relation. Another arranges four copies of the triangle inside a larger square two ways, so that comparing the leftover areas forces the squares on the legs to equal the square on the hypotenuse. Euclid's Elements gives the classic version as Book I, Proposition 47.
Fermat's Last TheoremThe difficulty is that a single clean statement conceals infinitely many separate cases, one for each exponent, and no elementary method dispatches them all. Progress came case by case: Fermat himself proved the exponent four using his method of infinite descent, Euler settled the cube, and Sophie Germain, Dirichlet, Legendre, and Kummer extended the range with ever deeper number theory, Kummer covering all so-called regular primes with his theory of ideal numbers. It suffices to prove the theorem for the exponent four and for every odd prime, since any other exponent shares a factor with one of these. The final proof came from an unexpected direction: Andrew Wiles proved that certain elliptic curves are modular, which by Ribet's theorem forces a solution to Fermat's equation to be impossible.

Why it matters

The Pythagorean TheoremIt is one of the most fundamental and widely used results in all of mathematics, the basis of the distance formula, of trigonometry, and of the Euclidean notion of length in any number of dimensions. It has been proved in more ways than almost any other theorem and remains a staple of construction, navigation, and geometry.
Fermat's Last TheoremFermat's Last Theorem is the most celebrated problem in the history of mathematics, a deceptively simple statement whose three-and-a-half-century resistance drove the development of algebraic number theory, from Kummer's ideal numbers to the modern machinery of elliptic curves, modular forms, and Galois representations. Wiles's 1995 proof is a landmark of twentieth-century mathematics, uniting fields that had seemed distant and vindicating decades of work on the modularity conjecture. Wiles received the Abel Prize in 2016 for the achievement. The saga is also a lesson in mathematical humility, since Fermat's own claimed proof was almost certainly mistaken, given that the eventual proof used tools centuries beyond his reach.

Where it breaks down

The Pythagorean TheoremIt holds only in Euclidean, flat geometry and only for right triangles. On curved surfaces it fails, spherical and hyperbolic geometry modify the relation with curvature terms, and for non-right triangles the law of cosines is needed instead. Within the axioms of Euclidean geometry, however, its truth is certain and admits no counterexample; the limits are of scope, not of correctness.
Fermat's Last TheoremThe theorem is specific to exponents greater than two and to positive integers; the exponent two has infinitely many solutions, and allowing zero or non-integer values changes everything. Fermat's own marginal claim of a proof is not part of the established result and is generally regarded as unfounded, since no elementary proof is known and the accepted proof relies on twentieth-century mathematics far beyond his tools. The proof, while complete and checked, is long and highly technical, so the theorem is easy to state but understood in full by relatively few, and it settles a single equation rather than a broad family, its depth lying in the methods it required.

Commonly misread as

The Pythagorean TheoremIt applies only to right triangles in flat space, not to every triangle, and not on curved surfaces where the relation breaks down. And though named for Pythagoras, the relation was known and used in Babylon, India, and China long before him, and it is doubtful he personally proved it.
Fermat's Last TheoremThe theorem is not that the equation never balances for any exponent; for the power two it has infinitely many solutions, the Pythagorean triples, and the claim is only about powers above two. Fermat almost certainly did not possess a valid general proof, so his margin note is a historical curiosity, not evidence. And Wiles's proof does not exhibit or rule out particular numbers by search; it argues indirectly that any solution would contradict the modularity of elliptic curves, an impossibility, so the theorem holds for all exponents above two at once.

A worked example

The Pythagorean TheoremThree squared plus four squared is nine plus sixteen, which equals twenty-five, or five squared: the simplest Pythagorean triple, used since antiquity to lay out right angles.
Fermat's Last TheoremOn 9 November 2026 Anthropic said a team of 1,000 Claude Fable 5.2 agents formalized the proof of Fermat's Last Theorem in the Lean language in about 30 hours, starting from lemmas its first, 11-day formalization had already proved. The figures are the company's own. The theorem takes one line to state, yet checking its proof every step of the way by machine is still a job measured in days and hours.

Where it came from

The Pythagorean TheoremNamed after Pythagoras of Samos (about 570-495 BC), but the relation and its triples were known far earlier: in Babylonian tablets such as Plimpton 322 around 1800 BC, in the Indian Sulba Sutras, and in the Chinese Zhoubi Suanjing; the attribution to Pythagoras himself is uncertain.
Fermat's Last TheoremConjectured by Pierre de Fermat around 1637 in a margin of Diophantus's Arithmetica, with special cases proved over centuries by Fermat, Euler, Germain, Dirichlet, and Kummer, and finally proved in full by Andrew Wiles, with Richard Taylor, in work published in 1995.

Sources

Related comparisons

Questions about this pair

What is the difference between The Pythagorean Theorem and Fermat's Last Theorem?

The Pythagorean Theorem says “In a right triangle, the square of the longest side equals the sum of the squares of the other two.”; Fermat's Last Theorem says “No three positive whole numbers can satisfy a to the n plus b to the n equals c to the n for any power above two.”. They pull in opposite directions, so which applies depends on your conditions. The two are compared field by field above.

Are The Pythagorean Theorem and Fermat's Last Theorem the same thing?

No. The corpus records them as opposed: what one recommends, the other warns against.

Which one should I apply?

Whichever one's conditions your case meets. This page will not guess which that is. The Pythagorean Theorem states where it stops working, and so does Fermat's Last Theorem; both passages are above, in the entries' own words. Reading the two limits side by side answers this faster than a recommendation from a site that cannot see your situation.