LEARN AT YOUR PACE

When a Fraction Gives a Terminating or Repeating Decimal

Published

A fraction has a terminating decimal when, once reduced, its denominator has only the prime factors 2 and 5. If any other prime remains, the decimal repeats. For example, 6/24 reduces to 1/4 and gives 0.25, while 7/30 has a 3 in the denominator and its decimal repeats.

This guide helps you decide without dividing. If you already have the fraction and want to see the decimal, use the fraction to decimal converter. If you have a repeating decimal and want the fraction, see the repeating decimal to fraction tool.

What the reduced denominator tells you
Reduced denominatorDecimalExample
Only 2s and 5s (or it is 1)Terminates9/20 = 0.45
No 2 or 5, with another primePurely repeating1/3 = 0.3̅
A 2 or 5, plus another primeMixed repeating7/30 = 0.23̅

The table sums up the guide: all that matters is which primes are left in the denominator after you simplify.

If you had factored 24 without reducing, you would have seen a 3 and concluded that the decimal repeats. That 3 cancels with the 6 in the numerator, which is why the order of the steps matters. To find the GCF or the factors when the numbers are large, use simplify fractions and prime factorization.

Why only 2 and 5 count

A decimal with n digits after the point is a fraction with denominator 10ⁿ, and 10ⁿ = 2ⁿ × 5ⁿ. So a reduced fraction gives a terminating decimal only if its denominator is made of 2s and 5s. Conversely, if the reduced denominator is 2ᵃ × 5ᵇ, you multiply top and bottom by the missing factors until you reach 10ⁿ, with n equal to the larger of a and b.

In 3/40, the denominator is 40 = 2³ × 5. To reach 10³ = 1000 you are missing two factors of 5, which means multiplying by 25. So 3/40 = 75/1000 = 0.075. The decimal has as many digits as the larger exponent, here three.

The test depends on base ten and does not measure which fraction is more precise: 1/3 is as exact a rational number as 1/4, even though its decimal form does not end.

The trees factor the reduced denominators: 40 = 2 × 2 × 2 × 5 has only factors of 2 and 5; 6 = 2 × 3 keeps another prime. So 7/40 terminates and 1/6 repeats.

Worked example: 6/24

Does the decimal of 6/24 terminate?

  1. Check the denominator. 24 is not zero and is positive, so there is nothing to fix.
  2. Reduce. The GCF of 6 and 24 is 6, and 6/24 = 1/4.
  3. Factor the reduced denominator. 4 = 2 × 2, so there are only 2s.
  4. Build up to a power of 10. 1/4 × 25/25 = 25/100.

Result: 6/24 = 0.25, a two-digit decimal.

Check: 4 × 0.25 = 1, and 24 × 0.25 = 6.

When the decimal repeats: purely or mixed

When the reduced denominator has a prime other than 2 and 5, long division never reaches a zero remainder. Sooner or later a remainder you already had comes back, and from there the same digits repeat. In 1/6 the remainder 4 appears again and produces another 6.

If the denominator has neither 2 nor 5, the repeating block starts right after the decimal point and the decimal is purely repeating, like 1/7 = 0.1̅4̅2̅8̅5̅7̅. If it has a 2 or 5 plus another prime, some digits come first that do not repeat, and the decimal is mixed repeating, like 7/30 = 0.23̅. The bar marks the digits that repeat: 0.23̅ and 0.2333… are the same number. By contrast, 0.23 is only an approximation: 7/30 − 23/100 = 1/300, so 7/30 ≈ 0.23 with an error of 1/300.

For 7/40, the remainders 7 → 30 → 20 → 0 reach zero. For 1/6, the remainder 4 comes back and produces another 6; that return marks the period.

The next table lists every reduced denominator up to 30. Just find the row where yours falls.

Reduced denominators from 2 to 30 by type of decimal
TypeDenominators
Terminates2, 4, 5, 8, 10, 16, 20, 25
Purely repeating3, 7, 9, 11, 13, 17, 19, 21, 23, 27, 29
Mixed repeating6, 12, 14, 15, 18, 22, 24, 26, 28, 30

The table works only for fractions in lowest terms. For example, 9/21 reduces to 3/7, so it stays in the purely repeating row, and 15/30 reduces to 1/2 and moves to the terminating row.

More examples

  1. 9/20 is already reduced and 20 = 2² × 5. You multiply by 5 and get 45/100 = 0.45.
  2. In 7/30, 30 = 2 × 3 × 5. The 3 stays, so it does not terminate. Long division gives 0.2333…, that is, 0.23̅.
  3. A whole number written as a fraction. In 12/4 = 3/1, the denominator 1 has no prime factors and the decimal is 3, with no digits after the point.

For practice, classify 8/12, 9/40 and 7/28 without dividing, then check with the fraction to decimal converter. If you are curious about the difference between a decimal fraction (denominator 10, 100, 1000…) and a terminating decimal, see decimal fractions. The notation 0.9̅ = 1 and how to write the bar are covered in terminating and repeating decimals.

Sources

LibreTexts Español, Preálgebra (Arnold), 5.6 (in Spanish, accessed October 16, 2026) states that if the denominator of the simplified fraction factors only into 2s and/or 5s, the decimal representation terminates. OpenStax, Contemporary Mathematics, 3.4 (in English, accessed October 16, 2026) defines a terminating decimal as one with a last decimal digit and a repeating decimal as one that repeats a pattern.

Frequently asked questions

Does the negative sign change whether the decimal terminates?

No. The sign only says which side of zero the number is on and adds no factors to the denominator. If the sign is in the denominator, move it to the numerator and then apply the test. So −11/25 and 11/25 both terminate, because 25 = 5², and equal −0.44 and 0.44.

Is a decimal that does not end irrational?

Not always. If it repeats a block of digits, like 0.2̅7̅, it is a fraction: it equals 27/99 = 3/11. Only an endless decimal that never becomes periodic, like the one for √2, is irrational. The fractions and rational numbers guide explains the difference.

Is 0.67 the same as 2/3?

No. 0.67 is a terminating decimal equal to 67/100, while 2/3 = 0.666… goes on forever. The difference between them is 1/300. If you round, write 2/3 ≈ 0.67 and keep the fraction in calculations that must be exact.

How many digits come before the repeating block in a mixed repeating decimal?

As many as the larger exponent of 2 or 5 in the reduced denominator. In 1/15, with 15 = 3 × 5, one digit comes first: 0.06̅. In 7/12, with 12 = 2² × 3, two come first: 0.583̅. The repeating decimal to fraction tool goes the other way.

Next step

Fraction Guides Find the guide that answers your question: what a fraction is, why 1/2 + 1/3 = 5/6, GCF or LCM, repeating decimals or sharing a total.
Report an errorHow we handle corrections

Use the fraction calculator

YOUR CALCULATOR, CLOSE AT HAND

Save your calculator

Open your browser menu and choose “Install app” or “Add to Home Screen”. You can also bookmark this page.