Converting Between Fractions and Decimals
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
You saw in the place-value lesson that the digits after the decimal point are tenths, hundredths, and thousandths. That single fact is the whole method for turning a decimal that ends into a fraction.
Take . The is four tenths and the is nine hundredths, so written out it is . Put both pieces over a hundred and add:
The two-digit string "" lands directly on top of , which is the shortcut. A decimal that ends always works this way, because its last place names a denominator every digit can be written over. The rule is short: the number of digits after the point is the number of zeros in the denominator.
A fraction read straight off the digits may not yet be in lowest terms, so the conversion has a second half. A fraction is in lowest terms when its top and bottom share no factor larger than . Reduce by dividing the top and bottom by their greatest common factor, the same simplifying you did in the fractions chapter.
Worked example 1 Write 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:
Now reduce. The greatest common factor of and is , so divide the top and bottom by :
Since and share no common factor larger than , the fraction 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 is .
Check your understanding
Write as a fraction in lowest terms.
Two digits follow the point, so the denominator is a hundred: . Reduce by dividing the top and bottom by their greatest common factor, which is .
Since and share no factor larger than , is in lowest terms. The form is equal but not reduced, and is not reduced either.
A fraction is a division waiting to happen
Going the other direction, from a fraction to a decimal, rests on a fact you have known since the fractions chapter. The fraction bar means divide.
Take . The bar says divide by . Since does not go into , write in the ones place, bring the point up, and keep dividing into , exactly as you did with whole-number long division, appending a zero each time there is still a remainder to carry:
Every fraction goes the same way: it is the numerator divided by the denominator, so carry out that division and keep the decimal point in the quotient lined up above the point in the dividend. The remainder does not always clear, and the last section of this lesson says which fractions it clears for.
Why dividing the numerator by the denominator gives the decimal#
Run the argument on . Split wholes equally among groups. Collecting all four of those shares has to rebuild the you started with. So the value of is the number that gives when you take of it, which is exactly what asks for. Long division answers that a place at a time. Four goes into twice, leaving over. That becomes tenths, and four goes into twice, leaving tenths. Those tenths become hundredths, and four goes into exactly five times. The quotient is , and four copies of do rebuild the .
Nothing in that depended on the digits and : the same reasoning turns any fraction into the division that produces its decimal.
Worked example 2 Write as a decimal
The bar means divide, so compute . Eight does not fit into , so the quotient starts with and a point, and the division runs into .
Eight into tenths goes times (), leaving tenths, which become hundredths. Eight into goes times (), leaving hundredths, which become thousandths. Eight into goes exactly times with no remainder:
The remainder reached , so the decimal terminates. A quick sanity check: is just under , and is just under , so the size is right.
Check your understanding
Write as a decimal by dividing.
The bar means divide the numerator by the denominator, so compute . Eight into tenths goes times (), leaving ; eight into hundredths goes times (), leaving ; eight into thousandths goes exactly times.
comes from dividing the wrong way round, . and just rearrange the two digits without dividing at all.
A shortcut when the denominator scales cleanly
Long division always works, but you can often skip it. The fraction is the classic case. A hundred is , so multiply the top and bottom by :
That step uses equivalent fractions: multiplying the top and bottom by the same number does not change the value. So is still three quarters, now written with a bottom you can read as hundredths. Once the bottom is a hundred, the top is simply the hundredths, and the decimal is read off directly. This is the same conversion as the long division , just reached by scaling instead of dividing.
The general rule follows. If the denominator divides evenly into ten, a hundred, a thousand, or any longer string of zeros, then scaling the fraction to that denominator turns it into a decimal. You choose the multiplier that makes the denominator into that power of ten. You can then read the decimal straight off, with no division of the numerator at all. Ten, a hundred, and a thousand are simply the first three worth trying by hand; if none of them works, a larger one sometimes still does; the last section of this lesson gives the test that settles the question for good.
Choosing the multiplier is the whole skill here. Take : multiplying top and bottom by gives , which reads straight off as . Multiplying by or by instead gives and , equally true names for the same amount. But and are not ten, a hundred, or a thousand, so neither can be read off as a decimal without more scaling.
Worked example 3 Write as a decimal by scaling
Look at the denominator . It does not divide , but it does divide , because . So multiply the top and bottom by to make the denominator a hundred:
A denominator of a hundred means two decimal places, and the top "" gives those two digits:
This is the reverse of Worked Example 1, where reduced to , a useful check that the two directions agree.
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 and are the same number.
Check your understanding
Which is the quickest correct way to convert to a decimal, and what is the result?
The denominator divides a hundred, since , so scale the fraction by multiplying the top and bottom by .
Scaling to ten will not work because does not divide , and the division is , not .
Terminating or repeating: it depends on the denominator
Some fractions, like , give a decimal that ends. Others do not. Try with long division: gives , where the remainder is at every step, so the s never stop. We write a repeating decimal with a bar over the block of digits that repeats forever:
You can predict which happens before doing any division by looking at the prime factors of the denominator. The dividing line is clean: a fraction in lowest terms terminates exactly when its denominator has no prime factor other than and . If any other prime, such as or , survives in the denominator, the decimal repeats.
Why only the primes 2 and 5 give a terminating decimal#
First see why and are the special primes. Start with the denominators a terminating decimal can have. A decimal with one place is a count of tenths. A decimal with two places is a count of hundredths. Three places count thousandths. So the denominators that can occur are ten, a hundred, a thousand, and so on. They are precisely the ” followed by zeros” numbers. A decimal therefore terminates exactly when the fraction can be rewritten with one of those denominators. Now factor those denominators: ten is , a hundred is , a thousand is three s times three s. Every one of them is built from nothing but s and s. Now think about a fraction in lowest terms. Such a fraction can be scaled up to one of these denominators only if its denominator already divides one of them. And a denominator divides one of them only when it is built from nothing but s and s. For example has denominator , all s and s, and indeed terminates. A denominator does not need both primes, and shows why. Its denominator is , with no at all, yet , so divides a thousand and . But has denominator . That stubborn factor of is the obstacle. It can never be turned into a string of s and s. So no ” followed by zeros” number is a multiple of . The decimal for therefore cannot terminate.
Why a fraction's decimal, when it does not end, must repeat#
When dividing one whole number by another does not stop, the digits do not wander on forever without a pattern; they settle into a repeating block. Watch that happen on , where the starting remainder comes back after two steps. Dividing by gives the digit and leaves a remainder of . Dividing by gives the digit and leaves a remainder of . That is the remainder the division started with, so the next two digits have to be and again. Only the remainders and ever appeared, and the return of the forces that same block of digits again. The decimal is , and it cycles because a remainder came back.
Nothing about was essential to that. In any long division, every remainder is a whole number smaller than the divisor, so there are only finitely many remainders the division can ever produce. If a remainder of never turns up, the division runs forever while drawing from that same short, fixed list, so eventually some remainder has to repeat. The instant it does, the digits that follow it must match the digits that followed it the first time, because each digit is decided entirely by the current remainder. From there the same block of digits cycles forever. That is why dividing one whole number by another gives only one of two kinds of decimal: it ends, or it settles into a repeating block. Nothing else can happen.
Check your understanding
Dividing by , the remainder shows up twice in a row. What does that guarantee about the decimal?
Every digit in a long division is decided entirely by the current remainder: the same remainder always produces the same next digit and the same next remainder. So once a remainder repeats, the whole chain of digits after it has to repeat too, forever. That is the reason a fraction's decimal can only end or settle into a repeating block; a remainder returning does not stop the division on its own, and the exact repeating digits still have to come from working the division out.
To apply the test, reduce the fraction to lowest terms first, then prime factorize the denominator. Reducing first matters: looks like it has the bad factor . But it reduces to , whose denominator is just , so it terminates ().
Worked example 4 Without dividing, decide whether and terminate
Apply the test to each: reduce to lowest terms, then check the prime factors of the denominator.
For , the numerator and denominator share no common factor, so it is already in lowest terms. Prime factorize the denominator:
No prime other than and appears, so terminates. Scaling confirms it, since , giving .
For , the fraction is already in lowest terms, and
The factor of is neither nor , so repeats. Dividing confirms it: .
Check your understanding
Which of these fractions gives a repeating decimal?
Each fraction is already in lowest terms, so prime factorize each denominator and look for a prime other than or .
Only carries an extra prime, the , so repeats. The other three have denominators built only from s and s, so they all terminate.