Bills, Percentages & Everyday Math · Math Foundations

How to Convert a Repeating Decimal to a Fraction

Write the repeating pattern clearly, align two shifted decimals, subtract to cancel the repeat, and reduce the resulting fraction.

To convert a repeating decimal, shift the decimal until one full repeat lines up with the original, subtract, and solve the resulting equation. Then reduce the fraction and divide it back to check the value.

The Decimal to Fraction Calculator is designed for finite decimal input. This guide covers the extra algebra needed when a digit or block repeats forever, and it explains why a rounded display such as 0.33 is not the same input as 0.333....

Identify the repeating block

Write the repeating part explicitly before doing any algebra. In this guide, parentheses mark the block that repeats:

  • 0.(3) means 0.333333...;
  • 0.(27) means 0.272727...;
  • 0.1(6) means 0.166666...;
  • 2.4(7) means 2.477777....

The number of non-repeating decimal digits controls the first shift. The length of the repeating block controls the second shift. If the pattern is not known, an entered rounded value cannot recover the exact original repeat.

Convert a repeat that starts immediately

For 0.(3), let the repeating decimal be x:

x  = 0.333333...
10x = 3.333333...

Subtract the first line from the second. The repeating tails cancel:

10x − x = 3.333333... − 0.333333...
9x = 3
x = 3 ÷ 9 = 1/3

For a two-digit block, shift by 100 instead of 10. With x = 0.(27):

100x = 27.272727...
    x =  0.272727...
  99x = 27
   x = 27/99 = 3/11

The denominator is made of as many 9s as there are repeating digits: 9 for one digit, 99 for two, 999 for three, and so on. Reduce it after the subtraction rather than rounding the decimal first.

Handle digits before the repeat

If some digits occur once before the repeat, use two shifts and subtract them. Consider 0.1(6), which means 0.166666...:

x    = 0.166666...
100x = 16.666666...
 10x =  1.666666...
 90x = 15
x    = 15/90 = 1/6

The first shift moves past the non-repeating 1 and the repeating 6; the second shift moves only past the non-repeating digit. Their difference leaves 9 copies of x because the repeat has one digit.

For a number with a whole part, include that whole part in the same subtraction. For 2.4(7):

x     = 2.477777...
100x  = 247.777777...
 10x  =  24.777777...
 90x  = 223
x     = 223/90

223/90 is already reduced because 223 shares no factor with 90. The fraction is improper because the original decimal is greater than 2; a mixed-number form is 2 43/90 if that is easier to read.

Use the general formula

Let:

  • n be the number of non-repeating decimal digits;
  • r be the number of repeating digits;
  • A be the integer formed by all digits from the decimal point through one complete repeat, including the whole part;
  • B be the integer formed by the digits through the non-repeating section, including the whole part.

Then:

fraction = (A − B) ÷ [10ⁿ × (10ʳ − 1)]

For 2.4(7), n = 1, r = 1, A = 247, and B = 24. The denominator is 10¹ × (10¹ − 1) = 90, giving (247 − 24) / 90 = 223/90.

This formula is a compact version of the shift-and-subtract method. The equation is easier to audit when the repeating block is short; the general form helps when the block has several digits.

Reduce and check the fraction

After solving for the fraction, reduce the numerator and denominator by their greatest common factor. The GCF Calculator can check a large pair. Then divide the reduced numerator by the denominator and compare the resulting decimal with the original repeating pattern.

For 0.(27), the unreduced result is 27/99. Dividing both terms by 9 gives 3/11; long division produces 0.272727..., so the repeating block is preserved. The Long Division Calculator can show that check when the quotient is not obvious.

Separate a repeat from a rounded decimal

0.333... and 0.33 are different information. The first states an infinite repeating pattern and equals exactly 1/3. The second is a finite decimal that may be a rounded display of 1/3, but it also could be the exact value 33/100. A calculator cannot infer which meaning you intended from the two digits alone.

If a measurement was rounded, keep its stated precision and label the resulting fraction as an approximation. Use the repeating-decimal method only when the repeat is part of the number being represented.

FAQs

What is 0.333... as a fraction?

It is 1/3. Let x = 0.333...; then 10x − x = 3, so 9x = 3 and x = 1/3.

How do I convert 0.1666... to a fraction?

Treat it as 0.1(6). Subtract 10x from 100x to get 90x = 15, so x = 15/90 = 1/6.

Can the Decimal to Fraction Calculator detect an infinite repeat from 0.33?

No. A finite input does not identify a repeating pattern. Enter the exact repeat as an algebra problem, then use the calculator to check the reduced fraction's decimal form.

Why do I need to reduce the fraction?

Reduction does not change the value, but it gives the fraction its simplest exact form. It also makes reverse checking and comparison easier.