FormulaIntuitionDerivationExamplesMistakesQuizReal Life 1 / 12
Middle School Math 2 (Grade 8) · Formula Detail

Terminating and Repeating Decimals

A fraction $p/q$ ($q > 0$) is either a terminating or a repeating decimal — the deciding factor is the prime factors of the denominator

2022 Curriculum · Korea · Middle School Math 2 (Grade 8) Derivation · Examples · Mistakes · Real Life · Mini Quiz
ƒ
Core Formula NO. 01
$$ \frac{p}{q} \ (q > 0):\ \text{denominator primes only 2, 5} \Rightarrow \text{terminating} $$
If the denominator's prime factors are only 2 and 5 it is terminating ($\frac{1}{4} = 0.25$); if there is a prime factor other than 2 and 5 it is repeating ($\frac{1}{7} = 0.\overline{142857}$). First reduce to a simplest fraction!
01
1

What This Formula Does

If you keep doing long division, a remainder shows up at every step. The remainder is an integer from $0$ to $q-1$ — there are only finitely many, so eventually one repeats or it hits $0$. If the remainder is 0 the decimal stops (terminating); if some remainder shows up again, everything after that repeats (repeating).

Why does a denominator built only from 2 and 5 give a terminating decimal? You can turn the denominator into a power of 10, like $\dfrac{1}{4} = \dfrac{25}{100}$ — once the denominator is 10, 100, or 1000, the decimal places are fixed and it stops. On the other hand, if the denominator has prime factors like 3, 7, or 11, there's no raw material to build a power of 10 — the remainder is forced to come back around.

02
2

Step-by-Step Derivation

Let's build the result step by step, instead of memorizing.

1
Check with examples — 1/4 and 1/3

$\frac{1}{4}$: $1 \div 4 = 0$ r 1 → $10 \div 4 = 2$ r 2 → $20 \div 4 = 5$ r 0 — done, $0.25$. $\frac{1}{3}$: $10 \div 3 = 3$ r 1 — remainder 1 comes back → $0.333\ldots$ repeats.

$\frac{1}{4} = 0.25,\ \frac{1}{3} = 0.\overline{3}$
2
Why 2 and 5 — making the denominator 10^n

$10 = 2 \times 5$. If the denominator has the form $2^{a} 5^{b}$, multiply numerator and denominator by the same number to make the denominator $10^{\max(a,b)}$ — $\frac{1}{8} = \frac{125}{1000} = 0.125$. A decimal whose places end = terminating.

$\frac{1}{2^{a}5^{b}} = \frac{\text{integer}}{10^{n}} \Rightarrow \text{terminating}$
3
Summary — the denominator prime-factor test

If the denominator $q$ of the simplest fraction $p/q$ ($p, q$ relatively prime) is only a product of 2s and 5s it is terminating; if it has a prime factor other than 2 and 5 it is repeating. (Follows from the remainder-cycle logic + the fact that 10's only prime factors are 2 and 5.)

$q = 2^{a}5^{b} \Rightarrow$ terminating, prime factor $\ne 2, 5$ present $\Rightarrow$ repeating
03
3

Worked Examples

Each step also shows the "why".

Example 1Is $\dfrac{7}{12}$ terminating or repeating? Write it as a decimal
$12 = 2^{2} \times 3$ — has prime factor 3 → repeating
Long division: $70 \div 12 = 5$ r 10, $100 \div 12 = 8$ r 4, $40 \div 12 = 3$ r 4 — the remainder repeats from 4
$0.58\overline{3}$ (repeating block: 3)
$0.58\overline{3}$ (repeating)
Example 2Write $\dfrac{3}{16}$ as a decimal
$16 = 2^{4}$ — only 2 → terminating
$\frac{3}{16} = \frac{3 \times 625}{16 \times 625} = \frac{1875}{10000} = 0.1875$
$0.1875$ (terminating)
Example 3Find the repeating block of $\dfrac{1}{7}$
Long-division remainders: $1, 3, 2, 6, 4, 5$ → back to 1 (6 steps)
$\frac{1}{7} = 0.142857142857\ldots$
$0.\overline{142857}$ (block length 6)
04
4

Common Mistakes

The classic ways to lose points on a test.

Judging by an unreduced denominator : saying $\frac{3}{6}$ is "repeating because the denominator 6 has a 3" — $\frac{3}{6} = \frac{1}{2} = 0.5$ is terminating. To read the denominator's prime factors, start from the simplest fraction (numerator and denominator relatively prime).
Assuming "odd denominator → repeating" : counterexample — $\frac{1}{5} = 0.2$ (terminating, denominator 5 is odd). What matters is whether the prime factors are 2 or 5, not odd/even. 5 is odd, but since it's a prime factor of 10 it produces terminating decimals.
05
5

Mini Quiz — 3 Questions

Three questions to check the core idea. Click an option to see the explanation.

Solved 0 / 3
06
6

Where Does This Formula Show Up?

The formula is hiding in familiar scenes. Read it as a story and it sticks.

Real-Life SceneThe endless digits in exchange-rate tables

Just as 1km is about $0.621371\ldots$ miles, unit-conversion coefficients are usually repeating decimals. The fact that a decimal expansion never ends when the denominator has prime factors other than 2 and 5 is exactly why "precision exchange-rate tables have endless decimals." 1 mile = 1.609344km (terminating), but its reciprocal is repeating.

When a computer stores a repeating decimal, it chops it off at significant digits (0.3333… is stored as 0.33333333). That's why "error" accumulates in repeated calculations (compound interest, simulations) — the root cause is the truncation of repeating decimals. Understanding 1/3's repeating structure gives you intuition for why the limits of computer arithmetic (floating-point error) exist.

As a formula$\frac{1}{3} = 0.\overline{3} \approx 0.33333333\ (8\text{-digit storage}),\quad 1000 \times 0.33333333 = 333.33333$
★A fraction's decimal form is decided by the denominator's prime factors — only 2 and 5 ends, anything else repeats. The core of the terminating/repeating test.
∫ 홈