How To Go From Decimal To Binary

3 min read

Learning how to go from decimal to binary is an essential skill in computer science, programming, electronics, and digital mathematics. Decimal is the number system people use every day, while binary relies on only two digits: 0 and 1. Computers represent numbers, instructions, images, and almost every other kind of digital information in binary. Worth adding: the conversion process is not difficult once you understand that each binary position represents a power of 2. By repeatedly dividing by 2, identifying the remainder, and then reading those remainders in reverse order, you can convert almost any decimal integer into its binary equivalent.

Understanding Decimal and Binary

The decimal system, also called base 10, uses ten symbols:

0, 1, 2, 3, 4, 5, 6, 7, 8, and 9

Each position has a value based on a power of 10. To give you an idea, the number 2,465 is interpreted as:

  • 2 in the thousands place: 2 × 1,000
  • 4 in the hundreds place: 4 × 100
  • 6 in the tens place: 6 × 10
  • 5 in the ones place: 5 × 1

The binary system, also called base 2, uses only two symbols:

0 and 1

Each position represents a power of 2:

Binary position Power Decimal value
Rightmost 2⁰ 1
Next 2¹ 2
Next 2² 4
Next 2³ 8
Next 2⁴ 16
Next 2⁵ 32
Next 2⁶ 64
Next 2⁷ 128

Take this: the binary number 1101 means:

1 × 8 + 1 × 4 + 0 × 2 + 1 × 1 = 13

To convert decimal to binary, you are essentially determining which powers of 2 are needed to create the original decimal number Less friction, more output..

Method 1: Repeated Division by 2

The most common way to convert a decimal integer to binary is to divide it by 2 repeatedly.

Step-by-Step Instructions

  1. Divide the decimal number by 2.
  2. Write down the remainder, which must be either 0 or 1.
  3. Divide the quotient by 2.
  4. Continue recording the remainder after every division.
  5. Stop when the quotient becomes 0.
  6. Read the recorded remainders from bottom to top.

The remainders form the binary digits. Reading them in the wrong direction is one of the most common mistakes, so pay special attention to the final result That alone is useful..

Example: Converting 45 to Binary

Start with 45 and divide it by 2:

Division Quotient Remainder
45 ÷ 2 22 1
22 ÷ 2 11 0
11 ÷ 2 5 1
5 ÷ 2 2 1
2 ÷ 2 1 0
1 ÷ 2 0 1

The remainders were recorded as:

1, 0, 1, 1, 0, 1

Read them from bottom to top:

101101

Therefore:

45₁₀ = 101101₂

You can verify the answer by calculating the place values:

**1 × 32 + 0 × 16 + 1 × 8 + 1 × 4 + 0 × 2 + 1 × 1 =

New This Week

Straight from the Editor

Neighboring Topics

If This Caught Your Eye

Thank you for reading about How To Go From Decimal To Binary. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home