Skip to main content
HS Calculadora
Math

Binary Calculator

Calculate binary addition, subtraction or multiplication and see your result in binary and decimal.

Quick answer

Calculate binary addition, subtraction or multiplication and see your result in binary and decimal. Formula: Binary arithmetic uses the same place-value rules as decimal arithmetic, with powers of two instead of powers of ten.

1010₂+11₂=1101₂, which is 10+3=13 in decimal.

Use digits 0 and 1 only, up to 40 bits.

Use unsigned binary integers. A minus sign may appear in the result.

Results update as you type.

Binary result
1101
Decimal result13
Decimal remainder0

How it works

Binary arithmetic uses the same place-value rules as decimal arithmetic, with powers of two instead of powers of ten. This tool converts the two unsigned operands into exact integers, performs the requested operation, and returns binary and decimal forms. Operands may contain up to forty bits. Results outside JavaScript’s safe integer range are rejected rather than rounded. Division is integer division with a separate decimal remainder, and division by zero is invalid. Negative subtraction results use a minus sign, not two’s complement. Use it to practise carries and borrows in binary, verify small digital-arithmetic examples or check integer division without manually converting every intermediate value. It performs arithmetic, unlike a simple binary-to-decimal converter. Leading zeros do not change a value. A remainder belongs to the original divisor, so quotient times divisor plus remainder must reconstruct the dividend. For fixed-width hardware overflow or two’s-complement encoding, apply the appropriate bit-width rules separately. Inputs are First binary integer, Second binary integer, Operation. Results show Binary result, Decimal result, Decimal remainder. 1010₂+11₂=1101₂, which is 10+3=13 in decimal.

Formula

Convert base-2 operands to integers; apply operation; express result in base 2

Binary arithmetic uses the same place-value rules as decimal arithmetic, with powers of two instead of powers of ten. This tool converts the two unsigned operands into exact integers, performs the requested operation, and returns binary and decimal forms. The calculation uses Convert base-2 operands to integers; apply operation; express result in base 2.

Source:OpenStax: Algebra and Trigonometry; standard algebraic identities

We review all our tools from time to time to ensure accuracy.

Worked example

First binary integer:1010Second binary integer:11Operation:add
1010₂+11₂=1101₂, which is 10+3=13 in decimal.

How to use this calculator

  1. 1

    Enter your values

    Enter first binary integer, second binary integer and operation.

  2. 2

    Adjust the options

    Fine-tune any options to match your situation.

  3. 3

    Read your result

    Binary result updates instantly as you type — no button to press.

Frequently asked questions

How does the binary calculation work?

Binary arithmetic uses the same place-value rules as decimal arithmetic, with powers of two instead of powers of ten. This tool converts the two unsigned operands into exact integers, performs the requested operation, and returns binary and decimal forms. The model is written as Convert base-2 operands to integers; apply operation; express result in base 2.

Which inputs and units should I use?

Inputs are First binary integer, Second binary integer, Operation. Results show Binary result, Decimal result, Decimal remainder. Leading zeros do not change a value. A remainder belongs to the original divisor, so quotient times divisor plus remainder must reconstruct the dividend. For fixed-width hardware overflow or two’s-complement encoding, apply the appropriate bit-width rules separately.

What are the limits of this calculation?

Operands may contain up to forty bits. Results outside JavaScript’s safe integer range are rejected rather than rounded. Division is integer division with a separate decimal remainder, and division by zero is invalid. Negative subtraction results use a minus sign, not two’s complement. Leading zeros do not change a value. A remainder belongs to the original divisor, so quotient times divisor plus remainder must reconstruct the dividend. For fixed-width hardware overflow or two’s-complement encoding, apply the appropriate bit-width rules separately.

When is this result useful?

Use it to practise carries and borrows in binary, verify small digital-arithmetic examples or check integer division without manually converting every intermediate value. It performs arithmetic, unlike a simple binary-to-decimal converter. Binary arithmetic uses the same place-value rules as decimal arithmetic, with powers of two instead of powers of ten. This tool converts the two unsigned operands into exact integers, performs the requested operation, and returns binary and decimal forms.

How can I check the worked example?

1010₂+11₂=1101₂, which is 10+3=13 in decimal. Leading zeros do not change a value. A remainder belongs to the original divisor, so quotient times divisor plus remainder must reconstruct the dividend. For fixed-width hardware overflow or two’s-complement encoding, apply the appropriate bit-width rules separately. Binary arithmetic uses the same place-value rules as decimal arithmetic, with powers of two instead of powers of ten. This tool converts the two unsigned operands into exact integers, performs the requested operation, and returns binary and decimal forms.

More Math calculators

Math

Fraction Calculator

Add, subtract, multiply or divide two fractions.

Math

System of Equations Calculator (2×2)

Solve two linear equations in two unknowns with Cramer's rule.

Math

Prime Factorization Calculator

Break a number into its prime factors.