The sets nest like boxes, each one sitting inside the next:
The irrationals fill whatever part of the rationals leave empty. Everything below hangs on a handful of ideas: why each box exists, how to sort a number into the right one, and what happens when rational and irrational numbers meet.
What Is the Real Number System?
A real number is any quantity you can pin to an exact point on a number line. That covers counting, measuring, debts, fractions, roots and . The system is built from five named sets, and the table shows how each one grows from the last.
| Set | Symbol | Members | Example |
|---|---|---|---|
| Natural | |||
| Whole | |||
| Integers | |||
| Rational | with integers, | ||
| Irrational | real, but not rational |
Irrational numbers are not rare curiosities. The rationals are packed everywhere on the number line, yet they form a vanishingly thin slice of it: almost every real number is irrational. The famous ones (, , ) are just the few you meet in class.
One convention to check in your own course: some books start the natural numbers at . Most US algebra courses start at , and this page does too. For more practice sorting numbers into these sets, see the lesson on classifying real numbers.
Quick check
Answer: True
Why the Real Number System Has Layers
Each layer exists because an operation broke the one before it. Seeing that makes the whole structure feel inevitable instead of memorized.
- has no answer among the whole numbers, so the integers add negatives. The rules for this are in subtracting integers.
- has no answer among the integers, so the rationals add fractions.
- has no solution among the rationals, so the irrationals fill the gap.
That last step is the deepest. The rationals look complete, but they have holes. Start with Every term is rational, and the squares climb toward : , , . The point they approach is not rational.
The real numbers contain every such limit, so the number line has no holes. This is why , which is negative at and positive at , must cross zero somewhere between them. Inside the rationals it jumps over zero without ever landing on it. Calculus depends on this gap-free property.
How to Classify a Number in the Real Number System
Run any number through three questions in order:
- Can it be written as a ratio of integers, or does its decimal end or repeat? If not, it is irrational.
- If it is rational, does it simplify to an integer? If not, it is a fraction or decimal only.
- If it is an integer, is it negative, zero or positive? Negatives are integers only, zero is whole too, positives are natural too.
The trap that costs the most points is judging a number by how it looks instead of what it equals. Simplify first.
The number is whole, an integer, rational (as ) and real. It is natural only in books that start counting at .
Example 1. Classify , and .
For , simplifying the fraction gives . That is an integer, so it is also rational and real. It is not whole or natural, because it is negative.
For , write , so . A rational number times an irrational one is irrational (more on that shortly). It is real and irrational only.
For , take roots top and bottom: . This is rational and real, but not an integer. A fraction-looking number turned out to be an integer, and a root-looking number turned out to be a plain fraction. Knowing the perfect squares up to about makes these checks fast.
Are Repeating Decimals Rational Numbers?

Yes, every one of them. A decimal is rational exactly when it ends or repeats. Terminating decimals are easy: .
The reason a fraction must end or repeat is a counting argument. Long division by can leave only different remainders. After at most steps a remainder repeats, and from then on the digits cycle. Check with : the cycle has length , the maximum possible for .
To reverse the process, multiply by a power of that shifts one full cycle past the decimal point, then subtract.
Example 2. Write as a fraction.
Let . The cycle has two digits, so multiply by :
Subtract from both sides to cancel the repeating tail:
Check: The full method, including decimals with a non-repeating start, is covered in converting repeating decimals to fractions.
The same trick settles a famous argument. Let , so and , giving . The two are not “very close”. They are the same point, because no real number fits between them.
Try this: Write as a fraction, reduce it, then confirm by dividing the numerator by the denominator on a calculator.
Why Is the Square Root of 2 Irrational? A Short Proof
Suppose with already in lowest terms, so and share no common factor. Square both sides and clear the denominator:
That makes even, so is even (an odd number squared is odd). Write . Then , so , which makes even too. Now and are both even, contradicting lowest terms. The assumption was impossible, so is not rational.
The proof generalizes through prime factorization. For a positive integer , is rational only when every prime in appears an even number of times. Otherwise it is irrational. A calculator display can never prove irrationality, since it shows only a finite number of digits.
Example 3. Decide whether is rational, and simplify it.
Factor: . The prime appears three times, an odd count, so is irrational. Pull out the squared pairs:
This pairing idea is the engine behind simplifying any radical, and the square roots lesson builds on it.
Quick check
Answer: Irrational,
Rational Plus Irrational: What Do You Get?

Rational with rational stays rational under addition, subtraction, multiplication and division (by a nonzero number). Mixing the two types follows two clean rules. A rational plus an irrational is irrational. A nonzero rational times an irrational is irrational.
The reason is a one-line contradiction. If with and rational, then would be rational, so was not irrational after all. The same move works for products, using division in place of subtraction.
Two irrationals have no such rule, and that is where students slip. All of these are rational:
Also watch the word nonzero: , which is rational. A handy case is conjugates: . Two irrational factors, a rational product. This is the trick for rationalizing denominators. For more on telling the two families apart, see rational vs irrational numbers.
Quick check
Answer: Irrational
Properties of the Real Number System on the Number Line
The reals obey a short list of rules that every algebra manipulation relies on: addition and multiplication are closed, commutative and associative, multiplication distributes over addition, and are the identities, every real number has an opposite, and every nonzero real number has a reciprocal. The lesson on commutative, associative and distributive properties shows each one in use.
The reciprocal rule is what separates the reals from the integers. In you cannot divide by . In you always can, unless the divisor is .
Two further features matter. First, order: any two real numbers can be compared, so exactly one of , , holds, and absolute value measures the distance between them. Second, density: between any two reals sit infinitely many rationals and infinitely many irrationals. Between and you can find the rational and the irrational . For fractions, the midpoint works every time.
A consequence worth remembering: there is no “next” real number after . Asking for the smallest number greater than has no answer, which is why inequalities are written as intervals like instead of lists.
What Numbers Are Not in the Real Number System?
Three things commonly get mistaken for real numbers. The first is the square root of a negative number. No real number squares to , because squares of reals are never negative. Such roots live in the complex numbers: . This is exactly why a quadratic with a negative discriminant has no real solutions. You can see it on the quadratic formula practice problems.
Every real number is also a complex number, namely . The real system is a subset of the complex system, not a rival to it.
The second is division by zero. is undefined because it would need a real with , and no such exists. The third is infinity. The symbol describes a quantity that grows without bound. It is not a point on the line, which is why interval notation always puts a parenthesis next to it.
Where the Real Number System Shows Up in Real Life
Every measurement you ever record is rational, because instruments report finite decimals. The reals describe the exact quantity underneath. A square tile inches on a side has a diagonal of exactly inches. The tape measure shows about . Keep the exact form while you calculate and round once at the end, guided by significant figures.
Approximations are where the real number system bites. The fraction is often taught as a stand-in for , but it is off by about and is not equal to . A circle with radius meters gets a circumference error of roughly meters with that shortcut, which is enough to matter on a construction site.
Computers store numbers in binary, so most decimal fractions are stored as close rational approximations. In many programming languages prints as . Programmers compare values within a small tolerance instead of testing equality, a direct consequence of the real number system being more than any machine can hold exactly.
Practice problems
0 of 5 solved
- Which of these sets contain : natural, whole, integer, rational, irrational, real?
Answer: Integer, rational, real
1. is negative, so it is not natural or whole. 2. It is a counting number's opposite, so it is an integer. 3. Every integer is , so it is rational, and every rational number is real. It is not irrational. - Write as a fraction.
Answer:
1. Let , so . 2. Subtract: , so . 3. Then . - Which one is irrational: , , , ?
Answer:
1. , which is rational. 2. is a ratio of integers, and repeats, so both are rational. 3. has an odd power of , so is irrational. - Write as a fraction in lowest terms.
Answer:
1. Let . Then and . 2. Subtract: , so . 3. . - Is rational or irrational? Find its value.
Answer: Rational, equal to
1. Multiply the conjugates: . 2. Compute . 3. The product is , a rational number, even though both factors are irrational.
Common questions
What is the real number system in simple terms?
It is the set of all numbers that can be plotted on a number line. It combines the rational numbers (fractions and decimals that end or repeat) with the irrational numbers (decimals that never end and never repeat).
Is zero a real number?
Yes. Zero is a whole number, an integer, a rational number () and a real number. It is not a natural number in the common US convention where counting starts at .
Are all real numbers rational?
No. Numbers such as , and are real but cannot be written as a ratio of integers. In a precise sense, almost every real number is irrational.
Are imaginary numbers part of the real number system?
No. Imaginary numbers like do not lie on the real number line. Real numbers sit inside the larger complex number system as the numbers with .
Is equal to ?
No. is a rational approximation, about , while is about and irrational. The two differ by roughly .
Is a real number, and does it equal 1?
It is real, and it equals exactly. If then , so . No real number fits between them, so they are the same point.