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

Fermat's Last Theorem

also known as — Fermat's conjecture, FLT
"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."
In plain English

What does Fermat's Last Theorem mean?

Fermat'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.

In symbols

What is the formula for Fermat's Last Theorem?

\forall a,b,c\in\mathbb{N}^*, \forall n\in\mathbb{N}: a^n + b^n = c^n\Rightarrow n<3
The defining formula as recorded on Wikidata. \forall a,b,c\in\mathbb{N}^*, \forall n\in\mathbb{N}: a^n + b^n = c^n\Rightarrow n<3
Reliability

Rated Empirical: grounded in studies or measurable evidence. The other 608.

Lineage
1637COINED
How it works

How does Fermat's Last Theorem work?

The 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.

Figure illustrating Fermat's Last Theorem
Fermat's Last Theorem — Unknown · Public domain · source
Where you'll see it

What are examples of Fermat's Last Theorem?

In the wild · Nov 2026 On 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. Anthropic, 9 Nov 2026
The margin note Fermat wrote in his copy of Diophantus's Arithmetica that he had discovered a truly marvellous proof which the margin was too narrow to contain, a claim historians doubt he could fully back.
Euler and the cube Leonhard Euler proved the case of the exponent three, published in his Algebra of 1770, one of the earliest exponents settled after Fermat's own proof for the fourth power.
Wiles's proof Andrew Wiles announced a proof in 1993; a gap was found and repaired with Richard Taylor, and the completed work was published in 1995, ending a 358-year search.
Types & variants

What are the types of Fermat's Last Theorem?

The modularity route§

The proof via the Taniyama-Shimura-Weil modularity conjecture for semistable elliptic curves, linked to Fermat by the Frey curve and Ribet's theorem on the epsilon conjecture.

The exponent-two contrast§

For the power two the equation is the Pythagorean theorem, with infinitely many integer solutions, so the theorem's force lies entirely in the jump to higher powers.

Why it matters

Why does Fermat's Last Theorem matter?

Fermat'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.

Working with it

How do you apply Fermat's Last Theorem?

  • Feel the contrast with Pythagoras — note that the exponent two has infinitely many whole-number solutions, so the theorem's content is that raising the power to three or more kills them all.
  • Reduce to primes and four — recognise it suffices to prove the theorem for the exponent four and for each odd prime, since every other exponent reduces to these.
  • Route through elliptic curves — understand the modern proof indirectly: a hypothetical solution would yield a non-modular elliptic curve, which Wiles showed cannot exist.
Where it breaks down

What are the limits of Fermat's Last Theorem?

The 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.

What it doesn't say

What are common misconceptions about Fermat's Last Theorem?

The 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.

Is it real?

Is Fermat's Last Theorem real?

Yes, as far as the evidence goes. Fermat's Last Theorem is rated Empirical here: it rests on studies or measurements rather than on a saying.

Rated from two sources. 609 of the 1,116 entries carry this rating. How the scale works.

Widely printedin printed books: one of 99 names in its band, of 903 measured
38 of 51entries in mathematics & proof carry the same rating

The best-known laws are the least likely to rest on measurement.

What pulls against it

What is the opposite of Fermat's Last Theorem?

Nothing here is the formal negation of Fermat's Last Theorem — these are the entry in this index that pulls the other way, so that following both at once forces a choice.

Every opposing pair in the index.

Origin

Where did Fermat's Last Theorem come from?

Conjectured 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.

How the name spread

When did people start saying “Fermat's Last Theorem”?

1800coined 16372019
How often “Fermat 's Last Theorem” appears in printed English, which takes hold around 1917 and peaks around 1999. The idea dates to 1637: the phrase took about 280 years to reach print in any quantity, which is the gap this chart measures. Source: Google Books Ngrams.
Known elsewhere as

What is Fermat's Last Theorem called in other languages?

  • Arabicمبرهنة فيرما الأخيرة
  • GermanGroßer Fermatscher Satz
  • Spanishúltimo teorema de Fermat
  • Frenchdernier théorème de Fermat
  • Hindiफेर्मा का अन्तिम प्रमेय
  • Italianultimo teorema di Fermat
  • Japaneseフェルマーの最終定理
  • Portugueseúltimo teorema de Fermat
  • RussianВеликая теорема Ферма
  • Chinese费马大定理

10 languages, as recorded on Wikidata. These are names the idea already goes by, not translations we made. The whole index by language.

Sources

Sources & further reading

  1. 1Fermat's Last Theorem, Wikipedia. — the statement for exponents above two, the 1637 margin note, the case-by-case history, and Wiles's 1993-1995 modularity proof with Taylor.secondary
  2. 2Fermat's last theorem, MacTutor History of Mathematics Archive. — the marginal claim, Euler's cube case, and the long road to Wiles's proof.secondary

Everything above traces to en.wikipedia.org and mathshistory.st-andrews.ac.uk: two secondary sources, accounts of the original rather than the original itself, which has not been located for this entry. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.

What we checked

  • 1,116entries in the tomeListed one by one on the browse page.
  • 1,116of them citing a sourceOpen any entry: its sources sit at the foot of the page.
  • 2,489source references in allEach is named, and linked wherever the source is online.