Why do recurring decimals turn into fractions so neatly?

I’m preparing for a test and I keep getting stuck on recurring decimals, especially when I have to change them into fractions. It feels a bit like watching a song loop forever and then being told there’s a neat way to write the whole song in one tiny box – I understand the idea, but I don’t really see why it works. I can follow the steps sometimes, but I’m not confident about what’s actually happening behind the scenes. Why can a decimal that goes on forever still be written as an exact fraction? Also, how do I know what to do when only part of the decimal repeats, instead of the whole thing after the decimal point? I’d really appreciate a plain explanation because right now recurring decimals feel like they’re doing magic tricks on my calculator.

3 Responses

  1. A recurring decimal is just long division that never hits remainder 0. When you divide by an integer d, at each step the remainder is one of 0, 1, 2, …, d−1. There are only finitely many possibilities, so sooner or later a remainder repeats. From that point, the division repeats the same digits in the same order. This is why rational numbers (fractions) produce decimals that either terminate or repeat. In the other direction, a repeating tail is a geometric pattern: if k digits repeat, shifting by 10^k lines up the pattern so the infinite tail cancels when you subtract, leaving a finite integer. That cancellation is what turns the “looping song” into a small fraction.

    To convert, use that alignment. If x = 0.abcabc… (pure repeat of length 3), then 1000x − x = abc, so x = abc/(1000−1) = abc/999. If only part repeats, say x = 0.NR̅ with N the nonrepeating part (length m) and R the repeating block (length n), then 10^{m+n}x − 10^m x = (the integer formed by NR) − (the integer formed by N). So x = (int(NR) − int(N)) / (10^{m+n} − 10^m) = (int(NR) − int(N)) / (10^m(10^n − 1)). Example: x = 0.1̅6 has N=1, R=6, so x = (16−1)/(10·(10−1)) = 15/90 = 1/6.

  2. Recurring decimals are geometric series: the repeating block realigns after multiplying by a power of 10, so subtracting the aligned versions cancels the infinite tail and leaves an exact ratio of integers. Example with a non-repeating start then a repeat: let x = 0.1̅6 = 0.1666…, then 100x − 10x = 16.666… − 1.666… = 15, so 90x = 15 and x = 1/6.

  3. Ohhh, recurring decimals are like secret agents for fractions – they look endless on the surface, but underneath they’re just repeating a pattern that fractions naturally produce. Once you see the logic, the “magic trick” starts to feel like a tidy little machine. Let me walk you through the why and the how, with a couple of friendly road signs along the way. I might over-nerd a hair here, but that’s because the pattern is too pretty not to spotlight!

    Big idea 1: A repeating decimal is a geometric series in disguise
    – Take a pure repeat like 0.37373737…
    – That’s 37/100 + 37/10,000 + 37/1,000,000 + …
    – Each term is the previous one multiplied by 1/100. That’s a geometric series with ratio r = 1/100.
    – Sum of an infinite geometric series is first_term / (1 – r).
    – So 0.373737… = (37/100) / (1 – 1/100) = (37/100) / (99/100) = 37/99.

    Boom: an infinite decimal adds up to a neat fraction because geometric series with |r| < 1 have exact sums. Big idea 2: Long division must eventually loop, so the digits must repeat - A rational number is a fraction a/b in lowest terms. - When you long-divide a by b in base 10, the only thing that changes from step to step is the remainder. - There are only finitely many possible remainders: 0, 1, 2, …, b − 1. - If you ever hit remainder 0, the decimal terminates (like 1/8 = 0.125). - If you don’t, the pigeonhole principle says some remainder must repeat. Once a remainder repeats, the digits from that point repeat forever - hence a recurring decimal. - The only denominators that give terminating decimals are those with no prime factors except 2’s and 5’s (because 10 = 2 × 5). Otherwise, you get a repeat. Both directions line up: repeating decimals are fractions (geometric series argument), and fractions give repeating (or terminating) decimals (remainder-cycles argument). That’s the “why it works.” How to convert a repeating decimal to a fraction (the clean, programmable way) Case A: All the digits after the decimal repeat - Example: x = 0.373737… - Multiply by 100 to line up a repeat: 100x = 37.373737… - Subtract: 100x − x = 37.3737… − 0.3737… = 37 - So 99x = 37, hence x = 37/99. - Pattern: If x = 0.(repeat), and the repeat has r digits, then x = (the repeating block as an integer) / (as many 9’s as the repeat has digits). For instance: - 0.7̅ = 7/9 - 0.18̅ = 18/99 = 2/11 - 0.142857̅ = 142857/999999 = 1/7 (chef’s-kiss pattern!) Case B: Only part of the decimal repeats (a “mixed” repeating decimal) - Example: x = 0.12 34 34 34… (so “34” repeats, but “12” doesn’t). - Let m = length of non-repeating part (here m = 2), r = length of repeating part (here r = 2). - Step 1: Multiply by 10^m to scoot past the non-repeat: - 10^2 x = 100x = 12.343434… - Step 2: Multiply again by 10^r to “complete a repeat”: - 10^2(100x) = 10,000x = 1234.343434… - Subtract to eliminate the repeating tail: - 10,000x − 100x = 1234.3434… − 12.3434… = 1222 - So 9900x = 1222, i.e., x = 1222/9900 = 611/4950. - There’s a tidy shortcut formula if you like: - Write down the digits up through one full repeat: here that’s 1234. - Subtract the non-repeating block (here 12): numerator = 1234 − 12 = 1222. - Denominator = 10^m(10^r − 1) = 10^2(10^2 − 1) = 100 × 99 = 9900. - Reduce if you can. More examples (because patterns are fun) - 0.2 7̅ = 0.2777… - Let x = 0.2 7̅. - Multiply by 10 to clear the 2: 10x = 2.7̅. - Multiply by 10 again (since the repeat has length 1): 100x = 27.7̅. - Subtract: 100x − 10x = 27.7̅ − 2.7̅ = 25, so 90x = 25, hence x = 25/90 = 5/18. - 3.0 81̅ (if the repeat is just the “81”): it’s 3 + 0.0 81̅. The part 0.0 81̅ equals (81 − 0) / (10^1(10^2 − 1)) = 81/990 = 9/110. So total is 3 + 9/110 = 339/110. Why the denominators love 9’s and 0’s - Those “as many 9’s as the repeating block” show up because you’re subtracting two aligned repeats, like 1.abcabcabc… − 0.abcabcabc… = 1 exactly. That difference structurally builds a denominator of the form 10^r − 1, which in base 10 is a bunch of 9’s. - When there’s a non-repeating front, the factor of 10^m appears to shift everything over, which is why you get extra 0’s in the denominator. Two closing sanity checks - Every repeating decimal gives a rational number using the steps above. - Every rational number has a decimal that either terminates or eventually repeats (remainders cycle). Tiny side note (and I admit I always squint at this one for a second): 0.999… is often said to be just a hair less than 1. Intuitively it feels that way, but the algebraic treatment puts it right at 1. Personally I still like thinking of it as “approaches 1 from below,” even though the exact value equals 1. If you practice three quick ones - a pure repeat, a mixed repeat with 1 repeating digit, and a mixed repeat with 2 repeating digits - the method turns into muscle memory. The key mental picture is “line up one full repeat with another copy of itself, subtract, and solve.” Once you see that, the looping song really does fit neatly into a tiny box!

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve Puzzles. Win £200!

Complete our free Puzzle Packs to earn entries into our quarterly £200 cash prize draw. Every different pack you complete gives you another chance to win!

Choose a Pack

Explore our collection of free Puzzle Packs and find your next maths challenge.

Solve the Puzzles

Complete every puzzle in your chosen pack to earn one competition entry.

Be in With a Chance!

Every completed pack gives you another entry into our quarterly £200 prize draw.

Join Our Community

Ready to make maths more enjoyable, accessible, and fun? Join a friendly community where you can explore puzzles, ask questions, track your progress, and learn at your own pace.

By becoming a member, you unlock:

  • Access to all community puzzles
  • The Forum for asking and answering questions
  • Your personal dashboard with points & achievements
  • A supportive space built for every level of learner
  • New features and updates as the Hub grows