Introduction
When you divide one whole number by another you usually get either a decimal that stops (terminates) or a decimal that keeps repeating forever. Why do some fractions produce neat terminating decimals like 0.25 while others give repeating patterns like 0.333… or 0.142857142857…? This article explains the simple mathematical rule behind the difference, with plain-English definitions, clear examples, and a few useful tips for recognizing which fractions terminate and which repeat.
- What we mean by terminating and repeating decimals
- The key idea: prime factors of the denominator
- Understanding why non-2-or-5 primes cause repeating decimals
- How to tell quickly whether a fraction will terminate
- Length of the repeating block (period) and why it varies
- Decimals with mixed terminating and repeating behavior
- Practical tips and common examples to remember
- Base matters: other bases change which denominators terminate
- Why this matters: applications and consequences
- Common student questions
- Worked conversion example: 0.58(3) to a fraction
- Quick checklist
- Conclusion
What we mean by terminating and repeating decimals
A terminating decimal is a decimal number with a finite number of digits after the decimal point. For example, 1/4 = 0.25 and 3/8 = 0.375 terminate.
A repeating (or recurring) decimal has one or more digits that repeat endlessly. The pattern may be a single digit, several digits, or eventually all digits. Examples: 1/3 = 0.333… (single digit repeats), 1/7 = 0.142857142857… (six-digit block repeats).
Every rational number (a fraction of two integers) must either terminate or repeat when written in base 10. Irrational numbers like √2 do not repeat and do not terminate.
The key idea: prime factors of the denominator
The central rule that determines whether a fraction produces a terminating or repeating decimal comes from the prime factors of the denominator (after you simplify the fraction).
Write the fraction in lowest terms (divide numerator and denominator by their greatest common divisor). Then look at the denominator’s prime factorization. If the denominator has only the primes 2 and/or 5, the decimal representation will terminate. If the denominator contains any prime factor other than 2 or 5 (for example 3, 7, 11, 13…), the decimal will repeat.
Why 2 and 5? Because our number system uses base 10, and 10 = 2 × 5. Powers of 10 can exactly represent fractions whose denominators divide a power of 10. Denominators that include other primes cannot divide any power of 10, so their decimal expansions cannot stop and must repeat.
Simple examples to show the rule
Example 1: 1/8. Simplify (it’s already simplified). Denominator 8 = 2^3, only prime factor 2. So 1/8 = 0.125 terminates.
Example 2: 3/20. Simplify (3/20 already simplified). Denominator 20 = 2^2 × 5, only primes 2 and 5. So 3/20 = 0.15 terminates.
Example 3: 1/3. Denominator 3 has prime 3, not 2 or 5, so 1/3 = 0.333… repeats.
Example 4: 5/12. Simplify: gcd(5,12)=1 so denominator 12 = 2^2 × 3 includes prime 3, so decimal repeats: 5/12 = 0.41666… (with 6 repeating).
Understanding why non-2-or-5 primes cause repeating decimals
Dividing a numerator by a denominator in base 10 is equivalent to repeated long division where the remainder after each step determines the next digit. There are only finitely many possible remainders (fewer than the denominator). If division does not end with remainder zero, at some point a remainder must repeat, and once a remainder repeats the sequence of output digits repeats too. That produces a repeating decimal.
If the denominator divides a power of 10 exactly—meaning there exists a positive integer k such that denominator × something = 10^k—then multiplying the fraction by 10^k yields an integer and long division will finish with remainder zero within k steps, giving a terminating decimal.
Denominators that contain only the primes 2 and 5 divide some power of 10, because 10^k = (2 × 5)^k = 2^k × 5^k. Any product of 2s and 5s divides 2^k × 5^k when k is large enough. But if the denominator has any prime factor other than 2 or 5, it cannot divide 10^k for any k, so division never reaches remainder zero and the decimal repeats.
How to tell quickly whether a fraction will terminate
Follow these steps to test a fraction:
1. Simplify the fraction to lowest terms by dividing numerator and denominator by their greatest common divisor (gcd).
2. Factor the simplified denominator into primes, or repeatedly divide by 2 and 5:
– While the denominator is divisible by 2, divide it by 2.
– While the resulting denominator is divisible by 5, divide it by 5.
3. If what’s left is 1, the decimal terminates. If what’s left is greater than 1, it contains other primes and the decimal repeats.
Examples applying the quick test
Example A: 14/45. gcd(14,45)=1. Denominator 45 = 3^2 × 5. Remove factors of 5: 45 ÷ 5 = 9. Now 9 > 1, so the decimal repeats. Indeed 14/45 = 0.3111… with 1 repeating.
Example B: 30/125. Simplify: gcd(30,125)=5, so division gives 6/25. Denominator 25 = 5^2, only prime 5, so it terminates: 6/25 = 0.24.
Example C: 7/28. Simplify: gcd(7,28)=7 → 1/4. Denominator 4 = 2^2, so 1/4 = 0.25 terminates.
Length of the repeating block (period) and why it varies
When a decimal repeats, the repeating part can be short (like one digit) or long (many digits). The length of the repeating block—called the period—depends on the denominator’s prime factors other than 2 and 5.
Technical rule (plain form): for a fraction whose simplified denominator is d where gcd(d,10)=1 (that is, d shares no factor with 10), the length of the repetend (repeating block) is the smallest positive integer k such that 10^k ≡ 1 (mod d). That condition means when you multiply the fraction by 10^k, the decimal shifts by k places and returns to the same remainder pattern, producing a block of length k that repeats. The period divides φ(d) (Euler’s totient function) in number-theory terms, but you don’t need to know φ(d) to use the simpler congruence idea.
Examples:
– 1/3: smallest k with 10^k ≡ 1 (mod 3) is k=1, so period 1 (0.333…).
– 1/7: smallest k is 6, so period 6 (0.142857 repeating).
– 1/13: smallest k is 6, so period 6 (0.076923 repeating).
Decimals with mixed terminating and repeating behavior
Some fractions produce decimals that start with a non-repeating block and then enter a repeating block. This happens when the simplified denominator has factors of 2 or 5 together with other primes. For example, 1/6 = 0.1(6) where the 6 repeats: 1/6 = 0.1666… The initial 1 comes from the 2 factor (6 = 2 × 3) and the repeating 6 comes from the 3 factor.
Mechanically, the initial non-repeating segment corresponds to the part of the decimal that can be created by dividing by the powers of 2 and 5; once those factors are exhausted, the remainder cycles according to the remaining prime factors, producing the repeating tail.
Practical tips and common examples to remember
Memorize a few typical terminating denominators: denominators that are powers of 2 (2, 4, 8, 16…) or powers of 5 (5, 25, 125…) or combinations like 10, 20, 40, 50, 100 will terminate.
Recognize common repeating fractions: 1/3 = 0.333…, 2/3 = 0.666…, 1/7 = 0.142857…, 1/9 = 0.111…, 2/11 = 0.181818… (the repeating block length depends on the denominator’s other primes).
Shortcut: If the simplified denominator ends with any prime other than 2 or 5, expect repetition. If it ends with only 2s and 5s, it will stop.
Base matters: other bases change which denominators terminate
The rule depends on the base (radix) you use. We use base 10, so primes 2 and 5 matter. In base 2 (binary), only denominators that are powers of 2 terminate; in base 8 or 16, only denominators with prime factor 2 terminate. In base 12, denominators with factors 2 and 3 would terminate because 12 = 2^2 × 3. So whether a fraction terminates is relative to the numeral system.
Why this matters: applications and consequences
Understanding when decimals terminate is useful in arithmetic, computing, and finance. It helps you decide when decimals are exact or when rounding and repeating patterns must be handled carefully. For example, exact representations in calculators and computer systems often rely on fractions; knowing that 1/5 = 0.2 exactly but 1/3 = 0.333… cannot be represented exactly in finite decimal form informs rounding decisions.
In cryptography and number theory, the length of repeating blocks relates to multiplicative orders and primitive roots, which have deeper mathematical significance. But for everyday math and most applied situations, the simple factor rule (only 2s and 5s terminate in base 10) is the practical takeaway.
Common student questions
Q: What about negative fractions or mixed numbers? A: The sign or whole-number part doesn’t change whether the fractional part terminates. For example, -3/8 = -0.375 terminates; 2 1/3 = 2.333… repeats because 1/3 repeats.
Q: Can a repeating decimal represent a terminating value? A: Yes—some repeating decimals equal a simple terminating fraction when simplified. For instance, 0.999… (a repeating 9) equals 1. That is a special case where the repeating pattern represents the next terminating number.
Q: How do I convert a repeating decimal back to a fraction? A: There are standard algebraic methods. For a simple repeating decimal like x = 0.666…, multiply by 10 (or an appropriate power of 10) to align repeating blocks, subtract, and solve for x. That method works because repeating patterns create simple linear equations.
Worked conversion example: 0.58(3) to a fraction
Suppose you see 0.58333… where 3 repeats after 58. Let x = 0.583333…. Multiply by 10 to move one non-repeating digit: 10x = 5.83333…. Multiply by 100 to move both non-repeating digits: 100x = 58.33333…. Now subtract: 100x − 10x = 58.333… − 5.8333… → 90x = 52.5. Solve: x = 52.5 / 90 = 525 / 900 = 7 / 12 after simplifying. You can check that 7/12 = 0.58333…, matching the original decimal.
Quick checklist
1. Simplify the fraction.
2. Remove all factors of 2 and 5 from the denominator by division.
3. If the remaining denominator is 1, the decimal terminates. If not, it repeats.
Conclusion
Whether a fraction gives a terminating or repeating decimal in base 10 depends solely on the simplified denominator’s prime factors. If the denominator has only 2s and/or 5s, the decimal will terminate because those primes divide powers of 10. If any other prime appears (3, 7, 11, etc.), the decimal will repeat because the division never produces a zero remainder. This simple rule explains all terminating and repeating decimals you’ll encounter and helps with conversions, calculations, and understanding how decimal representation works in different numeral systems.

