Long Subtraction Calculator
Welcome to Omni's long subtraction calculator! Here we show you stepbystep how to solve any long subtraction problem. Our calculator can deal with whole numbers as well as those with decimal places!
If you need a quick summary of how to do long subtraction, scroll down and read the short explanation we've prepared. Once you've mastered the long subtraction method, check out our calculators dedicated to the remaining three arithmetic operations:
Long subtraction method
Long subtraction is a popular method of quickly subtracting long numbers, i.e., those that have many digits. If you can correctly subtract a whole number between 0
to 9
from a whole number between 1
and 18
(for example, if you know that 12  5 = 7
), then nothing can stop you from learning long subtraction over the course of the next five minutes! Here are the steps of the long subtraction method:

Put the numbers one under the other so that they are aligned by place value. The number you are subtracting from goes on top, the smaller number beneath it.
That is, your numbers have to be rightaligned  the onesdigits have to be aligned, tensdigits have to be aligned, and so on.

In the farright column, subtract the bottom number from the top number and put the result in the same column (at the bottom).
If the upperdigit is greater than or equal to the bottomdigit, then there is no problem. However, if the upperdigit is smaller than the bottomdigit, then we have to borrow from the subsequent column. We have dedicated a separate section to borrowing in long subtraction.

Go to the next column (to the left) and subtract again, long subtraction borrowing if needed, and put the result in the bottom row. Repeat this step for every column.

If the upper number has more digits than the lower number, then at some point you encounter a column that has only one digit, i.e., the bottom row is empty. In such case we simply rewrite this number into the result row.
Alternatively, you may imagine filling in the empty places with zeros and then subtracting this zero from the toprow digit.
As you can see, long subtraction of whole numbers is very easy! In the next sections, we explain how to deal with numbers that have decimal places. Next, we elaborate on the mysterious borrowing procedure.
🙋 Want to learn how to handle complex mathematical problems that involve more than one arithmetic operation? Check our distributive property calculator.
How to borrow in long subtraction?
First of all, remember that we need to borrow only if the top digit in a column is smaller than the bottom digit. When this happens, go one column to the left and look at its top number.

If this number is greater than
0
, then cross it out and replace it with the value of that number minus1
. Then go back to your original column, cross out the top number, and replace it with the value of that number plus10
. 
If this number is equal to
0
, then the long subtraction borrowing procedure is more complicated, but only slightly. Zero in a column means that this column has nothing to lend. But to the left there are other columns, and they can come to our rescue! We go through them one by one, looking for the first nonzero column. Then we borrow10
from this column into the column to the right (that originally contained0
, but after borrowing it contains10
). Now that this column is nonzero, we can borrow from it and give to the next column, and so on, until we come back to our original column.
As always, it's practice that makes perfect, so, to get a better grasp of the long subtraction steps, we recommend that you go through the examples in the last section. Once you're done and want more, go and generate as many examples of long subtraction problems as you wish with the show steps
mode of our long subtraction calculator.
How to do long subtraction of decimal numbers?
Long subtraction of two numbers with decimal places is very similar to what we've just seen in the case of two whole numbers. The key step is to align the numbers correctly. As before, the numbers have to be aligned by place value.
For instance, if we want to subtract 15.413
from 5437.321
using the long subtraction method, we write them down as follows:
As you can see, the numbers we're dealing with have the same number of decimal places, so it was easy to align them, wasn't it?
But what to do with numbers that have a different number of decimal places? Just remember to put the numbers such that the decimal points are aligned. You can then fill in the missing decimal places with zeros.
For instance, if we want to calculate 117.32  32.4121
using long subtraction, we set up the problem as follows:
Once you've written down the numbers correctly, perform the subtraction using the method explained in the previous sections. When you arrive at the decimal point, put the point in the result row and proceed.
How to use this long subtraction calculator?
Here are the most important things you should know about Omni's long subtraction calculator:

Enter two numbers. Our long subtraction calculator will subtract the smaller number from the larger one.

The calculator returns the result in a fraction of a second. Look for it beneath the numbers you've entered.

Turn on the
show steps
option if you want the long subtraction calculator to show the stepbystep solution of your long subtraction problem.
Long subtraction examples
Here we show how to subtract two long numbers with the help of the long subtraction method.
Long subtraction example 1. Compute 21347  3275
:
 Setup:
 We subtract the numbers in the farright column:
7  5 = 2
. We put the result2
at the very bottom of the same column:
 We move onto the next column. As
4 < 7
, so we need to borrow from the column to the left. We replace3
with3  1 = 2
in the column to the left and replace4
with14
in the current column. Hence, we subtract14  7 = 7
and so place7
in the result row.
 We subtract
2  2 = 0
and put0
into the result row:
 Since
1 < 3
, we need to borrow once again. We replace2
with2  1 = 1
in the farleft column and replace1
with11
in the current column. Hence, we subtract11  3 = 8
and place8
in the result row.
 We've run out of the digits in the bottom number, but there are still digits in the upper number. We rewrite
1
into the result row:
Example 2. Solve 4520.12  515.9
:
 Setup. We have to be careful to correctly align the numbers:
 We subtract the numbers in the farright column:
2  0 = 2
. We put the result2
at the very bottom of the same column:
 We have
1 < 9
, so we go to the column to the left (skipping the decimal point!). But it contains0
, so there's nothing to borrow here... Go one more column to the left; thankfully, it contains2
. We replace2
with2  1 = 1
. We go back to the right and replace0
with10
. Then borrow from this column and replace10
with10  1 = 9
and, finally, replace1
with11
in the original column. Then we subtract11  9 = 2
and put2
in the result row.
 We've reached the column full of decimal points. We put the point in the result row as well:
 We subtract the numbers in the next column:
9  5 = 4
and put4
into the result row:
 We subtract the numbers in the next column:
1  1 = 0
and put0
into the result row:
 We subtract the numbers in the next column:
5  5 = 0
. We put0
into the result row:
 We've run out of the digits in the bottom number, but there is still a digit in the upper number. We put
4
into the result row: