Decimal to Fraction Converter

Convert decimals to fractions and back. Shows the simplified mixed number and improper fraction for any decimal you type.

Result

-
-
Was this tool helpful? Rate it:

What does a decimal to fraction converter do?

A decimal to fraction converter rewrites a decimal number as a fraction in its simplest form. For example, 0.75 = 3/4, 0.625 = 5/8, 2.75 = 2 3/4 (improper form 11/4) and 3.14 = 3 7/50. The MavexTech converter works in both directions: in Decimal to Fraction mode it shows the simplified mixed number plus the improper fraction, and in Fraction to Decimal mode it divides the numerator by the denominator and shows the decimal to 10 places with a 4-place approximation.

It is useful for maths homework that asks for answers “in simplest form”, for reading measurements in inches (0.375″ is 3/8″), for recipes (0.75 cup is 3/4 cup), for woodwork and engineering drawings, and for checking that a calculator answer matches a fraction in a textbook.

How to use the converter

  1. Pick a direction with the tabs: Decimal to Fraction or Fraction to Decimal.
  2. Type the value — a decimal such as 0.875 or -2.5, or a numerator and denominator such as 5 and 8.
  3. Read the result — the main line shows the simplified fraction (as a mixed number when it is larger than 1) or the decimal; the second line shows the improper fraction or the rounded decimal.

How decimal to fraction conversion works

  1. Split off the whole number. 2.375 → 2 and 0.375.
  2. Write the decimal part over a power of 10. Count the digits after the point: 0.375 has three, so it is 375/1000.
  3. Simplify with the greatest common divisor (GCD). GCD(375, 1000) = 125, so 375/1000 = 3/8.
  4. Recombine. 2.375 = 2 3/8, or as an improper fraction (2 × 8 + 3)/8 = 19/8.

Fraction to decimal is the reverse: divide the top by the bottom. 5 ÷ 8 = 0.625. When the denominator (after simplifying) has only 2s and 5s as prime factors, the decimal ends; otherwise it repeats forever.

Common decimals as fractions

DecimalFractionDecimalFraction
0.051/200.51/2
0.11/100.63/5
0.1251/80.6255/8
0.153/200.77/10
0.21/50.753/4
0.251/40.84/5
0.33/100.8757/8
0.357/200.99/10
0.3753/81.21 1/5 (6/5)
0.42/51.51 1/2 (3/2)
0.459/202.752 3/4 (11/4)
0.6633/503.143 7/50 (157/50)

Inch fractions: sixteenths and eighths

Tape measures, spanners and drill bits marked in inches use halves, quarters, eighths and sixteenths. This table converts the decimals you see on drawings and digital callipers.

Decimal inchFractionDecimal inchFraction
0.06251/160.56259/16
0.1251/80.6255/8
0.18753/160.687511/16
0.251/40.753/4
0.31255/160.812513/16
0.3753/80.8757/8
0.43757/160.937515/16
0.51/211

Fractions to decimals, including repeating decimals

Values below are what the Fraction to Decimal tab shows (10 decimal places, trailing zeros removed).

FractionDecimalType
1/30.3333333333repeating (3)
2/30.6666666667repeating (6), last digit rounded
1/60.1666666667repeating (6)
5/60.8333333333repeating (3)
1/70.1428571429repeating (142857)
1/90.1111111111repeating (1)
1/110.0909090909repeating (09)
1/120.0833333333repeating (3)
5/120.4166666667repeating (6)
1/80.125terminating
7/41.75terminating
22/73.1428571429repeating (an old approximation of π)
355/1133.1415929204a much closer approximation of π

Converting a repeating decimal by hand

Because the converter reads exactly the digits you type, 0.333 becomes 333/1000, not 1/3. To get the exact fraction for a repeating decimal, use this algebra trick:

  • One repeating digit: let x = 0.333…; then 10x = 3.333…; subtract: 9x = 3, so x = 3/9 = 1/3.
  • Two repeating digits: x = 0.0909…; 100x = 9.0909…; 99x = 9, so x = 9/99 = 1/11.
  • Repeat starts later: x = 0.1666…; 10x = 1.666… and 100x = 16.666…; 90x = 15, so x = 15/90 = 1/6.

A quick rule: a block of n repeating digits right after the point equals that block over n nines (0.272727… = 27/99 = 3/11).

Worked examples

  • 0.875 → 875/1000 → GCD 125 → 7/8.
  • 3.125 → 3 + 125/1000 = 3 1/8, improper 25/8.
  • -2.5 → -2 1/2, improper -5/2 (the sign is kept on the whole value).
  • 0.66 → 33/50; if you meant two-thirds, enter 2 and 3 in the fraction tab instead.
  • 5/8 to decimal → 0.625, which is also 62.5%.

Tips and limitations

  • The tool treats your input as exact. Type every digit you have: 0.3333 gives 3333/10000, which is close to, but not, 1/3.
  • For a repeating decimal, work out the fraction with the method above, then check it in the fraction tab.
  • Very small inputs that the browser stores in scientific notation (for example 0.0000001, stored as 1e-7) are expanded first, so 0.0000001 gives 1/10000000. Values needing more than 300 decimal places are reported as too small to show as a fraction.
  • Whole numbers such as 5 simply return 5 with the note “No fraction part”.
  • A denominator of 0 shows “Divide by zero”; the line below it may still show the previous approximation, so ignore it in that case.

Frequently Asked Questions

What is 0.75 as a fraction?

0.75 = 75/100. Both numbers divide by 25, so the simplest form is 3/4.

What is 0.625 as a fraction?

0.625 = 625/1000. The GCD is 125, so it simplifies to 5/8.

Why does 0.333 not convert to 1/3?

0.333 has exactly three decimal places, so it equals 333/1000. One third is 0.333… repeating forever. Use the fraction tab with 1 and 3, or the repeating-decimal method on this page, for the exact value.

How do I convert a mixed number like 2 3/4 to a decimal?

Multiply the whole number by the denominator and add the numerator to get the improper fraction (2 × 4 + 3 = 11, so 11/4), then divide: 11 ÷ 4 = 2.75.

Which fractions give terminating decimals?

A simplified fraction terminates only when its denominator's prime factors are 2s and 5s, such as 1/8 = 0.125 or 3/20 = 0.15. Denominators with other primes, such as 3, 7 or 11, give repeating decimals.

Is 22/7 equal to pi?

No. 22/7 = 3.1428571429 while pi is 3.14159…. It is a handy approximation; 355/113 = 3.1415929204 is far closer.

Does the converter handle negative decimals?

Yes. -0.75 returns -3/4 and -2.5 returns -2 1/2 with the improper fraction -5/2.

Related tools

Fraction Calculator · Percentage Calculator · GCD & LCM Calculator · Recipe Scaler

Copied