Skip to main content
math

Binary Addition Calculator

Add two binary numbers and show the result in binary and decimal. Demonstrates the carry mechanism in binary arithmetic.

By Christopher FloiedPublished Updated

Enter a binary number (0s and 1s only)

Enter a binary number (0s and 1s only)

Results

Sum (Binary)

10111

Sum (Decimal)

23

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Binary Addition Calculator. Follow the units and input format printed next to each field. Where a unit selector is available, choose the units that match your data.

2

Review your inputs

Double-check that all values are correct and match the units or format shown for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Binary Addition Calculator computes the output in your browser and displays the results, with units clearly labeled, as soon as they are ready — no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

When to Use This Calculator

  • •Use the Binary Addition Calculator when you need a quick mathematical result without writing out all the steps manually, saving time on repetitive calculations.
  • •Use it to verify hand calculations on tests or assignments and catch arithmetic mistakes.
  • •Use it when teaching or explaining mathematical concepts to others, demonstrating how changing inputs affects the result.
  • •Use it to explore the behavior of mathematical functions across a range of inputs.

Related Calculators

About Binary Addition Calculator

Binary addition is the foundation of all arithmetic performed by digital computers. Just as in decimal addition you carry when a column sum reaches 10, in binary you carry when a column sum reaches 2 (binary 10). The rules are simple: 0+0=0, 0+1=1, 1+0=1, and 1+1=10 (write 0, carry 1). When three bits are added (two inputs plus a carry), 1+1+1=11 (write 1, carry 1). Binary addition is implemented in hardware by half adders and full adders, which are the building blocks of the arithmetic logic unit (ALU) in every processor. Understanding binary addition is essential for computer science, digital electronics, and network engineering. This calculator adds two binary numbers, showing results in both binary and decimal.

The Math Behind It

Binary addition follows the same positional algorithm as decimal but with base 2. Each bit position has weight 2ⁿ (rightmost = 2⁰). A half adder adds two single bits producing sum S = A XOR B and carry C = A AND B. A full adder handles three inputs (A, B, carry-in) producing S = A XOR B XOR Cin and Cout = (A AND B) OR (Cin AND (A XOR B)). Ripple-carry adders chain full adders but have O(n) delay. Carry-lookahead adders compute carries in O(log n) using generate and propagate signals. For n-bit addition, the result may need n+1 bits (overflow). In two's complement representation, overflow is detected when the carry into the MSB differs from the carry out.

Formula Reference

Binary Addition Rules

0+0=0, 0+1=1, 1+0=1, 1+1=10 (carry 1)

Variables: Each column produces a sum bit and optional carry

Worked Examples

Example 1: Add 1010₂ + 1101₂

Add binary 1010 (decimal 10) and 1101 (decimal 13).

Step 1:Column 0: 0+1=1, carry 0
Step 2:Column 1: 1+0=1, carry 0
Step 3:Column 2: 0+1=1, carry 0
Step 4:Column 3: 1+1=10, write 0 carry 1

1010₂ + 1101₂ = 10111₂ = 23₁₀

Common Mistakes & Tips

  • !Forgetting to propagate the carry — each column's carry must be added to the next column.
  • !Writing 1+1=2 instead of 1+1=10 in binary.
  • !Not accounting for the extra bit needed when the final carry is 1.

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

How does a computer add binary numbers?

Computers use logic gates (AND, OR, XOR) arranged as half adders and full adders. Each full adder processes one bit position, and the adders are chained together to handle multi-bit numbers.

What happens if the sum overflows?

If adding two n-bit numbers produces an (n+1)-bit result, the extra bit is either stored (in unsigned arithmetic) or indicates overflow (in signed two's complement arithmetic).

Add the live Binary Addition Calculator to your site. Free to embed, with a link back to MegaCalc.