Skip to content · 跳到主要内容

Binary Calculator

Free binary calculator with a clear formula and instant result

Result
--
--
Decimal
--
Base value

Binary

Enter two base-2 integers and choose addition or subtraction. The result is shown in both the selected base and decimal.

Reading binary arithmetic

Binary addition works exactly like decimal addition, carrying to the next column when a sum reaches 2 rather than 10: 1 + 1 = 10 and 1 + 1 + 1 = 11. Subtraction mirrors it, borrowing 2 from the next column instead of 10. The result is shown in the chosen base and in decimal so the conversion can be checked at a glance.

Why results look long

Binary strings grow quickly because each extra bit doubles the range. Four bits reach 15, eight bits reach 255 and sixteen bits reach 65,535. Subtracting a larger number from a smaller one needs a sign convention, and this calculator reports the decimal difference rather than an unsigned wraparound, so the magnitude matches a hand calculation.

Frequently Asked Questions

What does 1 + 1 equal in binary?

10. Binary carries when a column reaches 2, so the column resets and one is carried to the next place.

Why is the binary result so much longer?

Each additional bit doubles the range, so binary strings grow about 3.3 times faster than the equivalent decimal digits.

Can it subtract a larger number from a smaller one?

Yes. The result is reported as a decimal difference rather than an unsigned wraparound value.

Is there a limit on input length?

Very long inputs lose precision because the value is held as a floating-point number in the browser.

Last reviewed: October 5, 2026 · How we calculate · Sources: Published formula reference; verify domain-specific assumptions before making a decision