Converting Between Fractions and Decimals

Watch the video explainer

Learning goals

  • Convert a decimal that ends to a fraction by reading its last place as the denominator
  • Divide numerator by denominator to turn any fraction into a decimal
  • Scale to a denominator of ten or a hundred instead of dividing
  • Predict whether a fraction terminates from the prime factors of its denominator
  • Explain why a fraction's decimal, when it does not end, must repeat, since a remainder must come back

A decimal that ends is already a fraction

The last decimal place names a unit. For 0.490.49, put the four tenths and nine hundredths over the common denominator 100100:

0.49=40100+9100=49100.0.49=\frac{40}{100}+\frac{9}{100}=\frac{49}{100}.

For any terminating decimal, its last place provides a common denominator for all the digits. One zero in the denominator for each digit after the point gives

0.7=710,0.013=131000.0.7=\frac{7}{10},\qquad0.013=\frac{13}{1000}.

Then reduce by the greatest common factor (GCF). A fraction is in lowest terms when its numerator and denominator share no factor larger than 11.

Worked example 1 Write 0.350.35 as a fraction in lowest terms

There are two digits after the point, so the denominator is a hundred and the digits sit on top:

0.35=35100.0.35 = \frac{35}{100}.

Now reduce. The greatest common factor of 3535 and 100100 is 55, so divide the top and bottom by 55:

35100=35÷5100÷5=720.\frac{35}{100} = \frac{35 \div 5}{100 \div 5} = \frac{7}{20}.

Since 77 and 2020 share no common factor larger than 11, the fraction 720\tfrac{7}{20} is in lowest terms, and that is the answer.

A number with a whole part converts the same way: leave the whole part alone and convert only the decimal piece. The result is a mixed number you can read off directly. For instance 2.62.6 is 2610=2352\tfrac{6}{10} = 2\tfrac{3}{5}.

0.75 and three quarters shade the same portion of a wholeA bar split into four parts with three shaded, above a bar with 0.75 of its length shaded; the shaded lengths match.3/40.75same shaded length
Three of four equal parts have the same shaded length as 0.75 of the whole: the decimal 0.75 and the fraction 3/4 mark the same amount.

Check your understanding

Write 0.280.28 as a fraction in lowest terms.

Answer choices

A fraction is a division waiting to happen

The fraction bar means divide: numerator divided by denominator.

For 38\tfrac{3}{8}, compute 3÷83\div8. Eight does not fit into three wholes, so write 00 before the point. Continue with tenths, hundredths, and thousandths:

38=3÷8=0.375.\frac{3}{8}=3\div8=0.375.

Keep the quotient’s point directly above the dividend’s. Add trailing zeros to continue the division when a remainder remains. Some divisions end; others repeat.

Aligning the decimal point when dividing 7 by 8The divisor 8 sits outside a division bracket holding the dividend 7.000. The quotient 0.875 is written above the bracket with its decimal point directly over the dividend’s decimal point.onestenthshundredthsthousandths0.87587.000
Dividing 7 by 8: the quotient's decimal point sits directly above the dividend's, so each digit of the answer lands in its own place, ones over ones and tenths over tenths.

Why dividing the numerator by the denominator gives the decimal#

Share 99 wholes equally among 44 groups. Four copies of each share must rebuild the 99 wholes. Each group gets one quarter of every whole: nine quarters, or 94\tfrac{9}{4}. Finding that share is also the task 9÷49\div4.

Long division finds it one place at a time: four fits into nine twice, leaving one whole. That is ten tenths; four fits twice, leaving two tenths. Those are twenty hundredths; four fits five times.

94=2.25,4×2.25=9.\frac{9}{4}=2.25,\qquad4\times2.25=9.

So 94\tfrac{9}{4} and 9÷49\div4 name the same share.

Why dividing the numerator by the denominator gives the decimal, for any fraction#

Share 55 wholes among 22 groups. Each gets 22 wholes and half the remaining whole:

52=2.5,2×2.5=5.\frac{5}{2}=2.5,\qquad2\times2.5=5.

The same reasoning applies to any whole-number numerator aa and positive whole-number denominator bb. Cut each whole into bb equal pieces. Each share gets aa pieces of size 1b\tfrac{1}{b}, so it is ab\tfrac{a}{b}. If one share is called dd, then collecting all bb shares gives

b×d=a.b\times d=a.

That is what a÷ba\div b means: the amount in each of bb equal shares. Thus ab=a÷b\tfrac{a}{b}=a\div b.

At each long-division step, the quotient digit counts shares of the current place. The remainder is renamed in the next smaller units, such as one whole becoming ten tenths. Renaming does not change the amount being shared, so the digits found this way are the decimal of the fraction.

For a mixed number, keep the whole part and add the decimal value of its fractional part. For example, 134=1+0.75=1.751\tfrac{3}{4}=1+0.75=1.75.

Worked example 2 Write 78\tfrac{7}{8} as a decimal

The bar means divide, so compute 7÷87 \div 8. Eight does not fit into 77, so the quotient starts with 00 and a point, and the division runs into 7.0007.000.

Eight into 7070 tenths goes 88 times (8×8=648 \times 8 = 64), leaving 66 tenths, which become 6060 hundredths. Eight into 6060 goes 77 times (5656), leaving 44 hundredths, which become 4040 thousandths. Eight into 4040 goes exactly 55 times with no remainder:

78=7÷8=0.875.\frac{7}{8} = 7 \div 8 = 0.875.

The remainder reached 00, so the decimal terminates. A quick sanity check: 78\tfrac{7}{8} is just under 11, and 0.8750.875 is just under 11, so the size is right.

Check your understanding

Write 316\tfrac{3}{16} as a decimal by dividing.

Answer choices

A shortcut when the denominator scales cleanly

Sometimes equivalent fractions are quicker than long division. For 34\tfrac{3}{4}, multiply numerator and denominator by 2525:

34=3×254×25=75100=0.75.\frac{3}{4}=\frac{3\times25}{4\times25}=\frac{75}{100}=0.75.

The denominator now counts hundredths, so we can read the decimal directly.

Scale both numerator and denominator to make the denominator 1010, 100100, 10001000, or a larger number made of 11 followed by zeros. Choose the multiplier to reach that denominator. For 35\tfrac{3}{5}, multiplying both by 22 gives 610=0.6\tfrac{6}{10}=0.6. Multiplying both by 33 gives an equal fraction, 915\tfrac{9}{15}, but it does not yet give a denominator we can read directly as decimal places.

After reducing, this shortcut works when the denominator divides 1010, 100100, 10001000, or another 11 followed by zeros. A denominator of 33 has no whole-number multiplier that reaches one of these; the next section explains the test.

Worked example 3 Write 720\tfrac{7}{20} as a decimal by scaling

Look at the denominator 2020. It does not divide 1010, but it does divide 100100, because 100=20×5100 = 20 \times 5. So multiply the top and bottom by 55 to make the denominator a hundred:

720=7×520×5=35100.\frac{7}{20} = \frac{7 \times 5}{20 \times 5} = \frac{35}{100}.

A denominator of a hundred means two decimal places, and the top "3535" gives those two digits:

720=35100=0.35.\frac{7}{20} = \frac{35}{100} = 0.35.

This reverses Worked Example 1, where 0.350.35 reduced to 720\tfrac{7}{20}.

The picture below shows why scaling does not change the amount: cutting each of the five fifths into two makes ten tenths. The shaded portion is unchanged, so 25\tfrac{2}{5} and 410=0.4\tfrac{4}{10} = 0.4 are the same number.

Splitting each fifth into two equal parts turns 2/5 into 4/10 without changing the shaded amount, and 4/10 is the decimal 0.4. Rectangular bars divided into equal parts, with some parts shaded to show a fraction. 2 5 4 10
Splitting each fifth into two equal parts turns 2/5 into 4/10 without changing the shaded amount, and 4/10 is the decimal 0.4.

Check your understanding

Which scaling correctly converts 1950\tfrac{19}{50} to a decimal?

Answer choices

Terminating or repeating: it depends on the denominator

Some fractions, like 38=0.375\tfrac{3}{8} = 0.375, give a decimal that ends. Others do not. Try 13\tfrac{1}{3} with long division: 1÷31 \div 3 gives 0.333…0.333\ldots, where the remainder is 11 at every step, so the 33s never stop. We write a repeating decimal with a bar over the block of digits that repeats forever:

13=0.333…=0.3‾,16=0.1666…=0.16‾.\frac{1}{3} = 0.333\ldots = 0.\overline{3}, \qquad \frac{1}{6} = 0.1666\ldots = 0.1\overline{6}.

You can predict which happens before doing any division by looking at the prime factors of the denominator. Here is the test: a fraction in lowest terms terminates exactly when its denominator has no prime factor other than 22 and 55. If any other prime, such as 33 or 77, survives in the denominator, the decimal repeats.

Why only the primes 2 and 5 give a terminating decimal#

For 18\tfrac{1}{8}, the denominator is 2×2×22\times2\times2. Supply three factors of 55 to pair with those twos:

8×125=1000,18=1251000=0.125.8\times125=1000,\qquad\frac{1}{8}=\frac{125}{1000}=0.125.

Here is why the prime test works in general.

If the decimal ends, write it over 1010, 100100, 10001000, or another 11 followed by zeros. Each such denominator contains only factors of 22 and 55. Reducing can remove factors, but cannot introduce a different prime.

Conversely, if the reduced denominator contains only twos and fives, multiply by enough missing twos or fives to pair them up. Every 2×52\times5 makes ten, so the new denominator is 11 followed by zeros. The decimal therefore ends.

For example, 20=2×2×520=2\times2\times5 needs one more five to become 100100. But a surviving factor of 33, as in 16\tfrac{1}{6}, cannot appear in any of these denominators. Its decimal cannot end.

A reduced denominator of 11 has no prime factors and also passes the test: the fraction is a whole number.

Why the digits repeat

Watch the remainders in 4÷114\div11:

The remainder 44 is back where we started. It must give 33, then 66, again:

411=0.36‾.\frac{4}{11}=0.\overline{36}.

After the decimal point, each step brings down a zero. The same remainder then gives the same next digit and remainder. A remainder is a whole number below the divisor: for 1111, only 00 through 1010 are possible. Because the list is finite, the division must either reach zero or come back to a remainder it has already had. A repeated remainder makes the digits after it repeat. Seeing the same few digits again does not by itself show that the pattern will continue.

Check your understanding

In 5÷65\div6, remainder 2 keeps returning. Why must every fraction whose decimal does not end eventually repeat?

Answer choices

To apply the test, reduce the fraction to lowest terms first, then prime factorize the denominator. Reducing first matters: 612\tfrac{6}{12} looks like it has the bad factor 33. But it reduces to 12\tfrac{1}{2}, whose denominator is just 22, so it terminates (0.50.5).

Worked example 4 Without dividing, decide whether 940\tfrac{9}{40} and 512\tfrac{5}{12} terminate

Apply the test to each: reduce to lowest terms, then check the prime factors of the denominator.

For 940\tfrac{9}{40}, the numerator 99 and denominator 4040 share no common factor, so it is already in lowest terms. Prime factorize the denominator:

40=2×2×2×5.40 = 2 \times 2 \times 2 \times 5.

No prime other than 22 and 55 appears, so 940\tfrac{9}{40} terminates. Scaling confirms it, since 40×25=100040 \times 25 = 1000, giving 940=2251000=0.225\tfrac{9}{40} = \tfrac{225}{1000} = 0.225.

For 512\tfrac{5}{12}, the fraction is already in lowest terms, and

12=2×2×3.12 = 2 \times 2 \times 3.

The factor of 33 is neither 22 nor 55, so 512\tfrac{5}{12} repeats. Dividing confirms it: 5÷12=0.41666…=0.416‾5 \div 12 = 0.41666\ldots = 0.41\overline{6}.

Check your understanding

Will 1845\tfrac{18}{45} terminate as a decimal? Choose the correct reason.

Answer choices

To compare a fraction with a decimal, write both in a common exact form. Compare from the left when both are decimals; do not round a repeating value first. For example, 13=0.333…\tfrac{1}{3}=0.333\ldots and 0.33=0.3300.33=0.330. The tenths and hundredths match, but the thousandths digits give 3>03>0, so 13>0.33\tfrac{1}{3}>0.33.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

Go deeper (optional)

You can skip this and keep going. Read it if you want to know more.

Why a fraction's nonterminating decimal must repeat

Why a fraction's decimal, when it does not end, must repeat#

In 1÷31\div3, the starting remainder is 11. Each next step divides 1010 by 33, producing digit 33 and remainder 11 again. The same step repeats, giving 0.3‾0.\overline{3}.

Now divide any nonnegative whole number by a positive whole number. Every remainder is a whole number smaller than the divisor, so only finitely many remainders are available. If zero never appears, the division continues without ending. It cannot keep choosing new remainders from a finite list, so some remainder must return.

After the point, every step brings down a zero, so the next digit and remainder depend only on the current remainder. Once it returns, the same sequence follows again. Thus the decimal eventually repeats, although some initial digits may come before the repeating block.

A bound on the length of a repeating block

A guaranteed bound on how long a repeating block can be#

For division by 77, the only nonzero remainders are 1,2,3,4,5,61,2,3,4,5,6. If the division does not end, seven successive remainders must include a repeat: there are only six choices. A repeating cycle therefore uses at most six remainders and produces at most six digits.

For a positive whole-number divisor bb, the possible remainders are 00 through b−1b-1. Reaching zero ends the decimal. Otherwise only the b−1b-1 nonzero values remain. Among bb successive remainders, one must repeat.

A return to the same remainder restarts the same digits. The cycle cannot use more than the b−1b-1 available nonzero remainders, so the repeating block has at most b−1b-1 digits. A nonrepeating prefix may come first; this bound concerns the block.

A bit of history (optional)

Could two people have exactly the same number of hairs? A mathematics booklet published by Jean Leurechon in 1622 included that surprising observation. A popular French book of mathematical recreations developed the idea in 1624: if there are more people than possible hair counts, at least two must share a count.

Two centuries later, the German mathematician Peter Gustav Lejeune Dirichlet used this kind of counting argument in number theory. It became associated with his name, and is also called the pigeonhole principle or drawer principle.

Benoît Rittaud and Albrecht Heeffer traced these earlier appearances. They found documented uses by Dirichlet in 1842, but no precise source for the often-repeated claim that he discovered it in 1834. Even the authorship of the 1624 recreation book is disputed.

Your progress

See all your progress →