Numbers form the foundation of how computers work, and understanding different ways to represent numbers helps explain how digital devices process information. The decimal system, also called base-10, is what most people use every day. In decimal, there are 10 possible digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. When you write the number 347, each digit holds a specific place value. The 3 represents three hundreds, the 4 represents four tens, and the 7 represents seven ones. These place values increase by powers of 10 as you move left.
Change Your iPhone Wallpaper Step-by-Step Guide →
Binary is a base-2 number system, meaning it uses only two digits: 0 and 1. Computers use binary because electronic circuits can easily represent these two states—0 for "off" and 1 for "on." In binary, place values increase by powers of 2 instead of powers of 10. For example, the binary number 1011 breaks down as: one 8, zero 4s, one 2, and one 1, which equals 11 in decimal. Each position in a binary number represents a power of 2, starting with 2⁰ (which equals 1) on the right side and increasing as you move left.
Learning to convert between these systems reveals how the same value can be expressed in different ways. A decimal number like 25 and a binary number like 11001 represent the same quantity, just written using different rules. Understanding this relationship is valuable for anyone working with computers, programming, or digital technology. The process of conversion involves recognizing place values and performing basic arithmetic.
Practical Takeaway: Decimal uses 10 digits and place values based on powers of 10, while binary uses 2 digits and place values based on powers of 2. Both systems represent the same values using different notation.
The most straightforward approach to converting a decimal number to binary involves repeatedly dividing by 2 and tracking the remainders. This method works for any whole number. Start by dividing your decimal number by 2 and write down the remainder (which will always be either 0 or 1). Then take the quotient (the result of the division) and divide it by 2 again, recording the remainder. Continue this process until the quotient becomes 0. The binary representation appears when you read the remainders from bottom to top, starting with the last remainder you calculated.
Free Guide to Certified Stations and Requirements →
Let's work through a concrete example: converting 45 to binary. Divide 45 by 2, which gives 22 with a remainder of 1. Divide 22 by 2, which gives 11 with a remainder of 0. Divide 11 by 2, which gives 5 with a remainder of 1. Divide 5 by 2, which gives 2 with a remainder of 1. Divide 2 by 2, which gives 1 with a remainder of 0. Finally, divide 1 by 2, which gives 0 with a remainder of 1. Reading the remainders from bottom to top gives you 101101, which is 45 in binary. You can verify this: 32 + 8 + 4 + 1 = 45.
This method works because of how positional notation functions. Each time you divide by 2, you're essentially determining whether that position should contain a 1 or 0. The remainder tells you whether that power of 2 is included in your number. This systematic approach removes guesswork and produces accurate results consistently. It also scales easily—whether you're converting 10 or 10,000, the steps remain the same.
Here's a useful organizational technique: create a three-column chart. In the first column, write the division operations. In the second column, record the quotient. In the third column, record the remainder. This visual layout helps prevent mistakes and makes the process easier to follow and review.
Practical Takeaway: Divide your decimal number by 2 repeatedly, record each remainder, and read the remainders from bottom to top to get your binary number.
Another effective approach to decimal-to-binary conversion uses an understanding of powers of 2. This method works particularly well for smaller numbers and helps build intuition about how binary numbers function. Begin by writing out the powers of 2 from right to left: 1, 2, 4, 8, 16, 32, 64, 128, 256, and so forth. Each position represents a power of 2, with the rightmost position being 2⁰ (which equals 1), the next being 2¹ (which equals 2), then 2² (which equals 4), continuing leftward with increasing powers.
Get Your Free Guide to Understanding Nordstrom →
To convert a decimal number using this method, find the largest power of 2 that doesn't exceed your number. Place a 1 in that position. Then subtract that value from your original number and repeat the process with the remainder. If a power of 2 doesn't fit into what remains, put a 0 in that position. Continue until you've accounted for all the value.
Let's convert 58 to binary using this technique. The largest power of 2 that fits into 58 is 32. So you place a 1 in the 32s position. Subtract 32 from 58, leaving 26. The next power of 2 (16) fits into 26, so place a 1 in the 16s position. Subtract 16 from 26, leaving 10. The next power of 2 (8) fits into 10, so place a 1 in the 8s position. Subtract 8 from 10, leaving 2. The power of 2 (4) doesn't fit into 2, so place a 0 in the 4s position. The power of 2 (2) does fit into 2, so place a 1 in the 2s position. Finally, 1 doesn't fit into what remains, so place a 0 in the 1s position. Reading your positions from left to right gives 111010, which is 58 in binary.
This method connects binary representation to real numeric values in a tangible way. You can visualize exactly which powers of 2 combine to create your number. Many people find this approach more intuitive because it doesn't rely on division, though it may require more steps for larger numbers.
Practical Takeaway: List powers of 2, find which ones sum to your decimal number, and place 1s in those positions and 0s elsewhere to build your binary number.
Seeing multiple worked examples helps solidify understanding of the conversion process. Let's examine several decimal numbers and convert them to binary using the division method, showing each step clearly so you can follow the logic and apply it to your own conversions.
How to Become a SWAT Team Member Guide →
Example 1: Convert 19 to binary. Nineteen divided by 2 equals 9 remainder 1. Nine divided by 2 equals 4 remainder 1. Four divided by 2 equals 2 remainder 0. Two divided by 2 equals 1 remainder 0. One divided by 2 equals 0 remainder 1. Reading remainders from bottom to top: 10011. Verification: 16 + 2 + 1 = 19. Correct.
Example 2: Convert 100 to binary. One hundred divided by 2 equals 50 remainder 0. Fifty divided by 2 equals 25 remainder 0. Twenty-five divided by 2 equals 12 remainder 1. Twelve divided by 2 equals 6 remainder 0. Six divided by 2 equals 3 remainder 0. Three divided by 2 equals 1 remainder 1. One divided by 2 equals 0 remainder 1. Reading remainders from bottom to top: 1100100. Verification: 64 + 32 + 4 = 100. Correct.
Example 3: Convert 7 to binary. Seven divided by 2 equals 3 remainder 1. Three divided by
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.