← Math & statistics

Repeating Decimal to Fraction Calculator

Convert recurring decimals to exact reduced fractions. Enter a repetend such as 0.1(6), see the 10^k algebra, simplify by GCD, and check the answer by expanding the fraction back to a decimal.

All calculation runs in your browser with integer arithmetic. Inputs are not sent to a server.

Other languages English
Embed this calculator

Input

Use parentheses for the repeating digits, such as 0.1(6) or 0.(142857). You can also type 0.333....

Use k only in Last k mode. Example: type 0.1666 and k = 1 to mean 0.1666....

Result

Exact fraction-
Mixed number-
Raw fraction-
GCD-

Bar notation

Reverse check

The reduced fraction expands back to .

10^k algebra steps

    GCD simplification

      The result uses exact BigInt integer arithmetic. No floating-point rounding is used to build the fraction.

      When to use this page

      Use this page when you already know which digits repeat and want the exact fraction. For fraction arithmetic, use the fraction calculator. To reduce an existing fraction, use the fraction simplifier. To see long division steps that create a repeating decimal, use the long division calculator.

      FAQ

      How do I type the repeating part?

      Use parentheses for the repetend, such as 0.1(6) or 0.(142857). You can also choose Last k digits repeat, type a normal decimal such as 0.1666, and set k to 1.

      Why does 0.999... become 1?

      The algebra gives 9x = 9 for x = 0.(9), so x = 1. The calculator shows this as a normal exact simplification, not as rounding.

      What is the difference between a terminating decimal and a repeating decimal?

      A terminating decimal has no repeating block and uses a place-value denominator such as 10, 100, or 1000. A repeating decimal subtracts two powers of 10 so the repeating tail cancels.

      Are the fractions exact?

      Yes. The parser and simplifier use BigInt integer arithmetic, so the fraction is exact. Decimal text is used only for display and for the reverse check.

      Can I use bar notation instead of parentheses?

      Type the repeated digits in parentheses, then read the result in bar notation. For example, enter 0.1(6) for 0.16 with only the 6 repeating.