Skip to main content
IP Range CalculatorPRO
IPv4 Subnetting & RangeInstant Client-Side Tool

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.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

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.

  1. Enter a subnet

    Type a CIDR block such as 172.16.64.0/19.

  2. Align the network

    The calculator rounds the address down to the network address.

  3. Subtract the block size

    A /19 holds 8,192 addresses (32 × /24), so the calculator subtracts 32 from octet 3.

  4. Return the previous block

    The result is 172.16.32.0/19. A subnet starting at 0.0.0.0 has 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 − 1

Sits 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 SubnetBlock SizePrevious SubnetPrevious Range
172.16.64.0/198,192172.16.32.0/19172.16.32.0 – 172.16.63.255
192.168.10.0/24256192.168.9.0/24192.168.9.0 – 192.168.9.255
192.168.10.192/2664192.168.10.128/26192.168.10.128 – 192.168.10.191
10.20.0.0/1665,53610.19.0.0/1610.19.0.0 – 10.19.255.255
10.0.12.0/221,02410.0.8.0/2210.0.8.0 – 10.0.11.255
203.0.113.16/2816203.0.113.0/28203.0.113.0 – 203.0.113.15
198.51.100.8/298198.51.100.0/29198.51.100.0 – 198.51.100.7
10.255.0.6/31210.255.0.4/3110.255.0.4 – 10.255.0.5
100.96.0.0/112,097,152100.64.0.0/11100.64.0.0 – 100.95.255.255
0.0.0.0/816,777,216NoneStart 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.