Beginner

Long Subtraction Calculator — Step-by-Step Column Subtraction

See every borrow in long subtraction: enter two whole numbers and get a step-by-step breakdown of each column — ones, tens, hundreds and beyond — showing exactly when and why borrowing happens.
Whole number 0 – 9,999,999
Whole number 0 – 9,999,999
Difference
225

503 − 278

Minuend
503
Subtrahend
278
Difference
225
Columns processed
3
Column-by-column subtraction (right to left)
1

Ones: 3 < 8 → borrow

(3+10) − 8 = 13 − 8 = 5
2

Tens: 0−1 < 7 → borrow

(0−1+10) − 7 = 9 − 7 = 2
3

Hundreds: (5−1) − 2

4 − 2 = 2
=

Difference

503 − 278 = 225
Step by step
  1. 1

    Minuend

    503
  2. 2

    Subtrahend

    278
  3. 3

    Difference

    503 − 278 = 225
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Long subtraction works column by column right to left. If the top digit is smaller than the bottom digit, borrow 10 from the next column left and subtract 1 from that column. Repeat until all columns are done. Enter two whole numbers to see every step including borrows.

Formula
Difference = A − B, worked right-to-left; borrow = 1 when d_A < d_B (add 10 to d_A and subtract 1 from the column to the left)
How this is calculated

Long subtraction aligns the two numbers on the right and works column by column from the ones place outward to the left. At each column, if the top digit (minuend digit) is greater than or equal to the bottom digit (subtrahend digit), they are subtracted directly. If not, the algorithm "borrows" 1 from the column to the left, effectively adding 10 to the current column and reducing the next column by 1 — this is also called "regrouping".

The borrow can cascade: if the column to the left has a 0, that column must also borrow from the column further left before it can donate. This chain of borrows is the part most children find tricky, and the step-by-step display shows each borrow explicitly so the logic is traceable.

This calculator enforces that the minuend ≥ subtrahend so the result is non-negative; if you enter numbers in the wrong order they are swapped automatically. Numbers up to 9,999,999 (seven digits) are supported.

Frequently asked questions

When the top digit in a column is smaller than the bottom digit, you take 1 unit from the column to the left (worth 10 of the current units) and add it to the current column. For example, in the tens column, borrowing adds 10 tens to the current column, turning a digit of 2 into an effective 12.

Each zero column cannot donate a borrow directly — it first borrows from the next column to its left, turning its 0 into a 9 (after lending one to the right) and propagating the borrow leftward. The step list shows each such cascade explicitly.

This calculator keeps results non-negative by always placing the larger number on top. For negative differences, negate the result: 278 − 503 = −225, which is −(503 − 278).

Also known as

long subtraction with borrowing
column subtraction calculator
subtraction with regrouping
step by step subtraction
borrowing in subtraction
primary school subtraction
subtract whole numbers step by step

APA

TG we-Calculate Editorial Team. (2026). Long Subtraction Calculator — Step-by-Step Column Subtraction [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/long-subtraction-calculator

Chicago

TG we-Calculate Editorial Team. "Long Subtraction Calculator — Step-by-Step Column Subtraction." TG we-Calculate. 2026. https://we-calculate.com/calculator/long-subtraction-calculator.

IEEE

TG we-Calculate Editorial Team, "Long Subtraction Calculator — Step-by-Step Column Subtraction," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/long-subtraction-calculator

BibTeX

@misc{wecalculate_long_subtraction_calculator, title = {Long Subtraction Calculator — Step-by-Step Column Subtraction}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/long-subtraction-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?