Maths & numbers

Repeating decimal to fraction calculator

Turn a stated repeating decimal block into an exact reduced fraction, including a non-repeating prefix.

Your numbers

Leave blank when repetition starts immediately after the decimal point.
Enter the block once, without parentheses or a decimal point.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Try it, understand it

Explore the result

Move the beginning of the repeating block without silently dropping written zero digits.

Worked example comparison
ExampleOutputWhat to notice
One repeating digitExact reduced fraction1/30.(3) is exactly 1/3.
A nonrepeating prefixExact reduced fraction1/60.1(6) is exactly 1/6.
A two-place block with a zeroExact reduced fraction1/330.(03) is exactly 1/33.

Check your understanding

Are 0.(16) and 0.1(6) equal?

No. Their repeating blocks start at different places.

Does a leading zero inside the block matter?

Yes. It changes the block length and place-value construction.

Behind the numbers

How this calculation works

The repeating block forms a geometric series. Multiply by a power of ten to align its cycle and subtract the repeated tail. Add the whole part, then reduce the resulting integer ratio.

THE FORMULADenominator = 10^prefixLength × (10^repeatLength−1)

A worked example

0.1(6) means 0.1666… . Its non-repeating prefix is 1 and repeating block is 6, so it is exactly 1/6.

Good to know

A parenthesized block denotes endless repetition. This is not an approximation of a measured decimal. Prefix and repeat blocks each have at most nine digits; a repeating block of zeros represents a terminating value.

The repeating block starts at a particular place

In 0.1(6), only the digit six repeats: 0.16666…. In 0.(16), the block sixteen repeats: 0.161616…. The nonrepeating prefix shifts where the cycle begins, so it must not be absorbed into the repeating field.

Leading zeros inside a block matter. The block 03 has length two and repeats as 030303…, not as 3333…. The denominator construction uses the number of places, not just the integer value of the written digits. For a terminating decimal, a repeating block of zero represents the unchanged finite value.

The continued fraction calculator can inspect the same recovered numerator and denominator by a separate Euclidean process.

Use subtraction to remove the infinite tail

For x=0.(27), multiplying by one hundred shifts by a full two-digit cycle: 100x=27.(27). Subtracting x leaves 99x=27, so x=27/99=3/11. A nonrepeating prefix requires an additional power-of-ten factor before that same repeating-tail cancellation.

The final fraction is exact for the explicitly entered infinite cycle, not for an arbitrary rounded decimal measurement. The fraction arithmetic calculator can then combine it with another exact fraction. A sign is applied to the entire value rather than being hidden inside one of the digit fields.

A few questions, answered

Does 0.(9) equal one?

Yes. The exact construction gives 9/9, which reduces to one.

Can the nonrepeating prefix start with zero?

Yes. Its full written length still determines the place value.

Can a rounded decimal measurement be treated as repeating?

Only if an actual infinite repeating pattern is intended. The tool does not infer such a pattern from measured digits.

Find your calculator

Start typing to explore the library.