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.1250.125

18\displaystyle \frac{1}{8}

Fraction

18\displaystyle \frac{1}{8}

Decimal

0.125\displaystyle 0.125

Percent

12.5%\displaystyle 12.5\%
Show the work
  1. Place value

    Writing the decimal without its point gives the numerator NN, and kk is the number of decimal places, so d=N10kd = \frac{N}{10^{k}}. Here N=125N = 125 and k=3k = 3.

    0.125=125103=1251000\begin{aligned} 0.125 &= \frac{125}{10^{3}} \\ &= \frac{125}{1000} \end{aligned}
  2. Lowest terms

    Divide the numerator and the denominator by their highest common factor g=125g = 125 to reach lowest terms.

    Using N10k=N÷g10k÷g\frac{N}{10^{k}} = \frac{N \div g}{10^{k} \div g}

    1251000=125÷1251000÷125=18\begin{aligned} \frac{125}{1000} &= \frac{125 \div 125}{1000 \div 125} \\ &= \frac{1}{8} \end{aligned}
  3. Result

    So the decimal as a fraction is 18\frac{1}{8}.

Worked examples