Calculate Remaining Address Space After Two Allocations
Advanced CalculateQuestion
From the block 10.0.0.0/24, two subnets have been allocated: 10.0.0.0/26 and 10.0.0.64/27. What is the first unallocated address, how many addresses remain, and what is the largest contiguous block available?
Given
{
"network": "10.0.0.0/24",
"allocated": [
"10.0.0.0/26",
"10.0.0.64/27"
]
}
Answer
{
"remaining_start": "10.0.0.96",
"remaining_size": 160,
"largest_block": "10.0.0.128/25"
}
Try to solve it first, then click Reveal Answer
Step-by-Step Explanation
Step 1: Map out the allocated ranges
10.0.0.0/26:
block_size = 2^(32-26) = 2^6 = 64
range: 10.0.0.0 – 10.0.0.63
10.0.0.64/27:
block_size = 2^(32-27) = 2^5 = 32
range: 10.0.0.64 – 10.0.0.95
Step 2: Find the first unallocated address
Allocated ranges end at .63 and .95. The first free address is:
first_free = 10.0.0.95 + 1 = 10.0.0.96
Step 3: Calculate remaining size
The parent /24 runs from 10.0.0.0 to 10.0.0.255 (256 addresses).
allocated = 64 + 32 = 96 addresses
remaining = 256 - 96 = 160 addresses
range: 10.0.0.96 – 10.0.0.255
Step 4: Find the largest contiguous block within remaining space
The remaining range is 10.0.0.96 – 10.0.0.255 (160 addresses).
Check alignment boundaries within this range:
| Block | Start | End | Size | Aligned? |
|---|---|---|---|---|
| /27 | 10.0.0.96 | 10.0.0.127 | 32 | Yes (96 = 3 × 32) |
| /25 | 10.0.0.128 | 10.0.0.255 | 128 | Yes (128 = 2^7) |
The largest single aligned block is 10.0.0.128/25 (128 addresses, 126 usable hosts).
Note: 10.0.0.96/27 (32 addresses) + 10.0.0.128/25 (128 addresses) = 160 addresses total. ✓
Step 5: Visualize the full /24
[10.0.0.0 /26 — 64 addrs — ALLOCATED: Engineering? ]
[10.0.0.64 /27 — 32 addrs — ALLOCATED: Sales? ]
[10.0.0.96 /27 — 32 addrs — free ]
[10.0.0.128 /25 — 128 addrs — free (largest block) ]
Summary
| Property | Value |
|---|---|
| First free address | 10.0.0.96 |
| Total remaining | 160 addresses |
| Largest contiguous block | 10.0.0.128/25 (128 addresses, 126 usable) |
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