🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › IT Support / Networking › Universal Core: Safety, Math, Communication & Career for IT Support & Networking › Lesson 3
TEC-ITS43-01 · Lesson 3 · 20 clock hours · theory

Trade Math I: Number Systems and Binary Arithmetic (CompTIA A+ / Network+ / CCST / CCNA)

Objective. Students will convert values among binary, decimal, and hexadecimal number systems and perform binary AND operations needed for IPv4 subnet mask calculations, without a calculator, at the accuracy level required on CompTIA and Cisco certification exams.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Why Number Systems Matter in IT

Every certification exam you will sit — CompTIA A+, Network+, Cisco CCST, and CCNA — tests your ability to work with binary, decimal, and hexadecimal numbers without a calculator. Subnetting questions alone can account for a significant portion of your networking exam score. Mastering these conversions by hand is not optional; it is a core trade skill.

The Three Number Systems

Decimal (Base 10) is the everyday system. It uses digits 0–9. Each position is a power of 10: ones, tens, hundreds, and so on.

Binary (Base 2) is the native language of digital hardware. It uses only two digits: 0 and 1. Each position is a power of 2. An 8-bit binary number (one octet) uses these place values from left to right:

| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |

|-----|----|----|----|---|---|---|---|

Memorise those eight values — they are the foundation of every subnetting calculation you will ever do.

Hexadecimal (Base 16) uses digits 0–9 and letters A–F, where A = 10, B = 11, C = 12, D = 13, E = 14, F = 15. Hex is used for MAC addresses, IPv6 addresses, color codes, and memory addressing. One hex digit represents exactly four binary bits (a nibble), which makes conversion between hex and binary straightforward.

Decimal to Binary Conversion

Use the subtraction (greedy) method:

1. Write out the eight place values: 128, 64, 32, 16, 8, 4, 2, 1.

2. Starting at 128, ask: "Does this value fit into my number?" If yes, write a 1 and subtract. If no, write a 0 and move right.

3. Continue until all eight positions are filled.

Practice until you can convert any decimal value between 0 and 255 in under 15 seconds. That speed is realistic and exam-necessary.

Binary to Decimal Conversion

Add up the place values wherever a 1 appears. For example, if bits 7, 5, 3, and 0 are set (counting from the left), you add 128 + 32 + 8 + 1.

Hexadecimal Conversions

Hex to decimal: Multiply the left digit by 16, add the right digit's value.

Decimal to hex: Divide by 16; the quotient is the left digit, the remainder is the right digit. If either result is 10–15, substitute the letter (A–F).

Hex to binary: Replace each hex digit with its 4-bit binary equivalent directly. No arithmetic needed.

Binary to hex: Group bits into sets of four from the right, then convert each group.

IPv4 Addressing Basics

An IPv4 address is 32 bits written as four decimal octets separated by dots (e.g., 192.168.10.50). A subnet mask is also 32 bits; it marks which portion of an address identifies the network versus the host. CIDR notation writes the mask as a prefix length — the number of consecutive 1 bits from the left.

Common prefix lengths and their last-octet masks:

| CIDR | Last-Octet Mask | Host Bits | Usable Hosts |

|------|-----------------|-----------|--------------|

| /24 | 255 | 8 | 254 |

| /25 | 128 | 7 | 126 |

| /26 | 192 | 6 | 62 |

| /27 | 224 | 5 | 30 |

| /28 | 240 | 4 | 14 |

| /29 | 248 | 3 | 6 |

| /30 | 252 | 2 | 2 |

Usable hosts = 2^(host bits) − 2 (subtract the network address and broadcast address).

The Binary AND Operation

A bitwise AND compares two bits at a time: the result is 1 only when both input bits are 1; otherwise the result is 0.

| A | B | A AND B |

|---|---|---------|

| 1 | 1 | 1 |

| 1 | 0 | 0 |

| 0 | 1 | 0 |

| 0 | 0 | 0 |

To find the network address, perform a binary AND between the host IP address and the subnet mask, bit by bit across all 32 bits.

The broadcast address is found by setting all host bits to 1 while keeping the network bits unchanged.

The usable host range is every address between the network address and the broadcast address, exclusive.

Safety and Professional Notes

Although this lesson is mathematical, it connects directly to safe and responsible network administration. Miscalculating a subnet mask in a production environment can isolate devices, create routing loops, or break security boundaries — outcomes that may affect safety systems, medical equipment networks, or industrial controls. Always verify subnet calculations with a second method (or a subnet calculator) before implementing changes. Document every change and follow your organization's change-control procedures. Good arithmetic is a form of professional safety.

Exam-Pace Practice Strategy

On CompTIA and Cisco exams, subnetting questions have time pressure. Build speed by drilling the eight place values daily until they are automatic. When a subnet question appears, convert each relevant octet to binary, line them up in columns on your scratch paper, AND them together, then read back the result. A systematic column approach on graph paper minimizes errors under pressure.

Key terms9

Binary (Base 2)A number system using only the digits 0 and 1; each position represents a power of 2. It is the native representation of data in digital hardware.
Hexadecimal (Base 16)A number system using digits 0–9 and letters A–F to represent values 0 through 15; one hex digit equals exactly four binary bits (a nibble).
OctetA group of eight binary bits; one octet represents one of the four dot-separated numbers in an IPv4 address, with values ranging from 0 to 255.
Subnet MaskA 32-bit value that identifies which portion of an IPv4 address is the network part and which is the host part; written in dotted-decimal or CIDR prefix notation.
CIDR NotationClassless Inter-Domain Routing notation; expresses a subnet mask as a slash followed by the count of consecutive 1 bits from the left (e.g., /26 = 26 ones, 6 zeros).
Bitwise ANDA logical operation applied to two binary numbers position by position; the result bit is 1 only when both corresponding input bits are 1. Used to calculate the network address from an IP address and subnet mask.
Network AddressThe first address in a subnet, found by ANDing the host IP with the subnet mask; all host bits are 0. This address is not assignable to a device.
Broadcast AddressThe last address in a subnet; all host bits are set to 1. Packets sent to this address are delivered to every host in the subnet. It is not assignable to a device.
Place ValueThe positional weight of a digit within a number; in binary the place values for an 8-bit octet are 128, 64, 32, 16, 8, 4, 2, and 1, from left to right.

Worked examples4

1. Convert the decimal value 201 to 8-bit binary.
  1. Write the eight place values: 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1.
  2. 128 fits into 201: write 1, subtract — 201 − 128 = 73.
  3. 64 fits into 73: write 1, subtract — 73 − 64 = 9.
  4. 32 does not fit into 9: write 0.
  5. 16 does not fit into 9: write 0.
  6. 8 fits into 9: write 1, subtract — 9 − 8 = 1.
  7. 4 does not fit into 1: write 0.
  8. 2 does not fit into 1: write 0.
  9. 1 fits into 1: write 1, subtract — 1 − 1 = 0.
  10. Result: 1 1 0 0 1 0 0 1
Answer: 11001001
2. Convert the hexadecimal value B4 to decimal.
  1. Identify each hex digit: B = 11, 4 = 4.
  2. The left digit (B = 11) occupies the 16s place: 11 × 16 = 176.
  3. The right digit (4) occupies the 1s place: 4 × 1 = 4.
  4. Add the two results: 176 + 4 = 180.
Answer: 180
3. A host has IP address 192.168.10.50 and subnet mask 255.255.255.192 (/26). Find the network address, broadcast address, and usable host range.
  1. Identify the interesting octet — the fourth octet, because the first three are all 255 (all network bits).
  2. Convert the host's fourth octet (50) to binary: 00110010.
  3. Convert the mask's fourth octet (192) to binary: 11000000.
  4. Perform binary AND on the fourth octets, bit by bit: 00110010 AND 11000000 = 00100000 = 32.
  5. Network address: 192.168.10.32 (all host bits set to 0).
  6. The mask leaves 6 host bits (32 − 26 = 6). Block size = 2^6 = 64.
  7. Broadcast address: network address + block size − 1 = 32 + 64 − 1 = 95. So broadcast = 192.168.10.95.
  8. Usable host range: 192.168.10.33 through 192.168.10.94.
  9. Verify: 2^6 − 2 = 62 usable hosts.
Answer: Network: 192.168.10.32 | Broadcast: 192.168.10.95 | Usable hosts: 192.168.10.33 – 192.168.10.94 (62 hosts)
4. Convert binary 10110110 to both decimal and hexadecimal.
  1. Write place values under each bit: 128|64|32|16|8|4|2|1 mapped to 1|0|1|1|0|1|1|0.
  2. Add the place values where a 1 appears: 128 + 32 + 16 + 4 + 2 = 182. Decimal = 182.
  3. For hex, split into two nibbles: 1011 and 0110.
  4. Left nibble 1011: 8 + 2 + 1 = 11 = B.
  5. Right nibble 0110: 4 + 2 = 6.
  6. Hex = B6.
Answer: Decimal: 182 | Hexadecimal: B6
In class: Complete a structured drill set: convert 20 decimal values to 8-bit binary and back, convert 10 hexadecimal values to decimal, and express 10 IPv4 octets in binary — timed at 2 minutes per block to build exam-pace fluency. · Work through six IPv4 subnetting prefix exercises using binary AND: given a host address and a subnet mask in CIDR notation (e.g., /24, /26, /28), calculate the network address, broadcast address, and usable host range by hand — results cross-checked with a subnet calculator after submission. · Play 'Binary Bingo': instructor calls decimal or hex values; students binary-convert and mark their boards — incorrect conversions are discussed immediately, reinforcing the place-value method.
Materials: Conversion drill worksheets, graph paper for binary columns, subnet mask reference table (RFC 950), free online subnet calculator for post-exercise verification, CompTIA Network+ Exam Objectives (current version), Cisco CCNA Exam Topics (current version)
Check: Timed written quiz: 20 conversion problems and 4 subnetting problems completed in 25 minutes; pass = 80% correct with no calculator.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

CompTIA A+ / Network+ — Hardware and Networking Fundamentals
1. What is the decimal value of the binary number 11010100?
CompTIA Network+ — Network Addressing
2. Which hexadecimal value is equivalent to the decimal number 172?
CompTIA Network+ / Cisco CCST — IP Addressing and Subnetting
3. A network administrator performs a binary AND of the host address octet 10101100 with the mask octet 11110000. What is the result in decimal?
CompTIA Network+ / Cisco CCNA — IP Subnetting
4. How many usable host addresses exist in a /28 subnet?
Cisco CCNA / CompTIA Network+ — IP Addressing
5. A host IP is 10.0.0.130 with a /25 mask. What is the network address?
Cisco CCNA / Cisco CCST — IP Subnetting
6. What is the broadcast address for the subnet 192.168.1.64/26?
CompTIA A+ — Number Systems
7. Which binary sequence correctly represents the hexadecimal value F0?
CompTIA Network+ / Cisco CCST — Subnetting
8. A technician needs to subnet a /27 network. What is the maximum number of usable host addresses per subnet?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.