Binary Calculator — Free Online Binary Converter and Arithmetic
Convert between binary and decimal numbers and perform binary arithmetic operations including addition, subtraction, multiplication, and division.
Conversion Results
Decimal to Binary
42 = 101010
Binary to Decimal
101010 = 42
Binary to Hexadecimal
101010 = 0x2A
Binary-Decimal Conversion Reference
| Decimal | Binary | Hex | Bits |
|---|---|---|---|
| 1 | 1 | 1 | 1 |
| 10 | 1010 | A | 4 |
| 42 | 101010 | 2A | 6 |
| 100 | 1100100 | 64 | 7 |
| 255 | 11111111 | FF | 8 |
| 1000 | 1111101000 | 3E8 | 10 |
| 65535 | 1111111111111111 | FFFF | 16 |
Related Calculators
Hex Calculator
Convert and perform arithmetic with hexadecimal numbers. Hex to decimal, binary, and more.
GCF Calculator
Find the Greatest Common Factor of two or more numbers using the Euclidean algorithm.
Number Sequence Calculator
Analyze arithmetic, geometric, and Fibonacci sequences with pattern detection.
Scientific Calculator
Advanced calculations with trigonometry, logarithms, and scientific functions.
Percentage Calculator
Calculate percentages, percentage change, and more with five operation modes.
Grade Calculator
Calculate weighted grades and GPA across multiple assignments and courses.
About this calculator
Binary Conversion Formulas
Binary to Decimal
D = b(n) x 2^n + b(n-1) x 2^(n-1) + ... + b(1) x 2 + b(0) x 1 Decimal to Binary
Repeatedly divide by 2, read remainders bottom-to-top Binary Addition Rules
0+0=0, 0+1=1, 1+0=1, 1+1=10 (carry 1) Variables Explained
- b(n), b(n-1), ..., b(0): The individual binary digits (bits), where b(0) is the rightmost (least significant) bit and b(n) is the leftmost (most significant) bit.
- 2^n: The positional weight of each bit. From right to left: 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, and so on (powers of 2).
- D: The decimal (base-10) equivalent of the binary number.
Step-by-Step Example
Convert binary 10110101 to decimal:
- Write the positional values: 128, 64, 32, 16, 8, 4, 2, 1
- Multiply each by the corresponding bit: 1x128 + 0x64 + 1x32 + 1x16 + 0x8 + 1x4 + 0x2 + 1x1
- Sum: 128 + 0 + 32 + 16 + 0 + 4 + 0 + 1 = 181
Binary 10110101 = decimal 181. To convert back: 181/2=90 R1, 90/2=45 R0, 45/2=22 R1, 22/2=11 R0, 11/2=5 R1, 5/2=2 R1, 2/2=1 R0, 1/2=0 R1. Reading remainders bottom-to-top: 10110101, confirming the conversion.
Sources
- Khan Academy — Number Systems: khanacademy.org
- Math is Fun — Binary Number System: mathsisfun.com
- Purplemath — Number Bases: purplemath.com
Disclaimer: This calculator is for informational and educational purposes only. Results are estimates and may not reflect exact values.
Last updated: November 3, 2026