A fraction converts to a terminating decimal exactly when its denominator, in lowest terms, has no prime factors other than 2 and 5. That single condition decides the question completely. If you reduce the fraction first, then factor the denominator, the decimal stops precisely when every factor is a 2 or a 5. Any other prime factor guarantees an infinite repeating expansion.

The rest of this explainer shows why that test works, how many fractions pass it, where the test gets misapplied, and how to check any fraction in seconds without dividing anything.

The reduced-denominator rule

The terminating-decimal test comes from one place: base-10 arithmetic. A terminating decimal is just a fraction whose denominator is a power of 10, rewritten with the decimal point moved. The number 0.375 means 375/1000, and 1000 = 2^3 × 5^3. Every terminating decimal hides a power-of-10 denominator, and every power of 10 factors into nothing but 2s and 5s.

So the question becomes whether a given fraction can be rewritten with such a denominator. A denominator of 8 works because 8 = 2^3, and 1/8 = 125/1000 = 0.125. A denominator of 25 works because 25 = 5^2, and 1/25 = 4/100 = 0.04. A denominator of 40 works because 40 = 2^3 × 5, and 3/40 = 75/1000 = 0.075. The denominator never needs to divide 10 directly; it only needs to divide some power of 10.

Here is why reduction is mandatory. Consider 6/15. The denominator 15 = 3 × 5 contains a 3, which looks fatal. But 6/15 reduces to 2/5, and 2/5 = 0.4, which terminates. The shared factor of 3 in numerator and denominator cancels, leaving only a 5. The raw denominator misled you; the reduced one did not.

That gives the precise rule. Reduce the fraction to lowest terms by dividing both parts by their greatest common divisor. Factor the reduced denominator into primes. If the factor list contains only 2s and 5s, the decimal terminates. If anything else appears, it repeats forever.

The same logic yields an extra bonus fact: the length of a terminating decimal equals the larger of the two exponents. For 1/8 = 1/2^3, the decimal 0.125 runs three places. For 1/40 = 3/(2^3 × 5^1), the decimal 0.075 runs three places, matching the larger exponent, 3. For 7/250 = 7/(2 × 5^3), the decimal 0.028 has three places, again matching the 5-exponent. The numerator never changes the length; only the reduced denominator does.

One plain-language version: strip the fraction down, and if the bottom number is built only from 2s and 5s, the quotient closes off cleanly.

How common are terminating fractions in a range

The terminating condition is restrictive. Among all reduced fractions with a fixed denominator n, the fraction that terminates equals the fraction whose reduced denominator divides a power of 10. For n = 80 = 2^4 × 5, every reduced fraction a/80 terminates because 80 itself factors into only 2s and 5s. For n = 60 = 2^2 × 3 × 5, only reduced fractions whose surviving denominator drops the 3 terminate.

Counting by prime factorization gives clean numbers. The count of reduced fractions with denominator exactly 2^a × 5^b equals Euler's totient of that number, computed as 2^a × 5^b × (1 − 1/2) × (1 − 1/5), which simplifies to 2^(a−1) × 5^(b−1) × 4. For 80 = 2^4 × 5, that gives 2^3 × 1 × 4 = 32 terminating reduced fractions out of 80 total, so 40 percent of the 80 denominators terminate. For 1000 = 2^3 × 5^3, the totient is 2^2 × 5^2 × 4 = 400, so 400 of the 1000 fractions terminate.

The pattern across integers is uneven and lumpy, and that lumpiness is the point. Between 1 and 10, the denominators 1, 2, 4, 5, 8, and 10 terminate, while 3, 6, 7, and 9 do not. Between 11 and 20, only 16 and 20 terminate, giving 2 of the 10 denominators. The qualifying integers cluster around powers of 2 times powers of 5, with long drought stretches where primes like 7, 11, and 13 dominate.

Powers of 10 anchor the pattern. Every integer that divides 10^k terminates, so denominators like 2, 4, 5, 8, 10, 16, 20, 25, 32, 40, 50, 64, 80, 100, 125, 160, 200, 250, 320, 400, 500, 625, 800, and 1000 all pass. Any denominator with a prime factor of 3, 7, 11, or 13 fails unless that factor cancels in the numerator first.

The proportion of terminating fractions is not uniform over large ranges; it shrinks as numbers grow, because more primes enter the mix. But within any band built from powers of 2 and 5, termination is guaranteed, and knowing those anchor denominators gives you fast landmarks.

The edge cases that trip people up

The first edge case is reduction. The rule applies only to the reduced denominator, and students who skip reduction misclassify fractions like 15/30, which reduces to 1/2 and terminates. The reverse also happens: 14/28 reduces to 1/2 and terminates, while 14/35 reduces to 2/5 and also terminates, but a hasty look at the raw denominators suggests otherwise.

The second edge case is the integer denominator question. A fraction like 7/2 has denominator 2 and terminates at 3.5, but when the numerator is a multiple of the denominator, such as 8/2 = 4, the decimal terminates as a whole number with no decimal places. The rule still holds; the reduced fraction 4/1 has denominator 1, which is 2^0 × 5^0 and trivially qualifies. Integer results are terminating decimals with zero decimal places.

The third edge case is improper fractions and mixed numbers. The termination property is unchanged by pulling out a whole part. The fraction 17/8 equals 2.125, and its fractional part 1/8 = 0.125 terminates; the whole number 2 adds no repeating digits. Pulling out the whole part never affects the reduced denominator, because 17/8 reduces to 17/8 with denominator 8.

The fourth edge case is the numerator's own factors. A numerator of 3 next to a denominator of 3 produces 1/1 = 1, which terminates; a numerator of 6 next to a denominator of 9 produces 2/3, which repeats. The numerator matters only through its shared factors with the denominator during reduction. After reduction, the numerator is irrelevant to termination.

The fifth edge case is negative fractions. The sign lives in the numerator or the whole fraction, and it never enters the denominator's prime factorization. The fraction −3/8 equals −0.375 and terminates, while −2/3 repeats at −0.666… The test ignores sign entirely.

One counterintuitive detail deserves its own line: a denominator can look "clean" as a number yet fail. The denominator 12 looks tidy and divides evenly into 60, but 12 = 2^2 × 3, so 1/12 = 0.08333… repeats a 3 forever. Tidiness in arithmetic is not the same as termination in base 10. Only the prime factorization of the reduced denominator predicts behavior.

There is also a professional caveat worth naming. In floating-point computing, nearly every fraction gets stored as an approximation, so "terminating" in exact arithmetic does not guarantee exact storage. The value 0.1 terminates as a fraction, but its binary64 representation is not exact, which produces small rounding error. The termination rule governs decimal notation, not the behavior of digital machines. The mechanism predicts decimal digits, and a computer's binary storage follows a different rule.

Why "only 2s and 5s" is not arbitrary

Most explanations state the 2s-and-5s rule and stop there, but the reasoning connects to how positional notation works. Base 10 is built from 10 = 2 × 5, so any quantity representable in finitely many decimal places must be a fraction whose denominator divides some 10^k. The denominator either divides 10^k or it does not, and the division test lands exactly on the prime factors of 10.

A dramatic comparison shows the rule's dependence on the base. In base 12, the relevant primes are 2 and 3, because 12 = 2^2 × 3. The fraction 1/3 repeats forever in base 10 but terminates in base 12 at 0.4 (since 4/12 = 1/3). The fraction 1/5 terminates in base 10 but repeats in base 12. Termination is not a property of the fraction alone; it is a joint property of the fraction and the base. That single insight explains why the 2s-and-5s rule looks special rather than obvious. It is special, and it is special to base 10.

The repeating side of the ledger also has structure. A denominator with a prime factor other than 2 or 5 produces a repeating block whose maximum length is one less than that prime. For 1/7, the repeating block 142857 runs six digits, matching 7 − 1. For 1/3, the block runs one digit, matching 3 − 1. For 1/13, the block runs six digits, dividing 12. For 1/37, the block runs three digits, dividing 36. The block length always divides φ(n), where φ is Euler's totient. This is a feature of modular arithmetic: long division on a prime denominator p can produce at most p − 1 distinct remainders before a repeat. The finite count of remainders forces the repetition, and that same remainder exhaustion is why finite storage of any kind cannot terminate a nonterminating decimal.

Here is a comparison table summarizing where the termination rule and its alternatives diverge.

Denominator (reduced) Prime factorization Terminates? Decimal form Block length
8 2^3 Yes 0.125 0
25 5^2 Yes 0.04 0
40 2^3 × 5 Yes 0.075 0
6 2 × 3 No 0.1666… 1
15 3 × 5 No 0.0666… 1
12 2^2 × 3 No 0.0833… 1
7 7 No 0.142857… 6
13 13 No 0.076923… 6

The table of block lengths rewards attention. A reduced denominator with a lone prime factor of 3 produces a one-digit repeating block, and denominators with 2 and 3 mixed still produce a block length of one because the leading two-only part contributes no repetition. The block's length depends only on the primes left after the 2s and 5s are removed.

One subtlety in the arithmetic: the fraction 1/6 = 0.1666… is best read as 0.1 followed by a repeating 6, not as 0.16 followed by a repeating 66. The repeating block is one digit long, and it starts after the nonrepeating portion that comes from the 2 in the denominator. The nonrepeating portion has length equal to the largest exponent among the 2s and 5s, and the repeating portion follows. For 6 = 2 × 3, the 2 forces one nonrepeating digit, then the 3 forces an infinite repeating block. For 12 = 2^2 × 3, two nonrepeating digits, then an infinite block. This mixed structure explains why long division never returns remainder zero on nonterminating fractions.

Common misconceptions and wrong tests

The most common misuse is testing the reduced denominator when the fraction is still unreduced. The rule requires lowest terms, and skipping that step flips answers in both directions, as 6/15 showed.

A second misconception holds that a denominator containing a 3 must fail. That fails when the numerator cancels the 3. The fraction 9/12 reduces to 3/4 and terminates at 0.75, even though the raw denominator 12 contains a factor of 3. The denominator fact is always about the reduced form.

A third misconception treats any long decimal as a sign of nontermination. Length is not the test. The fraction 1/16 = 0.0625 has four decimal places, and 1/64 = 0.015625 has six, but both terminate because 16 = 2^4 and 64 = 2^6. A terminating decimal can run to any finite length, and a repeating decimal can begin after only a couple of digits. Visual length tells you nothing reliable.

A fourth misconception confuses truncation with termination. If a calculator displays 1/3 as 0.333333, the display stops, but the fraction does not terminate; the calculator merely rounds or truncates at its limit. The true expansion keeps going. The only reliable test is the factorization of the reduced denominator.

A red-flag list of warning signs:

The denominator has not been reduced; test again after dividing by the greatest common divisor. You counted 10 as a "clean" denominator; it is clean only because 10 = 2 × 5, not because it ends in zero. You assumed a "round" number like 12, 15, or 18 terminates; all three contain a 3. You judged from a calculator display, which truncates and can hide a repeating tail. You tested the unreduced numerator's shared factors but not the denominator's prime list after reduction. You mistook an integer denominator like 1 for a failure; it terminates at zero decimal places. You assumed 9/12 must fail because of the 12; reducible to 3/4, it terminates correctly.

Checking any fraction in seconds

The fastest manual method reduces, factors, then classifies, and it takes about 30 seconds per fraction once practiced. Start by dividing numerator and denominator by their greatest common divisor. Then test divisibility of the reduced denominator by 2 and 5 only: repeatedly divide by 2 while it divides evenly, then divide by 5 while it divides evenly. If the result is 1, every remaining factor was a 2 or a 5, and the decimal terminates. If anything other than 1 remains, the decimal repeats forever.

A worked sequence: reduce 84/280. The greatest common divisor is 28, so the fraction becomes 3/10, and 10 = 2 × 5. Divide 10 by 2 to get 5, then by 5 to get 1, so the decimal terminates. The value is 0.3. Now reduce 45/75: divide by 15 to get 3/5, so 5 divides down to 1, and the decimal terminates at 0.6. Then reduce 42/56: divide by 14 to get 3/4, and 4 = 2^2, so it terminates at 0.75. Compare 28/70: divide by 14 to get 2/5, so it terminates at 0.4. Finally 36/84: divide by 12 to get 3/7, and 7 survives no division by 2 or 5, so the decimal repeats as 0.428571…, a six-digit cycle.

A concrete decision procedure:

Write the fraction and divide both parts by the greatest common divisor until coprime. Ignore the numerator and the sign; the reduced denominator carries all the information. Factor the reduced denominator by repeated division: take out 2s, then 5s. If a 1 remains, the decimal terminates; if a prime like 3, 7, 11, or 13 remains, it repeats. Do not trust a calculator's displayed tail; verify the factorization instead.

The threshold rule reconciles simply: a reduced denominator qualifies exactly when repeated division by 2 and by 5 reaches 1. There is no partial qualification and no middle ground; the condition is binary and total.

A timeline of long division on the nonterminating side clarifies what actually happens in the mechanism:

Step Operation Remainder Quotient digit
Start 1 ÷ 7, drop the 1 1 0
1 10 ÷ 7 3 1
2 30 ÷ 7 2 4
3 20 ÷ 7 6 2
4 60 ÷ 7 4 8
5 40 ÷ 7 5 5
6 50 ÷ 7 1 7

The remainder hits 1 again at step six, matching where it started, and that duplication is what makes the digits repeat forever with block 142857. Because only six distinct nonzero remainders exist for a prime denominator of 7, the process must revisit one within at most six steps. No exception to that counting exists; it is a pigeonhole argument built into division.

One professional caveat about applying the test broadly: the rule is exact arithmetic. In measurement data rounded to two decimals, a "0.33" may represent exactly 1/3 or a rounded 0.334, and the stored value always terminates simply because it has a finite number of digits. Most reported physical quantities get rounded before storage, so the test rarely needs applying to raw data; it applies to exact fractions.

One final nuance for working with students: the test predicts decimals, not whether a number is rational. Every fraction is rational by definition, and the set of terminating decimals is a strict subset of rational numbers. The distinction matters because it keeps the test in its proper scope: it tells you whether a rational's decimal representation ends, not whether the rational exists.

Applying the test in practice

For coursework, commit the anchor list to memory: 2, 4, 5, 8, 10, 16, 20, 25, 32, 40, 50, 64, 80, 100, 125, 160, 200, 250, 320, 400, 500, 625, 800, and 1000 all terminate. Recognizing those denominators lets you answer instantly, and every one of them factors into 2s and 5s only.

For teaching, run the reduction first and ask students to factor by hand on a few examples like 6/15 and 9/12. Those two examples expose the two failure modes (testing unreduced, and assuming all 3s are fatal) in five minutes.

For spreadsheet work, a formula can reproduce the test. One approach divides the reduced denominator by 2 repeatedly and by 5 repeatedly, then checks whether the result is 1. A cell like =IF(REDUCED_DENOM = POWER_OF_TWO_TIMES_FIVE, "terminates", "repeats") captures the logic once you substitute the reduction step.

For mental estimation, remember that a denominator with only one distinct prime factor among 3, 7, 11, or 13 produces a repeating block that is short for 3 (one digit) and long for 7 (six digits). That helps predict how ugly a division will be.

For verification in any context, prefer the factorization over the display. A spreadsheet's truncated output hides repeating tails, and a calculator's rounded last digit can make a nonterminating decimal look finite.

The limits of the rule are also worth stating plainly. It answers termination in a given base; in base 12 the primes are 2 and 3, so the rule changes. It assumes exact fractions, not rounded measurements. It says nothing about the decimal's length beyond the largest exponent. And it does not bear on whether the fraction itself is simplified correctly, which is a separate skill with its own failure points. Each of those boundaries is tested by a specific example, and each example is cheap to run.

That final distinction is worth carrying forward. The test is a filter, not a calculator, and it tells you the shape of the answer before you divide. The shape is either a finite decimal or an infinite repeating one, and the deciding evidence lives entirely in the reduced denominator.