Binary Calculator
Calculate binary instantly in your browser.
Loading calculator…
What this tool does
Calculate binary instantly in your browser. Nonnegative binary integers; subtraction may give a negative (sign-magnitude) result and division is integer division with a remainder.
How to use the Binary Calculator
- Enter or select first binary number.
- Enter or select second binary number.
- Enter or select operation.
- Read the calculated result; change any measurement to compare alternatives.
Formula
Binary arithmetic works like decimal arithmetic but each digit is only 0 or 1 and you carry at 2 instead of 10; the calculator converts to integers, operates exactly, and converts back.
- a
- First binary number
- b
- Second binary number
- op
- Operation
Nonnegative binary integers; subtraction may give a negative (sign-magnitude) result and division is integer division with a remainder.
Worked example
For binary calculator, the following measurements illustrate the exact method: First binary number: 1010; Second binary number: 0101; Operation: add.
Inputs
- First binary number1010
- Second binary number0101
- OperationAdd
Result
- Result (binary)1111
- Result (decimal)15
- First number (decimal)10
- Second number (decimal)5
Results explained
- Result (binary)
- Result (binary) from the formula above. Nonnegative binary integers; subtraction may give a negative (sign-magnitude) result and division is integer division with a remainder.
- Result (decimal)
- Result (decimal) from the formula above. Nonnegative binary integers; subtraction may give a negative (sign-magnitude) result and division is integer division with a remainder.
- First number (decimal)
- First number (decimal) from the formula above. Nonnegative binary integers; subtraction may give a negative (sign-magnitude) result and division is integer division with a remainder.
- Second number (decimal)
- Second number (decimal) from the formula above. Nonnegative binary integers; subtraction may give a negative (sign-magnitude) result and division is integer division with a remainder.
Frequently asked questions
Binary arithmetic works like decimal arithmetic but each digit is only 0 or 1 and you carry at 2 instead of 10; the calculator converts to integers, operates exactly, and converts back.
Nonnegative binary integers; subtraction may give a negative (sign-magnitude) result and division is integer division with a remainder.
Where mathematically meaningful, yes. Fields specify permitted ranges and undefined operations display an error.
Exact integer calculations use safe integers; decimal calculations use browser floating point, so small rounding differences can occur.
All values remain in your browser and are never uploaded.