Binary Calculator
Free binary calculator with a clear formula and instant result
Free binary calculator with a clear formula and instant result
Enter two base-2 integers and choose addition or subtraction. The result is shown in both the selected base and decimal.
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.
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.
输入两个 2 进制整数并选择加法或减法,结果同时显示进制形式和十进制。
二进制加法与十进制加法规则相同,只是进位阈值是 2 而非 10:1 + 1 = 10,1 + 1 + 1 = 11。减法则相反,从前一列借「2」而不是借「10」。结果同时以所选进制和十进制显示,便于一眼核对换算。
二进制表示增长很快,因为每增加一位就使范围翻倍:4 位可达 15,8 位可达 255,16 位可达 65,535。用较小数减较大数需要符号约定;本计算器给出十进制差值而非无符号回绕值,因此数值大小与手工计算一致。
10. Binary carries when a column reaches 2, so the column resets and one is carried to the next place.
Each additional bit doubles the range, so binary strings grow about 3.3 times faster than the equivalent decimal digits.
Yes. The result is reported as a decimal difference rather than an unsigned wraparound value.
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
最近复核:2026 年 10 月 5 日 · 我们的计算方法 · 来源:公式用于参考;涉及专业决定时请核对适用条件