Repeating Decimal to Fraction Calculator

Convert a signed recurring decimal with a fixed prefix and 1–12 digit repeating block into an exact reduced fraction.

Enter your values

For 0.1666…, enter 0.1 and 6. Use 1–12 digits for the repeating block.

Simplified fraction

Your result will appear here.

Overview

What is a repeating decimal to fraction calculator?

A repeating decimal to fraction calculator converts an endless periodic decimal into a ratio of integers. Powers of ten shift two copies of the number until their repeating tails align; subtraction cancels those identical tails and leaves a finite equation.

Important terms

Non-repeating prefix
The digits after the decimal point that occur once before the cycle begins.
Repetend
The finite block of digits that repeats endlessly.
Recurring notation
Parentheses or an overline used to identify the repeating block.
Tail cancellation
Subtracting two aligned infinite decimals so identical repeating parts disappear.
Rational number
A number expressible as a ratio of two integers with nonzero denominator.

When this method is useful

  • Recovering an exact fraction from recurring decimal notation.
  • Proving familiar identities such as 0.(9) = 1.
  • Converting repeating calculator output into fraction arithmetic.
  • Understanding why periodic decimals are rational.
Calculator explainer

Repeating Decimal to Fraction Calculator

Separate fixed and repeating digits

Primary formulax = (whole digits − fixed digits) / (10ᵐ⁺ʳ − 10ᵐ)
Worked example0.1(6) = (16 − 1)/(100 − 10) = 1/6
fixed part0.1
repeating block6 6 6 …

Calculator input: 0.1 and 6

Formula

Formula and variables

x=I.A(R‾)⟹x=U−L10m+n−10mx=I.A(\overline{R})\quad\Longrightarrow\quad x=\frac{U-L}{10^{m+n}-10^m}
m
number of non-repeating decimal places
n
number of digits in the repeating block
U
the integer formed after shifting through one full repeat
L
the integer formed by the digits before the repeat

Multiplication by 10ᵐ and 10ᵐ⁺ⁿ places the same infinite repeated tail after each decimal point. Subtraction removes that tail, producing a finite numerator over a denominator made of n nines followed by m zeros.

Domain note: Enter the fixed part as a standard finite decimal and the repeating block as 1–12 digits containing at least one nonzero digit. Use Decimal to Fraction when the repeated block would be all zeros.

Formula visual

Align identical tails before subtraction

100x= 16.666…
− 10x= 1.666…
90x= 15
same infinite tail − same infinite tail = 0
How it works

How to use this calculator

  1. 1

    Enter the integer and non-repeating decimal digits in the first field.

  2. 2

    Enter only the repeating digit block in the second field.

  3. 3

    Multiply x by powers of ten that place the repeating tails in the same position.

  4. 4

    Subtract the aligned equations to cancel the endless tail.

  5. 5

    Solve for x and reduce the resulting fraction by its greatest common divisor.

Worked examples

Step-by-step examples

Example 1

Problem: Convert 0.1(6) to a fraction.

Substitution: 100x = 16.666… and 10x = 1.666…; subtract to get 90x = 15

Result: x = 15/90 = 1/6

The digit 1 occurs once and 6 repeats forever, giving exactly one sixth.

Example 2

Problem: Convert 2.(3) to a fraction.

Substitution: 10x = 23.333… and x = 2.333…; subtract to get 9x = 21

Result: x = 21/9 = 7/3

The recurring decimal equals the improper fraction seven thirds, or two and one third.

Worked-example visual

Example: solve 90x = 15

190x = 15tails cancelled
→
2x = 15/90divide by 90
→
3x = 1/6reduce by 15
Method knowledge

Rules, edge cases, and related ideas

Period length

The repeat length determines how many positions the larger power of ten must shift.

Prefix length

Non-repeating places determine the smaller shift and the trailing zeros in the unsimplified denominator.

0.(9) identity

The method gives 9/9 = 1, showing that 0.999… and 1 are two notations for the same real number.

Exactness

No finite truncation is used; the algebra represents the entire infinite periodic expansion.

Edge cases and limitations

  • A negative sign applies to the entire recurring value, including a value written as −0.(3).
  • Leading zeros inside a repeating block matter to its length, so 0.(03) differs from 0.(3).
  • Different repeat blocks can describe the same value before reduction, such as 0.(3) and 0.(33).

How this differs from a related concept

Decimal to Fraction treats every typed digit as a finite place. This tool treats the second field as an infinite periodic block and therefore produces a different exact ratio.

Interpretation

Understand the result

The reduced fraction exactly represents the infinite decimal. The unreduced equation shows the tail-cancellation arithmetic, while the simplified numerator and denominator are the canonical rational form.

Common mistakes

  • Typing several copies of the repeating block into the fixed field.
  • Omitting leading zeros from a multi-digit repetend.
  • Multiplying by only one power of ten when a non-repeating prefix is present.
  • Subtracting equations before aligning their repeating tails.

Frequently asked questions

How do I enter 0.1666…?

Enter 0.1 as the digits before repetition and 6 as the repeating block.

Can the repeating block contain more than one digit?

Yes. Enter up to 12 digits, including meaningful leading zeros such as 03.

Why does subtracting work?

After the decimal shifts, both equations contain exactly the same infinite tail. Equal tails subtract to zero.

Is 0.(9) really equal to 1?

Yes. The conversion gives 9/9, which reduces to 1; there is no real number between the two representations.

Can I convert a negative recurring decimal?

Yes. Put the negative sign in the fixed-part field; the reduced numerator will be negative.

References & technical sources

Keep calculating

Related calculators