Home/Blog/Subnet Calculator

Subnet Calculator

Calculate subnets, CIDR ranges, IP addresses, and network configurations for IPv4 and IPv6

Understanding CIDR Notation

CIDR (Classless Inter-Domain Routing) notation is a compact method to specify IP addresses and their associated network masks. It uses a slash followed by a number to indicate how many bits are used for the network portion. CIDR was introduced to replace the older classful addressing system (Class A, B, C) and improve IP address allocation efficiency.

The CIDR number represents consecutive ones in the binary subnet mask. For example, 255.255.255.0 in binary is 11111111.11111111.11111111.00000000, which contains 24 consecutive ones, expressed as /24.

/24 Network

CIDR: 192.168.1.0/24
Subnet Mask: 255.255.255.0
Usable Hosts: 254

Most common for small LANs. Provides 254 usable IP addresses with network and broadcast addresses reserved.

/16 Network

CIDR: 10.0.0.0/16
Subnet Mask: 255.255.0.0
Usable Hosts: 65,534

Ideal for medium to large organizations. Allows for extensive network segmentation and growth.

/30 Network

CIDR: 192.168.1.0/30
Subnet Mask: 255.255.255.252
Usable Hosts: 2

Perfect for point-to-point links between routers. Minimizes IP address waste on network links.

IPv4 vs IPv6 Subnetting

While IPv4 and IPv6 both use CIDR notation, they differ significantly in address space and subnetting practices.

IPv4 Subnetting

  • 32-bit addresses: 4.3 billion possible addresses
  • Common prefixes: /8, /16, /24, /30
  • Conservation critical: Address exhaustion concerns
  • Example: 192.168.1.0/24

IPv4 requires careful address planning due to limited address space. Organizations use techniques like NAT (Network Address Translation) and VLSM to maximize efficiency.

IPv6 Subnetting

  • 128-bit addresses: 340 undecillion addresses
  • Common prefixes: /48, /56, /64
  • Abundance: No address conservation needed
  • Example: 2001:db8::/64

IPv6’s massive address space eliminates the need for NAT and enables simpler, hierarchical network designs. Most organizations receive a /48 or /56 prefix from ISPs.

DNS Lookup Tool

Query DNS records and troubleshoot domain resolution issues.

Port Scanner

Scan network ports and identify open services.

All Network Tools

Explore our complete suite of free network and security tools.

Frequently Asked Questions

Find answers to common questions

A /24 subnet (255.255.255.0) provides 254 usable IP addresses for hosts on a network, while /32 (255.255.255.255) represents a single host IP address with no network portion. /24 is used for networks, /32 for specific host routes.

Need Expert IT & Security Guidance?

Our team is ready to help protect and optimize your business technology infrastructure.