Calculate IPv4 subnets from CIDR or netmask: network, broadcast, host range, usable hosts and wildcard mask.
Example result for 192.168.1.10/24. Type an address above to calculate your own.
192.168.1.10 · Private (RFC 1918) · Class C
Network
192.168.1.0/24
Broadcast
192.168.1.255
First usable
192.168.1.1
Last usable
192.168.1.254
Netmask
255.255.255.0
Wildcard
0.0.0.255
Total addresses
256
Hex
0xC0A8010A
Binary · network bits highlighted
IP11000000.10101000.00000001.00001010
Mask11111111.11111111.11111111.00000000
Calculated entirely in your browser. Nothing you type is sent anywhere. /31 and /32 follow the point-to-point and single-host rules (RFC 3021).
Subnet Calculator works out everything about an IPv4 network from an address and a prefix (such as /24) or a netmask (such as 255.255.255.0). Results update as you type: network address, broadcast address, first and last usable host, total and usable hosts, netmask, wildcard mask, address class and whether the range is private or public, plus a binary view. It handles the special cases correctly: /31 point-to-point links (RFC 3021) where both addresses are usable, and /32 single-host routes. Everything is calculated in your browser, so it works offline and nothing is sent anywhere.
A short way to write a netmask: /24 means the first 24 bits are the network, which equals 255.255.255.0.
In most subnets the first address identifies the network and the last is the broadcast address. /31 and /32 are exceptions.
The inverse of the netmask, used in Cisco ACLs and some routing configs. /24 has the wildcard 0.0.0.255.