Long Subtraction Calculator - Stack and Borrow Vertically

Use the long subtraction calculator to stack a minuend and subtrahend, walk right to left across the columns, and read the difference beside the borrow count.

Updated: June 16, 2026 • Free Tool

Long Subtraction Calculator

The number being subtracted from. Any real number is accepted, including decimals and negatives.

The number being subtracted. Any real number is accepted; the result keeps the sign of the larger magnitude.

Results

Difference
0
Minuend echoed 0
Subtrahend echoed 0
Borrows across the column walk 0
Tallest column (integer digits) 0

What Is Long Subtraction Calculator?

A long subtraction calculator is a browser tool that stacks a minuend above a subtrahend, walks each column from right to left, and reports the signed difference and the borrow count. It mirrors the column method taught in primary-school arithmetic, with the stacked layout kept on screen so the inputs and the answer can be read together.

  • Primary-school homework checks: Verify a stacked column of two multi-digit numbers on a worksheet, including borrows across one or more columns.
  • Receipt and invoice reconciliation: Subtract a refund, a discount, or a payment from a total and read the running balance in the same panel.
  • Inventory and stock deltas: Compute the difference between an opening and a closing count, or between a delivered and an expected quantity.
  • Decimal adjustments on budgets: Subtract a value with two decimal places from another with a different fractional width, with the decimal points aligned.

The result panel shows the signed difference in a primary tile and echoes the minuend and subtrahend underneath. The Borrows row reports how many columns triggered regrouping, and the Tallest column row reports the integer-digit width of the wider of the two inputs or the absolute difference.

When the same stacked worksheet needs the inverse operation, Long Addition Calculator applies the same two-row layout to addends with the carry logic instead of the borrow logic.

How Long Subtraction Calculator Works

The calculator reads the two inputs, subtracts them, and walks the columns of the absolute values from right to left to count the borrows. The signed difference and the borrow count are returned in the same pass.

D = M - S
  • M: Minuend, the top number in the stacked column. Any real number is accepted.
  • S: Subtrahend, the bottom number in the stacked column. Any real number is accepted.
  • D: Difference, the signed result of M - S. Negative when the subtrahend has the larger magnitude.
  • Borrows: The number of columns that triggered regrouping during the right-to-left column walk.
  • Tallest column: The integer-digit width of the wider of the two inputs or the absolute difference.

Decimal inputs of different fractional widths are aligned before the column walk. The tool pads the shorter fractional part with trailing zeros until the two values share the same number of decimal places.

The difference keeps the sign of the larger magnitude. When the minuend is smaller, the calculator reports a negative difference and counts the borrows the absolute-value walk would have used.

Two-row subtraction 7583 - 4276 with one borrow in the units column

M = 7583, S = 4276

3 < 6, borrow from the tens column: 13 - 6 = 7 (Borrows = 1). Tens: 8 - 7 - 1 = 0. Hundreds: 5 - 2 = 3. Thousands: 7 - 4 = 3.

Difference: 3307, Borrows: 1, Tallest column: 4

The units column forced a single borrow; the other columns subtracted without regrouping. The result tile reads 3307, the Borrows row reads 1, and the Tallest column row reports 4 integer digits.

Borrow chain 1000 - 7 across the units, tens, and hundreds columns

M = 1000, S = 7

Pad S to 0007. Units: 0 < 7, borrow from tens: 10 - 7 = 3 (Borrows = 1). Tens: 0 - 0 - 1 borrows from hundreds: 10 - 0 - 1 = 9 (Borrows = 2). Hundreds: 0 - 0 - 1 borrows from thousands: 10 - 0 - 1 = 9 (Borrows = 3). Thousands: 1 - 0 - 1 = 0.

Difference: 993, Borrows: 3, Tallest column: 4

Three columns in a row triggered regrouping, so the Borrows row reads 3 and the difference reads 993.

According to Wikipedia, subtraction is the inverse of addition; the top number is the minuend, the bottom number is the subtrahend, and the result is the difference, and the column method borrows ten from the next column on the left whenever the upper digit is smaller than the lower digit.

As published by Omni Calculator, long subtraction is the standard method for subtracting one multi-digit number from another, presented as a stacked two-row layout that the calculator reproduces on screen.

When the signed difference is followed by a percentage or ratio comparison, Absolute Change Calculator takes the same two inputs and reports the magnitude of the change as a positive number.

Key Concepts Explained

Four small ideas cover every column in a long subtraction, from a two-row worksheet to a chain of borrows.

The stacked two-row layout

The minuend is written above the subtrahend with the units digits aligned on the right. The layout forces every column to hold the same place value, which is why 7583 lines up under 4276 by the right edge and not by the left.

Right-to-left column processing

The units column is subtracted first, then the tens, then the hundreds, and so on. A borrow taken in the units column has to be applied to the tens column before the tens column is subtracted.

The borrow (regroup) across columns

When the top digit of a column is smaller than the bottom digit, ten is borrowed from the column on the left. The top digit becomes ten larger, the result digit is the difference, and the column on the left loses one.

The signed result

When the minuend is smaller than the subtrahend, the difference becomes a negative number. The sign of the result matches the sign of the larger magnitude, and the borrow count is taken from the absolute-value walk.

These four ideas are why a single tool handles a two-row homework problem and a chain of borrows like 1000 - 7 the same way.

The right-to-left column logic carries over to other base systems with a different borrow value, and a peer tool in this family applies the same walk to base 2.

The same right-to-left column logic shows up in other base systems, and Binary Subtraction Calculator applies it to base 2 where the borrow is two instead of ten.

How to Use This Calculator

Type a minuend and a subtrahend in the stacked column, read the signed difference, and check the borrow count to confirm regrouping.

  1. 1 Enter the minuend: Type the top number in the Minuend field. Whole numbers, decimals, and signed values are all accepted.
  2. 2 Enter the subtrahend: Type the bottom number in the Subtrahend field. The result panel updates on every keystroke.
  3. 3 Read the difference: Look at the primary result tile. A positive value means the minuend is larger, a negative value means the subtrahend is larger in magnitude.
  4. 4 Check the borrow count: Read the Borrows row to see how many columns triggered regrouping. A count of 0 means no column needed a borrow; a count above 0 flags the columns where the top digit was smaller than the bottom digit.
  5. 5 Confirm the input echoes: Verify the Minuend echoed and Subtrahend echoed rows match the numbers you typed, so the result is read in the same view as the inputs.
  6. 6 Reset to start over: Press Reset to restore the default pair of inputs and clear the result panel.

Try the calculator with 5342 in the Minuend field and 2789 in the Subtrahend field. The result tile reads 2553, the Borrows row reads 3, and the Tallest column row reads 4.

When the next step on the same stacked pair is a product instead of a difference, Long Multiplication Calculator extends the column layout with the partial-product shifts that long multiplication requires.

Benefits of Using This Calculator

The long subtraction calculator keeps the stacked layout, the right-to-left walk, and the side-by-side result row visible at the same time.

  • Stacked two-row layout in one panel: The minuend and the subtrahend share a single stacked column on the left, so a two-row homework problem and a multi-row worksheet use the same calculator.
  • Real-time signed difference: The result tile updates on every keystroke, and the sign of the difference reflects the sign of the larger magnitude.
  • Borrow count beside the result: The Borrows row reports how many columns triggered regrouping, the part of a hand calculation that is easiest to get wrong.
  • Decimal alignment handled in one pass: Inputs with different fractional widths are normalized before the column walk, so 5.5 - 2.25 and 5.500 - 2.250 reach the same answer.
  • Echoed inputs for cross-checking: The Minuend echoed and Subtrahend echoed rows let the original numbers be read alongside the result.

Because the layout keeps the column walk and the result on the screen at the same time, the calculator doubles as a verification tool. You can read the input echoes, read the borrow count, and read the difference, all in the same panel.

When the next step is a related operation on the same two numbers, the stacked column reappears in a fraction or percentage problem with a denominator step first.

When the stacked column is part of a fraction or percentage problem, Adding and Subtracting Fractions Calculator handles the same two-row layout on a common denominator once the denominators are matched.

Factors That Affect Your Results

Five inputs and a single borrow rule shape the result, and a few caveats keep the answer honest for signed and decimal inputs.

Magnitude of the minuend and subtrahend

The wider of the two inputs sets the integer-digit width of the column. The Tallest column row reports that width so the column can be drawn on paper with the right amount of room.

Decimal width of the inputs

Inputs with different fractional widths are padded to a common length before the column walk. The decimal point sits in the same column for both numbers.

Sign of the larger magnitude

When the minuend is the larger magnitude the difference is positive, and when the subtrahend is the larger magnitude the difference is negative.

Borrow count

The Borrows row reports how many columns triggered regrouping. A non-zero count flags the columns where the top digit was smaller than the bottom digit.

Same-digit subtraction

When the minuend and the subtrahend are identical, the difference is 0 and the Borrows row reads 0.

  • The calculator accepts plain numeric inputs only. It does not parse unit suffixes (kg, m, $), so subtracting quantities with units needs a separate normalization step.
  • For very long integers beyond the JavaScript safe-integer range, the result relies on the platform's floating-point arithmetic. Cross-check with a big-integer tool if precision beyond 15 to 16 integer digits is required.
  • The borrow walk reports a single total count rather than the per-column borrow sequence, so a column-by-column trace still needs a hand calculation.

Treat the result as the same number you would get from a hand calculation, with the caveats above. A chain of borrows like 1000 - 7 is reflected both in the result tile (993) and in the Borrows row (3).

When the answer needs to feed into a fraction or percentage change, a peer tool in the same family takes the difference as the starting point.

According to Math is Fun, column subtraction lines the minuend above the subtrahend, subtracts each column from right to left, and borrows one ten from the next column to the left whenever the top digit is smaller than the bottom digit.

When the next step is to subtract two fractions that share a denominator, Subtracting Fractions Calculator applies the same minuend-over-subtrahend pattern to a numerator-only column walk.

Long subtraction calculator with a stacked minuend and subtrahend, the signed difference, the borrow count, and the inputs echoed beside a right-to-left column walk.
Long subtraction calculator with a stacked minuend and subtrahend, the signed difference, the borrow count, and the inputs echoed beside a right-to-left column walk.

Frequently Asked Questions

Q: What is long subtraction?

A: Long subtraction is the columnar method of subtracting one number from another by stacking the minuend above the subtrahend, aligning the units, tens, hundreds, and higher columns, and subtracting one column at a time from right to left. Any column where the top digit is smaller borrows ten from the column on the left.

Q: How do you do long subtraction with borrowing?

A: Start at the units column on the right. If the top digit is smaller than the bottom digit, borrow one ten from the column on the left so the top digit becomes ten larger, write the difference below the line, and continue leftward with the reduced value of the column you borrowed from.

Q: What is the borrow in long subtraction?

A: The borrow in long subtraction is the ten that moves from the column on the left to the column on the right when the top digit is too small. The top digit of the right column becomes ten larger, the column on the left loses one, and the difference is recomputed.

Q: How is long subtraction different from regular subtraction?

A: Regular subtraction is the operation of taking one number away from another, while long subtraction is the specific written method that places the minuend above the subtrahend and processes each column from right to left. The arithmetic is the same, but the layout exposes the borrow.

Q: Can long subtraction handle decimals?

A: Yes. Write the two numbers with their decimal points aligned, then subtract each column from right to left. When the fractional widths differ, the shorter one is padded with trailing zeros so the column walk sees the same number of decimal places.

Q: What happens when the top number is smaller than the bottom number?

A: The signed result becomes a negative number, and the borrow walk uses the absolute values. The result tile reports the negative difference, and the Borrows row reports the borrows the absolute-value walk would have used.