Math Fundamentals18 sections · 814 units
Open in Course

Binary Subtraction

Borrowing in base-2

Subtracting binary numbers uses the same borrowing concept as decimal. When you subtract a larger digit from a smaller one, borrow from the next column.

Rules: 00=00 - 0 = 0, 10=11 - 0 = 1, 11=01 - 1 = 0, 010 - 1 requires borrowing (borrow 1 from next column, making it 101=110 - 1 = 1). Example: 101000111010 - 0011. Work right to left with borrowing as needed. Result: 01110111.

Computers rarely use subtraction directly. Instead, they add negative numbers using two's complement. This unifies addition and subtraction into one circuit, saving hardware. Let me show you how that works.