When to use Binary Calculator
Convert and do arithmetic with binary numbers.
Check number representations and prepare values for programming, scientific notation or precision-sensitive reporting.
How to use this tool
- Choose the calculation mode that matches your task and the information you have.
- Enter the inputs listed below. Follow the field format, and select units beside each supported quantity.
- Results update automatically. Review the main result and its breakdown. Use Clear to enter a new scenario.
- Binary number
- Decimal integer
- First number
- Operation
- Second number
How it works
Convert to decimal
Multiply each digit by its place value and add the results.
Convert from decimal
Divide by the base repeatedly and read the remainders in reverse order.
Arithmetic
Apply the operation in the selected base. Integer division returns a quotient truncated toward zero and a remainder.
Worked example
The examples below use fixed sample inputs. They explain the calculation and do not change when you edit the tool above.
Convert to decimal
- Binary number
- 10110
- Result
- 22
Convert from decimal
- Decimal integer
- 42
- Result
- 101010
Arithmetic
- First number
- 10110
- Operation
- Add
- Second number
- 10
- Result
- 11000
Understanding the result and its limits
Confirm the input base and rounding convention. Leading zeros and displayed digits are not always a statement of measurement accuracy.
Frequently asked questions
Does changing notation change the number?
An exact base or notation conversion preserves value. Rounding or limiting significant figures can change the represented value.
Methodology and references
Use the formulas and assumptions above when interpreting the example. Any practical estimate depends on the accuracy of the inputs.
- Further reading: OpenStax: mathematics reference