Home / Math Calculators / Binary Calculator
Math Calculators

Binary Calculator

Perform arithmetic with binary numbers and convert between binary and decimal. See answers in binary, decimal, hexadecimal and octal using exact integer arithmetic.

✓ Base-2 arithmetic✓ Number conversion✓ Runs in your browser
Binary arithmetic

Calculate two binary numbers

Only 0 and 1 are valid. A leading minus sign is supported.
Binary result
10001
1011 + 110 = 10001
Decimal
17
Hexadecimal
11
Octal
21
Number converter

Binary to decimal

Decimal value
170
Number converter

Decimal to binary

Enter a whole number. Negative values are displayed with a leading minus sign, not fixed-width two's complement.
Binary value
10101010
Learn the basics

How to use the binary calculator

  1. Enter the first binary value using only 0 and 1.
  2. Choose an arithmetic or bitwise operation, then enter the second value.
  3. Select Calculate result to view the answer in binary, decimal, hexadecimal and octal.
  4. Use the separate converter panels to convert binary to decimal or decimal to binary.

Binary number formula

Binary is a base-2 number system. Each digit's place value is a power of two, starting at \(2^0\) on the right. To convert binary to decimal, multiply each bit by its place value and add the results.

Example: convert 1011 to decimal1 × 8 + 0 × 4 + 1 × 2 + 1 × 1 = 11. Therefore, binary 1011 equals decimal 11.
Example: binary addition1011 + 110 = 10001, which is 11 + 6 = 17 in decimal.

The calculator supports whole numbers only. Division returns an integer quotient rounded toward zero and also reports the remainder. Negative values use a leading minus sign; bitwise operations are intended for non-negative values.

Common questions

Binary calculator FAQs

What is a binary calculator?

A binary calculator performs arithmetic on numbers written in base 2, using only the digits 0 and 1.

How do I convert binary to decimal?

Multiply each binary digit by the power of two for its position, counting from zero on the right, and add those values. For example, 1010 equals 8 + 2 = 10.

How do I convert decimal to binary?

Repeatedly divide the positive decimal integer by two and read the remainders in reverse order. This calculator performs that conversion for you.

What is 1 + 1 in binary?

1 + 1 = 10 in binary, which equals 2 in decimal.

What happens when I divide binary numbers?

The calculator returns the integer quotient and the remainder. It does not display a fractional binary result.

Does the calculator support very large binary values?

Yes. It uses JavaScript BigInt for exact integer arithmetic, subject to your browser's available memory and processing capacity.