Binary Addition Calculator

Add two binary numbers with step-by-step carry method. View results in binary, decimal, hexadecimal, and octal. Includes bit-by-bit breakdown table, overflow detection, and visual carry chain.

Binary Addition Calculator

Enter first binary number (0s and 1s only)
Enter second binary number
For overflow detection
Binary Result
11000
5 bits total
Decimal Result
24
11 + 13
Hexadecimal
0x18
Base-16 representation
Octal
0o30
Base-8 representation
Overflow Status
โœ“ No Overflow
8-bit unsigned max: 255
Carry Out
1 (carry out)
Final carry bit from MSB addition

Carry Chain Visualization

โ†“C
1
bit 3
Cโ†’
โ†“C
0
bit 2
Cโ†’
โ†“C
0
bit 1
Cโ†’
0
bit 0
Cโ†’
โ†“C
1
MSB

Bit-by-Bit Breakdown

PositionBit ABit BCarry InSum BitCarry OutExplanation
0110011+1+0=2 โ†’ write 0, carry 1
1101011+0+1=2 โ†’ write 0, carry 1
2011010+1+1=2 โ†’ write 0, carry 1
3111111+1+1=3 โ†’ write 1, carry 1

Column Addition

Carry: 11110
ย  1011
+ 1101
ย  11000

Binary Addition Truth Table

ABCarry InSumCarry Out
00000
00110
01010
01101
10010
10101
11001
11111
Planning notes, formulas, and examples

About the Binary Addition Calculator

The **Binary Addition Calculator** performs binary (base-2) addition with full step-by-step visualization of the carry method, just as you would work it out on paper. Whether you are a computer science student learning digital logic, a programmer debugging bitwise operations, or an electronics engineer verifying adder circuits, the page keeps the sum, carry trace, and fixed-width interpretation together.

Binary addition follows simple rules: 0+0=0, 0+1=1, 1+0=1, and 1+1=10 (write 0, carry 1). When both bits and a carry-in are all 1, the result is 11 (write 1, carry 1). These four rules are the foundation of every digital adder circuit, from simple half-adders to complex ALU pipelines inside modern CPUs. Understanding them thoroughly is essential for courses in computer architecture, digital design, and low-level programming.

This calculator accepts two binary strings of any length and computes their sum. It displays the result in binary, decimal, hexadecimal, and octal formats simultaneously, so you can compare representations without leaving the page. A detailed bit-by-bit breakdown table shows the carry-in, the two input bits, the sum bit, and the carry-out for every column โ€” mirroring the pencil-and-paper process exactly. A visual carry chain highlights how carries propagate across bit positions, helping you spot patterns and understand ripple-carry behavior. Overflow detection warns you when the result exceeds a chosen bit width (8, 16, or 32 bits), which is critical for embedded systems and fixed-width integer programming.

Load preset examples to explore classic cases โ€” adding powers of two, maximum 8-bit values, cascading carries, and more. Choose signed or unsigned mode to see how two's complement affects the interpretation of your result.

When This Page Helps

This calculator is useful when you need to verify binary addition at the bit level instead of only converting everything to decimal. It accepts two binary strings, pads them to equal length, performs the addition column by column, and reports the binary result alongside decimal, hexadecimal, and octal conversions. It also exposes the carry chain, bit-by-bit breakdown, and overflow checks for fixed widths such as 8, 16, and 32 bits.

That combination makes it practical for digital logic students, programmers working with bit patterns, and anyone learning how ripple-carry addition works. The signed versus unsigned interpretation setting is especially important because the same bit pattern can represent very different values depending on whether you read it as a two's-complement integer or a plain unsigned number.

How to Use the Inputs

  1. Enter values in Binary A, Binary B.
  2. Choose options in Bit Width and Interpretation to match your scenario.
  3. Use a preset such as "1011 + 1101" or "1111 + 0001" to load a quick example.
  4. Compare the result with the formula and worked example so you can catch input, rounding, or setup mistakes.
Formula used
Binary addition rules: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (carry 1). For each bit position i: sum_i = A_i โŠ• B_i โŠ• C_in; C_out = (A_i ยท B_i) + (C_in ยท (A_i โŠ• B_i)).

Example Calculation

Result: For these inputs, the calculator returns the binary addition result plus supporting breakdown values shown in the output cards.

This example reflects the built-in binary addition workflow: enter values, apply options, and read both the main answer and supporting metrics.

Tips & Best Practices

  • Check that all inputs use the same scale and assumptions before trusting the result.
  • Compare the answer with the worked example or a rough estimate to catch entry mistakes.

Understanding the bit-by-bit addition process

The calculator does more than add two base-2 numbers and display the answer. It sanitizes the inputs to binary digits, pads both strings to the same width, then processes each column from right to left. For every position, it records the input bits, the carry-in, the resulting sum bit, and the carry-out. That information is then shown in the breakdown table, so you can inspect exactly where carries begin and how they propagate toward the most significant bit.

This is useful for learning the rules of binary arithmetic and for checking manual work from class or from circuit-design exercises. Problems like 1111 + 0001 are easy to misread without a clear carry trace, and the calculator makes that propagation visible column by column.

Why width and interpretation change the meaning

The same raw sum can have different implications depending on the selected bit width and interpretation mode. In unsigned mode, the calculator compares the decimal result against the maximum representable value for the chosen width and flags overflow when the sum no longer fits. In signed mode, it interprets the result using two's complement and separately checks for signed overflow by comparing the expected signed sum with the masked fixed-width result.

Those settings matter in programming and hardware contexts where 8-bit, 16-bit, or 32-bit behavior is part of the problem. The output cards and the carry visualization therefore do two jobs at once: they teach the arithmetic itself and help you reason about whether a binary result is valid, overflowing, or being reinterpreted under a signed representation.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Binary addition follows the same rules as decimal but with only two digits: 0+0=0, 0+1=1, 1+0=1, 1+1=10 (0 carry 1). For example, 1011 + 1101 = 11000.