Home · Everyday · Bases, Binary & Logic · Binary Subtraction Calculator

Binary Subtraction Calculator

Subtract two binary numbers — borrowing in base 2, with the decimal check alongside.

Your figures

Example result — edit the figures to make it yours

111

Difference in base 2

The arithmetic is ordinary integer arithmetic; only the notation changes. Column methods work exactly as in decimal, carrying at the base instead of at ten.

Decimal operands10 and 3
Decimal result7

What this calculator does

Subtract two binary numbers — borrowing in base 2, with the decimal check alongside. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Binary subtraction borrows 2 from the next column, as decimal borrows 10

Digits are validated against the chosen base — a binary field rejects the digit 2.

Conversion goes through the exact integer value, so results are exact for the sizes accepted.

Negative values keep their sign in every base.

Worked example

With the example inputs this page opens with, the result is 111 — difference in base 2. The arithmetic is ordinary integer arithmetic; only the notation changes. Column methods work exactly as in decimal, carrying at the base instead of at ten.

Quick reference

Quick reference — the worked example in full
FigureValue
Difference in base 2111
Decimal operands10 and 3
Decimal result7

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Binary Subtraction Calculator work?

Subtract two binary numbers — borrowing in base 2, with the decimal check alongside. Binary a · Binary b → Difference. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Binary Subtraction Calculator need?

Binary a · Binary b → Difference. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Binary Subtraction Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.