Every number belongs to a family of nested sets — like Russian dolls, one fitting inside the next. Once you see the nesting, you'll never mix up which numbers belong where again.
"Number systems" sounds like it should mean one single thing — but it actually describes a whole family of overlapping sets, each one built by relaxing a rule from the set before it. This guide builds that family from the ground up, one set at a time.
A number system is simply a named collection — a set — of numbers that share a particular property. Some of these sets sit entirely inside larger sets, the way a smaller Russian doll sits inside a bigger one. Understanding number systems means understanding which dolls fit inside which.
Natural numbers are the counting numbers: 1, 2, 3, 4, and onward, forever. They're called "natural" because they're the numbers humans naturally use to count objects — you'd never count "zero apples" or "negative two apples" out loud while counting a pile.
1, 2, 3, 4, 5, 100, 1,000,000 are all natural numbers. Zero, negative numbers, and fractions are not included in this set.
Whole numbers are the natural numbers plus zero: 0, 1, 2, 3, and onward. This is the first "doll expansion" — every natural number is a whole number, but zero joins the set as something new.
0, 1, 2, 3, 50 are all whole numbers. Negative numbers and fractions still aren't included.
This is a common mix-up between natural numbers and whole numbers — and different countries even teach it differently.
The fix: in the convention used throughout this guide (and most Pakistani and Indian textbooks), natural numbers start at 1, and zero is the extra member that makes the set of whole numbers. Zero is a whole number, not a natural number.
Integers expand the family again by adding negative numbers: ..., −3, −2, −1, 0, 1, 2, 3, ... Every whole number is an integer, but now negative whole numbers join the set too.
−100, −7, −1, 0, 1, 7, 100 are all integers. Fractions and decimals still aren't included — an integer never has a fractional or decimal part.
Rational numbers are any number that can be written as a fraction p/q, where p and q are both integers and q is not zero. This is the biggest expansion yet — it pulls in every fraction, every terminating decimal, and every repeating decimal, on top of everything already in the integers.
1/2, −3/4, 0.75, 0.333... (repeating), and 5 (which is really 5/1) are all rational numbers. Every integer is automatically rational too, since any integer n can be written as n/1.
Irrational numbers break away from the pattern completely — they cannot be written as any fraction of two integers, no matter how hard you try. Written as decimals, they go on forever without ever settling into a repeating pattern.
π (pi) = 3.14159265... and √2 = 1.41421356... both continue forever with no repeating pattern. Neither can ever be written as an exact fraction.
This trips up even confident students, because most square roots taught early on (like √2 or √3) genuinely are irrational — but not all of them are.
The fix: √9 = 3 exactly, and 3 is a whole number — perfectly rational. The square root sign only creates an irrational number when the number underneath isn't a perfect square. Always check: does the square root simplify to a whole number? If yes, it's rational.
Real numbers are simply every rational number and every irrational number combined — essentially, every number that has a position on the number line. Every number system covered so far is a real number.
The diagram below shows the full nested family. Rational numbers contain integers, which contain whole numbers, which contain natural numbers. Irrational numbers sit outside that nested chain, but both rational and irrational numbers together make up the full set of real numbers.
The word "real" in mathematics doesn't mean what it means in everyday speech — it's a technical term for a specific, very large set.
The fix: "real number" just means any number with a position on the number line — positive, negative, whole, or fractional. −7 is every bit as real (in the mathematical sense) as 7.
Tap any number below to see every number system it belongs to. Remember: a number can belong to several sets at once — that's the whole point of nesting.
Tap a number above to get started.
Separately from the nested-family classification, every number can also be sorted by its sign. A positive number is greater than zero. A negative number is less than zero. Zero itself is neither — it's called neutral, sitting exactly on the boundary between the two.
5, 1/2, and 3.14 are all positive. −5, −1/2, and −3.14 are all negative. 0 is neutral — not positive, not negative.
This assumes every number falls into exactly one of two boxes, missing the special boundary case.
The fix: zero is its own category — neutral. It's the dividing line on the number line, with positives to the right and negatives to the left, but it belongs to neither side.
Separately from the nested families above, whole numbers and integers can also be split by whether they divide evenly by 2. An even number divides exactly by 2 with nothing left over; an odd number always leaves a remainder of 1.
0, 2, 4, −6, 100 are all even. 1, 3, −5, 99 are all odd. Zero counts as even, since 0 ÷ 2 = 0 exactly, with no remainder.
A prime number has exactly two factors: 1 and itself. A composite number has more than two factors. This classification only applies to natural numbers greater than 1 — 1 itself is a special case that is neither prime nor composite.
| Number | Factors | Classification |
|---|---|---|
| 1 | 1 | Neither prime nor composite |
| 2 | 1, 2 | Prime (and the only even prime) |
| 9 | 1, 3, 9 | Composite |
| 17 | 1, 17 | Prime |
1 only has one factor — itself — so it fails the definition of a prime number, which requires exactly two distinct factors.
The fix: 1 is neither prime nor composite — it's in a category of its own. Prime numbers start at 2, which is also the only even number that is prime (every other even number is divisible by 2 and something else, making it composite).
Unlike every classification above, being co-prime isn't a property of a single number — it's a relationship between a pair of numbers. Two numbers are co-prime if the only factor they share in common is 1 (in other words, their greatest common factor is exactly 1).
8 and 15 are co-prime: the factors of 8 are 1, 2, 4, 8; the factors of 15 are 1, 3, 5, 15 — the only number appearing in both lists is 1. Notice that neither 8 nor 15 is itself a prime number.
The name is misleading — "co-prime" describes a shared relationship, not a requirement that each number individually be prime.
The fix: 8 and 15 are co-prime even though 8 = 2×2×2 and 15 = 3×5 — neither is prime. What matters is that they share no common factor other than 1. Compare that to 6 and 9, which are not co-prime, since both share the factor 3.
| Question to Ask | If Yes |
|---|---|
| Is it a positive counting number (1, 2, 3...)? | Natural |
| Is it 0 or a positive counting number? | Whole |
| Is it a whole number or its negative? | Integer |
| Can it be written as a fraction of two integers? | Rational |
| Does its decimal go on forever with no repeating pattern? | Irrational |
| Does it have any position on the number line at all? | Real (always true for the sets above) |
| Is it greater than, less than, or exactly zero? | Positive, Negative, or Neutral |
| Do two numbers share only 1 as a common factor? | Co-prime (a pair relationship, not a single-number label) |
A thermometer reading of −5°C is an integer, but not a natural or whole number, since it's negative. A recipe calling for 1/2 cup of sugar uses a rational number. And the circumference of any circle involves π — an irrational number — meaning it can never be measured with perfect exactness, only approximated.
Legend says the ancient Greek mathematician Hippasus discovered that √2 was irrational — and that this so upset his fellow Pythagoreans, who believed all numbers were rational, that they reportedly threw him overboard at sea.
The number zero as a true mathematical concept — not just a placeholder — was developed in India around the 5th century, by mathematicians including Brahmagupta, before spreading through the Islamic world and eventually into Europe.
Tap the correct answer for each question.
13 questions. Select an answer for each, then submit to see your score instantly.