Convert any recurring decimal — such as 0.(3), 0.1(6), or 0.(142857) — into its exact fraction form. See the complete derivation, simplified fraction, mixed number, and a visual number-line representation.
A repeating decimal — also called a recurring decimal — is a decimal number in which a digit or a block of digits repeats infinitely. For example, 0.333333… has the digit 3 repeating forever, while 0.142857142857… has the six-digit block 142857 repeating. These numbers are always rational — they can be expressed as a ratio of two integers (a fraction).
Every repeating decimal has a corresponding fraction. The conversion is exact, not an approximation. This is one of the most elegant results in elementary number theory: the decimal expansion of a rational number eventually becomes periodic, and conversely, any periodic decimal represents a rational number.
A repeating decimal $$ 0.\overline{d_1 d_2 \dots d_k} $$ can be written exactly as
$$ 0.\overline{d_1 \dots d_k} $$ = $$ d_1 d_2 \dots d_k $$ / (10k − 1)
The standard method for converting a repeating decimal to a fraction uses a clever algebraic trick. Let's illustrate with 0.(3):
For a mixed repeating decimal like 0.1(6), the process is similar but requires an extra step:
In general, for a decimal of the form a.b(c) where a is the integer part, b is the non‑repeating part, and c is the repeating block, the fraction is:
x = ( integer_part_and_nonrepeating ) × (10m − 1) + repeating_block / 10n × (10m − 1)
where n = length of the non‑repeating part, and m = length of the repeating block.
| Decimal | Fraction | Mixed Number | Repeating Block Length |
|---|---|---|---|
| 0.(3) | 1/3 | 0 1/3 | 1 |
| 0.(6) | 2/3 | 0 2/3 | 1 |
| 0.1(6) | 1/6 | 0 1/6 | 1 |
| 0.8(3) | 5/6 | 0 5/6 | 1 |
| 0.(142857) | 1/7 | 0 1/7 | 6 |
| 0.(09) | 1/11 | 0 1/11 | 2 |
| 0.(27) | 3/11 | 0 3/11 | 2 |
| 1.(6) | 5/3 | 1 2/3 | 1 |
| 2.(3) | 7/3 | 2 1/3 | 1 |
| 0.(123) | 41/333 | 0 41/333 | 3 |
In finance, interest rates and growth factors are often expressed as decimals. Suppose an investment grows by a factor of 1.(6) = 1.666666… over a period. To compute the exact multiplier, converting to the fraction 5/3 eliminates rounding error. This is critical when compounding over many periods or when calculating exact yields. Our tool gives the exact fraction 5/3 and its mixed form 1 2/3, enabling precise financial modeling.