Binary Calculator: Add, Subtract, Convert

This binary calculator adds, subtracts, multiplies and divides binary numbers and converts the result to decimal and hex. Type values like 1011 and 110, pick an operation, and check your computer science homework or bit math in seconds.

Binary Calculator

Binary

—

Decimal

—

Octal

—

Hexadecimal

—

Detail

—

This binary calculator adds, subtracts, multiplies and divides binary numbers, and converts values between binary, decimal, octal and hexadecimal. Every result is shown in all four number bases at once.

How to use the Binary Calculator

  1. Choose a Mode: Convert or Binary Arithmetic.
  2. To convert, pick the From Base (binary, decimal, octal or hex) and type the Value. A leading minus sign is allowed.
  3. For arithmetic, enter Binary A and Binary B using only 0s and 1s, and choose Add, Subtract, Multiply or Divide.
  4. Press Calculate and read the Binary, Decimal, Octal and Hexadecimal results. A division that doesn't come out even shows the quotient and remainder.

Formula

Binary place values: … 16, 8, 4, 2, 1 (powers of 2)
Value = sum of bit × 2^position (rightmost position = 0)

To convert decimal to binary by hand, divide by 2 repeatedly and read the remainders from bottom to top. The tool works with whole numbers only.

Example

255 in decimal is 11111111 in binary (128 + 64 + 32 + 16 + 8 + 4 + 2 + 1), 377 in octal and FF in hex. Arithmetic: 1010 + 110 is 10 + 6 = 16, which is 10000 in binary. Dividing 1011 by 10 (11 ÷ 2) gives 101 rem 1.

Frequently asked questions

How do I convert binary to decimal?

Multiply each bit by its place value (1, 2, 4, 8 and so on, from the right) and add. 1101 = 8 + 4 + 0 + 1 = 13.

How do I convert decimal to binary?

Divide by 2 and write down the remainder, repeating until you reach 0, then read the remainders from last to first. For 13 the remainders are 1, 0, 1, 1, so 13 = 1101.

How does binary addition work?

Like decimal addition, but you carry at 2: 0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 10 (write 0, carry 1), and 1 + 1 + 1 = 11. So 1010 + 110 = 10000.

How are negative binary numbers shown?

This tool shows them with a minus sign, such as −101 for −5. Computers usually store negative numbers in two's complement instead, which this calculator does not display.

For arithmetic directly in hexadecimal, use the Hex Calculator.

Binary math and binary to decimal

How to use it

  1. Enter the first binary number using only 0 and 1.
  2. Pick the operation.
  3. Enter the second binary number.
  4. Read the answer in binary, decimal and hex.

More questions

What is 1010 in decimal?

10.

What is 1 + 1 in binary?

10, which is 2 in decimal.

How do I convert decimal to binary?

Divide by 2 again and again and write the remainders in reverse. 13 becomes 1101.

Related tools: Text to Binary Converter, Number Base Converter, Hex Calculator.

Converting 200 and adding 1101 + 1011

In convert mode, choose the base you are typing and enter the value to see binary, decimal, octal and hex. In arithmetic mode, enter two binary numbers and pick an operation. For bits, bytes, MB and GB, use the Data Storage Converter.

Worked example: decimal 200 is 11001000 in binary, 310 in octal and C8 in hex. Adding 1101 + 1011 (13 + 11) gives 11000, which is 24 in decimal.

More answers

How many bits does the number 200 need?

Eight. Seven bits only reach 127, and 200 sits between 128 and 255, so it needs a full byte: 11001000.

Can I see 200 in binary, octal and hex at once?

Yes. Enter 200 as a decimal number and read all bases: 11001000 in binary, 310 in octal and C8 in hex. To check hex by hand, group the bits in fours: 1100 is C and 1000 is 8.