Rational and Irrational Numbers: Definitions and Examples
Every real number is either rational or irrational. The difference comes down to one question: can it be written as a fraction of two integers?
Quick answer
| Rational | Irrational | |
|---|---|---|
| Definition | Can be written as p/q (integers, q ≠ 0) | Can’t be written as a fraction of integers |
| Decimal | Ends or repeats | Never ends, never repeats |
| Examples | 5, −3, 3/4, 0.25, 0.333… | π, √2, √3, e, the golden ratio |
Rational numbers
A rational number is any number you can write as one integer divided by another (not zero). That includes:
- All integers: 7 = 7/1.
- Fractions: 2/3, −5/8.
- Terminating decimals: 0.75 = 3/4. See decimal to fraction.
- Repeating decimals: 0.333… = 1/3, and 0.1818… = 2/11.
Irrational numbers
Irrational numbers have decimals that go on forever without a repeating pattern, so no fraction of integers equals them exactly.
- π ≈ 3.14159…; see what is pi.
- √2 ≈ 1.414214…, and the square root of any whole number that isn’t a perfect square.
- e ≈ 2.718282…, the base of natural logarithms.
- φ ≈ 1.618034…, the golden ratio.
How to tell them apart
| Number | Rational or irrational? | Why |
|---|---|---|
| √16 | Rational | It’s 4 |
| √15 | Irrational | 15 isn’t a perfect square |
| 0.125 | Rational | It’s 1/8 |
| 0.272727… | Rational | Repeats: 3/11 |
| 22/7 | Rational | A fraction (only an approximation of π) |
| π + 1 | Irrational | Adding a rational to an irrational stays irrational |
Why √2 is irrational
The classic proof assumes √2 = p/q in lowest terms. Squaring gives p² = 2q², so p must be even; write p = 2k. Then 4k² = 2q², so q² = 2k² and q is even too. But then p/q wasn’t in lowest terms, a contradiction. So √2 can’t be a fraction.
Where they fit
Natural numbers ⊂ whole numbers ⊂ integers ⊂ rational numbers ⊂ real numbers. The irrational numbers fill in all the gaps between the rationals on the number line.
Frequently asked questions
What is a rational number?
A number that can be written as a fraction of two integers, with a non-zero denominator.
Is 0 rational?
Yes; 0 = 0/1.
Is pi rational?
No. Pi is irrational.
Are all square roots irrational?
No. Square roots of perfect squares, like √9 = 3, are rational.
