ToolsVortex
Explore tools
Decimal to Fraction Calculator overview

Decimal to Fraction Calculator

ToolsVortex · Math & Education

Turn any decimal into a fraction in its simplest form, or a fraction into a decimal, with the steps shown.

Fraction
 
Decimal to Fraction Calculator on ToolsVortex: enter your numbers and get an instant answer
Decimal to Fraction Calculator: free, private and instant on any phone or computer.

Recipes, measurements, shares and math homework all switch between decimals and fractions. A calculator shows 0.375 while a ruler shows 3/8, and it’s not always obvious they’re the same. This converter turns any decimal into a fraction in its simplest form, handles repeating decimals such as 0.333…, and converts fractions back to decimals and percentages.

How do I convert a decimal to a fraction?

Write the decimal over 1 followed by as many zeros as there are digits after the point, then simplify. For 0.375, that’s 375/1000. Both numbers divide by 125, giving 3/8. For a repeating decimal like 0.333…, enter 3 as the repeating digit and you get 1/3.

Step-by-step method

1. 0.375 = 375 / 1000
2. Greatest common divisor of 375 and 1000 = 125
3. 375 ÷ 125 = 3, 1000 ÷ 125 = 8
4. Answer: 3/8

Common decimals as fractions

DecimalFractionDecimalFraction
0.1251/80.63/5
0.21/50.6255/8
0.251/40.666…2/3
0.333…1/30.753/4
0.3753/80.84/5
0.51/20.8757/8

Repeating decimals

A repeating decimal such as 0.1666… (where 6 repeats) is converted with a little algebra. The tool does it for you: type 0.1 as the decimal and 6 as the repeating part, and it returns 1/6.

How to use the Decimal to Fraction Calculator

  1. Type the decimal

    Enter any decimal, such as 0.375 or 2.125. Negative numbers work too.

    Type the decimal on the Decimal to Fraction Calculator
  2. Add repeating digits if needed

    For a decimal like 0.333…, put the part that repeats here, such as 3.

    Add repeating digits if needed on the Decimal to Fraction Calculator
  3. Or enter a fraction

    Type a fraction such as 7/8 or a mixed number such as 1 3/4 to convert it to a decimal.

    Or enter a fraction on the Decimal to Fraction Calculator
  4. Read the answer

    The simplest fraction, or the decimal, appears in large text with the working underneath.

    Read the answer on the Decimal to Fraction Calculator

Which fractions turn into terminating decimals?

A fraction in lowest terms has a terminating decimal only when its denominator has no prime factors other than 2 and 5. That rule comes straight from prime factorization: our number system is base 10, and 10 = 2 × 5, so only those primes can divide evenly into a power of ten. That is why 3/8 = 0.375 and 7/20 = 0.35 stop, while 1/3, 2/7 and 5/6 repeat forever.

To reduce a fraction first, divide the top and bottom by their greatest common divisor. The classic way to find it is the Euclidean algorithm, which repeatedly replaces the larger number with the remainder of dividing it by the smaller one until the remainder is zero. For 375/1000 the steps end at 125, giving 3/8. You can check any pair with the greatest common factor calculator.

The same idea explains a common computer surprise. Software stores most numbers in IEEE 754 binary floating point, which is base 2. In base 2 only denominators that are powers of 2 terminate, so 0.1 (which is 1/10) cannot be stored exactly. That tiny error is why some programs print 0.1 + 0.2 as 0.30000000000000004.

How do I turn a decimal into the nearest 1/16 or 1/32 of an inch?

Tape measures and drill bit sets in the US customary system use binary fractions: halves, quarters, eighths, sixteenths, thirty-seconds and sixty-fourths. To convert a decimal inch reading, multiply the decimal part by the denominator you want, round to a whole number, then reduce.

  1. Take 2.37 inches. The decimal part is 0.37.
  2. Multiply by 16: 0.37 × 16 = 5.92, which rounds to 6.
  3. 6/16 reduces to 3/8, so the reading is about 2 3/8 inches.

At 1/16 precision the worst rounding error is 1/32 inch, about 0.79 mm. If you need closer work, use 1/32 or 1/64. Since the 1959 international yard and pound agreement, one inch has been defined as exactly 25.4 millimeters, so a metric reading converts cleanly; the mm to inches converter gives the decimal you can then round here.

For harder cases, mathematicians use a continued fraction to find the best simple fraction for a decimal. It is how 3.14159 leads to the well known approximations 22/7 and 355/113 for pi.

Frequently asked questions

What is 0.75 as a fraction?

0.75 is 3/4.

What is 0.2 as a fraction?

0.2 is 1/5.

How do I convert a repeating decimal to a fraction?

Enter the non-repeating part as the decimal and the repeating digits in the second box. 0.333… becomes 1/3.

What is 1.5 as a fraction?

1.5 is 3/2, or 1 1/2 as a mixed number.

How do I turn a fraction into a percentage?

Divide the top number by the bottom number and multiply by 100. The tool shows the percentage when you enter a fraction.

Sources and further reading

Related tools

Last reviewed: October 2026