Skip to content
FiftyCalc Free calculators for all 50 states

Long Subtraction Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter two whole numbers of up to 12 digits to get the difference and each borrow.

Result

Sample figures

Difference—

The ones column borrows from the tens column —

  • The tens column borrows from the hundreds column—
  • The hundreds column borrows from the thousands column—
  • The thousands column borrows from the ten thousands column—
  • The ten thousands column borrows from the hundred thousands column—
  • The hundred thousands column borrows from the millions column—
  • Total number of borrows—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Long Subtraction Calculator

First number (whole, 0 or more): enter 0 or more. Prefilled example: 5,002.

Number to subtract (whole, 0 or more): enter 0 or more. Prefilled example: 1,867.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. First number (whole, 0 or more): enter 0 or more.
  2. Number to subtract (whole, 0 or more): enter 0 or more.
  3. Read the result: Difference; the panel also shows The ones column borrows from the tens column, The tens column borrows from the hundreds column, The hundreds column borrows from the thousands column, The thousands column borrows from the ten thousands column, The ten thousands column borrows from the hundred thousands column, The hundred thousands column borrows from the millions column and Total number of borrows.

How this calculator works

Long subtraction takes the bottom number from the top one column by column, from right to left. When the top digit is too small, 1 is borrowed from the next column to the left, which turns the top digit into itself plus 10 (regrouping).

Column k − 1 borrows from column k exactly when the number formed by the last k digits of the top number is smaller than that of the bottom number. When the first number is the smaller one, the calculator subtracts the smaller from the larger and makes the result negative, as done on paper.

The formula

  1. D=a−b
Symbols used in the formula
SymbolMeaning
aFirst number (whole, 0 or more)
bNumber to subtract (whole, 0 or more)
DDifference

Worked example

First number (whole, 0 or more)5,002
Number to subtract (whole, 0 or more)1,867
The ones column borrows from the tens column1
The tens column borrows from the hundreds column1
The hundreds column borrows from the thousands column1
The thousands column borrows from the ten thousands column0
Total number of borrows3
  1. D=5,002−1,867=3,135

Difference 3,135

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

How do I subtract 1,867 from 5,002?

The ones, tens and hundreds each need a borrow (three borrows), and the difference is 3,135.

What is borrowing in subtraction?

Taking 1 from the next column to the left and adding 10 to the current top digit so the subtraction in that column can be done.

Related calculators