Decimal Operations
Add and subtract decimals
Let’s take one more look at the lunch order from the previous section, this time noticing how the numbers were added together.
All three items (sandwich, water, tax) were priced in dollars and cents, so we lined up the dollars under the dollars and the cents under the cents, with the decimal points lined up between them. Then we just added each column, as if we were adding whole numbers. By lining up decimals this way, we can add or subtract the corresponding place values just as we did with whole numbers.
Add or subtract decimals.
- Write the numbers vertically so the decimal points line up.
- Use zeros as place holders, as needed.
- Add or subtract the numbers as if they were whole numbers. Then place the decimal in the answer under the decimal points in the given numbers.
Example. Add: .
Write the numbers vertically so the decimal points line up. Place holders are not needed since both numbers have the same number of decimal places. Add the numbers as if they were whole numbers, then place the decimal in the answer under the decimal points in the given numbers:
Example. Add: .
Write the numbers vertically so the decimal points line up. Place a as a place holder after the in , so that both numbers have two decimal places. Add the numbers as if they were whole numbers, then place the decimal in the answer:
Add:
Both numbers already have two decimal places, so no placeholder zeros are needed — add as if they were whole numbers, then place the decimal point.Add:
has fewer decimal places than — write a placeholder zero after the so both numbers have three decimal places, then add.How much change would you get if you handed the cashier a $20 bill for a $14.65 purchase? We will show the steps to calculate this next.
Example. Subtract: .
Write the numbers vertically so the decimal points line up. Remember is a whole number, so place the decimal point after the . Place two zeros after the decimal point in , as place holders, so that both numbers have two decimal places. Subtract the numbers as if they were whole numbers, then place the decimal in the answer:
Subtract:
Rewrite as so it has two decimal places to match , then subtract as whole numbers.Example. Subtract: .
If we subtract from , the answer will be negative since . To subtract easily, we can subtract from . Then we will place the negative sign in the result.
Write the numbers vertically so the decimal points line up. Place a zero after the in as a place holder, so that both numbers have two decimal places. Subtract and place the decimal in the answer:
Remember that we are really subtracting , so the answer is negative:
Subtract:
Since , subtract from instead, then make the result negative.Subtract:
Since , subtract from instead, then make the result negative.Multiply decimals
Multiplying decimals is very much like multiplying whole numbers — we just have to determine where to place the decimal point. The procedure for multiplying decimals will make sense if we first review multiplying fractions.
To multiply fractions, we multiply the numerators and then multiply the denominators. Let’s see what we get as the product of decimals by converting them to fractions first, comparing two examples side by side.
| Convert to fractions. | ||
| Multiply. | ||
| Convert back to decimals. |
There is a pattern that we can use. In the first case, we multiplied two numbers that each had one decimal place, and the product had two decimal places. In the second case, we multiplied a number with one decimal place by a number with two decimal places, and the product had three decimal places.
How many decimal places would you expect for the product of ? If you said “five,” you recognized the pattern: when we multiply two numbers with decimals, we count all the decimal places in the factors — in this case two plus three — to get the number of decimal places in the product — in this case five.
Once we know how to determine the number of digits after the decimal point, we can multiply decimal numbers without converting them to fractions first. The number of decimal places in the product is the sum of the number of decimal places in the factors.
The rules for multiplying positive and negative numbers apply to decimals, too: when multiplying two numbers, if their signs are the same, the product is positive; if their signs are different, the product is negative. When you multiply signed decimals, first determine the sign of the product and then multiply as if the numbers were both positive. Finally, write the product with the appropriate sign.
Multiply decimal numbers.
- Determine the sign of the product.
- Write the numbers in vertical format, lining up the numbers on the right.
- Multiply the numbers as if they were whole numbers, temporarily ignoring the decimal points.
- Place the decimal point. The number of decimal places in the product is the sum of the number of decimal places in the factors. If needed, use zeros as placeholders.
- Write the product with the appropriate sign.
Example. Multiply: .
The signs are the same, so the product will be positive. Write the numbers in vertical format, lining up the numbers on the right, and multiply as if they were whole numbers:
Place the decimal point. Add the number of decimal places in the factors (); place the decimal point places from the right:
Multiply:
has one decimal place and has three, so the product needs four decimal places total.Multiply:
has two decimal places and has two, so the product needs four decimal places total.Example. Multiply: .
The signs are different, so the product will be negative. Write in vertical format, lining up the numbers on the right, and multiply:
Place the decimal point places from the right ( places). The product is negative:
Multiply:
The signs are different, so the product is negative. has two decimal places and has one, so the product needs three decimal places.Multiply:
The signs are different, so the product is negative. has two decimal places and has one, so the product needs three decimal places.In the next example, we’ll need to add several placeholder zeros to properly place the decimal point.
Example. Multiply: .
The product is positive. Write in vertical format and multiply as if they were whole numbers, getting . The decimal point must be places from the right ( places), so add zeros as needed:
Multiply:
has two decimal places and has three, so the product needs five decimal places — add placeholder zeros as needed.Multiply:
has two decimal places and has three, so the product needs five decimal places — add placeholder zeros as needed.Multiply by powers of 10
In many fields, especially in the sciences, it is common to multiply decimals by powers of . Let’s see what happens when we multiply by some powers of :
The number of places that the decimal point moved is the same as the number of zeros in the power of ten:
| Multiply by | Number of zeros | Number of places decimal point moves |
|---|---|---|
| 1 place to the right | ||
| 2 places to the right | ||
| 3 places to the right | ||
| 4 places to the right |
We can use this pattern as a shortcut to multiply by powers of ten instead of multiplying using the vertical format: count the zeros in the power of and then move the decimal point that same number of places to the right. So, for example, to multiply by , move the decimal point places to the right: .
Sometimes when we need to move the decimal point, there are not enough decimal places. In that case, we use zeros as placeholders. For example, let’s multiply by . We need to move the decimal point places to the right. Since there is only one digit to the right of the decimal point, we must write a in the hundredths place:
Multiply a decimal by a power of 10.
- Move the decimal point to the right the same number of places as the number of zeros in the power of .
- Write zeros at the end of the number as placeholders if needed.
Example. Multiply by factors of (a) (b) (c) .
By looking at the number of zeros in the multiple of ten, we see the number of places we need to move the decimal to the right.
(a) There is zero in , so move the decimal point place to the right: .
(b) There are zeros in , so move the decimal point places to the right: .
(c) There are zeros in , so move the decimal point places to the right. A zero must be added at the end: .
Multiply 2.58 by 10.
10 has one zero, so move the decimal point one place to the right.Multiply 2.58 by 100.
100 has two zeros, so move the decimal point two places to the right.Multiply 2.58 by 1000.
1000 has three zeros, so move the decimal point three places to the right, adding a zero as a placeholder.Divide decimals
Just as with multiplication, division of decimals is very much like dividing whole numbers. We just have to figure out where the decimal point must be placed.
To understand decimal division, consider the multiplication problem . A multiplication problem can be rephrased as a division problem, so we can write . We can think of this as “if we divide tenths into four groups, how many are in each group?” There are four groups of two-tenths in eight-tenths, so .
Using long division notation, we would write over . Notice that the decimal point in the quotient is directly above the decimal point in the dividend.
To divide a decimal by a whole number, we place the decimal point in the quotient above the decimal point in the dividend and then divide as usual. Sometimes we need to use extra zeros at the end of the dividend to keep dividing until there is no remainder.
Divide a decimal by a whole number.
- Write as long division, placing the decimal point in the quotient above the decimal point in the dividend.
- Divide as usual.
Example. Divide: .
Write as long division, placing the decimal point in the quotient above the decimal point in the dividend. Divide as usual — since does not go into or , we use zeros as placeholders:
Divide:
Place the decimal point in the quotient directly above the one in , then divide as usual.Divide:
Place the decimal point in the quotient directly above the one in , then divide as usual.In everyday life, we divide whole numbers into decimals — money — to find the price of one item. For example, suppose a case of water bottles costs $3.99. To find the price per water bottle, we would divide $3.99 by , and round the answer to the nearest cent (hundredth).
Example. Divide: .
Place the decimal point in the quotient above the decimal point in the dividend. Divide as usual. Since this division involves money, we round it to the nearest cent (hundredth), so we must carry the division to the thousandths place:
This means the price per bottle is cents.
Divide $6.99 36, rounded to the nearest cent.
$0.19Carry the division to the thousandths place before rounding to the nearest cent.Divide $4.99 12, rounded to the nearest cent.
$0.42Carry the division to the thousandths place before rounding to the nearest cent.Divide a decimal by another decimal
So far, we have divided a decimal by a whole number. What happens when we divide a decimal by another decimal? Let’s look at the same multiplication problem we looked at earlier, but in a different way: . This time we ask, “how many times does go into ?” Because , we can say that goes into four times. This means that divided by is :
We would get the same answer, , if we divide by , both whole numbers. Why is this so? Let’s think about the division problem as a fraction:
We multiplied the numerator and denominator by and ended up just dividing by . To divide decimals, we multiply both the numerator and denominator by the same power of to make the denominator a whole number. Because of the Equivalent Fractions Property, we haven’t changed the value of the fraction. The effect is to move the decimal points in the numerator and denominator the same number of places to the right.
We use the rules for dividing positive and negative numbers with decimals, too. When dividing signed decimals, first determine the sign of the quotient and then divide as if the numbers were both positive. Finally, write the quotient with the appropriate sign.
Divide decimal numbers.
- Determine the sign of the quotient.
- Make the divisor a whole number by moving the decimal point all the way to the right. Move the decimal point in the dividend the same number of places to the right, writing zeros as needed.
- Divide. Place the decimal point in the quotient above the decimal point in the dividend.
- Write the quotient with the appropriate sign.
Example. Divide: .
The quotient will be negative. Make the divisor a whole number by moving the decimal point in all the way to the right (one place); move the decimal point in the dividend the same number of places to the right, so becomes . Divide, adding zeros as needed until the remainder is zero:
Divide:
Move the decimal point one place in both numbers ( becomes , becomes ), then divide.Divide:
Move the decimal point one place in both numbers ( becomes , becomes ), then divide.Example. Divide: .
The signs are the same, so the quotient is positive. Make the divisor a whole number by moving the decimal point in all the way to the right (two places); move the decimal point in the dividend the same number of places, so becomes . Divide, placing the decimal point in the quotient above the decimal point in the dividend:
Divide:
Move the decimal point two places in both numbers ( becomes , becomes ), then divide.Divide:
Move the decimal point two places in both numbers ( becomes , becomes ), then divide.Now we will divide a whole number by a decimal number.
Example. Divide: .
The signs are the same, so the quotient is positive. Make the divisor a whole number by moving the decimal point in all the way to the right (two places); move the decimal point in the dividend the same number of places, adding zeros as needed, so becomes . Divide, placing the decimal point in the quotient above the decimal point in the dividend:
We can relate this example to money: how many nickels are there in four dollars? Because , there are nickels in $4.
Divide:
Move the decimal point two places in both numbers ( becomes , becomes ), then divide.Divide:
Move the decimal point two places in both numbers ( becomes , becomes ), then divide.Use decimals in money applications
We often apply decimals in real life, and most of the applications involve money. The Strategy for Applications we used in The Language of Algebra gives us a plan to follow to help find the answer:
- Identify what you are asked to find.
- Write a phrase that gives the information to find it.
- Translate the phrase to an expression.
- Simplify the expression.
- Answer the question with a complete sentence.
Example. Paul received $50 for his birthday. He spent $31.64 on a video game. How much of Paul’s birthday money was left?
What are you asked to find? How much did Paul have left? Write a phrase: $50 less $31.64. Translate: . Simplify: . Write a sentence: Paul has $18.36 left.
Nicole earned $35 for babysitting her cousins, then went to the bookstore and spent $18.48 on books and coffee. How much of her babysitting money was left?
$16.52Subtract the amount spent from the amount earned: .Amber bought a pair of shoes for $24.75 and a purse for $36.90. The sales tax was $4.32. How much did Amber spend in total?
$65.97Add all three amounts: the shoes, the purse, and the sales tax.Example. Jessie put gallons of gas in her car. One gallon of gas costs $3.529. How much does Jessie owe for the gas? (Round the answer to the nearest cent.)
What are you asked to find? How much did Jessie owe for all the gas? Write a phrase: times the cost of one gallon of gas. Translate: . Simplify: . Round to the nearest cent: . Write a sentence: Jessie owes $28.23 for her gas purchase.
Hector put 13 gallons of gas into his car. One gallon of gas costs $3.175. How much did Hector owe for the gas? Round to the nearest cent.
$41.28Multiply 13 by 3.175, then round the product to the nearest cent.Christopher bought 5 pizzas for the team. Each pizza cost $9.75. How much did all the pizzas cost?
$48.75Multiply the number of pizzas by the cost of each pizza.Example. Four friends went out for dinner. They shared a large pizza and a pitcher of soda. The total cost of their dinner was $31.76. If they divide the cost equally, how much should each friend pay?
What are you asked to find? How much should each friend pay? Write a phrase: $31.76 divided equally among the four friends. Translate: . Simplify: . Write a sentence: each friend should pay $7.94 for their share of the dinner.
Six friends went out for dinner. The total cost of their dinner was $92.82. If they divide the bill equally, how much should each friend pay?
$15.47Divide the total cost by the number of friends.Chad worked 40 hours last week and his paycheck was $570. How much does he earn per hour?
$14.25Divide the total paycheck by the number of hours worked.Be careful to follow the order of operations in the next example — remember to multiply before you add.
Example. Marla buys bananas that cost $0.22 each and oranges that cost $0.49 each. How much is the total cost of the fruit?
What are you asked to find? How much is the total cost of the fruit? Write a phrase: times the cost of each banana plus times the cost of each orange. Translate: . Simplify: . Add: . Write a sentence: Marla’s total cost for the fruit is $3.28.
Suzanne buys 3 cans of beans that cost $0.75 each and 6 cans of corn that cost $0.62 each. How much is the total cost of these groceries?
$5.97Multiply each item's price by its quantity, then add the two products — multiply before you add.Lydia bought movie tickets for the family. She bought two adult tickets for $9.50 each and four children's tickets for $6.00 each. How much did the tickets cost Lydia in all?
$43.00Multiply each ticket price by its quantity, then add the two products — multiply before you add.Key terms
decimal point — the point that separates the whole-number part of a decimal from its fractional part; when adding or subtracting decimals, the decimal points must line up. placeholder zero — a zero written at the end of a decimal’s fractional part, or between the decimal point and a nonzero digit, so two decimals can be compared or combined digit by digit without changing either number’s value.
This section is adapted from Prealgebra 2e, Section 5.2: Decimal Operations by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the vertical addition/subtraction/multiplication/long-division layouts and the multiply-by-powers-of-ten table as typeset math and markdown tables, and the number-line jump diagram as an accessible inline graphic; omitted the Be Prepared quiz, Links to Literacy callout, Media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.