Repeating Decimal to Fraction: The Algebra Method Explained
Convert a repeating decimal to a fraction with the algebra method: multiply by a power of 10, subtract and solve. Covers mixed repeating decimals and 0.999...
Updated
To convert a repeating decimal to a fraction, set the decimal equal to x, multiply by a power of 10 that shifts one full repeating block past the decimal point, and subtract the original equation so the endless tail cancels. For 0.333..., 10x − x = 3.333... − 0.333... gives 9x = 3, so x = 3/9 = 1/3. Every repeating decimal is an exact fraction, and this method finds it.
Notation
The digits that recur are called the repeating block, or repetend. There are a few ways to mark it:
- Three dots: 0.333... or 0.272727...
- A bar over the block, common in US textbooks.
- A dot over the first and last repeating digits, common in the UK.
- Parentheses: 0.(3), 0.(27), 0.1(6).
This guide uses dots and parentheses. In 0.1(6) the 1 appears once and the 6 repeats: 0.1666...
The algebra method
- Let x equal the decimal.
- Count the digits in the repeating block. Call the count n.
- Multiply both sides by 10 to the power n.
- Subtract the original equation from the new one. The repeating parts are identical after the decimal point, so they cancel.
- Solve for x and simplify the fraction.
One repeating digit: 0.777...
x = 0.777...10x = 7.777...- Subtract:
9x = 7 x = 7/9
Two repeating digits: 0.272727...
x = 0.272727...100x = 27.272727...- Subtract:
99x = 27 x = 27/99 = 3/11
Six repeating digits: 0.142857142857...
x = 0.142857...1,000,000x = 142857.142857...- Subtract:
999,999x = 142,857 x = 142,857/999,999 = 1/7
The pattern is visible: a purely repeating decimal equals its repeating block over the same number of nines. 0.(45) is 45/99, which simplifies to 5/11. 0.(037) is 37/999, which simplifies to 1/27.
Mixed repeating decimals
When some digits come before the repeating block, multiply twice: once to move the non-repeating digits past the point, and once more to move a full block past it. Then subtract those two equations from each other.
0.1666... has one non-repeating digit and one repeating digit.
x = 0.1666...10x = 1.666...100x = 16.666...- Subtract:
100x − 10x = 16.666... − 1.666..., so90x = 15 x = 15/90 = 1/6
0.58333... has two non-repeating digits, 5 and 8, and one repeating digit.
x = 0.58333...100x = 58.333...1000x = 583.333...- Subtract:
900x = 525 x = 525/900 = 7/12
2.4545... has a whole number part. Convert the decimal part and add it back.
- 0.(45) is 45/99, which is 5/11.
- 2 + 5/11 = 2 5/11, or 27/11 as an improper fraction.
The shortcut formula
The algebra always lands on the same shape, so you can skip to it.
- Numerator: all the digits up to the end of the first repeating block, read as a whole number, minus the non-repeating digits read as a whole number.
- Denominator: one 9 for each repeating digit, followed by one 0 for each non-repeating digit after the decimal point.
| Decimal | Numerator | Denominator | Simplified |
|---|---|---|---|
| 0.(3) | 3 − 0 = 3 | 9 | 1/3 |
| 0.(27) | 27 − 0 = 27 | 99 | 3/11 |
| 0.1(6) | 16 − 1 = 15 | 90 | 1/6 |
| 0.58(3) | 583 − 58 = 525 | 900 | 7/12 |
| 0.08(3) | 83 − 8 = 75 | 900 | 1/12 |
| 0.4(09) | 409 − 4 = 405 | 990 | 9/22 |
Why 0.999... equals 1
Apply the method to 0.999...
x = 0.999...10x = 9.999...- Subtract:
9x = 9 x = 1
This is not a rounding trick. 0.999... and 1 are two decimal spellings of the same number. Other ways to see it:
- 1/3 is 0.333..., and three times 1/3 is 1, so three times 0.333... is 0.999... and must also be 1.
- If the two numbers were different, there would be a number between them. There is no digit you can change in 0.999... to make it larger without reaching 1.
- The decimal stands for the sum 9/10 + 9/100 + 9/1000 and so on. That is a geometric series whose sum is exactly 1.
The same thing happens with every decimal that ends. 0.5 can also be written 0.4999..., and 2.37 can be written 2.36999... Each terminating decimal has a second form ending in endless nines.
Common repeating decimals
| Fraction | Decimal | Repeating block |
|---|---|---|
| 1/3 | 0.333... | 3 |
| 2/3 | 0.666... | 6 |
| 1/6 | 0.1666... | 6 |
| 5/6 | 0.8333... | 3 |
| 1/7 | 0.142857... | 142857 |
| 1/9 | 0.111... | 1 |
| 1/11 | 0.0909... | 09 |
| 1/12 | 0.08333... | 3 |
| 1/15 | 0.0666... | 6 |
| 1/99 | 0.0101... | 01 |
A fraction in lowest terms repeats whenever its denominator has a prime factor other than 2 or 5. The repeating block for a denominator n is never longer than n − 1 digits, which is why 1/7 has a six-digit block and can have no more.
Mistakes to avoid
- Treating a rounded value as the repeating one. 0.33 is 33/100. Only 0.333... with the digits going on forever is 1/3.
- Using the wrong multiplier. The power of ten must match the block length: 0.(27) needs 100, not 10. Multiplying 0.2727... by 10 gives 2.7272..., whose tail does not line up with the original.
- Forgetting the non-repeating digits. Putting 0.1(6) over 9 or 99 gives the wrong answer. It needs 90.
- Stopping before simplifying. 27/99 is correct but unfinished. Divide by the greatest common divisor, 9, to reach 3/11.
- Trying this on a decimal that never repeats. Pi and the square root of 2 are irrational and have no fraction form.
Checking your answer with the converter
The Fraction to Decimal Converter is the quickest way to verify a result. On the "Fraction → Decimal" tab, enter your fraction and compare the decimal with the one you started from. 7/12 shows 0.5833333333 and 3/11 shows 0.2727272727. It displays ten significant digits, so the output is cut off instead of marked as repeating.
The "Decimal → Fraction" tab works on the exact digits typed, which means it treats every input as a decimal that ends. Entering 0.333 returns 333/1000, not 1/3, and there is no input for a repeating block. Use the algebra method for the conversion and the tool for the check. It is also handy for the last step: enter an unsimplified result such as 525/900 and it shows the greatest common divisor, 75, and the reduced fraction 7/12.
For decimals that do end, the power of ten method in how to convert a decimal to a fraction is faster. To see where repeating decimals come from in the first place, how to convert a fraction to a decimal walks through the long division.
Try it
Work out 0.58333... by hand, then enter 7/12 in the Fraction to Decimal Converter and confirm it shows 0.5833333333.