Numbers & Arithmetic

Repeating Decimal to Fraction: How to Convert Any Repeating Decimal

Put the repeating block over the same number of 9s, then simplify: 0.36‾=3699=4110.\overline{36}=\frac{36}{99}=\frac{4}{11}. When digits sit between the decimal point and the repeat, subtract them first and add one 00 to the denominator for each one.

0.d1d2…dk‾=d1d2…dk10k−10.\overline{d_1 d_2 \ldots d_k} = \frac{d_1 d_2 \ldots d_k}{10^k - 1}

Try it with your numbers

Show every step

Every repeating decimal is a fraction, and every fraction is either a terminating or a repeating decimal. That two-way street is why this conversion always works, and the sections below show the algebra behind it, the shortcut, the mixed and negative cases, and the spots where students lose points.

How do you convert a repeating decimal to a fraction?

The reliable method uses one variable and one subtraction. Mark the repeating block, count its digits, and let that count be kk.

  1. Write xx equal to the decimal.
  2. Multiply both sides by 10k10^k, which slides one whole block past the decimal point.
  3. Subtract the original equation from the new one. The endless tails match, so they cancel.
  4. Solve for xx and simplify the fraction.

Here it is on 0.15‾0.\overline{15}, where the block 1515 has k=2k=2 digits:

x=0.151515…x=0.151515\ldots

100x=15.151515…100x=15.151515\ldots

100x−x=15.1515…−0.1515…⇒99x=15100x-x=15.1515\ldots-0.1515\ldots \quad\Rightarrow\quad 99x=15

x=1599=533x=\frac{15}{99}=\frac{5}{33}

The greatest common factor of 1515 and 9999 is 33, which is what reduces the fraction. The bar over 1515 means those two digits repeat forever. Notice that the left side became 99x99x because 100x−x=99x100x-x=99x, a detail that matters in the next section.

Quick check

Write 0.18‾0.\overline{18} as a fraction in lowest terms.

Why does the subtract method work?

Digit grid showing 100x and x tails matching for 0.1515 repeating, while 10x and x tails clash
For 0.151515… the block has 2 digits, so 100x lines up with x and the tails cancel, while 10x does not.

Multiplying by 10k10^k moves every digit kk places to the left. Because the pattern never ends, the shifted number has exactly the same infinite tail as the original. Subtracting two equal tails leaves nothing, so only a whole number survives: 10kx−x10^k x - x equals the block. That is the entire trick, and it is a direct use of the properties of equality: you may multiply both sides of an equation by the same number, then subtract equal quantities from equal quantities.

The same result appears from a different angle. A repeating decimal is a geometric series. For 0.15‾0.\overline{15}:

0.15‾=0.15+0.0015+0.000015+⋯=0.151−0.01=0.150.99=15990.\overline{15}=0.15+0.0015+0.000015+\cdots=\frac{0.15}{1-0.01}=\frac{0.15}{0.99}=\frac{15}{99}

The first term is the block written as a decimal, and the ratio is 10−k10^{-k}. Since 1−10−k1-10^{-k} turns into 10k−110k\frac{10^k-1}{10^k}, the denominator 10k−110^k-1 falls out automatically. That denominator is a string of kk nines, which is where the shortcut comes from.

Wrong power, no cancel

For 0.15‾0.\overline{15}, multiplying by 1010 gives 1.5151…1.5151\ldots, whose tail does not match 0.1515…0.1515\ldots. Multiply by 10k10^k, where kk is the block length (a multiple of it also works, with bigger numbers).

This is the most common error. The decimals you can see on the page do not matter. Only the length of the repeating block does.

The nines shortcut for a repeating decimal to fraction

Step 3 above ended with 99x=1599x=15. In general, when the repeat starts right after the decimal point, the equation always reads (10k−1) x=block(10^k-1)\,x=\text{block}. So:

0.d1d2…dk‾=d1d2…dk10k−10.\overline{d_1 d_2\ldots d_k}=\frac{d_1 d_2\ldots d_k}{10^k-1}

The denominator 10k−110^k-1 is 99, 9999, 999999 and so on. Take 0.405‾0.\overline{405}, a three-digit block:

0.405‾=4059990.\overline{405}=\frac{405}{999}

Simplifying is faster if you know what is inside the denominators: 9=329=3^2, 99=32⋅1199=3^2\cdot 11, 999=33⋅37999=3^3\cdot 37 and 9999=32⋅11⋅1019999=3^2\cdot 11\cdot 101 (a quick job with prime factorization). So the only common factors to look for are 33, 1111, 3737 and 101101. The divisibility rules handle the rest: the digits of 405405 add to 99, so it divides by 99, giving 45111\frac{45}{111}, and both of those divide by 33:

405999=45111=1537\frac{405}{999}=\frac{45}{111}=\frac{15}{37}

Because 3737 is prime and does not divide 1515, the fraction is finished.

Try this: Write 0.7‾0.\overline{7}, 0.07‾0.\overline{07} and 0.007‾0.\overline{007} as fractions using the nines rule. Then divide numerator by denominator on a calculator to confirm each one.

Leading zeros in the block count as digits. That is why 0.07‾0.\overline{07} is 799\frac{7}{99}, not 79\frac{7}{9}.

How to convert a mixed repeating decimal to a fraction

A mixed repeating decimal has some non-repeating digits before the repeat, such as 0.7222…=0.72‾0.7222\ldots=0.7\overline{2}. The nines rule alone fails here, so the algebra needs two multipliers. Use 10m10^m (with mm the number of non-repeating digits) to land just before the repeat, and 10m+k10^{m+k} to land one block later.

Convert 0.72‾0.7\overline{2}, where m=1m=1 and k=1k=1:

x=0.7222…x=0.7222\ldots

10x=7.222…10x=7.222\ldots

100x=72.222…100x=72.222\ldots

100x−10x=72.222…−7.222…⇒90x=65100x-10x=72.222\ldots-7.222\ldots \quad\Rightarrow\quad 90x=65

x=6590=1318x=\frac{65}{90}=\frac{13}{18}

The numerator step is plain integer subtraction: 72−7=6572-7=65. The trap is subtracting xx itself instead of 10x10x. Then you get 100x−x=71.5100x-x=71.5, which is not a whole number, and the cancellation has not worked. Both lines you subtract must have the same tail.

The pattern gives a one-line rule: numerator equals (all digits up to the end of the first block) minus (the non-repeating digits), and the denominator is kk nines followed by mm zeros. For 0.1527‾0.15\overline{27}:

1527−159900=15129900=42275\frac{1527-15}{9900}=\frac{1512}{9900}=\frac{42}{275}

Check against 1318\frac{13}{18} from above: 72−790=6590\frac{72-7}{90}=\frac{65}{90}, the same fraction.

Quick check

Write 0.24‾0.2\overline{4} as a fraction in lowest terms.

Negative and whole-number repeating decimals as fractions

Number line comparing negative 38 over 11 with negative 28 over 11 for the sign trap
−3.4545… equals −38/11, but reading it as −3 + 0.4545… lands at −28/11, on the wrong side of −3.

For a negative decimal, convert the absolute value and put the minus sign back at the end. For a decimal with a whole part, you can either keep the whole part in the equation or split it off.

Convert −3.45‾-3.\overline{45}. Work with 3.45‾3.\overline{45}, where the block has two digits:

x=3.454545…x=3.454545\ldots

100x=345.454545…100x=345.454545\ldots

99x=342⇒x=34299=381199x=342 \quad\Rightarrow\quad x=\frac{342}{99}=\frac{38}{11}

Restore the sign: −3.45‾=−3811-3.\overline{45}=-\frac{38}{11}, which is −3511-3\frac{5}{11} as a mixed number. Splitting gives the same thing: 3+4599=3+511=38113+\frac{45}{99}=3+\frac{5}{11}=\frac{38}{11}.

The trap is the sign. −3.45‾-3.\overline{45} means −(3+0.45‾)-(3+0.\overline{45}), not −3+0.45‾-3+0.\overline{45}. The second reading gives −3+511=−2811-3+\frac{5}{11}=-\frac{28}{11}, which is a different number. When repeating decimals sit inside a bigger expression, convert each one first and then compute with exact fractions. For example,

0.6‾0.3‾= 2/3 1/3=2,\frac{0.\overline{6}}{0.\overline{3}}=\frac{\,2/3\,}{1/3}=2,

a standard job for simplifying complex fractions.

Is 0.999… equal to 1?

Yes, and the conversion method proves it. Let x=0.9‾x=0.\overline{9}. Then 10x=9.9‾10x=9.\overline{9}, and subtracting gives 9x=99x=9, so x=1x=1. The nines rule agrees: 0.9‾=99=10.\overline{9}=\frac{9}{9}=1. A third check: 13=0.3‾\frac{1}{3}=0.\overline{3}, so tripling both sides gives 1=0.9‾1=0.\overline{9}.

The objection most people have is that 0.999…0.999\ldots must be a hair below 11. The mistake is treating the decimal as a process that stops somewhere. A finite string of nn nines equals 1−10−n1-10^{-n}, which is always short of 11. But the repeating decimal means all the nines at once, and no positive gap can survive when it is smaller than every 10−n10^{-n}. A decimal expansion is a name for a point on the number line, and the real number system lets one point have two names.

This is not a one-off. Any terminating decimal has a twin ending in nines: 0.5=0.49‾0.5=0.4\overline{9}, and the mixed rule confirms it, since 49−490=4590=12\frac{49-4}{90}=\frac{45}{90}=\frac{1}{2}. It explains why a conversion can give an answer that looks different from what you expected but is equal in value.

Which decimals repeat, and when does the method fail?

A fraction in lowest terms, pq\frac{p}{q}, produces a terminating decimal exactly when qq has no prime factors except 22 and 55. Anything else repeats. The block length is at most q−1q-1, since long division can only produce q−1q-1 different nonzero remainders before one comes back.

Fraction Decimal Block length
13\frac{1}{3} 0.3‾0.\overline{3} 1
16\frac{1}{6} 0.16‾0.1\overline{6} 1
111\frac{1}{11} 0.09‾0.\overline{09} 2
17\frac{1}{7} 0.142857‾0.\overline{142857} 6
113\frac{1}{13} 0.076923‾0.\overline{076923} 6

The method breaks down in three situations:

  • Irrational numbers. The decimals of π\pi and 2\sqrt{2} never repeat, so no fraction exists. This is the dividing line in rational vs irrational numbers.
  • Rounded displays. A calculator showing 0.33333330.3333333 has cut the decimal off. Taken literally it is 333333310000000\frac{3333333}{10000000}, not 13\frac{1}{3}. You need to know the pattern continues.
  • Hidden blocks. Given only 0.1428570.142857, you cannot tell whether the block is the whole string or something longer. Always see at least one complete repeat.

Bar placement also changes the value. 0.16‾=160.1\overline{6}=\frac{1}{6}, but 0.16‾=16990.\overline{16}=\frac{16}{99}. A terminating decimal like 0.250.25 is the easy case, equal to 0.250‾0.25\overline{0}, and converts by place value: 25100=14\frac{25}{100}=\frac{1}{4}.

Quick check

Which of 720\frac{7}{20}, 512\frac{5}{12} and 925\frac{9}{25} gives a repeating decimal?

How to check your fraction and where repeating decimals show up

To check, divide the numerator by the denominator with long division (see dividing integers). For 1318\frac{13}{18}: 130÷18=7130\div18=7 remainder 44, then 40÷18=240\div18=2 remainder 44. The remainder 44 has come back, so the digit 22 repeats forever, giving 0.72‾0.7\overline{2}. A repeated remainder is always the sign that the block has started over.

The denominator test

A pure repeating decimal reduces to a denominator with no factor of 22 or 55, as in 533\frac{5}{33}. A mixed one always keeps a 22 or a 55, as in 1318\frac{13}{18}. If your answer breaks this rule, recheck the zeros.

Exact fractions matter in practice. In a percent of a number problem, 33.3‾%33.\overline{3}\% of 9090 is exactly 3030, but using 33%33\% gives 29.729.7. Spreadsheets and code have the same issue underneath: computers store numbers in binary, where 0.10.1 is the repeating expansion 0.00011‾0.0\overline{0011}, so it cannot be stored exactly. That is why many programming languages print 0.1+0.20.1+0.2 as 0.300000000000000040.30000000000000004. Everyday amounts like 13\frac{1}{3} of an hour (exactly 2020 minutes) or 23\frac{2}{3} of a cup are repeating decimals in disguise, and the fraction is the exact version.

Practice problems

0 of 5 solved

  1. Write 0.7‾0.\overline{7} as a fraction.

  2. Write 0.45‾0.\overline{45} as a fraction in lowest terms.

  3. Write 0.83‾0.8\overline{3} as a fraction in lowest terms.

  4. Write 2.27‾2.\overline{27} as an improper fraction in lowest terms.

  5. Write −0.416‾-0.41\overline{6} as a fraction in lowest terms.

Common questions

How do you turn a repeating decimal into a fraction?

Put the repeating block over the same number of 9s, then simplify. For 0.36‾0.\overline{36} that gives 3699=411\frac{36}{99}=\frac{4}{11}. If digits come before the repeat, use the subtract method or add one zero to the denominator for each of them.

What is 0.333 repeating as a fraction?

0.3‾=39=130.\overline{3}=\frac{3}{9}=\frac{1}{3}. Note that a plain 0.3330.333 with no repeat is a different number: it equals 3331000\frac{333}{1000}.

How do you convert a decimal with a non-repeating part, like 0.1666...?

Subtract the non-repeating digits from the digits through the first repeat, and divide by nines followed by zeros. For 0.16‾0.1\overline{6} that is 16−190=1590=16\frac{16-1}{90}=\frac{15}{90}=\frac{1}{6}.

Is 0.999... really equal to 1?

Yes. Setting x=0.9‾x=0.\overline{9} gives 10x−x=910x-x=9, so x=1x=1. The two are different names for the same real number, not two numbers that are very close.

Can every repeating decimal be written as a fraction?

Yes. Every repeating decimal is a ratio of two integers, which is the definition of a rational number. Decimals that never repeat, such as π\pi and 2\sqrt{2}, cannot be written this way.

How do you know how many 9s to use?

Count the digits in the repeating block, not the digits you can see. The block of 0.405‾0.\overline{405} has three digits, so the denominator is 999999.

Up next