Binary Calculator

Add, subtract, multiply and divide binary numbers, and use bitwise AND, OR, XOR and shifts – with decimal and hex results.

Calculator

Was this tool useful?

About this tool

About Binary Calculator

Do arithmetic directly in base 2 for computer science homework and programming. Results are also shown in decimal and hexadecimal.

How it works

Binary works like decimal but with only 0 and 1: 1 + 1 = 10. Large values use exact BigInt maths.

Example

1011 + 110 = 10001 (11 + 6 = 17).

How to use this tool

  1. Enter two binary numbers.
  2. Choose the operation.
  3. Read the binary, decimal and hex answers.

Frequently asked questions

How is division handled?

Whole-number division with a remainder, like integer division in programming.

Can I convert a single number?

Yes – use the Number Base Converter.

Can I use the Binary Calculator for homework?

Yes. The Binary Calculator shows the answer and, where possible, the method, so you can check your own working. Teachers usually want to see the steps, so use it to learn the method rather than only copying the answer.