On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Numbers & Quantities · Grade 6-8

Rational Numbers

A rational number is any number you can write as ab with integers a and b (and b≠0).

Q={ab∣a,b∈Z,  b≠0}

Quick Answer

A rational number is any number you can write as ab with integers a and b (and b≠0). That covers fractions like −34, integers like 7=71, decimals that stop like 0.75=34, and decimals that repeat like 0.333…=13. Use the idea when you sort numbers into types, when you turn a decimal into an exact fraction, or when you need to know whether a value can be written exactly without rounding.

Why This Matters

Knowing a number is rational tells you it can be written exactly: 0.6‾ is exactly 23, so 3×0.6‾ is exactly 2, while the rounded 3×0.666 gives 1.998. It also tells you what decimals to expect, since every fraction's decimal either stops or repeats. A decimal that does neither, like the one for 2, signals a different kind of number, and a calculator's rounded display will not show you the difference.

Intuitive Explanation

Divide 3 by 4 and the division stops: 0.75. Divide 1 by 3 and it never stops, but it settles into a loop: 0.333…. Those are the only two things long division can do. Each remainder is smaller than the divisor, so dividing by 7 allows only the remainders 0 to 6. Either a remainder of 0 appears and the decimal ends, or an earlier remainder comes back and the digits repeat from there.

It works backwards too: a decimal that stops is a fraction over 10, 100 or 1000, so 0.75=75100=34. For a repeating decimal, a little algebra removes the loop: if x=0.666… then 10x=6.666…, and subtracting gives 9x=6, so x=69=23.

A number does not need to look like a fraction to be rational; it only needs to be writable as one. The integer −4 is −41, and the mixed number 212 is 52.

Not every decimal is rational. 0.101001000100001…, with one more zero each time, never ends and never repeats a fixed block, so no fraction equals it; 2 and π are the famous examples. A decimal that looks irregular on a calculator screen may still repeat later, though: 17=0.142857‾ takes six digits before its loop starts again.

Think of it like this. A rational number's decimal is a song on repeat. Long division can only produce a limited set of remainders, so sooner or later a remainder comes back and the same digits play again; if the remainder reaches zero, the song simply ends. An irrational number is music that never loops.

Core idea. A rational number is a ratio of two integers, which is exactly the numbers whose decimals end or repeat.


When to Use

Call a number rational when you can write it as a fraction of integers: a fraction, a mixed number, an integer, a terminating decimal or a repeating decimal. You need this when sorting numbers into sets or turning a decimal into an exact fraction. If the decimal never ends and never repeats, or the number is the square root of a non-perfect square such as 2, it is irrational. If only whole steps with signs appear, the integers are enough.

Tip. Ask: Can this number be written as one integer divided by another (with the decimal ending or repeating)?

How to Recognize It

Before you call a number rational, look at the form it arrives in: a fraction, a decimal, a root, or a symbol like π.

  1. If the number is a decimal, does it stop, like 0.375, or settle into a block that repeats, like 0.272727…?

    Either way it is rational: 0.375=38 and 0.27‾=2799=311. If the digits never stop and never repeat, the number is irrational.

  2. Is the number a square root, and is the number under the root a perfect square?

    A perfect square gives a rational root: 49=7 and 916=34. A root of a non-perfect square, such as 10, is irrational.

  3. Does the number have any part between two whole numbers?

    If not, it is an integer, which still counts as rational, since −5=−51. If it does, like −213, it is rational but not an integer.

  4. Is the question about the number's value, or about how a fraction is written, such as simplifying 1218?

    Rational is a label for the value, and 1218 and 23 are the same rational number. Rewriting the top and bottom is fraction work, covered under fractions.

Rational Numbers compared with Irrational numbers, Integers, and Fractions

Rational numbers, integers and fractions overlap, and irrational numbers sit right beside them on the line, so the labels blur. Ask whether the value can be written exactly as an integer over a nonzero integer, and whether it needs a part between whole numbers.

Rational Numbers

Meaning
Use this when you must decide whether a value can be written as a ratio of two integers (fraction, terminating or repeating decimal).
Key test
Can this number be written as one integer divided by another (with the decimal ending or repeating)?
Formula
Q={ab∣a,b∈Z,  b≠0}
Example
Is 0.6‾ (the repeating decimal 0.666…) a rational number?

Irrational numbers

Meaning
Numbers that CANNOT be written as a ratio of integers; their decimals never end or repeat.
Key test
Use for values like 2 or π that don't fit a fraction.
Formula
x∉Q
Example
2=1.41421… never repeats

Integers

Meaning
Only the whole signed numbers; a subset of the rationals with denominator 1.
Key test
Use when there is no fractional part at all.
Formula
Z
Example
−4 is an integer (and also rational)

Fractions

Meaning
The written form ab; rationals are the set of all values such forms can name.
Key test
Use when working with the notation rather than classifying the number type.
Formula
ab
Example
25 is a fraction naming a rational

Formula & Notation

Q={ab∣a,b∈Z,  b≠0}
Q={pq:p∈Z,  q∈Z,  q≠0} with equivalence pq=rs  ⟺  ps=qr

How to read it: Q denotes the set of rational numbers; ab denotes the ratio of integers a and b

Worked Examples

Example 1 — Classify the number

Easy

Is 0.6‾ (the repeating decimal 0.666…) a rational number?
Show the steps and the answer
  1. Let x=0.666… and multiply by 10: 10x=6.666….

    Multiplying by 10 shifts the digits one place, and both numbers keep the same endless tail of 6s.

  2. Subtract: 10x−x=6.666…−0.666…, so 9x=6.

    The repeating tails line up and cancel exactly, leaving whole numbers.

  3. Solve: x=69=23.

    x is now a ratio of two integers, so it is rational.

  4. Check by long division of 2÷3: each step divides 20 by 3, giving the digit 6 and remainder 2.

    The remainder 2 keeps coming back, which is exactly why the 6 repeats forever.

Answer: Yes — it is rational (23)

Takeaway: A repeating decimal is always rational: multiply by a power of 10, subtract, and the repeating part cancels.

Example 2 — A never-ending nonrepeating decimal

Standard

Is 2=1.41421356… a rational number?
Show the steps and the answer
  1. Check whether 2 is a perfect square: 12=1 and 22=4, so no whole number squares to 2.

    If 2 were a perfect square, 2 would be an integer and therefore rational.

  2. Suppose 2=ab in lowest terms. Squaring gives a2=2b2, so a2 is even and therefore a is even.

    An odd number times itself is odd, so an even square must come from an even number.

  3. Write a=2k: then 4k2=2b2, so b2=2k2, and b is even too.

    If a and b are both even, the fraction could be reduced by 2, which contradicts lowest terms.

  4. Conclude that no fraction equals 2.

    The digits 1.41421356… can never settle into a repeating block, because a repeating decimal would be a fraction.

Answer: No — 2 is irrational

Takeaway: A few decimal digits cannot prove a number is irrational; for 2 the even-and-odd argument does.

Example 3 — Find the mistake: integers left out

Application

Sort −5, 0.25, 73 and 0. Kim writes: "Only 0.25 and 73 are rational. −5 and 0 are integers, not rational numbers." Find the mistake and correct it.
Show the steps and the answer
  1. Write each value as a ratio of integers: −5=−51, 0=01, 0.25=14, and 73 already is one.

    A number is rational if at least one such fraction exists, whatever form it was written in.

  2. Check the denominators: 1, 1, 4 and 3 are all nonzero.

    The only restriction is b≠0; a numerator of 0, as in 01, is allowed.

  3. Name Kim's error: she treated integer and rational as separate boxes.

    Every integer n equals n1, so the integers sit inside the rationals, the way squares sit inside the rectangles.

Answer: All four are rational: −5=−51, 0=01, 0.25=14 and 73.

Takeaway: Integers are rational numbers with denominator 1, so being an integer never stops a number from being rational.

Where You'll See It

  • Splitting a pizza bill three ways

    Three friends split a $10 pizza, so each owes 103=3.333… dollars, a repeating decimal. The fraction is exact, but cents are not, so two friends pay $3.33 and one pays $3.34, which adds back to $10.00.

  • Note lengths in music

    A quarter note lasts 14 of a whole note and a dotted eighth lasts 316. Because note lengths are rational, they add exactly: a dotted eighth plus a sixteenth is 316+116=416=14, one full beat.

  • Gear ratios on a bicycle

    With a 48-tooth front gear and a 16-tooth rear gear, the wheel turns 4816=3 times per pedal turn; with 44 and 16 teeth it turns 4416=2.75 times. Gear ratios are always rational, because they compare whole numbers of teeth.

Common Mistakes

  1. The slip: Calling every decimal rational

    Instead: only terminating or repeating decimals are; non-repeating infinite decimals are irrational.

  2. The slip: Allowing zero in the denominator

    Instead: b must be nonzero for a/b to be a rational number.

  3. The slip: Thinking a number must look like a fraction to be rational

    Instead: integers like 7 are rational too (7/1).


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. Write 0.75 as a fraction of two integers in lowest terms.

    Hint: 0.75 means 75 hundredths. Then simplify.

  2. Show that −5 is a rational number.

    Hint: Can you write −5 as one integer over another nonzero integer?

  3. Write the repeating decimal 0.444… as a fraction.

    Hint: Let x=0.444… and compare 10x with x.

  4. Write the repeating decimal 0.272727… as a fraction in lowest terms.

    Hint: Two digits repeat, so multiply by 100 this time.

  5. The number 0.1010010001… adds one more 0 before each 1. Is it rational or irrational?

    Hint: There is a pattern, but does one fixed block of digits repeat?

  6. Ana says 70 is a rational number because 7 and 0 are both integers. Correct Ana.

    Hint: Check the rule about the denominator.

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why is 0.999… equal to 1?

Because both name the same point on the number line. You know 13=0.333…\frac{1}{3} = 0.333\ldots, and three times that is 33=1\frac{3}{3} = 1 one way and 0.999…0.999\ldots the other. You can also try to fit a number between them: any decimal below 1 has a digit smaller than 9 somewhere, so it is below 0.999…0.999\ldots too. With no room between them, they are equal.

Is there always a rational number between two others?

Yes. Take their average: halfway between 13\frac{1}{3} and 12\frac{1}{2} is 512\frac{5}{12}, which is rational because adding and halving fractions gives a fraction. Then you can find one between 13\frac{1}{3} and 512\frac{5}{12}, and so on forever. So unlike the integers, the rationals have no next number. They still leave gaps, though, and that is where the irrationals sit.

How do I turn a repeating decimal into a fraction?

Shift the repeating block and subtract. For x=0.45‾x = 0.\overline{45}, the block has 2 digits, so multiply by 100: 100x=45.45‾100x = 45.\overline{45}. Subtract xx and the repeating tails cancel: 99x=4599x = 45, so x=4599=511x = \frac{45}{99} = \frac{5}{11}. A block of 3 digits needs 1000 instead. This trick works for every repeating decimal, which is why they are all rational.

Is 227 the same as π?

No. 227=3.142857142857…\frac{22}{7} = 3.142857142857\ldots, a repeating decimal, so it is rational. π=3.14159…\pi = 3.14159\ldots never repeats, so it is irrational. They agree only to two decimal places, 3.14, which is why 227\frac{22}{7} is a handy estimate of π\pi but never equal to it.

Learning Path

Rational Numbers

You are here

You need Fractions, Decimals and Integers first. Rational Numbers gather them into one set: every number of the form ab, whose decimals always end or repeat. Next, Irrational Numbers are the values this set leaves out, such as 2 and π, and Real Numbers join both sets to fill the whole number line.

See Also