Terminating vs. Repeating Decimals
Every fraction turns into one of two kinds of decimals. A terminating decimal ends — divide by and you get , done. A repeating decimal never ends, but it repeats a pattern forever — divide by and you get , written with a bar over the repeating digit.
The useful part is that you can predict which kind you'll get before you divide anything. The answer is hiding in the denominator, and checking it takes about ten seconds.
The two kinds of decimals
A terminating decimal stops. When you do the division, you eventually hit a remainder of and there is nothing left to bring down: , .
A repeating decimal never stops, but it cycles through the same digits forever: and . Instead of writing dots, put a bar over the part that repeats: and .
The denominator rule
Put the fraction in simplest form, then factor the denominator into primes. If the only prime factors are s and s, the decimal terminates. If any other prime shows up — a , a , an — the decimal repeats forever.
Why and ? Because our decimal system is built on , and . A denominator made of s and s can be scaled up to a power of ten, and any fraction with a power-of-ten denominator is just a decimal that stops. Any other prime can never be scaled into a power of ten, so the division never ends.
Simplifying first matters. The fraction looks like it should repeat because has a factor of — but , and , so it terminates: . Only the simplified denominator tells the truth.
Put the bar in the right place
The bar covers only the digits that actually repeat. — the and happen once, and only the cycles, so you write . Writing would mean , which is a different number.
When you divide by hand, the moment a remainder you've already seen shows up again, the digits are about to repeat — that's your repeating block.
Worked examples
Example 1: a terminating decimal
Write as a decimal and classify it.
Answer: — terminating
Example 2: a repeating decimal
Write as a decimal and classify it.
Answer: — repeating
Example 3: only part of it repeats
Write as a decimal.
Answer:
Try one yourself
Common questions
Do I really have to simplify the fraction first?
Yes. A prime factor that cancels out of the denominator cannot affect the decimal. has a in the denominator, but it simplifies to — and terminates. Check the rule only on the simplified fraction.
Is a long decimal automatically a repeating decimal?
No. is six digits long and still terminates, because is all s. Length doesn't decide anything — the prime factors of the denominator do.
What exactly does the bar mean?
The bar marks the block of digits that repeats forever. means and means — the bar's position changes the number, so place it carefully.
Can a decimal neither terminate nor repeat?
Not if it came from a fraction — every fraction of two integers either terminates or repeats. Decimals that never end and never repeat, like , are the irrational numbers, and no fraction can produce them.
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.