IP Subnet Calculator

Calculate IPv4 and IPv6 subnets with CIDR notation

IP Subnet Calculator

What is IP Subnetting?

IP subnetting is the process of dividing a larger network into smaller, more manageable sub-networks (subnets). This practice improves network performance, security, and organization.

CIDR (Classless Inter-Domain Routing) notation uses a slash followed by a number to indicate how many bits are used for the network portion of the address.

For example, 192.168.1.0/24 means the first 24 bits represent the network, leaving 8 bits for hosts (256 total addresses, 254 usable).

IPv4 Subnet Reference

Common subnet masks and their CIDR equivalents:

CIDRSubnet MaskHosts
/8255.0.0.016,777,214
/16255.255.0.065,534
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/30255.255.255.2522

Private IP Address Ranges:

• 10.0.0.0/8 (Class A): 10.0.0.0 - 10.255.255.255

• 172.16.0.0/12 (Class B): 172.16.0.0 - 172.31.255.255

• 192.168.0.0/16 (Class C): 192.168.0.0 - 192.168.255.255

IPv6 Subnetting

IPv6 addresses are 128 bits long and use hexadecimal notation:

Standard IPv6 Prefixes:

/48 - Site prefix (usually assigned to organizations)

/56 - Recommended for home networks

/64 - Standard subnet size (most common)

/128 - Single host address

IPv6 Address Types:

• Global Unicast: 2000::/3 - Routable on the internet

• Link-Local: FE80::/10 - Local network segment only

• Unique Local: FC00::/7 - Private addressing

• Loopback: ::1/128 - Equivalent to 127.0.0.1

• Multicast: FF00::/8 - One-to-many communication

IPv6 Benefits:

• Vast address space (340 undecillion addresses)

• No need for NAT in most cases

• Built-in security features

• Simplified network configuration

Network Design Best Practices

Subnet Planning:

Plan for growth - allocate more addresses than currently needed
Use hierarchical addressing for easier management
Document your subnet allocations
Consider VLSM for efficient address utilization

Security Considerations:

Separate different types of devices into different subnets
Implement proper firewall rules between subnets
Use private IP ranges for internal networks
Monitor network traffic between subnets