Maths & numbers

Terminating decimal test calculator

Decide whether a fraction has a finite base-ten expansion by inspecting its reduced denominator.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Cancellation can change the result. The fraction 3/6 reduces to 1/2 and terminates even though 6 contains a factor of 3.

THE FORMULAReduce a/b. A decimal terminates when the remaining denominator has only 2 and 5 as prime factors.

A worked example

3/40 terminates because 40 = 2³ × 5.

Good to know

The test applies to decimal notation.

Reduce the fraction before factoring

The default fraction 3/40 is already reduced. Its denominator factors as 2³ × 5. A terminating decimal needs a denominator that divides a power of ten. Since 10³ = 2³ × 5³, multiply numerator and denominator by 25 to obtain 75/1000 = 0.075. Three decimal places suffice.

The calculator removes the greatest common divisor of the numerator and denominator, then divides the reduced denominator repeatedly by 2 and 5. If the final remainder of that process is 1, the decimal terminates. Any other prime factor left in the denominator forces a repeating decimal expansion.

Three fortieths can be scaled to seventy-five thousandths3 / 40× 25/2575 / 1000=0.075
The denominator 40 needs two more factors of five to become 1,000. Multiplying both parts by 25 gives the decimal 0.075.

Cancellation can change the classification

Looking only at an unreduced denominator can give the wrong answer. The fraction 3/6 has a factor of 3 in its denominator, but that factor cancels. The reduced denominator is 2, giving 0.5. Conversely 1/6 retains the factor of 3 and repeats as 0.1666… .

For a reduced denominator 2ᵃ × 5ᵇ, the number of decimal places needed is at most max(a,b), and this is the minimum for a nonzero reduced fraction. The Digit sum calculator can help check whether numerator and denominator share a factor of 3 before reduction. The criterion here concerns base ten. A fraction can terminate in one base and repeat in another.

A few questions, answered

Does a zero numerator terminate?

Yes. Zero divided by any accepted positive denominator equals 0, which has a finite decimal representation.

Why does 1/8 terminate?

Eight is 2³. Multiplying numerator and denominator by 125 gives 125/1000 = 0.125.

Find your calculator

Start typing to explore the library.