Binary Calculator
Perform binary arithmetic and bitwise operations with exact base-2 and decimal results.
About the binary calculator
Binary operation examples
Examples cover arithmetic and bitwise operations.
| Operation | Binary result | Decimal check |
|---|---|---|
| 1010 + 11 | 1101 | 10 + 3 = 13. |
| 101 × 11 | 1111 | 5 × 3 = 15. |
| 1100 AND 1010 | 1000 | Only the eight's-place bit is set in both values. |
| 1100 XOR 1010 | 110 | Bits that differ produce decimal 6. |
How to use the binary calculator
- Choose an arithmetic or bitwise operation from the operation buttons.
- Enter the first binary integer using only zeros and ones.
- Enter the second binary integer, ensuring a divisor is not zero when dividing.
- Select Calculate and review the binary result, decimal result, and division remainder when applicable.
Binary calculator FAQ
What is the difference between arithmetic and bitwise operations?
Arithmetic treats each input as a complete integer and applies numerical rules. Bitwise operations compare aligned individual bits using Boolean logic.
How are inputs with different lengths aligned?
They are aligned on the right at the least significant bit. Missing leading positions behave as zeros for bitwise operations.
Why are negative subtraction results not supported?
A negative bit pattern requires a chosen signed representation and word width. Requiring a nonnegative result prevents an ambiguous interpretation.
What does the division remainder mean?
The dividend equals the divisor times the quotient plus the remainder. The remainder is always smaller than the nonzero divisor.
Can I use binary fractions?
This calculator supports unsigned whole numbers only. Binary fractions require tracking a radix point and different conversion rules.