Subnet Calculator

Type an IPv4 address with a prefix or a mask. Your browser does the math, and the answer gets its own link you can share.

How the subnet calculator works it out

The mask keeps the first bits of the address as the network. Setting all the other bits to zero gives the network address; setting them all to one gives the broadcast address. The hosts are the addresses in between. The blue bits above are the network part.

You can type the mask as a prefix (/26 or 26) or in full (255.255.255.192), or paste 192.168.10.77/26 into the address box. A /31 and a /32 are worked out by their own rules (RFC 3021). This calculator is for IPv4.

Want to be able to do it without a calculator? Read how to subnet, keep the cheat sheet open, and work through practice problems.