GameParticles
Numbers & units

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

  1. Let x equal the decimal.
  2. Count the digits in the repeating block. Call the count n.
  3. Multiply both sides by 10 to the power n.
  4. Subtract the original equation from the new one. The repeating parts are identical after the decimal point, so they cancel.
  5. 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..., so 90x = 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.
DecimalNumeratorDenominatorSimplified
0.(3)3 − 0 = 391/3
0.(27)27 − 0 = 27993/11
0.1(6)16 − 1 = 15901/6
0.58(3)583 − 58 = 5259007/12
0.08(3)83 − 8 = 759001/12
0.4(09)409 − 4 = 4059909/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

FractionDecimalRepeating block
1/30.333...3
2/30.666...6
1/60.1666...6
5/60.8333...3
1/70.142857...142857
1/90.111...1
1/110.0909...09
1/120.08333...3
1/150.0666...6
1/990.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.

Tools in this guide

Frequently asked questions

How do you convert a repeating decimal to a fraction?

Call the decimal x, multiply it by 10 for each repeating digit, subtract the original equation so the repeating tail cancels, then solve for x and simplify. For 0.272727..., 100x − x = 27, so x = 27/99 = 3/11.

Is 0.999... really equal to 1?

Yes. They are two ways of writing the same number. If x = 0.999..., then 10x = 9.999..., and subtracting gives 9x = 9, so x = 1. No number fits between 0.999... and 1, so the difference between them is zero.

What is 0.1666... as a fraction?

0.1666... is 1/6. Let x be the decimal, so 10x = 1.666... and 100x = 16.666... Subtracting gives 90x = 15, and 15/90 simplifies to 1/6. The 1 does not repeat, which is why two multiplications are needed.

What is 0.333 repeating as a fraction?

0.333... is exactly 1/3. With x = 0.333..., 10x = 3.333..., and subtracting gives 9x = 3, so x = 3/9 = 1/3. The rounded decimal 0.333 is a different number: it equals 333/1000.

More numbers & units guides

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵