Binary Calculator
Do binary arithmetic: add, subtract, multiply, divide, AND, OR, XOR and bit shifts. Also works in hex, octal and decimal, with the result in every base.
- Binary
- 111010
- Decimal
- 58
- Hexadecimal
- 3A
- Octal
- 72
- Inputs in decimal
- 45 + 13
Arithmetic in base 2
Binary numbers use only 0 and 1, and every place is worth twice the one to its right. Adding works like decimal, but 1 + 1 = 10, so you carry 1. 101101 (45) + 1101 (13) = 111010 (58). This calculator also does bitwise AND, OR and XOR, which compare bits one by one, and left or right shifts, which multiply or divide by powers of 2. Switch the base to work in hexadecimal or octal, and every result is shown in binary, decimal, hex and octal.
How to use it
- 1
Enter two numbers
In binary, or pick hex, octal or decimal.
- 2
Choose the operation
+, −, ×, ÷, AND, OR, XOR or shifts.
- 3
Read the result
In the chosen base, plus binary, decimal, hex and octal.
Frequently asked questions
How do you add binary numbers?
Add column by column from the right: 0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 0 carry 1, 1 + 1 + 1 = 1 carry 1.
How does binary division work here?
It's whole-number division: you get the quotient and the remainder, both in the chosen base.
Is there a size limit?
No. Numbers of any length are calculated exactly.
Is anything stored?
No. The calculation runs in your browser.
Math calculators
- Percentage Calculator
- Percentage Change Calculator
- Fraction Calculator
- Average Calculator
- Discount Calculator
- Online Calculator
- Scientific Calculator
- Quadratic Formula Calculator
- Slope Calculator
- Distance Formula Calculator
- Square Root Calculator
- LCM and GCF Calculator
- Scientific Notation Calculator
- Long Division Calculator
- Aspect Ratio Calculator
- Percentage Increase Calculator
- Mixed Number Calculator
- Percentage Difference Calculator
- Ratio Calculator
- Area Calculator
- Circle Calculator
- Statistics Calculator
- Weighted Average Calculator
- Trigonometry Calculator
- Significant Figures Calculator
- Rounding Calculator
- Triangle Calculator
- Percentile Calculator
- Cross Product Calculator
- Factorial Calculator
- Modulo Calculator
- GPA Calculator
- Decimal to Fraction Calculator
- Matrix Calculator