What Makes an Irrational Number? Definition and Examples

An irrational number is any real number that cannot be written as a fraction of two whole numbers. If you can express a number as p/q, where both p and q are integers, it’s rational. If no such fraction exists, the number is irrational. That single test is what separates the two categories, but it plays out in some surprising ways once you look at how these numbers behave.

The Fraction Test

Every number you can write as a clean fraction, like 3/4, 7/1, or 22/7, is rational. The word “rational” comes from “ratio,” and it literally means the number can be expressed as a ratio of two integers. Irrational numbers fail this test completely. There is no combination of whole numbers you can divide to land exactly on the square root of 2, or pi, or e. You can get close (22/7 approximates pi to two decimal places), but you can never get there exactly.

This is not just a practical limitation. Mathematicians have constructed formal proofs showing that certain numbers can never be expressed as fractions, no matter how large the numerator and denominator get. The most famous of these is the proof that the square root of 2 is irrational, which dates back to ancient Greece and works by showing that assuming √2 equals some fraction p/q always leads to a logical contradiction.

The Decimal Signature

The fraction test has a visible consequence: irrational numbers produce decimals that go on forever without repeating. This is the easiest way to recognize one in practice. Rational numbers either stop (0.75) or eventually fall into a repeating cycle (0.333… or 0.142857142857…). Irrational numbers do neither. Their digits keep going infinitely with no pattern that ever locks in and repeats.

A common point of confusion is that “infinite decimal” and “irrational” are not the same thing. The number 0.101010… repeating has infinite digits, but it equals 10/99, making it perfectly rational. What distinguishes irrational decimals is that no block of digits, no matter how long, ever starts cycling. Pi, for instance, has been calculated to trillions of digits, and no repeating pattern has emerged, because none exists.

Common Irrational Numbers

You’ve likely encountered several irrational numbers already, even if you didn’t realize what made them special:

  • √2 (approximately 1.41421…): The length of the diagonal of a square with side length 1. This was the first number ever proven irrational.
  • Pi (approximately 3.14159…): The ratio of any circle’s circumference to its diameter.
  • e (approximately 2.71828…): The base of natural logarithms, central to growth and decay calculations in science and finance.
  • The golden ratio, phi (approximately 1.61803…): Equal to (1 + √5)/2, this number appears in geometry, art, and nature. It has the unusual property that squaring it gives you the same result as adding 1 to it.

Most square roots are irrational. The square root of any whole number that isn’t a perfect square (like 4, 9, 16, 25) will be irrational. So √3, √5, √6, √7, √8, √10, and so on are all irrational.

Two Kinds of Irrational Numbers

Not all irrational numbers are created equal. Mathematicians split them into two categories: algebraic and transcendental. Algebraic irrationals are numbers that solve polynomial equations with whole-number coefficients. The square root of 2, for example, solves x² = 2. The golden ratio solves x² = x + 1. These numbers are irrational (they can’t be written as fractions), but they’re still “reachable” through basic algebra.

Transcendental numbers are a step beyond. They don’t solve any polynomial equation with whole-number coefficients, no matter the degree. Pi and e are both transcendental. Proving transcendence is significantly harder than proving irrationality, and for many constants, the question remains open. But transcendental numbers are actually far more common. Almost all real numbers are transcendental, even though the ones we’ve specifically identified and named are relatively few.

Where the Name Comes From

The story behind irrational numbers is one of the more dramatic episodes in mathematical history. Around 500 BC, the Pythagoreans believed that all of reality could be described through ratios of whole numbers. When Hippasus of Metapontum discovered that the square root of 2 could not be expressed as such a ratio, it threatened the foundation of Pythagorean philosophy. According to legend, Hippasus was thrown overboard from a ship and drowned for revealing the secret.

The Greek word for a ratio between two integers was “logos,” so numbers that couldn’t form such ratios were called “alogos,” meaning both “irrational” and “not spoken.” The Pythagoreans literally treated these numbers as unspeakable. That’s where the English term “irrational” originates, and it has nothing to do with the everyday meaning of being illogical or unreasonable. It simply means “not a ratio.”

How They Fit on the Number Line

One of the most counterintuitive properties of irrational numbers is how densely they’re packed along the number line. Between any two numbers you can name, no matter how close together, there are infinitely many irrational numbers. The same is true of rational numbers. Both sets are dense, meaning neither one has “gaps.”

But here’s where it gets strange: there are vastly more irrational numbers than rational ones. The rational numbers, despite being infinite, are “countable,” meaning you can theoretically list them in a sequence. Irrational numbers are uncountable. If you could somehow pick a random point on the number line with perfect precision, the probability of landing on a rational number would be zero. In a meaningful mathematical sense, the number line is almost entirely made of irrational numbers, with rational numbers sprinkled in like isolated points in an ocean.

Continued Fractions: Another Way to See It

Beyond decimals, there’s another representation that neatly separates rational from irrational numbers. A continued fraction expresses a number as a chain of nested fractions: a whole number plus 1 divided by (another number plus 1 divided by (another number plus…)), and so on. Rational numbers always produce a finite chain that stops. For example, 1/2 needs only a few nested steps. Irrational numbers produce chains that continue forever.

Some irrational numbers create beautifully simple patterns in this format. The golden ratio’s continued fraction is nothing but 1s, repeating infinitely: [1, 1, 1, 1, …]. The square root of 2 becomes [1, 2, 2, 2, …], with 2 repeating forever. This infinite, never-terminating structure in continued fractions mirrors the never-repeating decimal expansion and reflects the same underlying property: these numbers cannot be captured by any finite ratio of integers.