X-Calculator
Math Updated November 23, 2026

Decimal to Fraction Calculator

Convert terminating or repeating decimals to simplified fractions and mixed numbers, with steps.

Decimal (e.g. 2.375, -0.125 or 0.1(6))
Repeating digits (optional, e.g. 3 for 0.333…)
Nearest simple fraction: denominator up to
Advertisement
Advertisement

This decimal to fraction calculator converts any decimal into a fraction in simplest form and into a mixed number. It handles terminating decimals such as 2.375 and repeating decimals such as 0.1666… or 0.142857142857…, shows every step of the reduction, and also finds the nearest simple fraction with a small denominator, which is handy for measurements and estimates.

How to convert a decimal to a fraction

  1. Write the digits without the decimal point as the numerator.
  2. Use 10 raised to the number of decimal places as the denominator: 1 place → 10, 2 places → 100, 3 places → 1,000.
  3. Divide both by their greatest common divisor (GCD) to simplify.
2.375 = 2375/1000
GCD(2375, 1000) = 125
2375 ÷ 125 = 19, 1000 ÷ 125 = 8  →  19/8 = 2 3/8

To write an improper fraction as a mixed number, divide: 19 ÷ 8 = 2 remainder 3, so 19/8 = 2 3/8.

Converting repeating decimals

A repeating decimal never ends, so the place-value trick above cannot work. Instead, multiply by powers of 10 so the repeating tails line up, then subtract to make them cancel. For 0.1666… (the 6 repeats):

x     = 0.1666…
100x  = 16.666…
10x   = 1.666…
100x − 10x = 16 − 1  →  90x = 15  →  x = 15/90 = 1/6

Enter the decimal part that does not repeat (0.1) in the first field and the repeating block (6) in the second, or type it in one field with parentheses: 0.1(6). A block of several digits works the same way: 0.(142857) = 142857/999999 = 1/7, and 3.1(45) = 3.1454545… = 173/55. The rule of thumb: a block of n repeating digits right after the decimal point goes over n nines, so 0.(36) = 36/99 = 4/11.

A typed decimal such as 0.333333 is not the same as 0.333… repeating; it equals exactly 333,333/1,000,000. The calculator flags inputs that look repeating and its nearest-fraction result shows 1/3.

Advertisement
Advertisement

Worked examples

  • 0.75 = 75/100 → divide by 25 → 3/4.
  • −0.125 = −125/1000 → divide by 125 → −1/8.
  • 0.4375 = 4375/10000 → divide by 625 → 7/16, a common drill-bit and wrench size.
  • 0.(9) = 9/9 = 1. The repeating decimal 0.999… is exactly equal to 1.
  • 3.14159 = 314159/100000 exactly; the nearest fraction with a denominator up to 100 is 311/99, and up to 1,000 it is 355/113 (3.14159292), one of the best-known approximations of π.

Common decimal to fraction conversions

Decimal Fraction Decimal Fraction
0.0625 1/16 0.5 1/2
0.1 1/10 0.5625 9/16
0.125 1/8 0.6 3/5
0.1(6) 1/6 0.(6) 2/3
0.2 1/5 0.625 5/8
0.25 1/4 0.75 3/4
0.3125 5/16 0.8 4/5
0.(3) 1/3 0.8(3) 5/6
0.375 3/8 0.875 7/8
0.4 2/5 0.9375 15/16

Finding the GCD quickly

For large numbers, use Euclid’s algorithm: divide, keep the remainder, and repeat until the remainder is 0. The last nonzero remainder is the GCD. For 2375/1000:

2375 = 2 × 1000 + 375
1000 = 2 × 375  + 250
375  = 1 × 250  + 125
250  = 2 × 125  + 0    →  GCD = 125

Dividing 2375 and 1000 by 125 gives 19/8 in one step. The GCF and LCM calculator does this for any pair of whole numbers.

Common mistakes

  • Counting zeros wrong. The denominator gets one zero per decimal place, including leading zeros: 0.05 = 5/100 = 1/20, not 5/10.
  • Stopping before the fraction is fully reduced. 0.75 = 75/100 = 15/20 is correct but not simplest; keep dividing until the GCD is 1, giving 3/4.
  • Rounding a repeating decimal first. Converting 0.67 gives 67/100, not 2/3. Use the repeating field for the exact value.

Which fractions terminate?

A fraction in simplest form has a terminating decimal only when its denominator has no prime factors other than 2 and 5. That is why 3/8 = 0.375 and 7/20 = 0.35 end, while 1/3, 1/6 and 1/7 repeat forever. The length of the repeating block can be long: 1/7 repeats every 6 digits and 1/17 every 16.

Nearest simple fraction

The third result finds the fraction closest to your decimal whose denominator does not exceed the limit you choose, using continued fractions. Use 16, 32 or 64 for inch measurements (0.4375 in = 7/16 in) and 100 or 1,000 for general estimates. With a limit of 8, 0.3 becomes 2/7, the closest fraction with denominator 8 or less; if you need ruler marks only, round to the nearest 1/16 or 1/8 instead. The same method recovers hidden repeating fractions from rounded calculator output: 1.272727 is closest to 14/11, which equals 1.(27) exactly.

Frequently Asked Questions

How do you convert a decimal to a fraction?

Put the digits over 10, 100 or 1,000 (one zero per decimal place) and simplify by the greatest common divisor. For example, 0.375 = 375/1000 = 3/8.

How do you convert a repeating decimal to a fraction?

Multiply by powers of 10 so the repeating parts line up and subtract. For 0.(3), 10x − x = 3, so 9x = 3 and x = 1/3.

What is 0.625 as a fraction?

0.625 = 625/1000, and dividing both by 125 gives 5/8.

Is 0.999… really equal to 1?

Yes. Using the repeating-decimal method, 10x − x = 9.999… − 0.999… = 9, so 9x = 9 and x = 1.

How do I write a decimal greater than 1 as a mixed number?

Keep the whole number and convert only the decimal part: 2.375 = 2 + 0.375 = 2 3/8.

Advertisement
Advertisement
Related

You may also need

All Math Calculators
Advertisement