Subnet Containment Checker
Test whether one subnet contains another.
Subnet Containment Checker: 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 Subnet Math & Set OperationsAll Tools
Bitwise Subnet Calculator
Show address-and-mask operations.
IP Address Offset Calculator
Add or subtract address positions.
Address Distance Calculator
Count positions between two addresses.
Subnet Boundary Checker
Check alignment to a specified prefix.
IP-in-Range Checker
Test whether an address belongs.
IP-in-Subnet Checker
Test membership within a CIDR block.
How Subnet Containment Checker Works?
This tool works by comparing the start and end addresses of 2 CIDR blocks. Block A contains block B when A starts at or before B and ends at or after B.
Enter subnet A
Type the candidate parent, such as
10.8.0.0/14.Enter subnet B
Type the candidate child, such as
10.10.32.0/19.Compute both ranges
A spans
10.8.0.0 – 10.11.255.255. B spans10.10.32.0 – 10.10.63.255.Compare bounds
A start ≤ B start and A end ≥ B end → A contains B.
Subnet Containment Checker Formula
The formula is A ⊇ B when p_A ≤ p_B and (Network_B AND Mask_A) = Network_A.
Prefix rule
p_A ≤ p_BA parent is never smaller than its child.
Mask rule
(N_B AND M_A) = N_AB lies inside A.
Bounds rule
S_A ≤ S_B AND E_A ≥ E_BEquivalent integer test.
Depth
p_B − p_ABits between parent and child.
Worked example: 10.8.0.0/14 and 10.10.32.0/19
p_A = 14 ≤ p_B = 19 ✓ 10.10.32.0 AND 255.252.0.0 = 10.8.0.0 = N_A ✓ Result = A contains B (depth 5 bits, 1 of 32 /19 blocks)
Subnet Containment Checker Conversion Table
The table tests 10 pairs of CIDR blocks and shows the containment relationship of each pair.
| Subnet A | Subnet B | Relationship |
|---|---|---|
| 10.8.0.0/14 | 10.10.32.0/19 | A contains B |
| 10.0.0.0/8 | 10.255.0.0/16 | A contains B |
| 10.0.0.0/16 | 10.1.0.0/24 | No overlap |
| 192.168.0.0/23 | 192.168.1.128/25 | A contains B |
| 192.168.1.0/24 | 192.168.0.0/23 | B contains A |
| 172.16.0.0/12 | 172.32.0.0/16 | No overlap |
| 203.0.113.0/24 | 203.0.113.0/24 | Identical |
| 10.0.0.0/24 | 10.0.0.0/25 | A contains B |
| 0.0.0.0/0 | 198.51.100.0/24 | A contains B |
| 192.0.2.64/26 | 192.0.2.128/26 | No overlap |
What is Subnet Containment Checker?
The Subnet Containment Checker is a tool that tests whether one CIDR block lies entirely inside another.
Containment defines the hierarchy of an address plan. A site /20 contains its VLAN /24s, and a regional /14 contains every site /20. The checker confirms each child sits inside the parent it is filed under.
The checker reports the direction of containment. 192.168.1.0/24 does not contain 192.168.0.0/23, but the /23 contains the /24.
What are the uses of Subnet Containment Checker?
There are 4 main uses of the Subnet Containment Checker, including hierarchy audits, route summary checks, and cloud subnet validation.
Auditing IPAM hierarchy
Each child subnet must sit inside its recorded parent block.
Checking route summaries
A summary route must contain every subnet it replaces.
Validating cloud subnets
A cloud subnet must fit inside the VPC or VNet CIDR.
Reviewing firewall object nesting
Nested address groups only make sense when children sit inside parents.