Decimal to Fraction Calculator

Turn a decimal into a fraction, including repeating decimals.

Put a repeating part in brackets: 0.1(6) is 0.1666…

Try

Result

You entered0.16‾0.1\overline{6}

16\displaystyle \frac{1}{6}

Fraction

16\displaystyle \frac{1}{6}

Decimal

0.16‾\displaystyle 0.1\overline{6}

Percent

16.6667%\displaystyle 16.6667\%
Show the work
  1. Recurring decimal

    Let xx be the value of the decimal; the bar marks the digits that repeat forever.

    x=0.16‾x = 0.1\overline{6}
  2. Multiplying by a power of 10

    Multiplying by 102=10010^{2} = 100 moves the decimal point 2 places right, so the repeating block starts just after the point.

    100x=16.6‾100x = 16.\overline{6}
  3. Subtracting the shifted decimals

    Subtract 10x10x from both sides: the two repeating tails are identical and cancel, leaving a whole number. Here n=1n = 1 is the number of non-repeating digits and r=1r = 1 is the length of the repeating block.

    Using 10n+rx−10nx=(10n+r−10n)x10^{n+r}x - 10^{n}x = \left(10^{n+r} - 10^{n}\right)x

    100x−10x=90x=15\begin{aligned} 100x - 10x &= 90x \\ &= 15 \end{aligned}
  4. Lowest terms

    The equation gives x=abx = \frac{a}{b} with a=15a = 15 and b=90b = 90; divide both by their highest common factor g=15g = 15.

    Using x=ab=a÷gb÷gx = \frac{a}{b} = \frac{a \div g}{b \div g}

    x=1590=16\begin{aligned} x &= \frac{15}{90} \\ &= \frac{1}{6} \end{aligned}
  5. Result

    So the decimal as a fraction is 16\frac{1}{6}.

Worked examples