How Many /28 Subnets Fit Inside a /24?
Intermediate CalculateQuestion
You have the network 192.168.1.0/24 and want to divide it into smaller /28 subnets. How many /28 subnets can you create, and how many usable hosts does each one provide?
Given
{
"network": "192.168.1.0/24",
"target_prefix": 28
}
Answer
{
"subnet_count": 16,
"hosts_per_subnet": 14
}
Try to solve it first, then click Reveal Answer
Step-by-Step Explanation
Step 1: Calculate the number of borrowed bits
When you subdivide a larger block into smaller subnets, you borrow bits from the host portion:
borrowed_bits = target_prefix - original_prefix
borrowed_bits = 28 - 24 = 4
Step 2: Calculate the number of subnets
subnet_count = 2^borrowed_bits
subnet_count = 2^4 = 16
Step 3: Calculate hosts per subnet
Each /28 has:
host_bits = 32 - 28 = 4
total_per_sub = 2^4 = 16
usable_hosts = 16 - 2 = 14
Step 4: List all 16 subnets
The block size for a /28 is 16 (2^4). Starting from 192.168.1.0:
| Subnet # | Network | Broadcast | Host Range |
|---|---|---|---|
| 1 | 192.168.1.0 | 192.168.1.15 | .1 – .14 |
| 2 | 192.168.1.16 | 192.168.1.31 | .17 – .30 |
| 3 | 192.168.1.32 | 192.168.1.47 | .33 – .46 |
| 4 | 192.168.1.48 | 192.168.1.63 | .49 – .62 |
| … | … | … | … |
| 16 | 192.168.1.240 | 192.168.1.255 | .241 – .254 |
Verification
16 subnets × 16 addresses each = 256 addresses = 2^8 (/24) ✓
Summary
| Property | Value |
|---|---|
| Borrowed bits | 4 |
| Subnet count | 16 |
| Hosts per subnet | 14 |
| Subnet mask | 255.255.255.240 |
Related Terms
More Calculate Worksheets
Convert a Binary Subnet Mask to Dotted-Decimal Notation
Beginner
How Many Hosts Are in a /24 Subnet?
Beginner
How Many Hosts Are in a /26 Subnet?
Beginner
How Many IP Addresses Are in the Range 10.0.0.0 – 10.0.3.255?
Beginner
Determine CIDR Notation From an IP Range
Intermediate
How Many /24 Subnets Fit Inside 172.16.0.0/16?
Intermediate