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.
Add 2 or more binary numbers with every carry shown, plus decimal and hex checks.
Enter your values below to get started.
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.
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).
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.
Each number is checked for 0s and 1s, then padded with leading zeros (and trailing zeros after the binary point) to a common length.
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.
Result bit = total mod 2; carry out = ⌊total ÷ 2⌋. A total of 3 = 112 writes 1 and carries 1.
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 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).
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.
The value of a binary number is the sum of its bits times powers of 2. For the result 100012:
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.
All bits are value bits. 8 bits hold 0 to 255; a carry out of the MSB means the sum needs a 9th bit.
The MSB weighs −2n−1. 8 bits hold −128 to 127. Plain addition works for negatives; the carry out is dropped.
A negative is the bitwise NOT of the positive. A carry out of the MSB is added back to the LSB (end-around carry).
The MSB is a sign flag and the other bits are the size. Adding numbers with opposite signs needs a subtraction step.
A binary point splits integer and fraction bits: 0.12 = 0.5 and 0.012 = 0.25. Align the points, then add.
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:
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.
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).
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.
One per line, or separated by spaces, commas or +. Up to 50 numbers and 512 bits.
Unsigned for plain binary and fractions; Two's complement for negative numbers.
4, 8, 16, 32 or 64 bits. The width sets the signed range, e.g. −128 to 127 for 8 bits.
Open Long addition to see each carry in orange above its column.
Binary sums run inside every processor, network packet and storage device. There are 5 common uses:
Common binary additions with the decimal check.
| Problem | Binary sum | Decimal check | Calculator |
|---|---|---|---|
| 1 + 1 | 10 | 1 + 1 = 2 | |
| 1011 + 110 | 10001 | 11 + 6 = 17 | |
| 1111 + 1 | 10000 | 15 + 1 = 16 | |
| 11001 + 10111 | 110000 | 25 + 23 = 48 | |
| 101 + 111 + 11 | 1111 | 5 + 7 + 3 = 15 | |
| 1101.1 + 10.11 | 10000.01 | 13.5 + 2.75 = 16.25 | |
| −101 + 11 (8-bit) | 11111110 | −5 + 3 = −2 |
Work each sum by hand, then reveal the answer or check it in the calculator.
Add 10110 and 1101.
Add 111 and 111.
Add 100101 and 11011.
Add the 3 numbers 1010, 1100 and 1111.
Add the binary fractions 11.01 and 1.11.
In 8-bit two's complement, add 01111111 and 00000001. Is there overflow?
Discover 67 free sum calculators across different categories. Find the right calculator for your needs.
Try a different name or choose another category.
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.
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.
1 + 1 + 1 in binary is 11, which equals 3 in decimal. In a column sum that means write 1 and carry 1.
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.
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.
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.
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.
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.
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.
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.