Chapter 1 · Rational number foundations

Converting Between Fractions and Decimals

Learn to turn a fraction into a decimal by dividing, and to turn terminating and repeating decimals back into fractions while keeping the value exact.

14 min read

You already know how to compare and order rational numbers. That work is easier when every number is written in the same form, so this lesson shows you how to move between two forms: fractions and decimals.

A rational number is a number that can be written as pq\frac{p}{q}, where pp and qq are integers (whole numbers and their opposites) and qq is not zero. For example, the fraction 34\frac{3}{4} and the decimal 0.750.75 are the same rational number written in two forms.

The fraction bar means division. For integers pp and qq with qq not zero, the fraction pq\frac{p}{q} is the quotient p÷qp \div q: the result of dividing the numerator pp (the top number) by the denominator qq (the bottom number). Here qq is the divisor, the number you divide by. It must be nonzero, because division by zero is undefined. The numerator may be zero: 09=0÷9=0\frac{0}{9} = 0 \div 9 = 0, because zero divided by a nonzero number is zero.

Carrying out the division gives one of two kinds of decimal:

  • A terminating decimal has a last digit, such as 0.750.75.
  • A repeating decimal never ends, and one digit or block of digits repeats forever, such as 0.333…0.333\ldots

Write a repeating decimal with a bar over the repeating digits only: 0.333…=0.3‾0.333\ldots = 0.\overline{3} and 0.1666…=0.16‾0.1666\ldots = 0.1\overline{6}. The bar shows exactly which digits repeat, so the decimal still names the exact value.

Each fraction is a division, and the division gives its decimal form
FractionDivisionDecimal formKind of decimal
14\frac{1}{4}
1÷41 \div 4
0.250.25
Terminating
94\frac{9}{4}
9÷49 \div 4
2.252.25
Terminating
−35-\frac{3}{5}
−3÷5-3 \div 5
−0.6-0.6
Terminating
09\frac{0}{9}
0÷90 \div 9
00
Terminating
13\frac{1}{3}
1÷31 \div 3
0.3‾0.\overline{3}
Repeating
29\frac{2}{9}
2÷92 \div 9
0.2‾0.\overline{2}
Repeating
16\frac{1}{6}
1÷61 \div 6
0.16‾0.1\overline{6}
Repeating

Key concept

One number, two forms

A fraction and a decimal can name the same rational number. For integers pp and qq with q≠0q \neq 0, the fraction pq\frac{p}{q} equals the quotient p÷qp \div q, and carrying out that division gives a decimal that terminates or repeats. In the other direction, every terminating or repeating decimal can be written as a fraction of integers with a nonzero denominator. Converting changes the form, never the value. Keep the value exact: mark repeating digits with a bar, and when a rounded value replaces the exact one, write ≈\approx, which means is approximately equal to.

pq=p÷q,q≠0\frac{p}{q} = p \div q, \quad q \neq 0

Worked example

A division that ends

Write 38\frac{3}{8} as a decimal.

  1. Read the fraction bar as division: 3 divided by 8. The divisor 8 is nonzero, so the quotient is defined.

    38=3÷8\frac{3}{8} = 3 \div 8
  2. Because 8 is greater than 3, the ones digit of the quotient is 0. Write 0 and a decimal point. Trade the 3 ones for 30 tenths, which have the same value, and divide by 8. Since 8 times 3 is 24 and 30 minus 24 is 6, the tenths digit is 3. The 6 tenths left over are the remainder.

    30÷8=3 remainder 630 \div 8 = 3 \text{ remainder } 6
  3. Trade the remainder of 6 tenths for 60 hundredths and divide by 8 again. Since 8 times 7 is 56 and 60 minus 56 is 4, the hundredths digit is 7 and the remainder is 4 hundredths.

    60÷8=7 remainder 460 \div 8 = 7 \text{ remainder } 4
  4. Trade the 4 hundredths for 40 thousandths and divide by 8. Since 8 times 5 is 40 and 40 minus 40 is 0, the thousandths digit is 5. The remainder is 0, so nothing is left to divide and the division ends.

    40÷8=5 remainder 040 \div 8 = 5 \text{ remainder } 0
  5. Collect the digits: 0 ones, 3 tenths, 7 hundredths and 5 thousandths. Check by multiplying the quotient by the divisor. You should get back the dividend, the number that was divided, which is 3.

    0.375×8=30.375 \times 8 = 3

Answer

As a decimal, 38\frac{3}{8} is 0.3750.375, which is a terminating decimal.

In that example, a remainder of 00 ended the division. What happens when the remainder never reaches 00?

When you divide a whole number by a positive integer qq, every remainder is a whole number from 00 to q−1q - 1, so only qq different remainders are possible. If the remainder is never 00, some remainder must show up a second time within qq steps. Past the decimal point, each step uses only the remainder left by the step before. So once a remainder comes back, the same steps happen again in the same order, and the same digits repeat forever.

That is why the decimal form of a rational number always terminates or repeats. A decimal that neither terminates nor repeats cannot come from dividing an integer by a nonzero integer, so it is not rational. Such a number is called irrational.

Worked example

A negative fraction with a repeating decimal

Write −56-\frac{5}{6} as a decimal.

  1. Settle the sign first. The fraction equals negative 1 times five-sixths. Both factors, the numbers being multiplied, are nonzero, and exactly one of them is negative. An odd number of negative factors gives a negative product, so the decimal is negative. Convert five-sixths by dividing 5 by the nonzero divisor 6, and attach the negative sign at the end.

    −56=−1×56=−(5÷6)-\frac{5}{6} = -1 \times \frac{5}{6} = -\left(5 \div 6\right)
  2. Because 6 is greater than 5, write 0 and a decimal point, then trade the 5 ones for 50 tenths. Since 6 times 8 is 48 and 50 minus 48 is 2, the tenths digit is 8 and the remainder is 2 tenths.

    50÷6=8 remainder 250 \div 6 = 8 \text{ remainder } 2
  3. Trade the 2 tenths for 20 hundredths. Since 6 times 3 is 18 and 20 minus 18 is 2, the hundredths digit is 3 and the remainder is 2 hundredths.

    20÷6=3 remainder 220 \div 6 = 3 \text{ remainder } 2
  4. The remainder 2 has come back. The next step is 20 divided by 6 again, which gives 3 with remainder 2, and so does every step after it. The digit 3 repeats forever. The 8 appears only once, so the bar goes over the 3 alone.

    5÷6=0.8333…=0.83‾5 \div 6 = 0.8333\ldots = 0.8\overline{3}
  5. Attach the negative sign from the first step to get the exact value. If you want a rounded value, write the approximately-equal sign, because the rounded decimal is close to the exact value but not equal to it.

    −56=−0.83‾≈−0.83-\frac{5}{6} = -0.8\overline{3} \approx -0.83

Answer

As a decimal, −56-\frac{5}{6} is exactly −0.83‾-0.8\overline{3}. Rounded to the nearest hundredth, it is about −0.83-0.83.

Now go the other way, from a decimal to a fraction. A negative decimal is −1-1 times a positive decimal, so convert the positive decimal and attach the negative sign at the end.

For a terminating decimal, place value does the work. The place of the last digit gives the denominator: tenths give 1010, hundredths give 100100, and thousandths give 10001000. Each of these is a power of ten: a number in the list 1010, 100100, 10001000, and so on, where each is ten times the one before.

Take 0.360.36. Its last digit is in the hundredths place, so it is 3636 hundredths, or 36100\frac{36}{100}. Next, write the fraction in lowest terms, which means the numerator and the denominator share no common factor greater than 11. Their greatest common factor, the largest whole number that divides both, is 44, so divide both by 44. This does not change the value, because you are dividing the fraction by 44\frac{4}{4}, which equals 11. The same is true for any nonzero number in place of 44.

0.36=36100=36÷4100÷4=9250.36 = \frac{36}{100} = \frac{36 \div 4}{100 \div 4} = \frac{9}{25}

A repeating decimal has no last digit, so place value cannot give you a denominator. Use the repetition instead.

Multiplying by 1010 moves every digit one place to the left. Suppose the repeating block starts right after the decimal point. Multiply by 1010 once for each digit in the block. One whole block moves in front of the point, and the digits after the point stay exactly the same. Now you have two numbers with identical digits after the point. Subtract the original number from the new one, and those matching digits subtract to zero. A whole number is left, and one short equation gives the fraction.

Worked example

A repeating decimal back to a fraction

Write 0.27‾0.\overline{27} as a fraction in lowest terms.

  1. Name the number so you can write equations about it. Let x stand for the decimal. The bar means the block 27 repeats forever, starting right after the decimal point.

    x=0.27‾=0.272727…x = 0.\overline{27} = 0.272727\ldots
  2. The repeating block has 2 digits, so multiply both sides by 10 twice, which is the same as multiplying by 100. Multiplying both sides of a true equation by the same number keeps it true. One whole block moves in front of the decimal point, and the digits after the point are unchanged.

    100x=27.27‾100x = 27.\overline{27}
  3. Subtract the first equation from the second. Take x from the left side and its equal, the original decimal, from the right side. Taking equal amounts from both sides keeps the equation true. The digits after the point are identical, so they subtract to 0. On the left, 100 of x minus 1 of x leaves 99 of x.

    100x−x=27.27‾−0.27‾⇒99x=27100x - x = 27.\overline{27} - 0.\overline{27} \quad\Rightarrow\quad 99x = 27
  4. Divide both sides by 99 to get x alone. This is allowed because 99 is nonzero.

    x=2799x = \frac{27}{99}
  5. Write the fraction in lowest terms. The greatest common factor of 27 and 99 is 9, so divide the numerator and the denominator by 9. Dividing both by the same nonzero number does not change the value.

    2799=27÷999÷9=311\frac{27}{99} = \frac{27 \div 9}{99 \div 9} = \frac{3}{11}
  6. Check by dividing 3 by 11. First, 30 tenths divided by 11 is 2 with remainder 8. Next, 80 hundredths divided by 11 is 7 with remainder 3. The remainder 3 is the number you started with, so the same two steps repeat and the digits 2 and 7 repeat forever.

    3÷11=0.2727…=0.27‾3 \div 11 = 0.2727\ldots = 0.\overline{27}

Answer

Written as a fraction in lowest terms, 0.27‾0.\overline{27} is 311\frac{3}{11}.

The takeaway: a fraction and a decimal are two ways to write one rational number. To turn pq\frac{p}{q} into a decimal, divide the integer pp by the nonzero integer qq. The result terminates or repeats. To go back, read a terminating decimal by place value, or use multiply-and-subtract on a repeating decimal, and then write the fraction in lowest terms. Keep the value exact along the way: a bar marks repeating digits, and ≈\approx marks a rounded value.

Next, you will evaluate numerical expressions involving rational numbers, solve word problems with rational number operations, and find and correct errors in those operations.