IPv4 Subnet Calculator
Find the network, broadcast, subnet mask and usable host range for an IPv4 address.
Input
Result
How it works
An IPv4 address has 32 bits. The prefix length identifies how many high bits belong to the network. Enter a prefix length or a contiguous dotted-decimal subnet mask. A /31 uses both endpoints for point-to-point links, and a /32 represents a single address.
Formula
Network = IP AND mask. Last address = network OR wildcard. Total addresses = 2^(32 − prefix).
Example
192.168.1.42 with prefix 24
192.168.1.0/24 · 254 usable hosts