Previous Subnet Calculator
Find the preceding same-sized subnet.
Previous Subnet Calculator: inputs and results
Enter an IP address, CIDR prefix, or range. Then check its first and last address below.
Calculated Boundaries & ParametersReady
Key Capabilities
- •100% Client-Side: Zero telemetry or server latency.
- •RFC Compliant: Exact 32-bit and 128-bit integer precision.
- •Quick Copy: Instant access to CIDR, mask, and range bounds.
- •Cross-Platform: Works on desktop, tablet, and mobile browsers.
Related IPv4 Subnetting & RangeAll Tools
IPv4 Range Calculator
Find address boundaries from a prefix.
IPv4 Subnet Calculator
Calculate subnet details from address and mask.
Network Address Calculator
Find the subnet’s network address.
IPv4 Broadcast Address Calculator
Find broadcast addresses where applicable.
First and Last Address Calculator
Identify a range’s endpoints.
Usable IPv4 Host Range Calculator
Apply the selected subnet-use rules.
How Previous Subnet Calculator Works?
This tool works by subtracting the block size of a subnet from its network address, which returns the subnet of the same size that comes directly before it.
Enter a subnet
Type a CIDR block such as
172.16.64.0/19.Align the network
The calculator rounds the address down to the network address.
Subtract the block size
A /19 holds 8,192 addresses (32 × /24), so the calculator subtracts 32 from octet 3.
Return the previous block
The result is
172.16.32.0/19. A subnet starting at0.0.0.0has no previous block.
Previous Subnet Calculator Formula
The formula is Previous Network = Network − 2^(32 − p).
Previous network
N_prev = N − 2^(32−p)Same prefix length.
Previous broadcast
B_prev = N − 1Sits 1 address below the current network.
Kth previous subnet
N_−k = N − k × 2^(32−p)Skips k blocks back.
Underflow check
N ≥ 2^(32−p)A block at 0.0.0.0 has no predecessor.
Worked example: 172.16.64.0/19
Block size = 2^13 = 8,192 = 32 × /24 Previous = 172.16.(64 − 32).0 = 172.16.32.0/19 Previous range = 172.16.32.0 – 172.16.63.255 Check = 172.16.63.255 + 1 = 172.16.64.0 ✓
Previous Subnet Calculator Conversion Table
The table lists the previous subnet and its range for 10 starting subnets, including 1 block with no predecessor.
| Current Subnet | Block Size | Previous Subnet | Previous Range |
|---|---|---|---|
| 172.16.64.0/19 | 8,192 | 172.16.32.0/19 | 172.16.32.0 – 172.16.63.255 |
| 192.168.10.0/24 | 256 | 192.168.9.0/24 | 192.168.9.0 – 192.168.9.255 |
| 192.168.10.192/26 | 64 | 192.168.10.128/26 | 192.168.10.128 – 192.168.10.191 |
| 10.20.0.0/16 | 65,536 | 10.19.0.0/16 | 10.19.0.0 – 10.19.255.255 |
| 10.0.12.0/22 | 1,024 | 10.0.8.0/22 | 10.0.8.0 – 10.0.11.255 |
| 203.0.113.16/28 | 16 | 203.0.113.0/28 | 203.0.113.0 – 203.0.113.15 |
| 198.51.100.8/29 | 8 | 198.51.100.0/29 | 198.51.100.0 – 198.51.100.7 |
| 10.255.0.6/31 | 2 | 10.255.0.4/31 | 10.255.0.4 – 10.255.0.5 |
| 100.96.0.0/11 | 2,097,152 | 100.64.0.0/11 | 100.64.0.0 – 100.95.255.255 |
| 0.0.0.0/8 | 16,777,216 | None | Start of IPv4 space |
What is Previous Subnet Calculator?
The Previous Subnet Calculator is a tool that returns the subnet immediately before a given subnet, using the same prefix length. The previous /26 before 192.168.10.192/26 is 192.168.10.128/26.
The previous subnet ends 1 address before the current network address. The Previous Subnet Calculator handles borrows across octets, so the block before 10.20.0.0/16 is 10.19.0.0/16.
Looking backward is useful for checking neighbors, finding a block to merge with, and filling gaps left lower in the address space.
What are the uses of Previous Subnet Calculator?
There are 4 main uses of the Previous Subnet Calculator, including neighbor checks, merge planning, and gap filling.
Checking the lower neighbor
Before expanding a subnet downward, engineers check whether the previous block is free.
Planning supernet merges
Two /24 blocks merge into a /23 only when the lower block starts on a /23 boundary. The previous subnet shows the partner block.
Filling released space
Released blocks sit below active blocks. The calculator walks backward to find them.
Tracing allocation history
Sequential plans allocate in order. The previous block shows the allocation made just before.