Binary Addition Calculator
Enter two binary numbers to add them together.
Result
How it is calculated
Both entries are read as base-2 numbers (only the digits 0 and 1 are accepted), converted to integers, added, and the sum is written back in three bases: sum = A2 + B2. The result is shown in binary, in decimal with thousands separators, and in hexadecimal with a 0x prefix and capital letters.
Leading zeros are ignored, so 0001 equals 1. Each number can have at most 63 digits after the leading zeros, and the sum has to fit in a signed 64-bit integer (largest value 9,223,372,036,854,775,807); anything larger returns no result. Negative numbers, spaces and digits other than 0 and 1 are not accepted.
Worked example
Add 1011 and 110. In decimal, 1011 is 8 + 2 + 1 = 11 and 110 is 4 + 2 = 6. The sum is 11 + 6 = 17. Written in binary, 17 is 16 + 1, which gives 10001. In hexadecimal, 17 is one sixteen and one unit, so the tool shows 0x11. Doing it by hand column by column from the right gives the same answer: 1+0=1, 1+1=0 carry 1, 0+1+1=0 carry 1, 1+1=0 carry 1, and the last carry becomes the leading 1.
Common mistakes
- Typing a decimal number such as 12 or 255 in a field: any digit other than 0 or 1 makes the tool return no result, so convert to binary first.
- Reading the binary and hex rows as decimal:
10001in the binary row is 17, not ten thousand and one, and0x11is 17, not eleven. - Expecting the sum to keep the width of the inputs: the result has no fixed bit width, so a carry out of the top bit just makes the answer one digit longer instead of wrapping around as it would in an 8-bit register.
- Entering two's complement negatives such as
11111111and expecting -1: the tool treats it as the unsigned value 255. - Pasting numbers with a
0bprefix or spaces between nibbles: only plain 0 and 1 characters are accepted.
About this calculator
Binary addition follows the same place-value logic as decimal addition, just with only two digits: 0+0=0, 0+1=1, 1+1=10 (write 0, carry 1), and 1+1+1=11 (write 1, carry 1) when a carry is already in play. Adding two binary numbers means applying this bit by bit from right to left, propagating any carry into the next column.
This calculator adds two binary numbers and shows the sum in binary, decimal, and hexadecimal side by side, which makes it useful for computer science students learning how arithmetic actually happens at the bit level, and for programmers and network engineers double-checking manual binary math when working with bitmasks, checksums, or subnetting.
Was this helpful?
You can pick up to 3 reactions.
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
- Loan Calculator
- Profit Calculator
- Discount Calculator
- BMI Calculator
- Percentage Calculator
- Ideal Weight Calculator
- Age Calculator
- Pregnancy Due Date Calculator
- Compound Interest Calculator
- BMR Calculator (Basal Metabolic Rate)
- Tip Calculator
- Fuel Cost Calculator
- Date Difference Calculator
- Sleep Cycle Calculator
- Daily Water Intake Calculator
- Simple Interest Calculator
- Heart Rate Zones Calculator
- Running Pace Calculator
- Pet Age Calculator
- Calories Burned Calculator
- Macro Calculator
- TDEE Calculator (Total Daily Energy Expenditure)
- Waist-to-Hip Ratio Calculator
- Honor Roll Calculator
- One Rep Max (1RM) Calculator
- Ovulation Calculator
- Electricity Cost Calculator
- Unit Price Calculator
- Savings Goal Calculator
- Break-Even Point Calculator
- Paint Calculator
- Course Grade Average Calculator
- Business Days Calculator
- Time Duration Calculator
- Fuel Economy Calculator
- Temperature Converter
- Tile Calculator
- Aspect Ratio Calculator
- Roman Numeral Converter
- Goal Weight Timeline Calculator
- Salary Converter (Hourly to Annual)
- Credit Card Validator (Luhn)
- Body Surface Area (BSA) Calculator
- Feels-Like Temperature Calculator
- Ohm’s Law Calculator
- PPI (Pixel Density) Calculator
- Molar Mass Calculator
- Zodiac Sign Calculator (Western + Chinese)
- IBAN Validator
- Shoe Size Converter
- Country Info & Dialing Code Lookup
- Time Zone Difference (World Clock)
- CAGR (Compound Annual Growth Rate) Calculator
- Rule of 72 Calculator
- Blood Alcohol Content (BAC) Calculator
- Lean Body Mass (LBM) Calculator
- Pythagorean Theorem Calculator
- Speed Converter
- Download Time Calculator
- Date Calculator (Add/Subtract)
No calculators found
Comments (1)
If you combine bitmasks, remember that adding is not the same as OR. The two only agree when the numbers share no set bits. Adding 1100 and 0110 gives 10010, which is 0x12, while OR-ing them would give 1110. When the sum is longer than the inputs, an overlap or carry occurred. Do you mostly check masks, checksums or homework with this?