Binary Sum Calculator

Add 2 or more binary numbers with every carry shown, plus decimal and hex checks.

  1. Enter valuesUse your own inputs or an example
  2. CalculateApply your selected settings
  3. View resultExplore the answer and explanation

Enter the binary numbers

Enter your values below to get started.

Examples:
One number per line, or separate with spaces, commas or +. Unsigned mode accepts a binary point (101.11).
Number format
Write negatives with a minus sign, e.g. -101, or as a full bit pattern.
Reset restores the default values.

Tips for this calculator

Paste a column of numbers: line breaks, spaces, commas and + all separate them.

A 0b prefix is fine: 0b1011 reads as 1011.

Pick Two's complement to add negative numbers and see the overflow flag.

Open the Table tab to see the total, result bit and carry of every column.

A binary sum calculator adds numbers written in base 2 (digits 0 and 1) and shows every carry column by column. Enter 2 to 50 binary numbers to get the sum in binary, decimal, hexadecimal and octal, a long-addition layout, and an 8-, 16-, 32- or 64-bit two's complement mode that flags signed overflow.

What is a Binary Sum?

A binary sum is the result of adding 2 or more numbers written in base 2, where each column holds a 0 or a 1 and a column total of 2 carries 1 to the next column on the left. The binary sum 1011 + 110 equals 10001, which is 11 + 6 = 17 in decimal.

German mathematician Gottfried Wilhelm Leibniz published the rules of binary arithmetic in 1703 in Explication de l'Arithmétique Binaire. In 1937, Claude Shannon showed at the Massachusetts Institute of Technology (MIT) that relay circuits can carry out Boolean algebra, and binary addition became the first operation every digital computer performs in hardware.

Each binary column has a place value of 2n: 1, 2, 4, 8, 16 and so on. The rightmost column is the least significant bit (LSB) and the leftmost column is the most significant bit (MSB).

InteractiveFlip bits and watch the binary sum and carries change

How Does the Binary Sum Calculator Work?

The binary sum calculator right-aligns the numbers, adds one column at a time from the LSB, writes the column total modulo 2 and carries the rest to the next column. The calculator works on exact big integers, so 512-bit numbers give exact sums with no rounding.

InteractiveWalk through a binary sum one column at a time
  1. Parse and pad

    Each number is checked for 0s and 1s, then padded with leading zeros (and trailing zeros after the binary point) to a common length.

  2. Add each column

    Column total = sum of the bits + carry in. With 2 numbers the total is 0 to 3; with 5 numbers the total can reach 9.

  3. Write and carry

    Result bit = total mod 2; carry out = ⌊total ÷ 2⌋. A total of 3 = 112 writes 1 and carries 1.

  4. Convert and check

    The sum is converted to decimal (base 10), hexadecimal (base 16) and octal (base 8). Two's complement mode keeps n bits and tests for overflow.

Binary Sum Rules and Formula

Binary addition follows 4 rules: 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, and 1 + 1 = 10 (write 0, carry 1). With a carry coming in, 1 + 1 + 1 = 11 (write 1, carry 1).

0+00+11+11+1+1011011\begin{array}{c|c|c|c} 0+0 & 0+1 & 1+1 & 1+1+1 \\ \hline 0 & 1 & 10 & 11 \end{array}

Full Adder Formula for One Column

A full adder computes one column of a binary sum from 3 inputs: bit A, bit B and the carry in Cin. The sum bit is an exclusive OR (XOR) of all 3, and the carry out is 1 when at least 2 inputs are 1.

S=A⊕B⊕Cin,Cout=AB+Cin(A⊕B)S = A \oplus B \oplus C_{in}, \qquad C_{out} = AB + C_{in}(A \oplus B)

Place-Value Formula for the Whole Sum

The value of a binary number is the sum of its bits times powers of 2. For the result 100012:

∑k=0n−1bk 2k=1⋅24+0⋅23+0⋅22+0⋅21+1⋅20=17\sum_{k=0}^{n-1} b_k\,2^k = 1\cdot 2^4 + 0\cdot 2^3 + 0\cdot 2^2 + 0\cdot 2^1 + 1\cdot 2^0 = 17
InteractiveFull adder: set A, B and carry in

Types of Binary Sums

There are 5 types of binary sums, one for each way a computer stores numbers: unsigned, sign-magnitude, one's complement, two's complement and fixed-point fractions. The same 8 bits 11001000 read as 200 unsigned, −72 in sign-magnitude, −55 in one's complement and −56 in two's complement.

InteractiveOne bit pattern, 4 readings

Unsigned binary sum

All bits are value bits. 8 bits hold 0 to 255; a carry out of the MSB means the sum needs a 9th bit.

Two's complement sum

The MSB weighs −2n−1. 8 bits hold −128 to 127. Plain addition works for negatives; the carry out is dropped.

One's complement sum

A negative is the bitwise NOT of the positive. A carry out of the MSB is added back to the LSB (end-around carry).

Sign-magnitude sum

The MSB is a sign flag and the other bits are the size. Adding numbers with opposite signs needs a subtraction step.

Fixed-point binary sum

A binary point splits integer and fraction bits: 0.12 = 0.5 and 0.012 = 0.25. Align the points, then add.

How to Add Binary Numbers by Hand

To add binary numbers by hand, line the numbers up on the right, add the rightmost column, write the total mod 2 and carry the rest left, then repeat until no carry is left. Here is 1011 + 110:

  1. Write 1011 above 0110 so the columns line up.
  2. Column 0: 1 + 0 = 1. Write 1, carry 0.
  3. Column 1: 1 + 1 = 102. Write 0, carry 1.
  4. Column 2: 0 + 1 + 1 = 102. Write 0, carry 1.
  5. Column 3: 1 + 0 + 1 = 102. Write 0, carry 1.
  6. Bring down the last carry: the sum is 10001 = 17.
InteractiveStep through binary sums by hand

    Binary Sum Overflow and Carry Out

    A binary sum overflows when the true result does not fit in the available number of bits. In unsigned arithmetic the warning sign is a carry out of the MSB; in two's complement arithmetic the warning sign is 2 operands with the same sign giving a result with the opposite sign.

    Overflowsigned=Cn−1⊕Cn\text{Overflow}_{\text{signed}} = C_{n-1} \oplus C_{n}

    In 8-bit two's complement, 01100100 + 01000110 (100 + 70) gives 10101010, which reads as −86 instead of 170. In 8-bit unsigned arithmetic the same bits are correct: 170 fits in 0 to 255. The x86 processor family stores these 2 signals in the carry flag (CF) and the overflow flag (OF).

    Interactive4-bit two's complement wheel: when does the sum wrap?

    Common Mistakes with Binary Sums

    • Writing 2 in a column: binary digits are only 0 and 1, so 1 + 1 is written as 0 with a carry of 1.
    • Dropping the final carry: 1111 + 1 is 10000 (5 bits), not 0000, unless the width is fixed at 4 bits.
    • Misaligning numbers: numbers of different lengths line up on the right (or on the binary point), never on the left.
    • Forgetting multi-bit carries: with 4 numbers a column total of 4 = 1002 writes 0 and carries 2 (102).
    • Reading the carry as overflow in two's complement: −5 + 3 produces no carry, and −1 + 1 produces a carry with no overflow.
    InteractiveTrue or false: binary sums
    1. In binary, 1 + 1 = 10.

    2. 1 + 1 + 1 in one column writes 1 and carries 1.

    3. A carry out of the MSB always means a two's complement sum is wrong.

    4. Adding 2 positive 8-bit two's complement numbers can give a negative result.

    5. 1111 + 1 = 10000 in unsigned binary.

    Score: 0 / 5

    How to Use the Binary Sum Calculator

    To use the binary sum calculator, type 2 or more binary numbers, pick unsigned or two's complement, and press Calculate. The result card shows the binary sum with decimal and hexadecimal values; the tabs show the steps, the long addition with carries, and a column-by-column table.

    InteractiveLoad a binary sum

    Each button fills the calculator and runs it.

    1. Type the numbers

      One per line, or separated by spaces, commas or +. Up to 50 numbers and 512 bits.

    2. Pick the format

      Unsigned for plain binary and fractions; Two's complement for negative numbers.

    3. Set the bit width

      4, 8, 16, 32 or 64 bits. The width sets the signed range, e.g. −128 to 127 for 8 bits.

    4. Read the carries

      Open Long addition to see each carry in orange above its column.

    Real-Life Uses of Binary Sums

    Binary sums run inside every processor, network packet and storage device. There are 5 common uses:

    • Arithmetic logic units (ALUs): a CPU adds 64-bit numbers with chains of full adders; subtraction is addition of a two's complement.
    • Memory addresses: base address + offset gives the byte to load, e.g. 0x1000 + 0x24 = 0x1024.
    • Checksums: the Internet Protocol (IP) header checksum adds 16-bit words in one's complement arithmetic (RFC 1071).
    • Digital signal processing (DSP): audio samples are summed in fixed-point binary to mix tracks.
    • Counters and timers: a hardware counter adds 1 every clock tick and wraps from 11111111 to 00000000.
    Interactive8-bit ripple-carry adder: follow the carry

    Binary Sum Examples

    Common binary additions with the decimal check.

    Binary Sum Examples
    ProblemBinary sumDecimal checkCalculator
    1 + 1101 + 1 = 2
    1011 + 1101000111 + 6 = 17
    1111 + 11000015 + 1 = 16
    11001 + 1011111000025 + 23 = 48
    101 + 111 + 1111115 + 7 + 3 = 15
    1101.1 + 10.1110000.0113.5 + 2.75 = 16.25
    −101 + 11 (8-bit)11111110−5 + 3 = −2

    Popular Binary Sum Problems

    Work each sum by hand, then reveal the answer or check it in the calculator.

    1. Add 10110 and 1101.

      10110_2 + 1101_2
      Show answer100011_2 = 35
    2. Add 111 and 111.

      111_2 + 111_2
      Show answer1110_2 = 14
    3. Add 100101 and 11011.

      100101_2 + 11011_2
      Show answer1000000_2 = 64
    4. Add the 3 numbers 1010, 1100 and 1111.

      1010_2 + 1100_2 + 1111_2
      Show answer100101_2 = 37
    5. Add the binary fractions 11.01 and 1.11.

      11.01_2 + 1.11_2
      Show answer101_2 = 5
    6. In 8-bit two's complement, add 01111111 and 00000001. Is there overflow?

      01111111_2 + 00000001_2
      Show answer10000000_2 = -128\ \text{(overflow)}

    Explore More Sum Calculators

    Discover 67 free sum calculators across different categories. Find the right calculator for your needs.

    Browse All 67 Calculators
    Questions and answers

    Frequently Asked Questions

    What is a binary sum calculator?

    A binary sum calculator is an online tool that adds numbers written in base 2 and shows the carries column by column. This binary sum calculator adds 2 to 50 numbers and returns the sum in binary, decimal, hexadecimal and octal.

    What is 1 + 1 in binary?

    1 + 1 in binary is 10. The column total 2 is written as 0 with a carry of 1 into the next column, and 10₂ equals 2 in decimal.

    What is 1 + 1 + 1 in binary?

    1 + 1 + 1 in binary is 11, which equals 3 in decimal. In a column sum that means write 1 and carry 1.

    How do you add binary numbers with carries?

    Add binary numbers from the rightmost column: write the column total mod 2 and carry ⌊total ÷ 2⌋ into the next column. Repeat until every column and the last carry are written.

    Can the binary sum calculator add negative numbers?

    Yes, the binary sum calculator adds negative numbers in two's complement mode. Type a minus sign (−101) or the full bit pattern (11111011 for −5 in 8 bits), pick a width from 4 to 64 bits, and the calculator flags signed overflow.

    Can a binary sum have a fraction?

    Yes, a binary sum can have fraction bits. Line up the binary points and add: 1101.1 + 10.11 = 10000.01, which is 13.5 + 2.75 = 16.25 in decimal.

    How many bits does a binary sum need?

    A binary sum of 2 n-bit numbers needs at most n + 1 bits. The sum of k numbers of n bits needs at most n + ⌈log₂ k⌉ bits, so 4 numbers of 8 bits need at most 10 bits.

    What is the difference between carry and overflow?

    Carry is a 1 moved out of the MSB, which signals an unsigned result too large for n bits. Overflow is a sign error in two's complement, when 2 numbers with the same sign produce a result with the opposite sign.

    Is binary addition the same as XOR?

    No, binary addition is not the same as XOR. XOR gives the sum bit of one column without the carry; a full binary sum adds the carry with an AND gate path, so 1 + 1 = 10 while 1 XOR 1 = 0.

    Conclusion

    A binary sum adds base-2 numbers one column at a time, writing the total mod 2 and carrying the rest, and the binary sum calculator does this for 2 to 50 numbers with every carry shown. Use unsigned mode for plain integers and fractions, and two's complement mode with a fixed bit width to add negative numbers and catch overflow.

    Not sure which mode to pick? Answer the questions below.

    InteractiveWhich binary sum mode do you need?