Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Binary to Gray Code ConverterHEX CalculatorOctal CalculatorComplex Number CalculatorBitwise Calculator
Home Page > Math > Number System Converters

Binary Calculator

Perform binary arithmetic (add, subtract, multiply, divide) and bitwise operations (AND, OR, XOR, NOT, shifts). Interactive step-by-step solutions with multi-base results in binary, decimal, and hexadecimal.

Free to useNo sign-up requiredUpdated Jan 2026
Binary CalculatorTry it now — free ▼
01
Binary Calculator Enter binary numbers using only 0s and 1s
0b
0b
Arithmetic
Bitwise

Embed Binary Calculator Widget

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.

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).

Binary0110111001011101111000
Decimal012345678

Understanding Binary Place Values

Each position in a binary number represents a power of 2, starting from 20 (which equals 1) on the right:

11012 = 1×23 + 1×22 + 0×21 + 1×20 = 8 + 4 + 0 + 1 = 1310

Binary Arithmetic Operations

Binary Addition

Binary addition follows these simple rules:

Binary Subtraction

Binary subtraction uses borrowing when needed:

Binary Multiplication

Binary multiplication is simpler than decimal because you only multiply by 0 or 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.

1010 AND 1100 = 1000

OR Operation (|)

Returns 1 when either corresponding bit is 1. Used for setting specific bits.

1010 OR 1100 = 1110

XOR Operation (^)

Returns 1 when corresponding bits are different. Used for toggling bits and simple encryption.

1010 XOR 1100 = 0110

NOT Operation (~)

Flips all bits: 0 becomes 1, and 1 becomes 0.

NOT 1010 = 0101

Left Shift (<<) and Right Shift (>>)

Shifts move all bits left or right by the specified number of positions:

How to Use This Calculator

  1. 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.
  2. Select operation: Choose your operation: arithmetic (+, -, *, /, %) or bitwise (AND, OR, XOR, NOT, <<, >>). Click operation buttons or use the dropdown.
  3. 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.
  4. 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

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

You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.

Number System Converters:

Top & Updated:

Binary ConverterDecimal to Binary ConverterBinary to Hex ConverterView all →
Home Page > Math > Number System Converters > Binary Calculator