Free Online Calculator

Binary Calculator

Do arithmetic and bitwise operations on binary numbers.

Last updated: Free, no sign-up Private — runs in your browser

Quick answer: adding binary numbers

Add column by column, carrying when 1 + 1 = 10. 1011 + 110 = 10001 (11 + 6 = 17 in decimal).

Overview of the Binary Calculator

Binary is the base-2 number system used by computers: only the digits 0 and 1. This calculator adds, subtracts, multiplies and divides binary numbers (with quotient and remainder), applies the bitwise operators AND, OR and XOR, and shows every answer in binary, octal, decimal and hexadecimal. A second tool converts any number between bases.

All arithmetic uses exact big-integer maths, so very long binary numbers work. For base-16 work see the Hex Calculator; for huge decimal numbers the Big Number Calculator; for IP addresses the IP Subnet Calculator.

How We Calculate

The calculator applies the standard method step by step.

  1. Validate that each number contains only 0s and 1s (a leading minus sign is allowed).
  2. Convert to exact integers and perform the operation.
  3. Addition: 0+0=0, 0+1=1, 1+1=10 (write 0, carry 1). Subtraction borrows. AND, OR and XOR work bit by bit.
  4. Convert the result back to binary and to the other bases.
decimal = Σ bit × 2ᵏ   e.g. 1011₂ = 8 + 0 + 2 + 1 = 11
Worked example — binary calculator
ItemValue
Binary (base 2)10001
Octal (base 8)21
Decimal (base 10)17
Hexadecimal (base 16)11
The inputs in every base
BaseFirst numberSecond number
Binary1011110
Octal136
Decimal116
HexadecimalB6
Binary operations
OperationResult
1011 + 11010001
1011 − 110101
1011 × 1101000010
1100 AND 10101000
1100 XOR 1010110
Decimal, binary, octal and hexadecimal 0–20
DecimalBinaryOctalHex
0000
1111
21022
31133
410044
510155
611066
711177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F
16100002010
17100012111
18100102212
19100112313
20101002414

Binary Calculator — Frequently Asked Questions

How do I add binary numbers?

Add from the right; 1 + 1 gives 0 with a carry of 1 to the next column.

How do I convert binary to decimal?

Multiply each bit by a power of 2 (from the right) and add. 1011₂ = 8 + 2 + 1 = 11.

How do I subtract binary numbers?

Subtract bit by bit, borrowing from the next column when you need to take 1 from 0.

What do AND, OR and XOR do?

AND gives 1 only if both bits are 1; OR gives 1 if either is 1; XOR gives 1 if the bits differ.

Can it handle negative binary numbers?

Yes, with a leading minus sign for arithmetic. Bitwise operations need non-negative numbers.

Why do computers use binary?

Electronic circuits have two reliable states — on and off — which map to 1 and 0.

How is the binary calculator calculated?

It uses the standard method: decimal = Σ bit × 2ᵏ   e.g. 1011₂ = 8 + 0 + 2 + 1 = 11 The full working and a worked example are shown on this page.

How accurate is this calculator?

Decimal results use standard double-precision arithmetic (about 15–16 significant digits). Tools that work with whole numbers — big numbers, factors, bases, combinations — use exact integer arithmetic, so no digits are lost.

Can I use it for homework or exams?

Yes for checking your work and learning the method. The steps and formula are shown so you can understand the answer, but follow your teacher's rules about calculators in exams.

Is my data stored?

No. Everything is calculated in your browser and nothing you enter is uploaded or saved.

More Free Calculators You May Need

Need a custom calculator or tool on your website?

Our team designs and develops fast, SEO-ready websites and web tools. Tell us what you need.

Call Us WhatsApp

Get a Free Quote

Tell us a bit about your project — we'll get back to you shortly.

3 + 6 =
Call WhatsApp