Overview
Subnetting is the fundamental architectural technique used in IPv4 networking to partition a master network into smaller, efficient, and secure broadcast domains. The Subnet Calculator analyzes any IPv4 host address and subnet mask prefix (/0 through /32), computing the exact network address, broadcast address, usable client host range, wildcard mask, and total IP capacity.
Whether you are configuring VLAN routing on enterprise switches, defining AWS Virtual Private Cloud (VPC) subnets, setting up firewall access control lists (ACLs), or studying for Cisco CCNA certification, this tool provides instant bitwise accuracy. It incorporates full support for RFC 3021 point-to-point links (/31) and RFC 1918 private scopes.
Worked Examples
Example 1: Standard Class C Local Subnet (192.168.1.10/24)
Host IP = 192.168.1.10, Subnet Mask = /24 (255.255.255.0)
- Convert IP to 32-bit binary: 11000000.10101000.00000001.00001010.
- Apply /24 mask (first 24 bits 1s, last 8 bits 0s): 255.255.255.0.
- Bitwise AND yields network address: 192.168.1.0.
- Wildcard mask (bitwise NOT): 0.0.0.255.
- Broadcast address: 192.168.1.255.
- Usable host range: 192.168.1.1 to 192.168.1.254 (254 usable hosts).
Final Answer: 192.168.1.0/24 (Mask: 255.255.255.0, Usable: 192.168.1.1 - 192.168.1.254)
Example 2: Router Point-to-Point Link (10.0.0.5/31 under RFC 3021)
Host IP = 10.0.0.5, Subnet Mask = /31 (255.255.255.254)
- Mask has 31 network bits and 1 host bit (2 total addresses).
- Network ID: 10.0.0.4, Broadcast: 10.0.0.5.
- Under RFC 3021 point-to-point links, both addresses are usable.
- Usable hosts: 10.0.0.4 and 10.0.0.5 (2 usable hosts).
Final Answer: 10.0.0.4/31 (2 usable hosts: 10.0.0.4 - 10.0.0.5)
Example 3: Enterprise Cloud Subnet (172.16.100.50/20)
Host IP = 172.16.100.50, Subnet Mask = /20 (255.255.240.0)
- Prefix /20 reserves 12 host bits (2ยนยฒ = 4,096 total addresses).
- Subnet mask: 255.255.240.0, Wildcard mask: 0.0.15.255.
- Network address: 172.16.96.0.
- Broadcast address: 172.16.111.255.
- Usable host range: 172.16.96.1 to 172.16.111.254 (4,094 usable hosts).
Final Answer: 172.16.96.0/20 (4,094 usable hosts)