Try it with your numbers
Show every step
The label depends on the value, never on how the number is written. The numbers , and look different and all equal the integer . This guide shows how to see through the disguise, and it fits into the bigger picture on The Real Number System page.
How does classifying real numbers work?
There are five labels. Natural numbers are the counting numbers . Whole numbers add . Integers add the negatives, giving . Rational numbers are every number that can be written as with and integers and . Irrational numbers are the real numbers that cannot be written that way. Rational and irrational numbers together fill the whole number line, and that complete set is written .
The first four sets nest like boxes, each inside the next:
Irrational numbers are the other piece of . Because irrational means “real but not rational”, the two groups never overlap, and every real number lands in exactly one of them. For a closer look at that split, see Rational vs Irrational Numbers.
Integers count as rational because . That single idea explains why the chain runs upward without gaps: a number with the label “natural” automatically earns all the labels to its right.
| Number | Natural | Whole | Integer | Rational | Irrational |
|---|---|---|---|---|---|
| yes | yes | yes | yes | no | |
| no | yes | yes | yes | no | |
| no | no | yes | yes | no | |
| no | no | no | yes | no | |
| no | no | no | no | yes |
Quick check
Answer: Integers
Is zero a natural number?
It depends on the convention, and this is the one place where textbooks disagree. Most US algebra courses start the natural numbers at and create the whole numbers specifically to add . Many college and computer science texts start at . Use the definition your course uses, because zero is the only thing separating those two sets.
Everything else about zero is settled: it is whole, an integer, rational (as ) and real. It is neither positive nor negative.
The expressions , and are all just , so each one is natural, whole, an integer and rational.
The classic trap is calling every integer whole. Whole numbers stop at zero, so is an integer but not whole. Taking the absolute value of any integer does land you in the whole numbers, since , which is a handy way to remember that whole means “no negatives”.
How to classify decimals as rational or irrational

Every real number has a decimal form, and that form sorts it into one of three types:
- The decimal terminates, like : rational.
- The decimal repeats in a fixed block forever, like : rational.
- The decimal never ends and never settles into a repeating block, like : irrational.
The reasoning is short. A terminating decimal is a fraction over a power of ten, so . A repeating decimal can be shifted and subtracted to produce a fraction, as shown in Converting Repeating Decimals to Fractions.
Two traps cost points here. A long, messy-looking decimal is not automatically irrational: stops, so it is rational. And a calculator cannot prove irrationality, because it only shows a finite window of digits. A number like is irrational because its pattern keeps changing (one more zero each time) instead of repeating.
A faster test works on fractions. In lowest terms, terminates exactly when has no prime factors except and , because only those primes divide a power of . So terminates (, and the decimal is ), while repeats (, and the decimal is ).
Example 1. Classify .
Let . Multiply by to shift the decimal point one place:
Subtract the original equation to cancel the repeating tail:
So exactly. It is natural, whole, an integer, rational and real.
Are square roots rational or irrational?

The square root of a positive integer is either a whole number or irrational, with nothing in between. If the number under the root is a perfect square, simplify to an integer. If not, the root is irrational. Memorizing the perfect squares list makes this nearly instant, and the mechanics of simplifying live on the Square Roots page.
Here is why there is no middle case. In a perfect square, every prime factor appears an even number of times. Suppose in lowest terms. Then , and comparing prime exponents shows every prime in must appear an even number of times, so is a perfect square. You can test this with prime factorization: has an odd exponent on , so is irrational.
Try this: List through and mark which values are rational. Exactly 5 appear, and the gaps between them keep growing.
Fractions and cube roots follow the same logic. A root of a fraction is rational when both parts are perfect squares, so , but is irrational. Odd roots of negatives are real: , and is irrational because is not a perfect cube (see Cube Roots).
Example 2. Classify each number.
(a) . Since , the value is . It is an integer and rational, but not natural or whole.
(b) . Factor . The prime appears once, an odd count, so is not a perfect square. The root simplifies to and is irrational.
(c) . Both and are perfect squares, so the value is . It is rational but not an integer.
Quick check
Answer: : integer, rational (and real)
Why the square root of a negative number is not real
Squaring a real number never gives a negative result. A positive times a positive is positive, a negative times a negative is positive, and . So no real number squared equals , which means is not a real number. It equals , an imaginary number, and real and imaginary numbers together form the complex numbers.
The same logic covers every even root: is not real, but odd roots such as are perfectly real. A classification question that includes is often checking whether you notice it has no place in any of the five sets.
Other things that are not real numbers: is undefined, and the symbol describes unbounded growth rather than a number. The same restriction appears in the Logarithm Rules, where has no real value.
Is a rational plus an irrational number irrational?
Yes, and the proof takes two lines. Suppose where and are rational and is irrational. Then , a difference of two fractions, which is rational. That contradicts being irrational, so the sum must be irrational. So and are irrational.
Products work the same way, with one exception. A nonzero rational times an irrational is irrational, so and are irrational. But , which is rational, so the word “nonzero” matters.
and are rational, yet is irrational.
When both numbers are irrational, calculate instead of guessing. A useful pattern is the conjugate pair: . Two irrational numbers produce a rational one, which is exactly why multiplying by a conjugate removes roots from a denominator.
Classifying real numbers in expressions and fractions
Evaluate first, classify second. When an expression has several operations, follow the Order of Operations to reach a single value, then run the checks from the earlier sections.
Fractions need one extra step. A fraction with integers and and is always rational, but it is an integer only when divides . Reduce it with the steps in Simplifying Fractions: is natural, is whole, and is undefined. The trap runs the other way too: and are written like fractions but are irrational, because the top is not an integer.
Example 3. Classify (a) and (b) .
(a) Combine the roots: . Then divide:
The result is rational, not an integer, and real.
(b) Remove the parentheses: . The irrational parts cancel, leaving a number that is natural, whole, an integer, rational and real.
Quick check
Answer: Whole, but not natural
How to check your classification
Four steps catch nearly every error:
- Simplify to a single value: evaluate roots, reduce fractions, finish all operations.
- Rule out non-real values: even roots of negatives and division by zero.
- Decide rational or irrational: a terminating or repeating decimal, or a ratio of integers, means rational.
- If rational, test the chain from the inside out: positive integer (natural), then zero or positive integer (whole), then integer.
Two quick sanity checks help. First, the labels must have no gaps: if you tick “whole”, you must also tick “integer” and “rational”. Second, bracket roots between perfect squares. Since , you know , so it cannot be an integer, which agrees with the factoring result.
Where classifying real numbers is used in real life
Programming depends on it. Integer types store counting-style values exactly, while decimal (floating point) types store only finite approximations, so a computer holds a rational stand-in for or . That is why many languages report as .
Measuring and counting also use different sets. People count with natural numbers and measure with real numbers. Every recorded measurement is a terminating decimal, so it is rational, even if the true quantity is irrational: the diagonal of a unit square is exactly , but a ruler reads about . Writing very large or small measurements in Scientific Notation keeps those approximations compact.
In algebra, classification tells you where an answer can live. The equation has no rational solution, which is why irrational numbers were needed, and has no real solution, which is why complex numbers exist.
Practice problems
0 of 5 solved
- Classify as natural, whole, integer, rational or irrational.
Answer: Integer, rational (and real)
is negative, so it is not natural and not whole. It is the opposite of a whole number, so it is an integer. Every integer is rational because . - Classify .
Answer: Natural, whole, integer, rational (and real)
Since , . The value is a positive integer, so it is natural, whole, an integer and rational. - Classify .
Answer: Rational, equal to
Let . Then , so and . It is a fraction of integers, but not an integer, so it is rational only. - Classify .
Answer: Irrational, equal to
Factor: . The prime appears an odd number of times, so is not a perfect square. Then , a nonzero rational times an irrational, so it is irrational. - Classify .
Answer: : natural, whole, integer, rational (and real)
This is a difference of squares: . That equals . The product of two irrational numbers is the positive integer .
Common questions
What are the types of real numbers?
Real numbers split into rational and irrational numbers. Inside the rational numbers sit the integers, inside those the whole numbers, and inside those the natural numbers.
Is zero a real number, an integer and a whole number?
Yes to all three, and it is rational too because . Whether zero is also natural depends on your textbook: most US algebra courses start natural numbers at .
Is a repeating decimal rational or irrational?
Rational. Any decimal that repeats in a fixed block can be written as a fraction of two integers, for example .
Can a number be both rational and irrational?
No. Irrational means not rational, so the two sets share no numbers. A number that looks irrational, such as , may simplify to a rational value like .
Is pi rational or irrational?
Pi is irrational. Its decimal form never ends and never repeats. The common stand-ins and are rational approximations, not pi itself.
Is the square root of a negative number a real number?
No. No real number squared gives a negative result, so is not real. It equals , an imaginary number.