Recurring Decimal Calculator

Convert fractions to repeating decimals with repetend bar notation, or convert recurring decimals back to simplified exact fractions with long-division steps.

1-Click Famous Number Presets

Frequently Asked Questions

To convert a recurring decimal to a fraction: 1) Set x equal to the decimal. 2) Multiply x by 10^m (where m is the count of non-repeating decimal digits). 3) Multiply x by 10^(m+n) (where n is the length of the repeating block). 4) Subtract the two equations so the infinite repeating tails cancel completely. 5) Solve for x = (Total Digits - Non-Repeating Digits) / (9s followed by 0s). 6) Simplify the resulting fraction by dividing by their Greatest Common Divisor (GCD).
Because our standard numbering system is base-10 ($10 = 2 \times 5$), a fraction in lowest terms will terminate if and only if the prime factorization of its denominator contains exclusively powers of 2 and/or 5 (such as 1/2, 1/4, 1/5, 1/8, 1/10, 1/16, 1/20). If the denominator contains any other prime factor (such as 3, 7, 11, 13), it cannot divide evenly into powers of 10, forcing the remainders to cycle endlessly.
For any simplified fraction p/q, the maximum possible period length is q - 1. By Dirichlet's Pigeonhole Principle, when dividing by integer q, the only possible non-zero remainders are 1, 2, ..., q - 1 (a total of q - 1 possibilities). Therefore, after at most q - 1 division steps, a remainder MUST repeat, triggering an infinite cycle. For example, 1/7 achieves the maximum theoretical period of 7 - 1 = 6 digits.
In modern mathematics and typography, a recurring decimal is designated with a horizontal bar called a 'vinculum' placed directly above the repeating digits (e.g., 0.3̄ for 1/3, or 0.142857̄ for 1/7). British and historical Commonwealth texts frequently place a dot over the first and last digits of the repetend (e.g., 0.1̇42857̇). Computer notation often uses parentheses around the repetend: 0.(3) or 0.1(6).
In rigorous real analysis, 0.999... is exactly, mathematically equal to 1. Proof: Let x = 0.999... Then 10x = 9.999... Subtracting the first equation from the second yields 9x = 9, so x = 1. Alternatively, 1/3 = 0.333... Multiplying both sides by 3 yields 3/3 = 0.999..., meaning 1 = 0.999... They are two different decimal representations of the exact same real number.
A pure recurring decimal begins its repeating cycle immediately after the decimal point with no transient digits (such as 1/3 = 0.333... or 1/7 = 0.142857...). A mixed recurring decimal has one or more non-repeating digits directly after the decimal point before the repeating pattern commences (such as 1/6 = 0.1666... where '1' is non-repeating and '6' repeats, or 7/12 = 0.58333...).
Fractions whose denominators are 'full reptend primes' produce the maximum possible period of p - 1 digits. Examples of full reptend primes in base 10 include 7 (period 6), 17 (period 16), 19 (period 18), 23 (period 22), 29 (period 28), 47 (period 46), 59 (period 58), and 61 (period 60). Artin's conjecture in number theory posits that approximately 37.4% of all prime numbers are full reptend primes.
No. By definition, a real number is rational if and only if its decimal expansion either terminates or eventually becomes periodic (recurring). Irrational numbers such as Pi (3.14159...), e (2.71828...), and √2 (1.41421...) have infinite decimal expansions that never settle into a repeating block of digits.