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 entered2.52.5

52\displaystyle \frac{5}{2}

Fraction

52\displaystyle \frac{5}{2}

Mixed number

212\displaystyle 2\frac{1}{2}

Decimal

2.5\displaystyle 2.5

Percent

250%\displaystyle 250\%
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=25N = 25 and k=1k = 1.

    2.5=25101=2510\begin{aligned} 2.5 &= \frac{25}{10^{1}} \\ &= \frac{25}{10} \end{aligned}
  2. Lowest terms

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

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

    2510=25÷510÷5=52\begin{aligned} \frac{25}{10} &= \frac{25 \div 5}{10 \div 5} \\ &= \frac{5}{2} \end{aligned}
  3. Result

    So the decimal as a fraction is 52\frac{5}{2}.

Worked examples