Binary to Decimal and Decimal to Binary Conversion for Classes 6 to 8

Computer Science study notes for Classes 6 to 8, with examples, practice questions and answers.

In short: Converting binary to decimal involves multiplying each bit by its corresponding power of two and summing the results. To carry out decimal to binary conversion, you divide the decimal number repeatedly by two and record the remainders from bottom to top.

Every computer game, video call, and digital document relies on a language of just two digits: 0 and 1. Learning how to convert binary to decimal helps students in Classes 6 to 8 understand how digital computers translate electrical pulses into human-readable numbers. In this guide, we explore the place value systems of base 2 and base 10, walk through clear examples, and provide practice exercises to build confidence for school examinations across CBSE, ICSE, IGCSE, and IB curricula.

Understanding binary numbers and place values

To master number conversions, it helps to understand how our everyday counting system works. We normally use the decimal system, which is also called denary or base 10. The decimal system uses ten distinct digits, from 0 to 9. The value of any digit depends entirely on its position in the number, moving from right to left in increasing powers of 10.

For instance, consider the decimal number 345. We break it down using powers of ten:

  • The digit 5 is in the units place: 5 × 100 = 5 × 1 = 5
  • The digit 4 is in the tens place: 4 × 101 = 4 × 10 = 40
  • The digit 3 is in the hundreds place: 3 × 102 = 3 × 100 = 300
  • Adding these together gives 300 + 40 + 5 = 345.

Computers do not have ten fingers to count on. Inside a computer processor, information travels through tiny electronic switches called transistors. A transistor can be in only one of two states: switched off (represented by 0) or switched on (represented by 1). Because there are only two possible symbols, this counting system is called base 2, and the values are known as binary numbers. Each individual digit in a binary number is called a bit, which is short for "binary digit".

Just like the decimal system, the binary system relies on positional place values. However, instead of multiplying by 10 as you move left, you multiply by 2. The place values for binary digits start at 20 = 1 on the far right and double with every step to the left:

Power of 2 27 26 25 24 23 22 21 20
Place value 128 64 32 16 8 4 2 1
Calculation 2 × 2 × 2 × 2 × 2 × 2 × 2 2 × 2 × 2 × 2 × 2 × 2 2 × 2 × 2 × 2 × 2 2 × 2 × 2 × 2 2 × 2 × 2 2 × 2 2 1

Notice that any non-zero number raised to the power of zero equals 1. Remembering this sequence of doubling numbers (1, 2, 4, 8, 16, 32, 64, 128) is the single most useful skill for fast, accurate binary conversion.

How to convert binary to decimal using positional notation

The standard method to convert a number from binary to decimal is positional expansion. Because each bit is either 0 or 1, you only need to identify which place values are active (turned ON) and add them together.

Here is the four-step method to follow:

  1. Write down the binary string: Space the digits out neatly so that you have room to write beneath each bit.
  2. Assign place values from right to left: Directly under the rightmost bit, write 1 (since 20 = 1). Moving leftwards, write 2, 4, 8, 16, and keep doubling the value for every additional digit.
  3. Multiply each bit by its place value: If the bit is 1, keep that place value. If the bit is 0, the product is 0.
  4. Sum the active values: Add all the non-zero place values together. The resulting sum is your decimal answer.

To avoid confusing which base a number belongs to, mathematicians write the base as a small subscript. For example, (1011)2 indicates a base-2 binary value, whilst 1110 represents a base-10 decimal value.

Step-by-step binary to decimal worked examples

Let us walk through three complete examples, moving from shorter four-bit numbers up to longer seven-bit numbers.

Example 1: Convert the binary number (1101)2 into its decimal equivalent.

First, write down the four bits and match them to their respective powers of two, working from right to left:

  • Fourth bit from right (23 = 8): 1 × 8 = 8
  • Third bit from right (22 = 4): 1 × 4 = 4
  • Second bit from right (21 = 2): 0 × 2 = 0
  • First bit from right (20 = 1): 1 × 1 = 1

Now, add the values together:

8 + 4 + 0 + 1 = 13

Therefore, (1101)2 = 1310.

Example 2: Convert the six-bit binary number (101110)2 into decimal.

Write out the place values for the six positions: 32, 16, 8, 4, 2, 1.

Match each bit to its place value:

  • 1 in the 32s place = 32
  • 0 in the 16s place = 0
  • 1 in the 8s place = 8
  • 1 in the 4s place = 4
  • 1 in the 2s place = 2
  • 0 in the 1s place = 0

Now, sum all active numbers:

32 + 0 + 8 + 4 + 2 + 0 = 46

Therefore, (101110)2 = 4610.

Example 3: Convert the seven-bit binary number (1100101)2 to decimal.

Write down the place values for seven digits: 64, 32, 16, 8, 4, 2, 1.

Pair each digit with its corresponding value:

  • 1 × 64 = 64
  • 1 × 32 = 32
  • 0 × 16 = 0
  • 0 × 8 = 0
  • 1 × 4 = 4
  • 0 × 2 = 0
  • 1 × 1 = 1

Add the products:

64 + 32 + 4 + 1 = 101

Therefore, (1100101)2 = 10110.

How to convert decimal to binary using repeated division

Now let us look at the reverse direction: converting decimal to binary. The most dependable technique taught in middle-school computer science is the repeated division-by-2 method, often called the ladder method.

Because binary is base 2, dividing by 2 isolates whether each position needs a 0 or a 1. When an integer is divided by 2, the remainder can only ever be 0 (if the number is even) or 1 (if the number is odd).

Follow these steps carefully:

  1. Divide by 2: Take your decimal integer and divide it by 2.
  2. Record the remainder: Write down the integer quotient beneath the number, and write the remainder (either 0 or 1) beside it in a separate column.
  3. Repeat until the quotient is zero: Take the new quotient, divide it by 2 again, and record the new remainder. Continue this process until your quotient becomes 0.
  4. Read remainders from bottom to top: This step is crucial. The very last remainder you calculated is the Most Significant Bit (MSB), which forms the leftmost digit of your binary answer. The very first remainder you calculated is the Least Significant Bit (LSB), which sits on the far right.

Example 4: Convert the decimal number 2510 into binary using repeated division.

Perform the division step by step:

  • 25 ÷ 2 = 12 with a remainder of 1 (First remainder: LSB, units place)
  • 12 ÷ 2 = 6 with a remainder of 0
  • 6 ÷ 2 = 3 with a remainder of 0
  • 3 ÷ 2 = 1 with a remainder of 1
  • 1 ÷ 2 = 0 with a remainder of 1 (Last remainder: MSB, highest place)

Now, collect the remainders reading strictly from bottom to top: 1, 1, 0, 0, 1.

Therefore, 2510 = (11001)2.

Quick check: 16 + 8 + 0 + 0 + 1 = 25. The answer is verified.

Example 5: Convert the decimal number 7710 into binary.

Carry out repeated division by 2:

  • 77 ÷ 2 = 38 with remainder 1
  • 38 ÷ 2 = 19 with remainder 0
  • 19 ÷ 2 = 9 with remainder 1
  • 9 ÷ 2 = 4 with remainder 1
  • 4 ÷ 2 = 2 with remainder 0
  • 2 ÷ 2 = 1 with remainder 0
  • 1 ÷ 2 = 0 with remainder 1

Reading the remainders from bottom to top gives: 1, 0, 0, 1, 1, 0, 1.

Therefore, 7710 = (1001101)2.

Quick check: 64 + 8 + 4 + 1 = 77. The answer is verified.

Converting decimal to binary using powers of two

While repeated division is great for written homework, there is an alternative mental maths strategy called the subtraction method or the descending powers of two method. Many students find this method faster once they have memorised the powers of 2 up to 128.

The logic is simple: you fit the largest possible power of two into your decimal number, subtract it, and repeat with the remainder.

  1. List the powers of two that are smaller than or equal to your decimal number in descending order (for example: 64, 32, 16, 8, 4, 2, 1).
  2. Compare the decimal number to the highest power in your list. If the power fits, place a 1 in that position and subtract the power from your number. If it does not fit, place a 0 in that position and keep your number unchanged.
  3. Move to the next smaller power of two and test your remaining balance. Repeat the question: can I subtract this power? If yes, write 1 and subtract; if no, write 0.
  4. Continue until you reach 20 = 1. Your final remainder will always be 0.

Example 6: Convert 5810 to binary using the subtraction method.

The powers of two up to 58 are: 32, 16, 8, 4, 2, 1 (since 64 is greater than 58, we start at 32).

  • 32s place: 58 is greater than or equal to 32. Write 1. Remaining balance: 58 - 32 = 26.
  • 16s place: 26 is greater than or equal to 16. Write 1. Remaining balance: 26 - 16 = 10.
  • 8s place: 10 is greater than or equal to 8. Write 1. Remaining balance: 10 - 8 = 2.
  • 4s place: 2 is smaller than 4. Write 0. Remaining balance remains 2.
  • 2s place: 2 is greater than or equal to 2. Write 1. Remaining balance: 2 - 2 = 0.
  • 1s place: Balance is 0, so 1 does not fit. Write 0.

Combining the bits in order from left to right gives: 1, 1, 1, 0, 1, 0.

Therefore, 5810 = (111010)2.

Quick check: 32 + 16 + 8 + 2 = 58. The answer is verified.

Common mistakes

Even when students understand the basic theory, small clerical slips often lead to lost marks in school tests. Review this table to protect your scores:

Mistake Correct Why
Reading division remainders from top to bottom. Always write down the remainders from bottom to top (last remainder first). The first division extracts the units bit (20), while the final division produces the highest power of 2 (MSB).
Writing binary place values starting from left to right. Start writing place values at the far right with 1, then double moving towards the left. Positional number systems place the smallest unit on the right, identical to the units place in decimal numbers.
Treating the 20 place value as 0 or 2. Remember that 20 = 1. The rightmost column is always worth 1. Any non-zero base raised to the power of 0 equals 1. Forgetting this turns odd decimal numbers into even ones.
Leaving out zero bits when converting using subtraction. Write down a 0 for every power of two that does not fit into your balance. Skipping zero placeholders shifts all subsequent digits to the wrong place values, drastically shrinking the number.
Writing digits other than 0 and 1 in a binary number. Binary numbers may only ever contain the symbols 0 and 1. Base 2 rolls over when counting reaches two: 0, 1, 10. A digit like 2, 3, or 5 cannot exist in pure binary notation.

Practice questions

Work through these ten questions on paper before opening the answers. Regular pencil-and-paper practice ensures speed and confidence in school exams.

  1. Convert the binary number (1001)2 into decimal.
    Answer

    Place values for 4 bits: 8, 4, 2, 1.

    Calculation: (1 × 8) + (0 × 4) + (0 × 2) + (1 × 1) = 8 + 0 + 0 + 1 = 910.

  2. Convert the decimal number 1810 into binary.
    Answer

    Using division by 2:

    18 ÷ 2 = 9 rem 0

    9 ÷ 2 = 4 rem 1

    4 ÷ 2 = 2 rem 0

    2 ÷ 2 = 1 rem 0

    1 ÷ 2 = 0 rem 1

    Reading bottom to top gives (10010)2. Check: 16 + 2 = 18.

  3. Convert the four-bit binary number (1111)2 to decimal.
    Answer

    Place values: 8, 4, 2, 1.

    Calculation: 8 + 4 + 2 + 1 = 1510.

    Tip: An all-ones binary number of length n always equals 2n - 1. Here, 24 - 1 = 16 - 1 = 15.

  4. Convert the decimal number 3510 to binary.
    Answer

    Using the powers of two method (32, 16, 8, 4, 2, 1):

    35 - 32 = 3 (put 1 in 32s place)

    16 does not fit (put 0)

    8 does not fit (put 0)

    4 does not fit (put 0)

    3 - 2 = 1 (put 1 in 2s place)

    1 - 1 = 0 (put 1 in 1s place)

    Result: (100011)2.

  5. Convert the binary number (10101)2 into decimal.
    Answer

    Place values for 5 bits: 16, 8, 4, 2, 1.

    Active positions: 16 + 0 + 4 + 0 + 1 = 2110.

  6. Convert the decimal number 5010 into binary.
    Answer

    Using division by 2:

    50 ÷ 2 = 25 rem 0

    25 ÷ 2 = 12 rem 1

    12 ÷ 2 = 6 rem 0

    6 ÷ 2 = 3 rem 0

    3 ÷ 2 = 1 rem 1

    1 ÷ 2 = 0 rem 1

    Reading bottom to top gives (110010)2. Check: 32 + 16 + 2 = 50.

  7. Convert the binary number (110110)2 into decimal.
    Answer

    Place values for 6 bits: 32, 16, 8, 4, 2, 1.

    Active positions: 32 + 16 + 0 + 4 + 2 + 0 = 5410.

  8. Convert the decimal number 6310 into binary.
    Answer

    Notice that 63 is one less than 64 (26 - 1). Therefore, it requires six ones: (111111)2.

    Check: 32 + 16 + 8 + 4 + 2 + 1 = 63.

  9. Which number is larger: (11000)2 or 2310?
    Answer

    Convert (11000)2 to decimal: (1 × 16) + (1 × 8) + 0 + 0 + 0 = 2410.

    Comparing the two values: 24 is greater than 23.

    Therefore, (11000)2 is larger.

  10. What is the decimal value of the largest five-bit binary number (11111)2?
    Answer

    Place values: 16, 8, 4, 2, 1.

    Sum: 16 + 8 + 4 + 2 + 1 = 3110.

    Alternatively, use the formula 25 - 1 = 32 - 1 = 3110.

Frequently asked questions

Why do computers use binary numbers instead of decimal numbers?
Computers are built from electronic circuits containing microscopic switches called transistors. It is physically simple and reliable for hardware to detect two states: low voltage (OFF or 0) and high voltage (ON or 1). Trying to reliably distinguish ten different voltage levels for decimal digits would cause electrical noise, overheating, and frequent calculation errors.
What is the difference between a bit and a byte?
A bit is the smallest unit of digital data and holds either a single 0 or 1. A byte is a collection of 8 bits grouped together. For example, 10110010 is one byte of data. A single byte can represent 256 different values, ranging from 0 up to 255 in decimal.
How can you tell immediately if a binary number is even or odd?
Look at the very last digit on the far right (the units bit, 20). Every other binary place value (2, 4, 8, 16, 32, etc.) is an even number. Therefore, if the rightmost bit is 1, the decimal number is always odd. If the rightmost bit is 0, the decimal number is always even.
Can a binary number contain digits like 2, 3, or 4?
No. Binary is base 2, meaning it strictly permits only two numerical symbols: 0 and 1. If you see a number written with digits like 2 or 7, it is either a decimal number, an octal number (base 8), or an error.
What is the easiest way to check if my binary conversion is correct?
Always convert your answer back in the opposite direction. If you converted a decimal number to binary using repeated division, immediately write the place values (1, 2, 4, 8...) over your binary digits and sum them up. If the total matches your original decimal number, you can be completely certain your solution is correct.
Which school boards cover binary numbers in Classes 6 to 8?
Binary representation forms an integral unit in the Class 6 to 8 Computer Science syllabuses for ICSE and CBSE schools across India. It is also an essential topic in Cambridge Lower Secondary and Cambridge IGCSE, as well as the International Baccalaureate Middle Years Programme (IB MYP), preparing students for higher-level computer programming and data representation.

Related topics

Written by the Reportcards mentor team. Updated 26 November 2026.

Personal academic mentorship

Personal computer science mentorship in small batches

In Adarsh Nagar, Jaipur, and live online, KG to Class 12 students learn in batches of about six with one mentor. Founder Dr. Vishruti Arora brings 20+ years of mentoring across CBSE, ICSE/ISC, Cambridge IGCSE and IB.

WhatsApp +91 97835 96795. We reply within one working day.

MentorshipKG to Class 12

  • Small batches of about six with one mentor
  • 704, Frontier Colony, Jaipur, or live online
  • Classes Monday to Saturday, 3pm to 10pm