How to Convert a Repeating Decimal to a Fraction, Step by Step

Convert terminating and repeating decimals such as 0.75, 0.(3) and 1.2(34) into simplest fractions using the algebra method, plus nearest-fraction tricks.

Updated September 29, 2026 6 min read

Use the free Decimal to Fraction ConverterConvert decimals, including repeating ones like 0.(3), to simplest fractions

Decimals are convenient for calculators, but plenty of situations want a fraction: a recipe scaled by 0.375, a drawing that says 0.3125 inches when your tape measure is marked in sixteenths, or a maths problem that asks you to write 0.1666… "as a fraction in lowest terms".

This guide shows the method for each kind of decimal: terminating ones such as 0.75, purely repeating ones such as 0.333…, and mixed ones such as 1.23434…. It also covers what to do when you only want a close fraction with a small denominator. Every answer was checked with the converter.

Terminating decimals: use place value

A decimal that ends is already a fraction over a power of ten. Count the digits after the point, put the digits over 10, 100, 1000 and so on, then simplify.

  • 0.75 = 75/100. The greatest common factor of 75 and 100 is 25, so 0.75 = 3/4.
  • 0.3125 = 3125/10000 = 5/16.
  • 2.4 = 24/10 = 12/5, or 2 2/5 as a mixed number.

Simplifying needs the greatest common factor; the GCF Calculator finds it instantly if the numbers are awkward.

Purely repeating decimals: the subtraction trick

For a decimal where the repeating block starts straight after the point, the standard method uses algebra to cancel the infinite tail.

Example: 0.333… (written 0.(3))

x      = 0.333…
10x    = 3.333…
10x − x = 3
9x     = 3
x      = 3/9 = 1/3

Multiply by 10 for each repeating digit. For a block of two digits, multiply by 100; for six digits, by 1,000,000.

Example: 2.(142857)

x          = 2.142857 142857…
1000000x   = 2142857.142857…
999999x    = 2142855
x          = 2142855/999999 = 15/7

A useful shortcut falls out of this: a purely repeating block over as many 9s as it has digits gives the fraction. 0.(4) = 4/9, 0.(27) = 27/99 = 3/11.

Mixed repeating decimals: two multiplications

When some digits come before the repeat, shift twice: once to move the point past the non-repeating part, and once more to move it past one full cycle.

Example: 0.1(6) = 0.1666…

10x   = 1.666…     (point after the non-repeating 1)
100x  = 16.666…    (one more cycle)
90x   = 15
x     = 15/90 = 1/6

Example: 1.2(34) = 1.23434…

10x    = 12.3434…
1000x  = 1234.3434…
990x   = 1222
x      = 1222/990 = 611/495  (= 1 116/495)

The pattern for the denominator: as many 9s as repeating digits, followed by as many 0s as non-repeating digits after the point. For 1.2(34) that is 990.

Watch out: 0.333 is not 0.333…

A decimal that is written with three 3s and stops is a different number from one where the 3s go on forever.

Typed Meaning Fraction
0.333 exactly three digits 333/1000
0.(3) 3 repeats forever 1/3
0.(9) 9 repeats forever 1

The last row surprises many people, but the algebra is the same as above: 10x − x = 9, so x = 1.

Nearest fractions with a small denominator

Sometimes the exact fraction is useless. 0.63 is exactly 63/100, but on a ruler marked in eighths or sixteenths you want the closest fraction you can actually measure.

The best approximation with a limited denominator comes from a technique called continued fractions. For 0.63 with a denominator no larger than 16, the closest fraction is 5/8 = 0.625, off by 0.005. Rounding to sixteenths by hand (0.63 × 16 = 10.08, so 10/16 = 5/8) gives the same answer here. For 0.2857, though, rounding to sixteenths gives 5/16 = 0.3125, while the best fraction with a denominator up to 16 is 2/7 = 0.285714…, far closer. Simple rounding only tries one denominator; the continued-fraction search tries them all.

This is also where famous approximations come from: 22/7 and 355/113 are the best fractions for π at their sizes.

How to use the Decimal to Fraction Converter

  1. Open the Decimal to Fraction Converter.
  2. Type the number into Decimal number. Put repeating digits in parentheses: 0.(3), 0.1(6), 2.(142857). If you type 0.333... with three dots, the tool reads it as a repeating pattern and shows a note explaining how it interpreted the input.
  3. Read Fraction (simplest form). Below it you get the Mixed number (for values above 1), the Numerator / denominator and the value As a percentage.
  4. To get a practical approximation, fill in Also find the closest fraction with denominator up to. Try 16 for sixteenths of an inch, 8 for eighths, or 100 for a rough ratio. The result shows the fraction and how far it is off.
  5. Open the steps to see the same algebra as above, applied to your number.

The converter uses exact whole-number arithmetic, so long repeating blocks and many decimal places do not introduce rounding errors.

Other ways to do it

Scientific calculators

Many handheld scientific calculators have a key that toggles between a decimal and a fraction display. They work well for short decimals but usually cannot accept a repeating decimal as input, and they give up on large denominators.

Spreadsheets

Excel and Google Sheets can display a decimal as a fraction with a custom number format such as # ?/16 (sixteenths) or # ???/??? (up to three-digit denominators). This is effectively the nearest-fraction search and is handy for a column of measurements.

Going the other way

To turn a fraction into a decimal, and see where the repeating block starts, use the Fraction to Decimal Converter. For adding or multiplying the fractions you get, the Fraction Calculator keeps results exact, and the guide on fraction arithmetic covers the rules.

Common mistakes

Stopping before simplifying

75/100 is correct but not in lowest terms. Divide the numerator and denominator by their greatest common factor to get 3/4.

Multiplying by the wrong power of ten

The multiplier must shift the point by exactly one full repeating block. For 0.(27), multiplying by 10 instead of 100 leaves misaligned tails that do not cancel.

Treating a rounded decimal as exact

0.67 is not 2/3. If a value came from a calculator display, decide whether it is really 0.(6) before converting, or use the nearest-fraction option.

Losing the sign

−0.125 is −1/8. Convert the digits, then put the minus sign back in front.

Frequently asked questions

What is 0.333… as a fraction?

It is exactly 1/3. Setting x = 0.333…, multiplying by 10 and subtracting gives 9x = 3, so x = 1/3.

How do I convert a decimal to a fraction without a calculator?

For a terminating decimal, write the digits over the matching power of ten and simplify. For a repeating one, set it equal to x, multiply to shift the repeat, subtract, and solve for x.

How do I type a repeating decimal into the converter?

Put the repeating digits in parentheses, for example 0.(3) or 1.2(34). You can also type 0.333... and the tool will detect the pattern.

Why is 0.999… equal to 1?

With x = 0.999…, 10x = 9.999…, and subtracting gives 9x = 9, so x = 1. The two notations describe the same number.

How do I get a fraction in sixteenths for a measurement?

Enter the decimal and set the largest denominator to 16. For 0.63 the converter suggests 5/8, which is 10/16, and shows it is 0.005 away from the exact value.

Try it now: Decimal to Fraction Converter

Loading tool…