What is an IP Subnet Calculator?

An IP subnet calculator is a tool that helps network engineers and administrators quickly compute network details from an IP address and its CIDR prefix length. Given an input like 192.168.1.0/24, it calculates the network address, broadcast address, subnet mask, usable host range, and more.

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation combines an IP address with a prefix length, written as IP/prefix. The prefix indicates how many bits of the address identify the network. For example, /24 means the first 24 bits are the network portion, leaving 8 bits (256 addresses) for hosts.

IPv4 vs IPv6

IPv4 addresses are 32-bit numbers, typically written as four decimal octets (e.g. 192.168.1.0). IPv6 addresses are 128-bit numbers written in hexadecimal groups (e.g. 2001:db8::1). This calculator supports both formats and adjusts its output accordingly - for example, IPv6 networks do not use broadcast addresses or wildcard masks.

Common subnet sizes

CIDRSubnet MaskUsable HostsCommon Use
/32255.255.255.2551Single host
/31255.255.255.2542Point-to-point link
/30255.255.255.2522Small WAN link
/24255.255.255.0254Small network / LAN
/16255.255.0.065,534Medium network
/8255.0.0.016,777,214Large network (Class A)