Bills, Percentages & Everyday Math · Math Foundations

How to Convert a Decimal to a Fraction

Write the decimal over 10, 100, or another power of ten, then divide the numerator and denominator by their GCF.

To convert a terminating decimal to a fraction, remove the decimal point, put the resulting whole number over the matching power of ten, and reduce the fraction. The Decimal to Fraction Calculator also shows a mixed-number form when the fraction is improper and can reverse the conversion.

Use the decimal place value

The number of digits after the decimal selects the denominator:

  • tenths → 10
  • hundredths → 100
  • thousandths → 1,000

For 0.375, there are three decimal places, so write 375/1000. For 2.125, write 2125/1000; the whole part is included in the numerator because the decimal represents the entire number.

Reduce the numerator and denominator

Find the greatest common factor of the numerator and denominator, then divide both by it. For 375/1000, the GCF is 125:

375 ÷ 125 = 3
1000 ÷ 125 = 8
0.375 = 3/8

Do not divide only the numerator or round the decimal before converting. Both operations change the value. The GCF Calculator can check a large reduction; the Decimal to Fraction Calculator performs the reduction for the entered value.

Convert an improper result to a mixed number

For 2.125, the unreduced fraction is 2125/1000. Reducing by 125 gives 17/8. Divide 17 by 8: the quotient is 2 and the remainder is 1, so the mixed number is 2 1/8. The improper fraction and mixed number have exactly the same value; choose the form that fits the next calculation.

Check the fraction against the decimal

Divide the reduced numerator by the denominator. 3 ÷ 8 = 0.375, and 17 ÷ 8 = 2.125. This reverse check catches a denominator with the wrong number of zeros. Keep the fraction exact when a later operation could magnify rounding.

Know the finite-decimal boundary

Terminating decimals have a finite number of digits after the decimal point. A repeating decimal such as 0.333... needs a different representation, 1/3, and cannot be recovered from a finite truncated input without stating the repeating pattern. Do not enter a rounded display value and call the resulting fraction exact for the original repeating number.

FAQs

How do I convert 0.375 to a fraction?

Write 375/1000, then reduce both terms by their GCF of 125. The result is 3/8.

How do I convert 2.5 to a fraction?

Write 25/10 and reduce by 5 to get 5/2, or write it as the mixed number 2 1/2.

What denominator should I use for 0.04?

There are two decimal places, so start with 4/100, then reduce by 4 to get 1/25.

Can every decimal become an exact fraction?

Every terminating decimal can. A repeating decimal can also represent a fraction, but you must know the repeating pattern; a rounded finite display does not preserve that information by itself.