Numbers & Arithmetic

The Real Number System

The real number system is the set of every number that has a place on the number line: the rational numbers (fractions, plus decimals that end or repeat) together with the irrational numbers (decimals that never end and never repeat, like 2\sqrt{2} and π\pi). In symbols, R=Q∪Q′\mathbb{R}=\mathbb{Q}\cup\mathbb{Q}'.

R=Q∪Q′withN⊂W⊂Z⊂Q⊂R\mathbb{R}=\mathbb{Q}\cup\mathbb{Q}'\quad\text{with}\quad \mathbb{N}\subset\mathbb{W}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}

The sets nest like boxes, each one sitting inside the next:

N⊂W⊂Z⊂Q⊂R\mathbb{N}\subset\mathbb{W}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}

The irrationals fill whatever part of R\mathbb{R} the rationals leave empty. Everything below hangs on a handful of ideas: why each box exists, how to sort a number into the right one, and what happens when rational and irrational numbers meet.

What Is the Real Number System?

A real number is any quantity you can pin to an exact point on a number line. That covers counting, measuring, debts, fractions, roots and π\pi. The system is built from five named sets, and the table shows how each one grows from the last.

Set Symbol Members Example
Natural N\mathbb{N} 1,2,3,…1,2,3,\ldots 77
Whole W\mathbb{W} 0,1,2,3,…0,1,2,3,\ldots 00
Integers Z\mathbb{Z} …,−2,−1,0,1,2,…\ldots,-2,-1,0,1,2,\ldots −5-5
Rational Q\mathbb{Q} ab\frac{a}{b} with a,ba,b integers, b≠0b\neq0 −34-\frac{3}{4}
Irrational Q′\mathbb{Q}' real, but not rational 3\sqrt{3}

Irrational numbers are not rare curiosities. The rationals are packed everywhere on the number line, yet they form a vanishingly thin slice of it: almost every real number is irrational. The famous ones (2\sqrt{2}, π\pi, ee) are just the few you meet in class.

One convention to check in your own course: some books start the natural numbers at 00. Most US algebra courses start at 11, and this page does too. For more practice sorting numbers into these sets, see the lesson on classifying real numbers.

Quick check

True or false: every integer is a rational number.

Why the Real Number System Has Layers

Each layer exists because an operation broke the one before it. Seeing that makes the whole structure feel inevitable instead of memorized.

  • 3−53-5 has no answer among the whole numbers, so the integers add negatives. The rules for this are in subtracting integers.
  • 3÷43\div4 has no answer among the integers, so the rationals add fractions.
  • x2=2x^2=2 has no solution among the rationals, so the irrationals fill the gap.

That last step is the deepest. The rationals look complete, but they have holes. Start with 1, 1.4, 1.41, 1.414, …1,\ 1.4,\ 1.41,\ 1.414,\ \ldots Every term is rational, and the squares climb toward 22: 1.42=1.961.4^2=1.96, 1.412=1.98811.41^2=1.9881, 1.4142=1.9993961.414^2=1.999396. The point they approach is not rational.

The real numbers contain every such limit, so the number line has no holes. This is why f(x)=x2−2f(x)=x^2-2, which is negative at x=1x=1 and positive at x=2x=2, must cross zero somewhere between them. Inside the rationals it jumps over zero without ever landing on it. Calculus depends on this gap-free property.

How to Classify a Number in the Real Number System

Run any number through three questions in order:

  1. Can it be written as a ratio of integers, or does its decimal end or repeat? If not, it is irrational.
  2. If it is rational, does it simplify to an integer? If not, it is a fraction or decimal only.
  3. If it is an integer, is it negative, zero or positive? Negatives are integers only, zero is whole too, positives are natural too.

The trap that costs the most points is judging a number by how it looks instead of what it equals. Simplify first.

Zero's address

The number 00 is whole, an integer, rational (as 01\frac{0}{1}) and real. It is natural only in books that start counting at 00.

Example 1. Classify −186\frac{-18}{6}, 50\sqrt{50} and 916\sqrt{\frac{9}{16}}.

For −186\frac{-18}{6}, simplifying the fraction gives −3-3. That is an integer, so it is also rational and real. It is not whole or natural, because it is negative.

For 50\sqrt{50}, write 50=25⋅250=25\cdot2, so 50=52\sqrt{50}=5\sqrt{2}. A rational number times an irrational one is irrational (more on that shortly). It is real and irrational only.

For 916\sqrt{\frac{9}{16}}, take roots top and bottom: 34\frac{3}{4}. This is rational and real, but not an integer. A fraction-looking number turned out to be an integer, and a root-looking number turned out to be a plain fraction. Knowing the perfect squares up to about 15215^2 makes these checks fast.

Are Repeating Decimals Rational Numbers?

Subtraction cancels the repeating tail of 0.3636 to show it equals 4 over 11
Subtracting x from 100x removes the identical repeating tails, leaving 99x = 36 and x = 4/11.

Yes, every one of them. A decimal is rational exactly when it ends or repeats. Terminating decimals are easy: 0.375=3751000=380.375=\frac{375}{1000}=\frac{3}{8}.

The reason a fraction must end or repeat is a counting argument. Long division by bb can leave only bb different remainders. After at most bb steps a remainder repeats, and from then on the digits cycle. Check with 17=0.142857‾\frac{1}{7}=0.\overline{142857}: the cycle has length 66, the maximum possible for b=7b=7.

To reverse the process, multiply by a power of 1010 that shifts one full cycle past the decimal point, then subtract.

Example 2. Write 0.36‾0.\overline{36} as a fraction.

Let x=0.363636…x=0.363636\ldots. The cycle has two digits, so multiply by 100100:

100x=36.363636…100x=36.363636\ldots

Subtract xx from both sides to cancel the repeating tail:

100x−x=36⇒99x=36⇒x=3699=411100x-x=36\quad\Rightarrow\quad 99x=36\quad\Rightarrow\quad x=\frac{36}{99}=\frac{4}{11}

Check: 4÷11=0.3636…4\div11=0.3636\ldots The full method, including decimals with a non-repeating start, is covered in converting repeating decimals to fractions.

The same trick settles a famous argument. Let x=0.999…x=0.999\ldots, so 10x=9.999…10x=9.999\ldots and 10x−x=910x-x=9, giving x=1x=1. The two are not “very close”. They are the same point, because no real number fits between them.

Try this: Write 0.27‾0.\overline{27} as a fraction, reduce it, then confirm by dividing the numerator by the denominator on a calculator.

Why Is the Square Root of 2 Irrational? A Short Proof

Suppose 2=ab\sqrt{2}=\frac{a}{b} with ab\frac{a}{b} already in lowest terms, so aa and bb share no common factor. Square both sides and clear the denominator:

a2=2b2a^2=2b^2

That makes a2a^2 even, so aa is even (an odd number squared is odd). Write a=2ka=2k. Then 4k2=2b24k^2=2b^2, so b2=2k2b^2=2k^2, which makes bb even too. Now aa and bb are both even, contradicting lowest terms. The assumption was impossible, so 2\sqrt{2} is not rational.

The proof generalizes through prime factorization. For a positive integer nn, n\sqrt{n} is rational only when every prime in nn appears an even number of times. Otherwise it is irrational. A calculator display can never prove irrationality, since it shows only a finite number of digits.

Example 3. Decide whether 72\sqrt{72} is rational, and simplify it.

Factor: 72=23⋅3272=2^3\cdot3^2. The prime 22 appears three times, an odd count, so 72\sqrt{72} is irrational. Pull out the squared pairs:

72=22⋅32⋅2=2⋅3⋅2=62≈8.485\sqrt{72}=\sqrt{2^2\cdot3^2\cdot2}=2\cdot3\cdot\sqrt{2}=6\sqrt{2}\approx8.485

This pairing idea is the engine behind simplifying any radical, and the square roots lesson builds on it.

Quick check

Is 45\sqrt{45} rational or irrational? Simplify it.

Rational Plus Irrational: What Do You Get?

Three examples where two irrational numbers multiply or add to give a rational result
Unlike rational with irrational, two irrationals can land back on a rational number such as 2, 4 or 3.

Rational with rational stays rational under addition, subtraction, multiplication and division (by a nonzero number). Mixing the two types follows two clean rules. A rational plus an irrational is irrational. A nonzero rational times an irrational is irrational.

The reason is a one-line contradiction. If q+s=rq+s=r with qq and rr rational, then s=r−qs=r-q would be rational, so ss was not irrational after all. The same move works for products, using division in place of subtraction.

Two irrationals have no such rule, and that is where students slip. All of these are rational:

2⋅2=22⋅8=16=4π+(3−π)=3\sqrt{2}\cdot\sqrt{2}=2\qquad \sqrt{2}\cdot\sqrt{8}=\sqrt{16}=4\qquad \pi+(3-\pi)=3

Also watch the word nonzero: 0⋅π=00\cdot\pi=0, which is rational. A handy case is conjugates: (2+3)(2−3)=4−3=1(2+\sqrt{3})(2-\sqrt{3})=4-3=1. Two irrational factors, a rational product. This is the trick for rationalizing denominators. For more on telling the two families apart, see rational vs irrational numbers.

Quick check

Is 4+34+\sqrt{3} rational or irrational?

Properties of the Real Number System on the Number Line

The reals obey a short list of rules that every algebra manipulation relies on: addition and multiplication are closed, commutative and associative, multiplication distributes over addition, 00 and 11 are the identities, every real number has an opposite, and every nonzero real number has a reciprocal. The lesson on commutative, associative and distributive properties shows each one in use.

The reciprocal rule is what separates the reals from the integers. In Z\mathbb{Z} you cannot divide 11 by 22. In R\mathbb{R} you always can, unless the divisor is 00.

Two further features matter. First, order: any two real numbers can be compared, so exactly one of a<ba<b, a=ba=b, a>ba>b holds, and absolute value ∣a−b∣|a-b| measures the distance between them. Second, density: between any two reals sit infinitely many rationals and infinitely many irrationals. Between 0.40.4 and 0.50.5 you can find the rational 0.450.45 and the irrational 0.4+2100≈0.41410.4+\frac{\sqrt{2}}{100}\approx0.4141. For fractions, the midpoint 12(13+12)=512\frac{1}{2}\left(\frac{1}{3}+\frac{1}{2}\right)=\frac{5}{12} works every time.

A consequence worth remembering: there is no “next” real number after 22. Asking for the smallest number greater than 22 has no answer, which is why inequalities are written as intervals like (2,∞)(2,\infty) instead of lists.

What Numbers Are Not in the Real Number System?

Three things commonly get mistaken for real numbers. The first is the square root of a negative number. No real number squares to −4-4, because squares of reals are never negative. Such roots live in the complex numbers: −4=2i\sqrt{-4}=2i. This is exactly why a quadratic with a negative discriminant has no real solutions. You can see it on the quadratic formula practice problems.

Reals inside complex

Every real number aa is also a complex number, namely a+0ia+0i. The real system is a subset of the complex system, not a rival to it.

The second is division by zero. 50\frac{5}{0} is undefined because it would need a real xx with 0⋅x=50\cdot x=5, and no such xx exists. The third is infinity. The symbol ∞\infty describes a quantity that grows without bound. It is not a point on the line, which is why interval notation always puts a parenthesis next to it.

Where the Real Number System Shows Up in Real Life

Every measurement you ever record is rational, because instruments report finite decimals. The reals describe the exact quantity underneath. A square tile 1010 inches on a side has a diagonal of exactly 102+102=102\sqrt{10^2+10^2}=10\sqrt{2} inches. The tape measure shows about 14.1414.14. Keep the exact form while you calculate and round once at the end, guided by significant figures.

Approximations are where the real number system bites. The fraction 227≈3.142857\frac{22}{7}\approx3.142857 is often taught as a stand-in for π≈3.141593\pi\approx3.141593, but it is off by about 0.00130.0013 and is not equal to π\pi. A circle with radius 100100 meters gets a circumference error of roughly 0.80.8 meters with that shortcut, which is enough to matter on a construction site.

Computers store numbers in binary, so most decimal fractions are stored as close rational approximations. In many programming languages 0.1+0.20.1+0.2 prints as 0.300000000000000040.30000000000000004. Programmers compare values within a small tolerance instead of testing equality, a direct consequence of the real number system being more than any machine can hold exactly.

Practice problems

0 of 5 solved

  1. Which of these sets contain −9-9: natural, whole, integer, rational, irrational, real?

  2. Write 0.7‾0.\overline{7} as a fraction.

  3. Which one is irrational: 81\sqrt{81}, 80\sqrt{80}, 227\frac{22}{7}, 0.45‾0.\overline{45}?

  4. Write 0.46‾0.4\overline{6} as a fraction in lowest terms.

  5. Is (4+7)(4−7)(4+\sqrt{7})(4-\sqrt{7}) rational or irrational? Find its value.

Common questions

What is the real number system in simple terms?

It is the set of all numbers that can be plotted on a number line. It combines the rational numbers (fractions and decimals that end or repeat) with the irrational numbers (decimals that never end and never repeat).

Is zero a real number?

Yes. Zero is a whole number, an integer, a rational number (01\frac{0}{1}) and a real number. It is not a natural number in the common US convention where counting starts at 11.

Are all real numbers rational?

No. Numbers such as 2\sqrt{2}, π\pi and ee are real but cannot be written as a ratio of integers. In a precise sense, almost every real number is irrational.

Are imaginary numbers part of the real number system?

No. Imaginary numbers like −4=2i\sqrt{-4}=2i do not lie on the real number line. Real numbers sit inside the larger complex number system as the numbers a+bia+bi with b=0b=0.

Is 227\frac{22}{7} equal to π\pi?

No. 227\frac{22}{7} is a rational approximation, about 3.1428573.142857, while π\pi is about 3.1415933.141593 and irrational. The two differ by roughly 0.00130.0013.

Is 0.999…0.999\ldots a real number, and does it equal 1?

It is real, and it equals 11 exactly. If x=0.999…x=0.999\ldots then 10x−x=910x-x=9, so x=1x=1. No real number fits between them, so they are the same point.

Up next