What is in your subnet?
Enter an IPv4 address and a prefix length to find the network boundaries, subnet mask and address range.
IPv4 subnet calculator
Calculations run on your device. The addresses you enter are not sent to the server.
Understanding CIDR
The notation 192.168.1.42/24 gives an address and the number of bits reserved for the network. IPv4 has 32 bits in total: a longer prefix means fewer addresses in the subnet.
In conventional subnets, the first address identifies the network and the last is used for broadcast traffic. A /31 prefix allows both addresses on a point-to-point link; /32 identifies a single address.