Hello. In the previous lesson, you established that fractions, terminating decimals, recurring decimals, and percentages can be different exact representations of the same quantity. The crucial bridge into this lesson is that every such value is rational.
Now we will build a map of the real number system. The goal is not merely to attach one label to a number, but to recognise which sets it belongs to, justify that classification, and avoid being misled by the way the number happens to be written. This distinction will matter throughout algebra, statistics, programming, and later AI mathematics: calculations often use decimal approximations, while mathematical reasoning depends on knowing the exact type of number involved.
The number-system map
The real numbers are the numbers that can be located on the ordinary number line. They split into two non-overlapping groups:
- Rational numbers: numbers that can be written as a fraction of two integers.
- Irrational numbers: real numbers that cannot be written as such a fraction.
Within the rational numbers, some sets are nested inside others:
Here:
- denotes the natural numbers.
- denotes the integers.
- denotes the rational numbers.
- denotes the real numbers.
The irrational numbers are the real numbers outside :

The diagram includes whole numbers:
They are useful as a bridge, but this course’s learning outcome focuses on natural numbers, integers, rational numbers, irrational numbers, and real numbers.
For this course, use the convention
So is not natural here. You may encounter sources, especially in programming or set theory, that include in the natural numbers. That is a convention rather than a disagreement about the value of zero; always check the definition being used.
Classification of Numbers (Natural, Whole, Integers, Rational, Irrational, Real) - Nerdstudy
Watch “Classification of Numbers (Natural, Whole, Integers, Rational, Irrational, Real)” from Nerdstudy for a compact visual account of the nested sets. It is particularly useful for seeing why membership in a smaller set automatically gives membership in each larger enclosing set.
Watch the nested sets for natural numbers, whole numbers, and integers. Then watch the rational test, focusing on the requirement that the denominator be nonzero. Finish with irrational and real to contrast irrational numbers with the rational hierarchy. Use the convention in this lesson for natural numbers: 0 is excluded.
Definitions that classify every number
A number can have several valid classifications. For example, is natural, integer, rational, and real. These are not competing labels: they describe increasingly broad sets containing the same number.
| Set | Definition | Examples | Not examples |
|---|---|---|---|
| Natural | Positive counting numbers | ||
| Integer | Whole-number values and their negatives | ||
| Rational | Can be written as , where and | ||
| Irrational | Cannot be written as a fraction of two integers | ||
| Real | Rational or irrational | All examples in this table | Imaginary numbers, which are outside this course for now |
The definition of rational number is the central one:
The fraction does not need to look simple. For instance,
so every integer is rational. Likewise,
so zero is rational.
This explains the nesting:
- Every natural number is an integer.
- Every integer is rational.
- Every rational number is real.
But the reverse claims are generally false. For instance, is an integer but not natural; is rational but not an integer; and is real but not rational.
Decimals: the decisive pattern
The prior lesson gave you an especially useful classification test. A decimal is rational if it:
- terminates, such as ; or
- repeats eventually, such as or .
For example,
so is rational.
And from the previous lesson,
so a recurring decimal is rational even though it continues forever.
By contrast, an irrational decimal is:
- non-terminating; and
- non-recurring.
For example, the decimal expansion of begins
and continues without reaching an endpoint or settling into a repeating block. Therefore, is irrational.
The word and is essential. A decimal that goes on forever is not automatically irrational:
so it is rational.
Also, three dots alone do not prove that a decimal is irrational. You need to know whether a repeating pattern eventually appears. For example,
has increasingly long blocks of zeros and no fixed repeating cycle, so it is irrational. But a calculator display such as provides only a finite approximation; it cannot by itself establish whether an exact number is rational or irrational.
7.1 Rational and Irrational Numbers - Prealgebra 2e | OpenStax
Read OpenStax’s “7.1 Rational and Irrational Numbers” to reinforce the definition-based approach to classification. Its central message is that a number’s decimal behaviour follows from whether it can be expressed as a ratio of integers.
In the subsection “Rational Numbers,” read the rational-number discussion. Focus on why integers can always be written with denominator 1, and why terminating or repeating decimals are rational. Then, in “Irrational Numbers,” read the contrast with irrationals. Pay particular attention to the fact that non-terminating and non-repeating is the criterion. Finally, in “Classify Real Numbers,” read the classification example. Use the table as a model: a single number may correctly receive several labels.
Simplify the value before classifying it
Classification concerns the value, not merely the notation on the page. An expression may look like a fraction or contain a square root but simplify to a familiar integer.
Consider:
Although it is written as a fraction, its value is . Thus it is:
- natural;
- integer;
- rational;
- real.
Similarly,
Since , this is an integer, rational, and real, but not natural.
A square root requires care. For a non-negative integer:
- the square root of a perfect square is an integer and hence rational;
- the square root of a non-perfect square is irrational.
For example:
so is natural, integer, rational, and real. But:
is irrational and real, because is not a perfect square.
This is a classification fact, not yet a technique for calculating roots. In a later lesson, you will use prime factorisation to determine exact square and cube roots systematically.
Exact value versus approximation
Do not classify a number from an approximation unless the approximation is itself the stated number.
For instance:
The decimal terminates, so is rational:
But is irrational. The approximation is close to it, not equal to it.
Likewise,
The number is rational, whereas is irrational. Replacing an exact value by a decimal approximation can change its number classification.
A dependable classification routine
When you meet a new number, work through this routine in your notebook.
-
Simplify exact expressions first.
Evaluate obvious fractions, perfect-square roots, and cancellations before deciding anything. For example, becomes . -
Check whether it is natural.
Is it a positive integer? If yes, it is also an integer, rational, and real. -
Check whether it is an integer.
Does it have no fractional part after simplification? Negative integers and zero are integers, but not natural under this course convention. -
Establish rationality when applicable.
Look for one of the following pieces of evidence:- it is a fraction of integers with nonzero denominator;
- it is an integer, hence can be written over ;
- it is a terminating decimal;
- it is an eventually recurring decimal.
-
Classify as irrational only with evidence.
Common evidence includes , a stated non-terminating non-recurring decimal, or the square root of a non-perfect-square integer. -
State real-number membership.
Every rational and every irrational number is real.
Here is the routine applied to representative cases:
| Number | Simplify or identify | Classification |
|---|---|---|
| Positive integer | Natural, integer, rational, real | |
| Integer, but not positive | Integer, rational, real | |
| Negative integer | Integer, rational, real | |
| Fraction of integers | Rational, real | |
| Terminating decimal | Rational, real | |
| Recurring decimal | Rational, real | |
| Natural, integer, rational, real | ||
| Root of a non-perfect square | Irrational, real | |
| Non-terminating, non-recurring | Irrational, real |
Notice two important exclusions:
- A rational number is never irrational.
- An irrational number is never an integer, natural number, or rational number.
But both are real.
For your error log, add these classification-specific checks:
- I classified the notation instead of simplifying the value.
- I treated every infinite decimal as irrational.
- I treated a calculator approximation as the exact original value.
- I forgot that an integer can be written as a fraction over .
- I included as natural despite the course convention.
- I gave only one label when the question asked for all applicable sets.
Key takeaways
The real number system is organised by containment:
- Natural numbers are positive integers in this course.
- Integers include negatives, zero, and positive whole-number values.
- Rational numbers can be written as , where and are integers and .
- Terminating and recurring decimals are rational.
- Irrational numbers cannot be written as a fraction of integers; their decimals are non-terminating and non-recurring.
- Rational and irrational numbers are both real, but no number can be both rational and irrational.
- Always simplify an expression and distinguish an exact number from a decimal approximation before classifying it.
Next, you will express positive integers as products of prime factors. That will give you a structured way to analyse divisibility and will later support exact work with square roots, fractions, and algebraic expressions.
Can't find a good explanation? Sign up and we'll make it for you
Sign up