Math

Binary addition calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is binary addition?

Binary addition is one of the fundamental operations in digital electronics and computer science. It operates on binary numbers — numerical systems composed only of the digits 0 and 1. This is the foundation of all digital computation, as every piece of data or operation in a computer is ultimately represented in binary form.

Just as the decimal system is based on powers of ten, the binary system is based on powers of two. The process of adding binary numbers follows similar principles to decimal addition, but the rules are simpler because there are only two digits involved. The possible combinations when adding two binary digits are as follows:

  • 0 + 0 = 0
  • 0 + 1 = 1
  • 1 + 0 = 1
  • 1 + 1 = 10 (which is 0 with a carry of 1 to the next higher bit position)

This simple set of rules is the foundation of how computers perform addition at the hardware level.

How to add binary numbers

In decimal addition, when we add two digits that exceed 9, we carry over 1 to the next column. In binary addition, a similar process occurs when two 1s are added—because 1+1=1021 + 1 = 10_2, where the result is 0 and a carry of 1.

When multiple bits are added together, the carry from each position affects the next higher bit position. For example, when adding 110121101_2 and 101121011_2, add bit by bit from right to left:

  • 1+1=1021 + 1 = 10_2 → write 0, carry 1
  • 1(carry)+1+0=1021 (carry) + 1 + 0 = 10_2 → write 0, carry 1
  • 1(carry)+0+1=1021 (carry) + 0 + 1 = 10_2 → write 0, carry 1
  • 1(carry)+1+1=1121 (carry) + 1 + 1 = 11_2 → write 1, carry 1

So, 11012+10112=1100021101_2 + 1011_2 = 11000_2.

How the calculator works

Instead of performing manual conversions or bit-by-bit summation, the calculator applies three main steps automatically:

  1. Conversion to decimal: Each binary input is first converted into its decimal equivalent.
  2. Addition: The calculator sums the decimal values.
  3. Conversion back to binary: The resulting sum in decimal form is then converted back to binary for display.

This method guarantees accurate results even when adding multiple numbers — two, three, four, or more — saving users from manual binary addition errors.

You can use both methods to add binary numbers.

Formula

The computational principle behind the calculator can be expressed as follows:

  1. Binary to decimal conversion

For a binary number bnbn1b1b0b_n b_{n-1} \dots b_1 b_0:

D=i=0nbi×2iD = \sum_{i=0}^{n} b_i \times 2^i

where bib_i is either 0 or 1, and DD is the decimal equivalent.

  1. Summation in decimal form

If there are kk binary numbers B1,B2,,BkB_1, B_2, \dots, B_k, their decimal equivalents D1,D2,,DkD_1, D_2, \dots, D_k are computed and added:

S=D1+D2++DkS = D_1 + D_2 + \dots + D_k
  1. Decimal to binary conversion

The final decimal sum SS is then converted back to binary using repeated division by 2:

Binary(S)=Remainders from dividing S by 2, read in reverse order\text{Binary}(S) = \text{Remainders from dividing } S \text{ by } 2, \text{ read in reverse order}

Examples

Example 1: Adding two binary numbers

Let’s add two binary numbers: 1011 and 1101.

Step 1: Convert to decimal.
10112=1×8+0×4+1×2+1×1=8+0+2+1=11101011_2 = 1×8 + 0×4 + 1×2 + 1×1 = 8 + 0 + 2 + 1 = 11_{10}
11012=1×8+1×4+0×2+1×1=8+4+0+1=13101101_2 = 1×8 + 1×4 + 0×2 + 1×1 = 8 + 4 + 0 + 1 = 13_{10}

Step 2: Add the decimal numbers.
11+13=2411 + 13 = 24

Step 3: Convert the result back to binary.

DivisionQuotientRemainder
24 ÷ 2120
12 ÷ 260
6 ÷ 230
3 ÷ 211
1 ÷ 201

2410=11000224_{10} = 11000_2.

Final result:
10112+11012=1100021011_2 + 1101_2 = 11000_2

Example 2: Adding three binary numbers

Now let’s sum three values: 101, 111, and 1000.

Step 1: Convert to decimal.
1012=1×22+0×21+1×20=510101_2 = 1 \times 2^2 + 0 \times 2^1 + 1 \times 2^0 = 5_{10}
1112=1×22+1×21+1×20=710111_2 = 1 \times 2^2 + 1 \times 2^1 + 1 \times 2^0 = 7_{10}
10002=1×23+0×22+0×21+0×20=8101000_2 = 1 \times 2^3 + 0 \times 2^2 + 0 \times 2^1 + 0 \times 2^0 = 8_{10}

Step 2: Add in decimal.
5+7+8=205 + 7 + 8 = 20

Step 3: Convert 20 back to binary.

DivisionQuotientRemainder
20 ÷ 2100
10 ÷ 250
5 ÷ 221
2 ÷ 210
1 ÷ 201

2010=10100220_{10} = 10100_2

So, 1012+1112+10002=101002101_2 + 111_2 + 1000_2 = 10100_2

Example 3: Adding two fractional binary numbers

Let’s add two fractional binary numbers: 0.10120.101_2 and 0.11120.111_2.

Step 1: Convert to decimal. 0.1012=1×21+0×22+1×23=0.625100.101_2 = 1 \times 2^{-1} + 0 \times 2^{-2} + 1 \times 2^{-3} = 0.625_{10} 0.1112=1×21+1×22+1×23=0.875100.111_2 = 1 \times 2^{-1} + 1 \times 2^{-2} + 1 \times 2^{-3} = 0.875_{10}

Step 2: Add in decimal. 0.625+0.875=1.50.625 + 0.875 = 1.5

Step 3: Convert 1.5 back to binary.

DivisionQuotientRemainder
1 ÷ 201

Fractional part:

MultiplicationResult
0.5 x 21

So, 0.1012+0.1112=1.120.101_2 + 0.111_2 = 1.1_2

Frequently Asked Questions

How to add binary numbers 1010 and 111 in this calculator?

First, convert each to decimal: 10102=10101010_2 = 10_{10}, 1112=710111_2 = 7_{10}. Then perform 10+7=1710 + 7 = 17. Convert back to binary: 1710=10001217_{10} = 10001_2. Thus, 10102+1112=1000121010_2 + 111_2 = 10001_2.

Can I add more than two binary numbers at once?

Yes. The calculator supports multiple input fields, allowing the addition of three, four, or more binary numbers simultaneously. The same conversion process — binary to decimal, summation, then back to binary — ensures precise results.

Does this calculator support addition of fractional binary numbers?

Yes. The calculator supports the addition of fractional binary numbers.

Report a bug

This field is required.