Math

Binary 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 a binary calculator?

A binary calculator is an online computational tool designed to perform arithmetic operations—addition, subtraction, multiplication, and division—on numbers represented in the binary numeral system. The binary system is the foundation of all digital computing, employing only two digits: 0 and 1. Each digit in a binary number represents a power of two, enabling computers and digital devices to process data efficiently.

The binary calculator automates these calculations by converting binary values into their decimal equivalents, performing the required arithmetic operation, and then converting the result back into binary form. This mechanism ensures both accuracy and ease of use, especially when dealing with lengthy binary numbers that would be tedious to calculate manually.

If you need to convert a number from one number system to another, use a binary converter.

The binary system explained

The binary numeral system, or base-2 system, operates with only two possible symbols: 0 and 1. Each digit represents a bit, short for binary digit. The positional value of bits increases exponentially from right to left, with each position representing a power of two.

For example, the binary number 1011 can be converted to decimal as follows:

10112=(1×23)+(0×22)+(1×21)+(1×20)=8+0+2+1=11101011_2 = (1×2^3) + (0×2^2) + (1×2^1) + (1×2^0) = 8 + 0 + 2 + 1 = 11_{10}

Binary is the language of computers because digital circuits can easily represent two states—on (1) and off (0)—making it a natural choice for processing and storing data in electronic systems.

How to add binary numbers?

Step 1: Convert the binary numbers to decimal numbers.

Step 2: Add the decimal numbers.

Step 3: Convert the decimal number back to a binary number.

Examples

Example 1: Addition binary numbers

10112+110121011_2 + 1101_2

Convert to decimal: 10112=(1×23)+(0×22)+(1×21)+(1×20)=8+0+2+1=11101011_2 = (1×2^3) + (0×2^2) + (1×2^1) + (1×2^0) = 8 + 0 + 2 + 1 = 11_{10}, 11012=(1×23)+(1×22)+(0×21)+(1×20)=8+4+0+1=13101101_2 = (1×2^3) + (1×2^2) + (0×2^1) + (1×2^0) = 8 + 4 + 0 + 1 = 13_{10}

Sum: 11+13=2411 + 13 = 24

Convert 24 to binary:

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

Result: 10112+11012=1100021011_2 + 1101_2 = 11000_2

Example 2: Multiplication binary numbers

1012×112101_2 × 11_2

Convert to decimal: 1012=(1×22)+(0×21)+(1×20)=4+0+1=510101_2 = (1×2^2) + (0×2^1) + (1×2^0) = 4 + 0 + 1 = 5_{10}, 112=(1×21)+(1×20)=2+1=31011_2 = (1×2^1) + (1×2^0) = 2 + 1 = 3_{10}

Product: 5×3=155 × 3 = 15

Convert 15 to binary:

DevidedQuotientRemainder
15 ÷ 271
7 ÷ 231
3 ÷ 211
1 ÷ 201

1510=1111215_{10} = 1111_2

Result: 1012×112=11112101_2 × 11_2 = 1111_2

Example 3: Division binary numbers

100102÷10210010_2 ÷ 10_2

Convert to decimal: 100102=(1×24)+(0×23)+(0×22)+(1×21)+(0×20)=16+0+0+2+0=181010010_2 = (1×2^4) + (0×2^3) + (0×2^2) + (1×2^1) + (0×2^0) = 16 + 0 + 0 + 2 + 0 = 18_{10}, 102=(1×21)+(0×20)=2+0=21010_2 = (1×2^1) + (0×2^0) = 2 + 0 = 2_{10}

Quotient: 18÷2=918 ÷ 2 = 9

Convert 9 to binary:

DevidedQuotientRemainder
9 ÷ 241
4 ÷ 220
2 ÷ 210
1 ÷ 201

910=100129_{10} = 1001_2

Result: 100102÷102=1001210010_2 ÷ 10_2 = 1001_2

Example 4: Subtraction binary numbers

11100210010211100_2 - 10010_2

Convert to decimal: 111002=(1×24)+(1×23)+(1×22)+(0×21)+(0×20)=16+8+4+0+0=281011100_2 = (1×2^4) + (1×2^3) + (1×2^2) + (0×2^1) + (0×2^0) = 16 + 8 + 4 + 0 + 0 = 28_{10}, 100102=(1×24)+(0×23)+(0×22)+(1×21)+(0×20)=16+0+0+2+0=181010010_2 = (1×2^4) + (0×2^3) + (0×2^2) + (1×2^1) + (0×2^0) = 16 + 0 + 0 + 2 + 0 = 18_{10}

Difference: 2818=1028 - 18 = 10

Convert 10 to binary:

DevidedQuotientRemainder
10 ÷ 250
5 ÷ 221
2 ÷ 210
1 ÷ 201

1010=1010210_{10} = 1010_2

Historical insight

Binary arithmetic was first conceptualized by Gottfried Wilhelm Leibniz in the 17th century, who recognized the efficiency of a system using only two digits. In 1703, he published a paper describing how all numbers and logical processes could be represented using 1s and 0s. His work laid the foundation for modern computing centuries before electronic computers were invented.

The first computers in the mid-20th century, such as the ENIAC and UNIVAC, utilized binary processing to perform logical and arithmetic operations, forming the mathematical backbone of today’s technology.

Frequently asked questions

How to add 1010₂ and 111₂?

Convert to decimal → 10102=10101010_2 = 10_{10}, 1112=710111_2 = 7_{10}.
Sum → 10+7=1710 + 7 = 17.
Convert back → 1710=10001217_{10} = 10001_2.
Answer: 10102+1112=1000121010_2 + 111_2 = 10001_2.

How to subtract 1000₂ - 11₂?

Convert to decimal → 10002=8101000_2 = 8_{10}, 112=31011_2 = 3_{10}.
Subtract → 83=5108 - 3 = 5_{10}.
Convert back → 510=10125_{10} = 101_2.
Answer: 10002112=10121000_2 - 11_2 = 101_2.

How to divide 11110₂ by 10₂?

Convert to decimal → 111102=301011110_2 = 30_{10}, 102=21010_2 = 2_{10}.
Divide → 30÷2=151030 ÷ 2 = 15_{10}.
Convert back → 1510=1111215_{10} = 1111_2.
Answer: 111102÷102=1111211110_2 ÷ 10_2 = 1111_2.

Report a bug

This field is required.