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.3‾0.\overline{3}

13\displaystyle \frac{1}{3}

Fraction

13\displaystyle \frac{1}{3}

Decimal

0.3‾\displaystyle 0.\overline{3}

Percent

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

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

    x=0.3‾x = 0.\overline{3}
  2. Multiplying by a power of 10

    Multiplying by 101=1010^{1} = 10 moves the decimal point 1 place right, so the repeating block starts just after the point.

    10x=3.3‾10x = 3.\overline{3}
  3. Subtracting the shifted decimals

    Subtract xx from both sides: the two repeating tails are identical and cancel, leaving a whole number. Here n=0n = 0 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

    10x−x=9x=3\begin{aligned} 10x - x &= 9x \\ &= 3 \end{aligned}
  4. Lowest terms

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

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

    x=39=13\begin{aligned} x &= \frac{3}{9} \\ &= \frac{1}{3} \end{aligned}
  5. Result

    So the decimal as a fraction is 13\frac{1}{3}.

Worked examples