Chapter 4 Ā· Rational and irrational numbers
Converting Repeating Decimals to Fractions
Learn how to turn a repeating decimal into an exact fraction by lining up its repeating digits, subtracting to cancel them, and solving for the number.
You already know how to turn a fraction into a decimal with long division. When you divide by , the digit shows up in every decimal place and never stops. In this lesson you go the other way: you start with a decimal like that and find the fraction it equals.
A repeating decimal is a decimal in which one digit, or a group of digits, after the decimal point repeats forever. The part that repeats is called the repeating block. You mark it with a bar over the block:
- means , with the repeating forever.
- means , with the block repeating forever.
- means , where only the is under the bar, so only the repeats forever.
A rational number is a number you can write as , where and are integers (whole numbers and their opposites) and . The decimal form of a rational number either terminates, which means its digits stop, or repeats. A decimal that neither terminates nor repeats is the decimal form of an irrational number, a number that cannot be written as such a fraction.
The reverse is also true: every repeating decimal is a rational number, and this lesson shows you how to find its fraction. You cannot simply read it off. A terminating decimal has a last digit, so you can read its place value: is hundredths, or . A repeating decimal has no last digit, so you need a different idea.
Here is the idea. Compare with ten times that number. Multiplying by moves each digit one place to the left, which looks the same as moving the decimal point one place to the right, so .
Because the repeats forever, both numbers have a in every decimal place. The table lines them up by place value. When you subtract, every decimal place gives , and only the ones place is left. The difference between these two never-ending decimals is exactly . Subtracting has canceled the endless part.
| Number | Ones | Tenths | Hundredths | Thousandths | Every later place |
|---|---|---|---|---|---|
Difference |
Worked example
A one-digit repeating block
Write the repeating decimal as a fraction in simplest form, which means the numerator and the denominator share no factor greater than .
Name the number so you can write equations about it. Let x stand for the value of the repeating decimal. Its repeating block is the single digit 3, and the block starts right after the decimal point.
Multiply both sides by 10. Multiplying both sides of an equation by the same number keeps it true. The decimal point moves one place to the right, past exactly one block, so the digits after it are still all 3s.
Subtract the first equation from the second. On the left, ten copies of x minus one copy leaves 9x. On the right, the digits after the decimal point match in every place, so they cancel and leave 3. The two sides stay equal because you subtracted x on the left and the decimal equal to x on the right.
Divide both sides by 9. This is allowed because 9 is not zero.
Write the fraction in simplest form. Dividing the numerator and the denominator by the same nonzero number, here 3, gives an equal fraction. Now 1 and 3 share no factor greater than 1, so you are done.
Answer
The repeating decimal is equal to . This is the fraction that long division turns into , so the method agrees with what you already know.
Key concept
Line up the repeating digits, then subtract
Let stand for the repeating decimal. Multiply by , , , and so on to write two equations whose right sides have the same digits after the decimal point:
- one with the decimal point just before the first repeating block (this is itself if the block starts right after the decimal point);
- one with the decimal point just after that block.
Subtract the first equation from the second. The matching digits cancel and leave integers. Divide both sides by the number in front of ; it is not zero because the two equations multiply by different numbers. Then write the fraction in simplest form.
The result is with integers and , , so the repeating decimal is rational.
Worked example
A two-digit repeating block
Write the repeating decimal as a fraction in simplest form.
Name the number. Let x stand for the value of the repeating decimal. The repeating block is 45. It has two digits and starts right after the decimal point.
Multiply both sides by 100, which moves the decimal point two places to the right. The block has two digits, so two places is exactly one full block, and the digits after the decimal point are still 45 repeating.
Subtract the first equation from the second. On the left, 100x minus x is 99x. On the right, the matching digits after the decimal point cancel and leave 45.
Divide both sides by 99, which is not zero.
Write the fraction in simplest form. Both 45 and 99 are multiples of 9, so divide the numerator and the denominator by 9. Now 5 and 11 share no factor greater than 1.
Check with long division. Dividing 5 by 11 gives the digits 4 and 5 over and over, which matches the decimal you started with.
Answer
The repeating decimal is equal to .
Worked example
A digit before the repeating block
Write the repeating decimal as a fraction in simplest form.
Name the number. Let x stand for the value of the repeating decimal. The 8 does not repeat. The repeating block is the single digit 3, which starts after the 8 instead of right after the decimal point.
Multiply both sides by 10 to move the decimal point past the 8. Now the decimal point sits just before the first repeating block, and only 3s come after it.
Go back to the first equation and multiply both sides by 100. This moves the decimal point two places, past the 8 and past one block of 3. Again only 3s come after the decimal point.
Subtract the equation for 10x from the equation for 100x. On the left, 100x minus 10x is 90x. On the right, the matching 3s after the decimal point cancel, and 83 minus 8 is 75.
Divide both sides by 90, which is not zero. Then write the fraction in simplest form: 75 and 90 are both multiples of 15, so divide the numerator and the denominator by 15. Now 5 and 6 share no factor greater than 1.
Check with long division. Dividing 5 by 6 gives 8 in the tenths place and then 3 in every later place, which matches the decimal you started with.
Answer
The repeating decimal is equal to .
A repeating decimal never ends, but its repeating block lets you pin it down exactly. Write two equations whose digits after the decimal point match, subtract so that the endless part cancels, and solve what is left. You get a fraction of two integers with a nonzero denominator, which shows that the repeating decimal is a rational number. To check, divide the numerator by the denominator: if you get the decimal you started with, your fraction is correct.