Key Points
- A rational number can be written as with integers and and , 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 is rational and is irrational.
- A table of last digits helps prove is irrational, because a perfect square and twice a perfect square can share only the final digit 0.
- The fraction is only close to , since its decimal repeats the block 142857 while the decimal of 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.

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 , where and are integers (whole numbers or their opposites) and . 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 ) or repeats one block of digits forever, like , 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 |
|---|---|---|---|
| Rational | |||
| Rational | |||
| Rational | |||
| Rational | |||
| none exists | Irrational | ||
| none exists | 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 is irrational. After converting fractions to decimals in 7th grade, this year is about the numbers that fractions miss.

Because an irrational decimal never ends, anyone who calculates with one rounds it on purpose. NASA's Jet Propulsion Laboratory steers spacecraft with cut to 15 decimal places, . 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.
- Integers, fractions and mixed numbers are rational. For instance, and .
- Terminating decimals are rational. Read the place value, so is , which simplifies to .
- 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.
- Roots need a closer look. A root of a perfect square or perfect cube is a whole number, so and are rational. The square root of any other whole number, such as , is irrational. A fraction in lowest terms needs a perfect square on top and bottom, as in .
- Decimals that never end and never repeat are irrational. belongs here, and so does , where the run of zeros grows by one each time.
These checks need to know where a number came from. A calculator showing can't tell you what happens after its last digit (square that display and you get , 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.
- Suppose , a fraction of whole numbers in lowest terms, meaning no whole number bigger than 1 divides both and . Any fraction can be simplified this far.
- Square both sides and multiply by .
- 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.

- The two sides are equal, so they end in the same digit. The only digit on both lists is 0.
- If ends in 0, then ends in 0. If ends in 0, then ends in 0 or 5, so ends in 0 or 5. Either way, and are both multiples of 5.
- 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 on the number line. Since and , 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 to 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 and are rational.
ends in the thousandths place, so write it over 1,000 and simplify.
The integer is already a fraction with denominator 1.
Both numbers are rational.
Example 2
Is 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 .
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 is irrational.
Example 3
Write as a fraction to show it is rational.
Let
The block has 2 digits, so multiply by 100.
Subtract the first line from the second, and the endless tails cancel.
Check: , so and it is rational.
Example 4
Sort , , and into rational and irrational.
because , so it is rational.
30 sits between the perfect squares 25 and 36, so is between 5 and 6. It is irrational.
because , so it is rational.
10 sits between the perfect cubes 8 and 27, so is between 2 and 3. It is irrational.
Example 5
Is the same number as ?
Divide 22 by 7.
The block 142857 repeats forever, so is rational. The decimal of starts and never repeats.
They part ways in the thousandths place, 3.142 against 3.141, a gap of about .
So is a rational number close to , not 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 and , so 50 is not a perfect square. The side is irrational, about .
Sandbox: write the area as a fraction first.
Both 9 and 4 are perfect squares.
The patio side is irrational, and the sandbox side is a rational .
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 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 sits, and the irrational numbers fill those holes to make the real numbers.
- Every circle carries . 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 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 .
Don't do this: Labeling irrational because its digits never stop.
The correct way: Check whether a block repeats. Here the 6 repeats forever, and , 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 or irrational because of the root sign.
The correct way: Simplify first. and , 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 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 is rational, after circle problems that said to use .
Don't do this: Reasoning that , so must be rational.
The correct way: is rational, while never repeats. The two agree only as far as 3.14, so is an approximation.

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 , 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 . 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 or 3.14 is still a different number from .
- 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.
Read More
- Approximating Irrational Numbers
- Rational Numbers on the Number Line
- Squares and Square Roots
- Prove That Root 3 Is Irrational
- What Is a Real Number
Research Behind This Article
- J J O'Connor and E F Robertson, MacTutor History of Mathematics, The real numbers: Pythagoras to Stevin (2005). mathshistory.st-andrews.ac.uk
- Common Core State Standards Initiative, Grade 8: The Number System (2010). thecorestandards.org
- Common Core State Standards Initiative, Grade 8: Expressions and Equations (2010). thecorestandards.org
- NASA Jet Propulsion Laboratory, How Many Decimals of Pi Do We Really Need? (2026). jpl.nasa.gov
- OpenStax, Prealgebra 2e, 7.1 Rational and Irrational Numbers (2020). openstax.org
- 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?
Can a number be both rational and irrational?
Where do irrational numbers fit on the number line?
Do irrational numbers exist in real life?
How do students explain irrational numbers?
How do I teach rational and irrational numbers at home?




