Binary Calculator
MiniWebtool’s Binary Calculator handles binary arithmetic (add, subtract, multiply, divide) and bitwise operations (AND, OR, XOR, NOT, shifts), with interactive step-by-step solutions and results in binary, decimal, and hexadecimal.
For Gemini, paste the copied question into the chat. You can also copy it below.Need help using this tool? Ask AI
View the question
Enter two binary numbers and pick an operation below to get the answer in binary, decimal and hex, with the steps.
About Binary Calculator
Welcome to the Binary Calculator, a comprehensive free online tool for performing binary arithmetic and bitwise operations. Whether you are a student learning computer science, a programmer debugging low-level code, or an electronics enthusiast working with digital systems, this calculator provides detailed step-by-step solutions with results displayed in multiple number bases.
At a Glance
Binary Calculator performs arithmetic and bitwise operations on binary numbers. Results appear in binary, decimal and hexadecimal, with a step-by-step solution and bitwise diagrams.
| Feature | What you get | Good for |
|---|---|---|
| Arithmetic | Add, subtract, multiply and divide binary numbers, or take the modulo to get the remainder. | Checking binary homework and hand calculations |
| Bitwise logic | Apply AND, OR, XOR and NOT. NOT needs only the first number. | Working with bit masks and toggles in low-level code |
| Bit shifts | Left shift and right shift move the bits by the number of positions you enter as the second number. | Seeing how shifts multiply or divide by powers of 2 |
| Three bases | Every result is shown in binary, decimal and hexadecimal. | Checking a result in the base you need |
| Worked steps | A step-by-step breakdown and interactive bitwise diagrams show how the answer was reached. | Students learning binary arithmetic |
| Example buttons | Quick example buttons load common calculations, and the operation can be chosen from buttons or a dropdown. | Trying an operation before entering your own numbers |
What is Binary?
Binary is a base-2 numeral system that uses only two digits: 0 and 1. Each digit in a binary number is called a bit (binary digit). Binary is the foundation of all modern computing because electronic circuits can easily represent two states: on (1) and off (0).
| Binary | Decimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 10 | 2 |
| 11 | 3 |
| 100 | 4 |
| 101 | 5 |
| 110 | 6 |
| 111 | 7 |
| 1000 | 8 |
Understanding Binary Place Values
Each position in a binary number represents a power of 2, starting from 20 (which equals 1) on the right:
Binary Arithmetic Operations
Binary Addition
Binary addition follows these simple rules:
- 0 + 0 = 0
- 0 + 1 = 1
- 1 + 0 = 1
- 1 + 1 = 10 (write 0, carry 1 to the next column)
- 1 + 1 + 1 = 11 (write 1, carry 1)
Binary Subtraction
Binary subtraction uses borrowing when needed:
- 0 - 0 = 0
- 1 - 0 = 1
- 1 - 1 = 0
- 0 - 1: Borrow 1 from the next column, making it 10 - 1 = 1
Binary Multiplication
Binary multiplication is simpler than decimal because you only multiply by 0 or 1:
- 0 × 0 = 0
- 0 × 1 = 0
- 1 × 0 = 0
- 1 × 1 = 1
Binary Division
Binary division works like long division in decimal but uses binary subtraction. This calculator handles both integer division and fractional results.
Bitwise Operations
AND Operation (&)
Returns 1 only when both corresponding bits are 1. Used for masking specific bits.
OR Operation (|)
Returns 1 when either corresponding bit is 1. Used for setting specific bits.
XOR Operation (^)
Returns 1 when corresponding bits are different. Used for toggling bits and simple encryption.
NOT Operation (~)
Flips all bits: 0 becomes 1, and 1 becomes 0.
Left Shift (<<) and Right Shift (>>)
Shifts move all bits left or right by the specified number of positions:
- Left shift multiplies by 2 for each position shifted
- Right shift divides by 2 for each position shifted
How to Use This Calculator
- Enter first binary number: Type your first binary number using only 0s and 1s. You can use the quick example buttons to try common calculations.
- Select operation: Choose your operation: arithmetic (+, -, *, /, %) or bitwise (AND, OR, XOR, NOT, <<, >>). Click operation buttons or use the dropdown.
- Enter second binary number: Input your second binary number. For NOT operation, only the first number is needed. For shifts, this is the number of positions to shift.
- View results: Click Calculate to see results in binary, decimal, and hexadecimal formats with step-by-step solution breakdown and interactive diagrams.
Frequently Asked Questions
What is binary and how does it work?
Binary is a base-2 numeral system that uses only two digits: 0 and 1. Each digit represents a power of 2, from right to left. For example, 1010 in binary equals 1×8 + 0×4 + 1×2 + 0×1 = 10 in decimal. Computers use binary because electronic circuits can easily represent two states: on (1) and off (0).
How do you add binary numbers?
Binary addition follows simple rules: 0+0=0, 0+1=1, 1+0=1, and 1+1=10 (write 0, carry 1). Add column by column from right to left, carrying when the sum is 2 or more. For example, 1011 + 1101: starting from right, 1+1=10 (write 0, carry 1), 1+0+1=10 (write 0, carry 1), 0+1+1=10 (write 0, carry 1), 1+1+1=11 (write 1, carry 1). Result: 11000.
What are bitwise operations in binary?
Bitwise operations manipulate individual bits in binary numbers. AND (&) returns 1 only if both bits are 1. OR (|) returns 1 if either bit is 1. XOR (^) returns 1 if bits are different. NOT (~) flips all bits. Left shift (<<) moves bits left, multiplying by 2. Right shift (>>) moves bits right, dividing by 2. These are essential for low-level programming and optimization.
How do you multiply binary numbers?
Binary multiplication works like decimal multiplication but simpler: 0×0=0, 0×1=0, 1×0=0, 1×1=1. Multiply the multiplicand by each bit of the multiplier, shift left for each position, then add all partial products. For example, 101 × 11: 101×1=101, 101×1 shifted left = 1010, then add: 101 + 1010 = 1111 (15 in decimal, which is 5×3).
What is the difference between signed and unsigned binary?
Unsigned binary represents only positive numbers (0 and above). Signed binary uses the leftmost bit as a sign bit: 0 for positive, 1 for negative. The most common signed representation is two's complement, where negative numbers are represented by inverting all bits and adding 1. This calculator supports both positive and negative binary numbers for arithmetic operations.
Related Resources
- Binary Number - Wikipedia
- Binary Converter - Convert between binary, decimal, hex, and octal
- Hex Calculator - Perform hexadecimal arithmetic and bitwise operations
- Hex Converter - Convert hexadecimal numbers
Reference this content, page, or tool as:
"Binary Calculator" at https://MiniWebtool.com/binary-calculator/ from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: Jan 10, 2026
Chat with your favorite AI
For Gemini, paste the copied question into the chat. You can also copy it below.
View the question
Number System Converters:
- Base Converter
- Base-N Calculator
- Binary Calculator
- Binary Converter
- Binary to Decimal Converter
- Binary to Hex Converter
- Binary to Octal Converter
- Decimal to Binary Converter
- Decimal to Hex Converter
- Decimal to Octal Converter
- Decimal to Percent Converter
- Decimal to Scientific Notation Converter
- Degree to Radian Converter
- HEX Calculator
- HEX Converter
- Hex to Binary Converter
- Hex to Decimal Converter
- Hex to Octal Converter
- Octal Calculator Popular
- Octal Converter
- Octal to Binary Converter
- Octal to Decimal Converter
- Octal to Hex Converter
- Percent to Decimal Converter
- Radian to Degree Converter
- Ratio to Percentage Calculator Popular
- Roman Numerals Converter Popular
- Scientific Notation to Decimal Converter Popular