math10 min readΒ· Updated May 27, 2026

Types of Numbers Explained: Natural, Whole, Integers, Rational, Irrational, and Real

Learn the main types of numbers with clear definitions, examples, and a comparison table covering natural, whole, integers, decimals, rational, irrational, and real numbers.

Why Number Types Matter

Most students first learn numbers as "counting things". Later, math introduces negatives, fractions, decimals, and square roots. At that point, confusion starts:

  • Is 0 a natural number?
  • Are all decimals rational?
  • Is every integer also a whole number?

Learning number types helps you choose the right method in algebra, statistics, and calculator use. It also prevents common mistakes in homework, coding interviews, and exam questions.

The Big Picture: Number System Hierarchy

The sets are nested like this:

extNaturalsubseteqextWholesubseteqextIntegerssubseteqextRationalsubseteqextReal ext{Natural} subseteq ext{Whole} subseteq ext{Integers} subseteq ext{Rational} subseteq ext{Real}

Irrational numbers are also part of real numbers, but they are not rational.

Natural Numbers

Natural numbers are counting numbers.

  • Common definition: 1, 2, 3, 4, ...
  • Alternate textbook convention: 0, 1, 2, 3, ...

Examples: 3, 12, 105

Not examples: 0 (under the first convention), -2, 1.5

If your teacher or exam board does not specify, assume naturals start at 1.

Whole Numbers

Whole numbers are non-negative integers:

0,1,2,3,4,...0, 1, 2, 3, 4, ...

Examples: 0, 8, 900

Not examples: -1, 2.2, 3/4

Key distinction:

  • Whole numbers include 0.
  • Natural numbers may or may not include 0 depending on convention.

Integers

Integers include negative numbers, zero, and positive numbers:

...,βˆ’3,βˆ’2,βˆ’1,0,1,2,3,......, -3, -2, -1, 0, 1, 2, 3, ...

Examples: -9, 0, 24

Not examples: 2.5, -1/3

Integers are useful in temperature changes, gains/losses, elevation, and game scoring.

Rational Numbers

A rational number can be written as:

rac{p}{q} ext{ where } p, q in mathbb{Z}, q e 0

This includes:

  • Integers (because 5 = 5/1)
  • Fractions like 7/9
  • Terminating decimals like 0.75
  • Repeating decimals like 0.333...

Examples: -4, 3/5, 1.2, 0.090909...

Not examples: pi, sqrt(2)

Irrational Numbers

Irrational numbers cannot be written as a fraction of two integers. Their decimal form is non-terminating and non-repeating.

Examples:

  • pi = 3.14159265...
  • sqrt(2) = 1.41421356...
  • e = 2.7182818...

Not examples: 0.25, 2/3, 1.121212... (repeating)

Real Numbers

Real numbers include all rational and irrational numbers. On a number line, every point corresponds to a real number.

Examples: -7, 0, 2.5, 9/11, sqrt(3), pi

Not included in real numbers: imaginary numbers such as sqrt(-1).

Are Decimals Rational or Irrational?

Decimals are not a separate top-level set. They belong to rational or irrational numbers depending on pattern:

  • Terminating decimal: rational (0.625 = 625/1000)
  • Repeating decimal: rational (0.272727... = 27/99)
  • Non-terminating and non-repeating decimal: irrational

This is one of the most tested concepts in middle-school and high-school number system chapters.

Prime, Composite, Even, and Odd: Classification Inside Integers

These are properties of integers, especially positive integers.

  • Prime: exactly two positive factors (1 and itself)
  • Composite: more than two positive factors
  • Even: divisible by 2
  • Odd: not divisible by 2

Examples:

  • 2 is prime and even
  • 9 is composite and odd
  • 1 is neither prime nor composite

Use the Prime Number Checker to test large integers quickly.

Quick Comparison Table

TypeDefinitionExamplesNot Examples
NaturalCounting numbers (usually starts at 1)1, 6, 40-2, 1.5
WholeNon-negative integers0, 3, 99-1, 2.3
IntegersNegative and positive whole numbers, including 0-8, 0, 174.2, 1/2
RationalCan be written as p/q, q not equal to 03/4, -5, 0.2, 0.121212...pi, sqrt(2)
IrrationalNon-terminating, non-repeating decimalpi, sqrt(2), e0.5, 2/7
RealAll rational and irrational numbers-3, 0, 2.8, sqrt(5)sqrt(-1)

Common Confusions and Exam Traps

1) Is 0 Natural?

Some books say yes, some say no. In many school systems, natural starts at 1 and whole starts at 0.

2) Is Every Integer Rational?

Yes. Any integer n can be written as n/1.

3) Are All Fractions Rational?

Yes, as long as denominator is not 0.

4) Is 0.1010010001... Rational?

No. It does not terminate and does not repeat, so it is irrational.

5) Is sqrt(49) Irrational?

No. sqrt(49) = 7, which is an integer and therefore rational.

Practice Checks

Classify each number in the smallest possible set:

  1. 0
  2. -13
  3. 5/8
  4. 0.4444...
  5. sqrt(7)

Answers:

  1. Whole
  2. Integer
  3. Rational
  4. Rational
  5. Irrational

Use These Calculators Next

Key Takeaways

  • Number sets are nested: Natural, Whole, Integers, Rational, Real.
  • Irrational numbers are real, but not rational.
  • Decimals can be rational or irrational depending on whether they terminate/repeat.
  • Most classification mistakes happen around 0, repeating decimals, and square roots.
  • Learn the smallest set first, then identify larger sets that also include the number.

Need a fast prime/composite check? Try the Prime Number Checker for instant results.

Related Calculator

Prime Number Checker

Put this guide into practice with our free online calculator.

Try the Prime Number Checker β†’

Related Guides