Binary to Decimal Calculator
Convert binary numbers to decimal.
About Binary to Decimal Calculator
Binary (base 2) uses only 0 and 1. Each position represents a power of 2, from right to left.
$$(b_n...b_1b_0)_2 = \sum b_i \times 2^i$$
How to use this calculator
- Enter the binary number, such as 101101.
- Make sure each digit is only 0 or 1.
- Check the result in decimal, which is the base 10 form.
- Use the step-by-step breakdown to see how each bit contributes to the total.
The formula explained
A binary number \((b_n...b_1b_0)_2\) is converted by adding each bit times its power of 2, so the formula computes the decimal value of the binary string. The rightmost bit is multiplied by \(2^0\), the next by \(2^1\), and so on.
- \(b_i\) = the bit at position i, which is either 0 or 1
- i = the position index of the bit, starting at 0 on the right
- n = the highest bit position in the binary number
Step by step method
- Write the binary number and label the positions from right to left starting at 0.
- Multiply each bit by its power of 2.
- Add the results together.
- The sum is the decimal number.
Worked example
Problem. Convert the binary number 101101 to decimal.
- Label the bits from right to left: 1, 0, 1, 1, 0, 1.
- Compute each place value: 1×2^5 = 32, 0×2^4 = 0, 1×2^3 = 8, 1×2^2 = 4, 0×2^1 = 0, 1×2^0 = 1.
- Add them: 32 + 0 + 8 + 4 + 0 + 1 = 45.
Answer. 101101_2 = 45_10
Tips and common mistakes
- Start counting powers of 2 from the rightmost digit, because that digit is always \(2^0\).
- If a binary digit is anything other than 0 or 1, the number is not valid binary.
Frequently asked questions
How do I use a binary to decimal calculator?+
Enter the binary number, then the calculator adds each bit times its matching power of 2 and gives the decimal result. For example, 1011 in binary becomes 1×8 + 0×4 + 1×2 + 1×1 = 11.
What does the formula (b_n...b_1b_0)2 = sum b_i × 2^i mean?+
It means each binary digit is multiplied by a power of 2 based on its position, starting from 2^0 on the right. Then all those values are added to get the decimal number.
What happens if my binary number has leading zeros?+
Leading zeros do not change the value, so 00101 and 101 both equal 5 in decimal. The calculator should treat them the same way.
Can this calculator convert fractional binary numbers too?+
If it only supports whole binary numbers, it will not convert bits after a binary point. For example, 10.1 in binary includes a fractional part, so it needs a tool that handles binary fractions.
How is binary to decimal different from hexadecimal to decimal?+
Binary uses base 2, so each position counts as a power of 2. Hexadecimal uses base 16, so each position counts as a power of 16, which is why the place values and digit symbols are different.
More Mathematics Tools
Explore related calculators in this category
Decimal to Binary Calculator
Convert decimal numbers to binary.
Decimal to Fraction Calculator
Convert a decimal number to a fraction.
Fraction to Decimal Calculator
Convert a fraction to its decimal representation.
Absolute Value Calculator
Calculate the absolute value of any number. Use this free calculator for fast, accurate answers, complete with the formula and a worked example.
You Might Also Like
Popular tools from other categories
Text to Binary
Convert text to binary code (8-bit ASCII) instantly. Free online text-to-binary translator.
.htaccess Generator
Generate common .htaccess rules, force HTTPS, www redirect, and caching, with checkboxes.
1031 Exchange Calculator - Free Online
Free Calculate tax deferral in a 1031 exchange. Step-by-step solutions and formulas included. Fast, accurate, and free, with formula and example.
4% Rule Calculator
Find the retirement nest egg you need using the 4% safe-withdrawal rule.
Can't Find the Right Calculator?
Try our AI Math Solver, type any problem in plain English and get instant step-by-step solutions.