Base 2 to Base 10

Binary to Decimal Converter

In positional binary notation, each bit represents a power of 2. Multiply each binary digit by 2 raised to its position index (starting from 0 on the far right) and sum the values.

Allowed: 0, 1
base 2
Examples:
Decimal Result (Primary Target)base 10
10
Octal (base 8)
12
Hexadecimal (base 16)
A

Step-by-Step Calculation Steps

Positional Notation Formula
Sum each digit multiplied by 2 raised to its position power (from right to left, starting at 0):
Expanded Sum
1010 (Binary) = (1 × 2^3) + (0 × 2^2) + (1 × 2^1) + (0 × 2^0)
Decimal Result
= 10 (base 10)

How to Convert Binary to Decimal

In positional binary notation, each bit represents a power of 2. Multiply each binary digit by 2 raised to its position index (starting from 0 on the far right) and sum the values.

Conversion Formula / Rule
Decimal = Σ (d_n × 2ⁿ) for n = 0 to length - 1

Worked Example: 10101 (Binary) to Decimal

Problem Convert 10101 (base 2) into base 10
Step-by-Step Solution
  1. Identify bit positions from right: 1×2⁴ + 0×2³ + 1×2² + 0×2¹ + 1×2⁰
  2. Evaluate powers of 2: 1×16 + 0×8 + 1×4 + 0×2 + 1×1
  3. Sum the evaluated terms: 16 + 0 + 4 + 0 + 1
  4. Final decimal value = 21
Final Result 21 (Decimal)

Quick Conversion Reference Table (0–15)

Standard values across Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16):

Decimal (10) Binary (2) Octal (8) Hexadecimal (16)
0 0000 0 0
1 0001 1 1
2 0010 2 2
3 0011 3 3
4 0100 4 4
5 0101 5 5
6 0110 6 6
7 0111 7 7
8 1000 10 8
9 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F

Image preview

Fit