Math / calculator

Binary Calculator

Add, subtract, multiply or divide binary integers exactly and view decimal and hexadecimal results.

Calculator

Calculator

Calculate with binary integers.

Unsigned inputs contain only 0 and 1, up to 256 digits. Results may be negative. Division reports an exact integer quotient and remainder.

Operands and operation

Your result

Enter details to see the result.

Complete the inputs and calculate to see the main result and its supporting breakdown.

Example

Worked example

Example inputs

Operation
Add
First binary integer
1010
Second binary integer
1

Calculation breakdown

Interpret digits in base 2 and perform exact BigInt arithmetic. For division, a = quotient × b + remainder.

Decimal result
11
Hexadecimal result
B

Example result

Binary result

1011

Signed magnitude when negative; not two's-complement encoding.

How to interpret the result

Binary, decimal and hexadecimal outputs represent the same exact integer. A negative result uses a minus sign. For division, multiply the decimal quotient by the divisor and add the remainder to reconstruct the dividend.

How to use this calculator

  1. Choose addition, subtraction, multiplication or integer division.
  2. Enter two unsigned base-2 operands using only 0 and 1, up to 256 digits each.
  3. Calculate and compare binary, decimal and hex results; division also reports the exact remainder.

How it works

Formula

Interpret digits in base 2 and perform exact BigInt arithmetic. For division, a = quotient × b + remainder.

Does binary division round the answer?

Division truncates to an integer quotient and shows the exact remainder separately. For 1010 ÷ 11, decimal quotient is 3 and remainder is 1.

What this calculator does

Perform integer arithmetic on base-two values and inspect the same answer in decimal and hexadecimal.

Inputs you will need

Required or selected inputs

  • Operation
  • First binary integer
  • Second binary integer

Assumptions

  • Input operands are unsigned integers; negative results use a leading minus sign rather than two’s-complement encoding.

Limitations

  • Each operand is limited to 256 binary digits. Division returns an integer quotient and remainder; fractional binary expansions are not generated.

Useful next steps

Work directly with hexadecimal operands instead using Hex Calculator.

References

OpenStax: converting positional number bases — A digit's position determines its power-of-base value. This tool implements unsigned integer conversion with native BigInt, not floating-point encoding or signed two's complement.

See how HandyChest handles units, validation, rounding, and testing, or Report a problem with this calculator.

Good to know

Frequently asked questions

How are negative binary results represented?

A leading minus sign indicates signed magnitude, such as −1. The calculator does not choose a bit width or apply two’s-complement encoding.

Keep going