Repeating Decimal to Fraction Calculator

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.

Use parentheses to mark the repeating block. Examples: 0.(3)  →  0.333… 0.1(6)  →  0.1666… 0.(142857)  →  0.142857142857… 1.2(3)  →  1.2333… -0.(3)  →  −⅓
⅓   0.(3)
⅙   0.1(6)
⅐   0.(142857)
37/300   0.12(3)
1/11   0.(09)
⅚   0.8(3)
5/3   1.(6)
−⅓   -0.(3)
Privacy first: All calculations are performed locally in your browser. No data is sent to any server.

What Is a Repeating Decimal?

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)

Why Convert Repeating Decimals to Fractions?

  • Precision: Fractions give the exact value, whereas decimals with ellipses (…) are only approximations.
  • Comparisons: Fractions make it easier to compare magnitudes, especially when denominators are common.
  • Algebra: Fractions are essential for solving equations, simplifying expressions, and performing exact arithmetic.
  • Real-world applications: Engineering, finance, and science often require rational representations for measurements, rates, and proportions.
  • Education: Understanding the connection between decimals and fractions deepens number sense and prepares students for advanced mathematics.

The Mathematics Behind the Conversion

The standard method for converting a repeating decimal to a fraction uses a clever algebraic trick. Let's illustrate with 0.(3):

Let x = 0.(3) = 0.333333…
Multiply both sides by 10:   10x = 3.333333…
Subtract the original:   10x − x = 3.333333… − 0.333333…
So 9x = 3   ⇒   x = 3/9 = 1/3.

For a mixed repeating decimal like 0.1(6), the process is similar but requires an extra step:

Let x = 0.1(6) = 0.166666…
Multiply by 10:   10x = 1.(6) = 1.666666…
Let y = 10x = 1.(6). Then 10y = 16.(6) = 16.666666…
Subtract: 10y − y = 16.(6) − 1.(6)   ⇒   9y = 15   ⇒   y = 15/9 = 5/3.
Therefore x = y/10 = (5/3)/10 = 5/30 = 1/6.

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.

How to Use This Calculator

  1. Type your repeating decimal into the input field using parentheses to indicate the repeating block. For example, 0.(3), 0.1(6), or 0.(142857).
  2. Click “Convert to Fraction” or press Enter.
  3. The tool instantly computes the exact fraction, simplifies it, and displays the mixed number (if any).
  4. A detailed step‑by‑step solution shows every algebraic move.
  5. A number‑line visualization locates both the decimal and its fractional equivalent.
  6. Use the preset examples to explore common repeating decimals.

Common Repeating Decimals and Their Fractions

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
Case Study: Financial Calculations

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.

Common Misconceptions

  • “Repeating decimals are approximations.” No — a repeating decimal like 0.(3) is an exact representation of 1/3. The ellipsis (…) indicates the pattern continues forever, but the value is precisely defined.
  • “All decimals are either terminating or repeating.” Yes — every rational number has a decimal expansion that either terminates or repeats. Irrational numbers (like π or √2) have non‑repeating, non‑terminating decimals.
  • “0.(9) is less than 1.” In fact, 0.(9) = 1. This is a famous result: 0.999999… is exactly equal to 1. Our calculator correctly handles this case (try it!).
  • “The repeating block must be at the start.” Not at all — mixed repeating decimals like 0.1(6) have a non‑repeating part before the block. Our tool handles both pure and mixed cases.

Practical Applications Across Disciplines

  • Education: Teaching rational numbers, number sense, and the relationship between decimals and fractions.
  • Engineering: Exact rational representations for tolerances, ratios, and scaling factors.
  • Computer Science: Floating‑point accuracy issues often require rational approximations; converting to fractions can help analyze errors.
  • Finance: Interest rates, currency conversion, and percentage calculations benefit from exact fractional forms.
  • Music Theory: Ratios of frequencies (e.g., 3:2, 4:3) are fractions derived from decimal measurements.

Rooted in rigorous mathematics — This tool implements the standard algebraic method for converting repeating decimals to fractions, as taught in secondary and collegiate mathematics. The algorithm has been verified against authoritative sources including “Elementary Number Theory” by David M. Burton and the “Handbook of Mathematical Functions” (Abramowitz & Stegun). The interactive number‑line visualization aids conceptual understanding. Reviewed by the GetZenQuery tech team, last updated July 2026.

Frequently Asked Questions

The parentheses indicate the repeating block. So 0.(3) means 0.333333…, where the digit 3 repeats forever. Similarly, 0.1(6) means 0.166666…, where the 6 repeats.

Yes! A terminating decimal is a repeating decimal with an implicit repeating block of 0. For example, 0.5 is the same as 0.5(0). Our tool accepts both formats. Simply enter 0.5 or 0.5(0).

The decimal 0.(9) = 0.999999… is exactly equal to 1. Our calculator will return the fraction 1/1 (or simply 1). This is a well‑known mathematical identity.

The results are exact. The tool uses integer arithmetic to compute the fraction, so there is no floating‑point rounding error. The fraction is always simplified to lowest terms using the Euclidean algorithm.

Absolutely. Simply prefix the decimal with a minus sign, e.g., -0.(3) → −1/3. The tool correctly handles negative values and returns the negative fraction.

There is no practical limit — the tool can handle blocks of any length. However, very long blocks (e.g., 100+ digits) may produce large integers, but JavaScript's BigInt handles them correctly. For most educational purposes, blocks of up to 10 digits are more than sufficient.

Excellent resources include Wolfram MathWorld — Repeating Decimal, Khan Academy, and the classic textbook “Elementary Number Theory” by David M. Burton. For a deeper dive, explore the work of Georg Cantor on the cardinality of rationals.
References: MathWorld — Repeating Decimal; Burton, D. M. “Elementary Number Theory” (7th ed., 2010); Wikipedia — Repeating Decimal.