Rational and Irrational Numbers: How to Tell the Difference

#8th Grade Math#The Number System#Rational and Irrational Numbers
TL;DR
Rational and irrational numbers differ in one way: a rational number can be written as a fraction of two integers, and an irrational number cannot. A fraction's decimal always stops or repeats.
Bhanzu TeamLast updated on December 3, 202614 min read

Key Points

  • A rational number can be written as ab\frac{a}{b} with integers aa and bb and b≠0b \neq 0, so every integer and every terminating or repeating decimal is rational.
  • Rational and irrational numbers can be sorted by their decimals, because a fraction's decimal either stops or repeats one fixed block of digits forever.
  • The square root of a whole number is rational only when that whole number is a perfect square, so 49=7\sqrt{49} = 7 is rational and 50\sqrt{50} is irrational.
  • A table of last digits helps prove 2\sqrt{2} is irrational, because a perfect square and twice a perfect square can share only the final digit 0.
  • The fraction 227\frac{22}{7} is only close to π\pi, since its decimal repeats the block 142857 while the decimal of π\pi never repeats.

A square whose side no fraction can name

Ancient Greek mathematicians found lengths that no fraction could match. In Plato's dialogue Theaetetus, the mathematician Theodorus shows that squares with areas of 3, 5 and so on up to 17 square units have sides that can't be measured as a fraction of the unit. Historians think the square with area 2 was settled even earlier (MacTutor History of Mathematics).

You can draw that first stubborn length in ten seconds. Make a square with 1-inch sides and draw a diagonal. Its length is the square root of 2 inches, and no fraction of whole numbers equals it exactly, however big the numbers get.

Spacecraft navigation and the 3D geometry inside video games both run on numbers like this one.

Unit square whose diagonal is the square root of 2, a classic example in rational and irrational numbers.
A square with sides of 1 inch and its diagonal labeled as the square root of 2, about 1.41421356 inches, with a square of area 2 built on that diagonal.

What are rational and irrational numbers?

Rational and irrational numbers are the two kinds of numbers on the number line, and the difference is whether a fraction can name them. A rational number can be written as ab\frac{a}{b}, where aa and bb are integers (whole numbers or their opposites) and b≠0b \neq 0. An irrational number can't be written this way.

Every number also has a decimal expansion. A rational number's decimal either terminates (stops, like 0.6250.625) or repeats one block of digits forever, like 0.36‾=0.363636…0.\overline{36} = 0.363636\ldots, where the bar marks the repeating block. An irrational number's decimal never ends and never settles into a repeating block.

Number As a fraction As a decimal Type
55 51\frac{5}{1} 5.05.0 Rational
−0.75-0.75 −34-\frac{3}{4} −0.75-0.75 Rational
0.3‾0.\overline{3} 13\frac{1}{3} 0.333…0.333\ldots Rational
2.16‾2.1\overline{6} 136\frac{13}{6} 2.1666…2.1666\ldots Rational
2\sqrt{2} none exists 1.41421356…1.41421356\ldots Irrational
π\pi none exists 3.14159265…3.14159265\ldots Irrational

Common Core standard 8.NS.A.1 asks your child to know that numbers that are not rational are called irrational and that a rational number's decimal repeats eventually, and 8.EE.A.2 adds that 2\sqrt{2} is irrational. After converting fractions to decimals in 7th grade, this year is about the numbers that fractions miss.

Number sets diagram with natural, whole, integer, rational and irrational numbers inside the real numbers.
Nested boxes showing natural numbers inside whole numbers inside integers inside rational numbers, with irrational numbers in a separate box beside them and both groups inside the real numbers.

Because an irrational decimal never ends, anyone who calculates with one rounds it on purpose. NASA's Jet Propulsion Laboratory steers spacecraft with π\pi cut to 15 decimal places, 3.1415926535897933.141592653589793. A JPL education page, updated in March 2026, explains that this misses the distance around a circle 40 billion miles wide by a little more than half an inch (NASA JPL).

How do you tell if a number is rational or irrational?

Ask whether the number can be written as a fraction of integers. Work through these checks in order and stop at the first one that answers.

  1. Integers, fractions and mixed numbers are rational. For instance, −4=−41-4 = \frac{-4}{1} and 312=723\frac{1}{2} = \frac{7}{2}.
  2. Terminating decimals are rational. Read the place value, so 0.6250.625 is 6251000\frac{625}{1000}, which simplifies to 58\frac{5}{8}.
  3. Repeating decimals are rational. Any repeating block can be turned back into a fraction, as Example 3 and the lesson on repeating decimals and fractions show.
  4. Roots need a closer look. A root of a perfect square or perfect cube is a whole number, so 49=7\sqrt{49} = 7 and 273=3\sqrt[3]{27} = 3 are rational. The square root of any other whole number, such as 50\sqrt{50}, is irrational. A fraction in lowest terms needs a perfect square on top and bottom, as in 916=34\sqrt{\frac{9}{16}} = \frac{3}{4}.
  5. Decimals that never end and never repeat are irrational. π\pi belongs here, and so does 0.010010001…0.010010001\ldots, where the run of zeros grows by one each time.

These checks need to know where a number came from. A calculator showing 1.4142135621.414213562 can't tell you what happens after its last digit (square that display and you get 1.99999999894…1.99999999894\ldots, a sign that the screen rounded).

Why is the square root of 2 irrational?

The square root of 2 is irrational because pretending it equals a fraction in lowest terms leads to a contradiction, and a table of last digits shows it.

  1. Suppose 2=ab\sqrt{2} = \frac{a}{b}, a fraction of whole numbers in lowest terms, meaning no whole number bigger than 1 divides both aa and bb. Any fraction can be simplified this far.
  2. Square both sides and multiply by b2b^2.
a2=2b2a^2 = 2b^2
  1. Look at last digits. A perfect square can end only in 0, 1, 4, 5, 6 or 9. Twice a perfect square can end only in 0, 2 or 8.
Last-digit table proving the square root of 2 is irrational.
Table of last digits 0 to 9 with the last digit of each square, 0, 1, 4, 9, 6, 5, 6, 9, 4, 1, and of twice each square, 0, 2, 8, 8, 2, 0, 2, 8, 8, 2, with 0 circled as the only shared digit.
  1. The two sides are equal, so they end in the same digit. The only digit on both lists is 0.
  2. If a2a^2 ends in 0, then aa ends in 0. If 2b22b^2 ends in 0, then b2b^2 ends in 0 or 5, so bb ends in 0 or 5. Either way, aa and bb are both multiples of 5.
  3. A fraction whose top and bottom are both multiples of 5 is not in lowest terms. That breaks step 1, so no such fraction exists.

You can still find 2\sqrt{2} on the number line. Since 1.42=1.961.4^2 = 1.96 and 1.52=2.251.5^2 = 2.25, it sits between 1.4 and 1.5. High school algebra returns to this idea with proofs for other roots.

Try It Yourself

Drag each number card onto the number line from −1-1 to 44 and drop it where you think it belongs. The readout shows the number's decimal and how close you landed, then names it rational or irrational.

Examples of rational and irrational numbers

Example 1

Show that 0.6250.625 and −4-4 are rational.

0.6250.625 ends in the thousandths place, so write it over 1,000 and simplify.

0.625=6251000=580.625 = \frac{625}{1000} = \frac{5}{8}

The integer −4-4 is already a fraction with denominator 1.

−4=−41-4 = \frac{-4}{1}

Both numbers are rational.

Example 2

Is 0.010010001…0.010010001\ldots rational or irrational, if each new 1 has one more 0 in front of it?

The tempting answer is "rational, because it has a pattern," as if the block 01 repeated the way it does in 0.01‾0.\overline{01}.

That fails because the block keeps growing, 01 then 001 then 0001. A repeating decimal needs the same block of the same length over and over.

The digits never stop and no fixed block ever repeats, so 0.010010001…0.010010001\ldots is irrational.

Example 3

Write 0.36‾0.\overline{36} as a fraction to show it is rational.

Let x=0.363636…x = 0.363636\ldots

The block has 2 digits, so multiply by 100.

100x=36.363636…100x = 36.363636\ldots

Subtract the first line from the second, and the endless tails cancel.

99x=3699x = 36
x=3699=411x = \frac{36}{99} = \frac{4}{11}

Check: 4÷11=0.3636…4 \div 11 = 0.3636\ldots, so 0.36‾=4110.\overline{36} = \frac{4}{11} and it is rational.

Example 4

Sort 36\sqrt{36}, 30\sqrt{30}, 273\sqrt[3]{27} and 103\sqrt[3]{10} into rational and irrational.

36=6\sqrt{36} = 6 because 62=366^2 = 36, so it is rational.

30 sits between the perfect squares 25 and 36, so 30\sqrt{30} is between 5 and 6. It is irrational.

273=3\sqrt[3]{27} = 3 because 33=273^3 = 27, so it is rational.

10 sits between the perfect cubes 8 and 27, so 103\sqrt[3]{10} is between 2 and 3. It is irrational.

Example 5

Is 227\frac{22}{7} the same number as π\pi?

Divide 22 by 7.

227=3.142857142857…=3.142857‾\frac{22}{7} = 3.142857142857\ldots = 3.\overline{142857}

The block 142857 repeats forever, so 227\frac{22}{7} is rational. The decimal of π\pi starts 3.14159265…3.14159265\ldots and never repeats.

They part ways in the thousandths place, 3.142 against 3.141, a gap of about 0.00130.0013.

So 227\frac{22}{7} is a rational number close to π\pi, not π\pi itself.

Example 6

A square patio has an area of 50 square feet, and a square sandbox has an area of 2.25 square feet. Is each side length rational or irrational?

The side of a square is the square root of its area.

Patio: 50 sits between 72=497^2 = 49 and 82=648^2 = 64, so 50 is not a perfect square. The side 50\sqrt{50} is irrational, about 7.07 ft7.07\,\text{ft}.

Sandbox: write the area as a fraction first.

2.25=225100=942.25 = \frac{225}{100} = \frac{9}{4}

Both 9 and 4 are perfect squares.

94=32=1.5\sqrt{\frac{9}{4}} = \frac{3}{2} = 1.5

The patio side is irrational, and the sandbox side is a rational 1.5 ft1.5\,\text{ft}.

Why does it matter whether a decimal repeats?

The split tells you whether a number can ever be written down exactly, which decides how you work with it.

  • Exact values stay exact. Writing 50\sqrt{50} instead of 7.07 keeps the true value, so any rounding happens once at the end instead of piling up at every step.
  • The number line has no gaps. Fractions alone leave holes, such as the spot where 2\sqrt{2} sits, and the irrational numbers fill those holes to make the real numbers.
  • Every circle carries π\pi. The distance around any circle divided by the distance across gives the same irrational number, and a 2009 House resolution supporting Pi Day calls it a number that will "continue infinitely without repeating."

A child who can sort a number by its decimal is ready for every later topic that uses π\pi or a square root.

Which numbers get sorted into the wrong group?

Mistake 1: Calling every never-ending decimal irrational

Where it slips in: Repeating decimals written with dots instead of a bar, such as 0.1666…0.1666\ldots.

Don't do this: Labeling 0.1666…0.1666\ldots irrational because its digits never stop.

The correct way: Check whether a block repeats. Here the 6 repeats forever, and 0.1666…=160.1666\ldots = \frac{1}{6}, so it is rational.

"Never ends" and "never repeats" sound alike, and that is the confusing part. Kids often stop reading at the dots instead of checking which digits come back.

Mistake 2: Treating every square root as irrational

Where it slips in: Lists that mix perfect squares with other roots, as in Example 4.

Don't do this: Calling 49\sqrt{49} or 916\sqrt{\frac{9}{16}} irrational because of the root sign.

The correct way: Simplify first. 49=7\sqrt{49} = 7 and 916=34\sqrt{\frac{9}{16}} = \frac{3}{4}, so both are rational.

The root sign gets read as a label for a strange number. A child who hasn't recently listed the perfect squares up to 152=22515^2 = 225 has no fast way to spot them.

Mistake 3: Treating 22/7 as the exact value of pi

Where it slips in: Any question asking whether π\pi is rational, after circle problems that said to use 227\frac{22}{7}.

Don't do this: Reasoning that π=227\pi = \frac{22}{7}, so π\pi must be rational.

The correct way: 227=3.142857‾\frac{22}{7} = 3.\overline{142857} is rational, while π=3.14159…\pi = 3.14159\ldots never repeats. The two agree only as far as 3.14, so 227\frac{22}{7} is an approximation.

Wrong versus right comparison of 22/7 and pi, a common rational and irrational numbers mix-up.
Wrong-versus-right panel: the wrong side says pi equals 22/7 so pi is rational, and the right side lines up 22/7 as 3.142857 repeating against pi as 3.14159265358 with the digits splitting in the thousandths place.

Circle homework often hands out the 22/7 shortcut years before anyone says it is only close.

What most guides miss about rational and irrational numbers

Most guides present irrational numbers as a short list of famous names. You can build as many as you like, and the decimal check works for a reason hidden in long division.

  • Anyone can make one. Write a decimal whose pattern keeps changing, like 0.12112111211112…0.12112111211112\ldots, and you've made a new irrational number. Between any two fractions on the number line, numbers like this always fit.
  • The check runs both ways. Long division by 7 can leave only the remainders 1 to 6, so within seven steps a remainder must come back and the digits start over, which is why 17=0.142857‾\frac{1}{7} = 0.\overline{142857}. Example 3 goes the other way, turning a repeating block back into a fraction. Together they make "stops or repeats" an exact description of the rational numbers.

Key Takeaways

  • A number earns the label rational the moment you can write it as a fraction of integers, whatever it looks like at first.
  • Rational and irrational numbers show their difference in the decimal, where an ending or a fixed repeating block means rational and endless change means irrational.
  • Look for perfect squares before calling a square root irrational.
  • A good approximation such as 227\frac{22}{7} or 3.14 is still a different number from π\pi.
  • For more practice spotting the repeating block that makes a decimal rational, with a teacher who checks each step, explore Bhanzu's 8th grade math curriculum or middle school math tutor sessions.

A Practical Next Step

Sort these four numbers into rational and irrational with your child, and write a fraction for each rational one.

  1. 0.8750.875
  2. 81\sqrt{81}
  3. 45\sqrt{45}
  4. 0.09‾0.\overline{09}

Answers: 1. rational, 78\frac{7}{8}. 2. rational, 99. 3. irrational, between 6 and 7. 4. rational, 111\frac{1}{11}.

Practice these to solidify your understanding. If a square root with a perfect square inside catches you, return to Mistake 2. Want a live Bhanzu trainer to walk through more rational and irrational numbers problems? Book a free demo class, online globally, or in person at our McKinney, TX center.

Read More

Research Behind This Article

  1. J J O'Connor and E F Robertson, MacTutor History of Mathematics, The real numbers: Pythagoras to Stevin (2005). mathshistory.st-andrews.ac.uk
  2. Common Core State Standards Initiative, Grade 8: The Number System (2010). thecorestandards.org
  3. Common Core State Standards Initiative, Grade 8: Expressions and Equations (2010). thecorestandards.org
  4. NASA Jet Propulsion Laboratory, How Many Decimals of Pi Do We Really Need? (2026). jpl.nasa.gov
  5. OpenStax, Prealgebra 2e, 7.1 Rational and Irrational Numbers (2020). openstax.org
  6. US House of Representatives, H. Res. 224, Engrossed in House (2009). govinfo.gov

Quick Quiz: Check Yourself

Three levels, new numbers every time: write a terminating decimal as a fraction, turn a repeating decimal into a fraction, then find a square's side from its area and decide whether it is rational.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

Is 0 rational or irrational?
Zero is rational, because 0=010 = \frac{0}{1} is a fraction of two integers.
Can a number be both rational and irrational?
No. Irrational means "not rational," so every real number is exactly one of the two, which is the whole difference between rational and irrational numbers.
Where do irrational numbers fit on the number line?
They fill the gaps between the fractions. 2\sqrt{2} sits between 1.41 and 1.42, because 1.412=1.98811.41^2 = 1.9881 and 1.422=2.01641.42^2 = 2.0164. The section "Why is the square root of 2 irrational?" shows why no fraction lands exactly on that spot.
Do irrational numbers exist in real life?
Yes. The diagonal of a square tile 1 foot on each side is 2\sqrt{2} feet long, and every circle's distance around is π\pi times its diameter. Those are rational and irrational numbers examples from daily life, though any measurement you write down is rounded, so a tape measure only ever reports a rational number.
How do students explain irrational numbers?
A strong 8th grade explanation names both the fraction and the decimal, such as "it can't be written as a fraction of integers, so its decimal never ends and never repeats." Asking why 0.3‾0.\overline{3} is not irrational shows whether your child knows how to tell if a number is rational or irrational, which matters more than a recited definition.
How do I teach rational and irrational numbers at home?
Write ten numbers on cards, including square roots and repeating decimals, and have your child sort them out loud with a reason for each. If bars, dots and root signs are the trouble, that's a reading and confidence issue rather than a math one, and the class teacher can show how the notation was introduced. If your child is about two grade levels behind on fractions and decimals, talk with the teacher first, and consider a tutor for steady practice.
✍️ Written By
Bhanzu Team
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →