How to Tell Whether a Fraction Has a Repeating Decimal
At a glance
- 1. Reduce the fraction
Write the fraction in lowest terms so common factors do not distort the denominator test.
- 2. Factor the denominator
Find the prime factors of the reduced denominator.
- 3. Check for other primes
The decimal terminates if every factor is 2 or 5; any other prime means it eventually repeats.
- 4. Locate the repeating part
Use long division to find the digits and see whether repetition starts immediately or after a nonrepeating prefix.
To determine whether a fraction has a repeating decimal, you do not need to carry out long division indefinitely. Reduce the fraction first, then inspect the prime factors of its denominator.
The key test is simple: a reduced fraction has a terminating decimal if its denominator is made up only of factors 2 and 5. If any other prime appears, the decimal is nonterminating and eventually repeats. The repetition may start after a few digits rather than immediately.
The denominator test
Write the fraction in lowest terms as , where and are integers, , and the only common positive divisor of and is 1. Factor the denominator:
- If for nonnegative integers and , the decimal terminates.
- If has any prime factor other than 2 or 5, the decimal eventually repeats.
For example, a denominator of 40 factors as , so a reduced fraction with denominator 40 terminates. A denominator of 12 factors as , so a reduced fraction with denominator 12 repeats.
This test concerns the denominator after reducing. A denominator before reduction may contain extra factors that cancel with the numerator.
Why factors 2 and 5 matter
A terminating decimal can be written with some finite number of digits after the decimal point. A decimal with digits after the point is an integer divided by , and . So, after reducing such a fraction, its denominator can contain only the primes 2 and 5.
The converse also holds. Suppose the reduced denominator is . Choose at least as large as both and . Then divides , so you can rewrite with denominator . That is a finite decimal representation.
If another prime factor remains in the reduced denominator, no power of 10 can clear the denominator, because powers of 10 contain only 2s and 5s. The decimal cannot terminate.
Worked examples
Example 1: Does terminate?
The fraction is already reduced. Factor its denominator:
The denominator includes 3, so the decimal repeats. Long division confirms the form:
The 3 repeats, but the first two decimal digits, 58, do not belong to the repeating block. This is an eventually repeating decimal, sometimes called a mixed recurring decimal.
Example 2: Does terminate?
The fraction is reduced, and
There are no other prime factors, so the decimal terminates. In fact,
Example 3: Reduce before checking.
Consider . Its original denominator, 15, contains a factor of 3, but the fraction reduces:
The reduced denominator is 5, so the decimal terminates. Checking the unreduced denominator would give the wrong answer.
Repeating immediately or after a prefix?
The denominator test tells you whether the decimal terminates, but it does not by itself tell you where repetition starts. For that, long division provides a useful explanation.
At each step of long division by , the remainder is one of . If a remainder becomes 0, the decimal terminates. If it does not, some remainder must eventually occur a second time, since there are only finitely many possible remainders. From the repeated remainder onward, the same division steps produce the same digits, so the digits repeat.
For a noninteger reduced fraction, the decimal repeats from its first digit after the decimal point exactly when the denominator is relatively prime to 10—that is, when it has no factors 2 or 5. For example, repeats immediately. If the denominator includes 2s or 5s as well as another prime, the decimal generally has an initial nonrepeating part before its repeating block, as does.
Common mistakes
- Forgetting to reduce first: Simplify the fraction before factoring the denominator. Canceled factors do not affect the decimal.
- Treating every nonterminating decimal as nonrepeating: A rational number such as a fraction always has a decimal expansion that either terminates or eventually repeats. It cannot be nonterminating without eventually repeating.
- Expecting the repeating block to start right away: Some fractions have a finite prefix before the cycle begins. The denominator test detects eventual repetition, not necessarily immediate repetition.
- Confusing displayed digits with the exact value: A rounded decimal such as 0.58 is not equal to . The exact value is .
Use the reduced denominator as a quick decision rule: only 2s and 5s means the decimal ends; any other prime factor means the decimal eventually cycles.
References
- Elementary Number Theory, 7th Edition — David M. Burton
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.