Advertisement

Fraction to Decimal Calculator

Convert a fraction or mixed number to a decimal: exact repeating digits such as 0.58(3), the rounded value, the percent and the long-division steps.

Leave 0 for a plain fraction. For 2 3/4 enter 2 here.

Type a fraction and this converter divides the top number by the bottom one exactly, the way long division works on paper. It gives the decimal rounded to the places you choose, the exact decimal with any repeating block shown in brackets, the percentage, and the fraction in lowest terms. Mixed numbers such as 2 3/4 and negative fractions work too.

How to use this tool

  1. For a mixed number, enter the whole part; for a plain fraction leave it at 0.
  2. Enter the numerator (top) and the denominator (bottom) as whole numbers.
  3. Choose how many decimal places to round to.
  4. Read the exact decimal: digits inside brackets repeat forever. The table shows the long-division steps.

Formula

decimal = numerator ÷ denominator (mixed number: whole + numerator ÷ denominator)

Long division after the decimal point repeats one move: multiply the remainder by 10, divide by the denominator to get the next digit, and keep the new remainder. If the remainder becomes 0, the decimal terminates. If a remainder turns up a second time, every digit since its first appearance repeats. A fraction in lowest terms terminates only when its denominator has no prime factors other than 2 and 5.

Example

7/12: 7 ÷ 12 = 0 remainder 7. Then 70 ÷ 12 = 5 r 10, 100 ÷ 12 = 8 r 4, and 40 ÷ 12 = 3 r 4 — the remainder 4 has appeared again, so the 3 repeats. The exact decimal is 0.58(3) = 0.58333…, which rounds to 0.5833 at four places, or 58.33%.

Frequently asked questions

How do I write a repeating decimal?

Put a bar over the repeating digits, or brackets around them as this page does: 1/7 = 0.(142857) means 0.142857142857… Some textbooks put dots over the first and last repeating digits instead.

Which fractions give terminating decimals?

Reduce the fraction first. If the denominator is built only from 2s and 5s (2, 4, 5, 8, 10, 16, 20, 25, 40…), the decimal ends. Any other prime factor, such as the 3 in 7/12 or the 7 in 1/7, makes it repeat.

How long can the repeating part be?

For a denominator d the repeating block has at most d − 1 digits: 1/7 repeats every 6 digits and 1/97 every 96. The calculator works out up to 2,000 digits exactly.

How do I convert a mixed number such as 3 1/8?

Enter 3 as the whole number, 1 as the numerator and 8 as the denominator. The result is 3 + 0.125 = 3.125.

Last updated: 2026-10-30

Advertisement