1. Home
  2. Conversion
  3. Binary Calculator

Binary Calculator

Binary uses only 0 and 1, and each place is worth twice the one to its right. 1011 + 110 = 10001 (11 + 6 = 17 in decimal).

No size limit: add two 200-bit numbers or convert a 64-bit hex address exactly, with every result shown in binary, decimal, hex and octal at once.

Calculate with two binary numbers

Answer —

How we got this

    Your next step

    Your answer carries over, so you don’t have to type it again.

    How binary works

    Each binary digit (bit) is a power of 2. 1011 = 1×8 + 0×4 + 1×2 + 1×1 = 11.

    Bit position76543210
    Value1286432168421

    Binary addition rules

    SumResultCarry
    0 + 000
    0 + 110
    1 + 101
    1 + 1 + 1 (with carry)11

    Worked example

    1011 + 0110: right to left, 1+0 = 1; 1+1 = 0 carry 1; 0+1+1 = 0 carry 1; 1+0+1 = 0 carry 1; the last carry gives 10001.

    Converting decimal to binary

    Divide by 2 repeatedly and write down the remainders from bottom to top. 13 ÷ 2 = 6 r1, 6 ÷ 2 = 3 r0, 3 ÷ 2 = 1 r1, 1 ÷ 2 = 0 r1 → 1101. For hex, group the bits in fours: 1101 0110 = D6.

    DecimalBinaryHexOctal
    0000
    510155
    101010A12
    151111F17
    16100001020
    100110010064144
    25511111111FF377

    Two’s complement (negative numbers)

    Computers store negative whole numbers by inverting every bit of the positive value and adding 1. −5 in 8 bits: 5 = 00000101 → invert 11111010 → add 1 → 11111011. An n-bit signed number runs from −2ⁿ⁻¹ to 2ⁿ⁻¹ − 1 (−128 to 127 for 8 bits).

    Frequently asked questions

    How do I add binary numbers?

    Add column by column from the right: 1 + 1 = 0 carry 1, and 1 + 1 + 1 = 1 carry 1.

    How do I convert binary to decimal?

    Multiply each bit by its power of 2 and add them up. 1101 = 8 + 4 + 0 + 1 = 13.

    What is 1 + 1 in binary?

    10, which is 2 in decimal.

    Why do computers use binary?

    Electronic circuits have two reliable states, on and off, which map neatly onto 1 and 0.

    Last updated · Written and checked by the AzCalculator team · Calculations run in your browser with full precision and are rounded only for display. How we build calculators