Established 2026  ·  Free Educational Resources for All

Mathematics · Number Systems

Number Systems: Natural, Whole, Integer, Rational & Real Numbers

Build the whole family of number sets one step at a time: natural, whole, integers, rational, irrational and real numbers. Learn how to tell them apart, why √2 is irrational, and how prime, composite and co-prime numbers fit in.

EDUSAMBAM Editorial Team|19 min read|Last updated: November 2026|Mathematics
🔊 LISTEN TO THIS ARTICLE
SAVE YOUR EYES • IMPROVE YOUR LISTENING
Listen to the article instead of relying only on continuous screen reading.
Ready to read the article.

“Number systems” is not one single thing. It is a family of sets of numbers, each one built by relaxing a rule of the set before it. Counting numbers cannot answer 3 − 5, so we add negatives. Whole numbers cannot answer 3 ÷ 4, so we add fractions. Fractions cannot measure the diagonal of a square, so we add irrational numbers. This guide builds the family one set at a time, shows how to tell the sets apart (including how to prove that √2 is irrational), and then covers the other ways we sort numbers: by sign, by even and odd, and as prime, composite or co-prime.

1.What Is a Number System?

A set is a collection of things. A number system is a set of numbers with a shared property, and it has a name. Some sets sit completely inside bigger ones, like Russian dolls. Mathematicians use capital letters for the main sets: ℕ for natural numbers, ℤ for integers, ℚ for rational numbers and ℝ for real numbers. The symbol ∈ means “belongs to”, so 5 ∈ ℕ is read “5 belongs to the natural numbers”, and the symbol ⊂ means “is inside”.

Nested families of numbers A large box for real numbers. Inside it on the left is a box for rational numbers, which contains integers, which contain whole numbers, which contain natural numbers. On the right inside the real box is a separate box for irrational numbers such as pi and the square root of 2. REAL NUMBERSRational (adds fractions)Integers (adds negatives)Whole numbers (adds 0)Natural numbers1, 2, 3, 4 …Irrationalπ√2√3√20no fractionfits them
Figure 1. The family of number sets. Natural numbers sit inside whole numbers, inside integers, inside rational numbers. Irrational numbers are outside the rational set, and the real numbers contain both.

2.Natural Numbers

Natural numbers are the counting numbers: 1, 2, 3, 4 and so on, without end. They are the numbers we use to count objects, and you would not say “I have zero apples” while counting a pile.

A note on conventions. This guide, like most textbooks in Pakistan and India, starts the natural numbers at 1. Some books and some computer languages start them at 0 instead. If an exam question depends on this, follow the definition in your own course book.

Example 1

1, 2, 3, 50 and 1,000,000 are natural numbers. Zero, −4, 1/2 and 3.7 are not.

3.Whole Numbers

Whole numbers are the natural numbers together with zero: 0, 1, 2, 3 and so on. Every natural number is a whole number, but zero is a new member.

“0 is a natural number.”

This depends on which convention your course follows.

The fix: in the convention used here, natural numbers start at 1, and zero is the extra member that turns them into whole numbers. So 0 is a whole number but not a natural number. Always check which definition your syllabus uses, and state it if the question allows.

4.Integers

Integers are the whole numbers and their negatives: … −3, −2, −1, 0, 1, 2, 3 … An integer never has a fraction or decimal part. We needed integers to answer questions like 3 − 5, which has no answer among the whole numbers.

Example 2

−100, −7, 0, 4 and 1,000 are integers. The numbers −2.5 and 3/4 are not integers.

5.Rational Numbers

A rational number is any number that can be written as a fraction p/q, where p and q are integers and q is not zero. Every integer is rational, because n = n/1. Rational numbers include all fractions, all terminating decimals and all recurring decimals.

Terminating and recurring decimals

When you divide the top of a fraction by the bottom, the decimal either terminates (stops) or recurs (a block of digits repeats for ever). Both are rational. For example 3/8 = 0.375 stops, but 1/3 = 0.333… and 5/12 = 0.41666… recur.

You can tell in advance. Write the fraction in lowest terms. If the denominator has no prime factors except 2 and 5, the decimal terminates. Otherwise it recurs.

FractionDenominator in primesDecimal
3/82 × 2 × 20.375 (terminates)
7/202 × 2 × 50.35 (terminates)
1/330.333… (recurs)
5/122 × 2 × 30.41666… (recurs)
1/770.142857142857… (recurs)

Turning a recurring decimal into a fraction

Example 3 · Recurring decimals as fractions

(a) Write 0.2727… as a fraction. Let x = 0.2727… Two digits repeat, so multiply by 100: 100x = 27.2727… Subtract: 100x − x = 27, so 99x = 27 and x = 27/99 = 3/11.

(b) Write 0.1666… as a fraction. Let x = 0.1666… Then 10x = 1.666… and 100x = 16.666… Subtract the second from the third: 100x − 10x = 15, so 90x = 15 and x = 1/6.

The idea is to multiply by 10, 100 or 1000 so that the repeating parts line up, then subtract to remove them.

6.Irrational Numbers

An irrational number cannot be written as a fraction of two integers. Its decimal goes on for ever without any repeating block. Famous examples are π = 3.14159265… and √2 = 1.41421356… Roots of numbers that are not perfect squares, such as √3, √5 and √20, are irrational too.

Example 4 · Rational or irrational?

(a) √16 = 4, which is a whole number, so it is rational.

(b) √20: 20 is not a perfect square (4² = 16 and 5² = 25), so √20 is irrational.

(c) 22/7 is a fraction, so it is rational. It is only an approximation to π: 22/7 = 3.142857… while π = 3.141593…

(d) 3.14 is a terminating decimal, so it is rational. It is a rounded value of π, not π itself.

“Any number with a square root sign is irrational.”

Some square roots simplify.

The fix: √9 = 3 exactly, and 3 is rational. A root is irrational only when the number under it is not a perfect square (not 1, 4, 9, 16, 25, 36 …). Always try to simplify first. Similarly, “π is 3.14” and “π is 22/7” are both wrong: they are rational approximations of an irrational number.

Why √2 is irrational

The ancient Greeks asked whether the diagonal of a unit square could be written as a fraction. Here is the classic argument, a proof by contradiction.

  1. Suppose √2 = p/q, where p and q are whole numbers with no common factor (the fraction is in lowest terms).
  2. Square both sides: 2 = p²/q², so p² = 2q².
  3. So p² is even. Then p must be even (an odd number squared is odd). Write p = 2k.
  4. Then (2k)² = 2q², so 4k² = 2q², which gives q² = 2k². So q² is even and q is even.
  5. Now p and q are both even, so they share the factor 2. This contradicts step 1.

The starting assumption must be false, so √2 cannot be written as a fraction. It is irrational.

Working with irrational numbers

7.Real Numbers and the Number Line

The real numbers are all the rational numbers and all the irrational numbers together. Every real number has exactly one place on the number line, and every point on the line is a real number. The word “real” is a technical name. It does not mean that negative numbers or irrational numbers are somehow “not real”.

Numbers from different sets on one number line A number line from minus 3 to 4. Marked points are minus 3, minus one half, 0, the square root of 2 at about 1.414, and pi at about 3.142. −3−2−101234−3−1/20√2 ≈ 1.414π ≈ 3.142blue: rational red: irrational
Figure 2. Rational numbers (blue) and irrational numbers (red) all have exact positions on the number line.

Irrational numbers are not just decimals you cannot finish writing. You can place some exactly using geometry. A right-angled triangle with two sides of length 1 has a long side of length √2, by Pythagoras: 1² + 1² = 2. Swing that length onto the number line with a compass and you have marked √2 exactly.

Placing the square root of 2 on the number line A right-angled triangle with two sides of length 1 stands on the number line at 0 and 1. Its hypotenuse has length square root of 2. An arc swings this length onto the number line, marking the point square root of 2. 01231√2√21Pythagoras: 1² + 1² = 2, so the long side is √2
Figure 3. Constructing √2 on the number line with a unit right-angled triangle and an arc.
“Negative numbers aren’t real numbers.”

Does “real” mean the same as in everyday English?

The fix: a real number is any number with a position on the number line. −7 is just as real as 7, because it has a place to the left of zero. (Numbers that are not real exist in higher mathematics, but you will not meet them at this level.)

8.Why the Sets Keep Growing

Each new set was invented because the old one could not answer a question. We can see this by asking which operations never leave the set. A set is closed under an operation if the answer is always inside the set.

SetAddSubtractMultiplyDivide (not by 0)
NaturalYesNo (3 − 5)YesNo (3 ÷ 4)
IntegersYesYesYesNo (3 ÷ 4)
RationalYesYesYesYes
IrrationalNoNoNoNo

The irrational row shows “No” because, for example, √2 + (−√2) = 0 and √2 × √2 = 2 are not irrational. The whole numbers behave like the natural numbers. The real numbers are closed under all four operations like the rationals, and they also fill every gap on the number line.

9.Sorting Numbers Other Ways

Positive, negative and neutral

A number is positive if it is greater than 0 and negative if it is less than 0. Zero is neither: it is the dividing point of the number line.

Even and odd

An integer is even if it is a multiple of 2 and odd if it is not. So 0, 2, −6 and 100 are even, and 1, 3, −5 and 99 are odd. Zero is even, because 0 ÷ 2 = 0 exactly. Even and odd apply only to integers: 2.5 is neither.

Prime and composite

A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. The number 1 has only one factor, so it is neither prime nor composite. The number 2 is the only even prime.

Prime numbers up to 50 A grid of the numbers 1 to 50. The number 1 is grey because it is neither prime nor composite. The fifteen prime numbers 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43 and 47 are highlighted in gold. All other numbers are composite. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495015 primes below 50 (gold) · 1 is neither prime nor composite
Figure 4. The 15 prime numbers below 50, in gold. To test a number n, check whether any prime up to √n divides it.
NumberFactorsType
11Neither
21, 2Prime (the only even prime)
91, 3, 9Composite
171, 17Prime
911, 7, 13, 91Composite (7 × 13)

Every composite number can be written as a product of primes in exactly one way (apart from the order). This is called its prime factorisation. For example, 84 = 2 × 2 × 3 × 7 = 2² × 3 × 7. To find it, divide by the smallest prime that fits, again and again, until you reach 1.

“1 is a prime number.”

Count its factors.

The fix: 1 has just one factor (itself), but a prime needs exactly two. So 1 is neither prime nor composite. One reason this matters: if 1 were prime, the prime factorisation of 84 could be written as 2² × 3 × 7 or 1 × 2² × 3 × 7 or 1 × 1 × 2² × 3 × 7, so it would no longer be unique.

Co-prime numbers

Co-prime is a property of a pair of numbers: their only common factor is 1, so their HCF is 1. For example, 8 and 15 are co-prime (8 = 2³ and 15 = 3 × 5 share nothing), although neither is prime. The numbers 6 and 9 are not co-prime, since both are multiples of 3. For co-prime numbers the LCM is just the product: the LCM of 8 and 15 is 120.

“Co-prime numbers must both be prime.”

The name is misleading.

The fix: only the relationship matters. 8 and 15 are co-prime even though neither is prime, while 3 and 3 (both prime) are not co-prime, since they share the factor 3. To test a pair, find their HCF: if it is 1, they are co-prime.

10.Choosing the Right Label

NumberNaturalWholeIntegerRationalIrrational
7YesYesYesYesNo
0NoYesYesYesNo
−4NoNoYesYesNo
3/4NoNoNoYesNo
0.333…NoNoNoYesNo
√16YesYesYesYesNo
√20NoNoNoNoYes
πNoNoNoNoYes

All eight numbers in the table are real. To classify any number, work through this order: simplify it first (for example √16 = 4), then ask whether it is a counting number, a whole number, an integer, a fraction, or neither.

11.Number Systems in Real Life

12.A Short, Careful History

Try It Yourself

Number Explorer

Type a number, or tap one below. You can use a whole number, a fraction such as 3/4, a decimal such as 0.75, a root such as √20 (or sqrt(20)), or pi. The explorer shows every set the number belongs to and why.

Tap a number above to get started.

Check Your Work

Fraction to Decimal Checker

Enter a top and a bottom number. The checker divides, shows whether the decimal stops or repeats, and finds the repeating block.

13.Common Mistakes

Practice Arena

Classify It

Tap the correct answer for each question. Your best score is saved on this device.

Question 1 of 8 · Best score: 0 / 8

14.Try It Yourself

  1. Is 0.45 rational or irrational? Write it as a fraction in lowest terms.
  2. Write 84 and 90 as products of primes. Are they co-prime?
  3. Is √2 + √2 rational or irrational? What about √2 × √2?
Show answers

1. It terminates, so it is rational. 0.45 = 45/100 = 9/20.

2. 84 = 2² × 3 × 7 and 90 = 2 × 3² × 5. They share the factors 2 and 3 (HCF = 6), so they are not co-prime.

3. √2 + √2 = 2√2 is irrational. √2 × √2 = 2, which is rational. This shows that operations on irrational numbers can give either kind.

15.Exam-Style Questions

  1. [5 marks] For each of −7, 0, 2/3, √16 and √20, say which of these sets it belongs to: natural, whole, integer, rational, irrational.
  2. [3 marks] Write 0.454545… as a fraction in its lowest terms.
  3. [3 marks] Without dividing, state which of 9/25, 5/12 and 7/40 are terminating decimals, and give the decimal for each that terminates.
  4. [3 marks] Write 360 as a product of prime factors, in index form.
  5. [3 marks] (a) Show that 18 and 35 are co-prime. (b) Find the HCF of 18 and 24.
  6. [3 marks] State whether each is rational or irrational and explain: (a) √2 × √8, (b) 3 + √2.
  7. [3 marks] (a) List the prime numbers between 20 and 30. (b) Give an example to show that the sum of two irrational numbers can be rational.
Show answers

1. −7: integer and rational. 0: whole, integer and rational. 2/3: rational only. √16 = 4: natural, whole, integer and rational. √20: irrational only (20 is not a perfect square).

2. Let x = 0.4545… Then 100x = 45.4545…, so 99x = 45 and x = 45/99 = 5/11.

3. 9/25: 25 = 5², so it terminates, and 9/25 = 0.36. 5/12: 12 = 2² × 3 contains a 3, so it does not terminate. 7/40: 40 = 2³ × 5, so it terminates, and 7/40 = 0.175.

4. 360 ÷ 2 = 180, ÷ 2 = 90, ÷ 2 = 45, ÷ 3 = 15, ÷ 3 = 5, ÷ 5 = 1. So 360 = 2³ × 3² × 5. Check: 8 × 9 × 5 = 360.

5. (a) 18 = 2 × 3² and 35 = 5 × 7 share no prime factor, so their HCF is 1 and they are co-prime. (b) 18 = 2 × 3² and 24 = 2³ × 3, so the HCF is 2 × 3 = 6.

6. (a) √2 × √8 = √16 = 4, which is rational. (b) A rational number plus an irrational number is irrational, so 3 + √2 is irrational.

7. (a) 23 and 29. (b) For example √2 + (−√2) = 0, or (3 + √2) + (3 − √2) = 6, which is rational.

16.Key Points

17.For Teachers and Parents

Learners usually memorise the names of the sets but not the reason for them. Start from the questions each set could not answer: 3 − 5, 3 ÷ 4, and the diagonal of a square. This gives the nesting a purpose. Ask learners to place a few numbers on a large number line on the floor, and to explain why each one belongs. The Number Explorer on this page lets them test a number and see every set it belongs to, along with the reason. Be explicit that definitions of the natural numbers vary between books. The reasoning for the irrationality of √2 is a good first taste of proof, and it is worth walking through slowly. For decimals, the Fraction Decimal Checker shows the recurring block, which makes the idea of a repeating pattern concrete.

18.Related Pages and Further Reading

For historical background, the MacTutor History of Mathematics archive at the University of St Andrews is a trusted free source. Check the number topics in your own examination syllabus and past papers, because definitions (for example whether 0 is natural) can differ between boards. This article is original EDUSAMBAM writing.

Test Your Understanding

Practice Questions

13 questions. Select an answer for each, then submit to see your score instantly.

0 of 13 answered
0/13
You scored 0%
Keep practicing
1.Which of these is a natural number?
2.Is 0 a whole number?
3.Which of these is an integer, but NOT a whole number?
4.Is √9 rational or irrational?
5.What makes a number irrational?
6.Which set includes both rational and irrational numbers?
7.Is −3/4 a rational number?
8.How many factors does a prime number have?
9.Is 1 a prime number?
10.Which of these is the only even prime number?
11.Which of these is a neutral number (neither positive nor negative)?
12.Are 8 and 15 co-prime?
13.Are 6 and 9 co-prime?
← Back to Place Value & Face ValueGatewayNext: Roman Numerals →