About this tool
A subnet is a contiguous block of IP addresses. In CIDR notation such as 192.168.1.0/24, the number after the slash says how many bits belong to the network part – the rest is for devices (hosts). A /24 has 256 addresses, of which 254 can be used for devices.
The subnet calculator takes an IPv4 address with prefix or subnet mask and calculates all key values: network address, broadcast, subnet mask, wildcard mask, first and last host and the number of usable addresses. The binary view highlights network and host bits. You can also split a network into smaller subnets – e.g. to divide a /24 into several VLANs. IPv6 prefixes like 2001:db8::/48 work too, including address type and short or full notation.
How it works
- Enter an IP address with prefix, e.g. 10.0.0.25/22, or set the prefix length with the slider.
- Read network address, broadcast, host range and masks from the overview.
- Choose a new, longer prefix under “Split into subnets”.
- The list shows every subnet with its host range – ideal for planning VLANs or cloud networks.
Frequently asked questions
Why are only 254 hosts usable in a /24?
The first address of a subnet is the network address, the last one the broadcast address. Neither can be assigned to a device. Exceptions are /31 (point-to-point links, RFC 3021) and /32 (single address).
What is a wildcard mask?
The wildcard mask is the inverted subnet mask: 255.255.255.0 becomes 0.0.0.255. It is used e.g. in Cisco ACLs and OSPF.
Which IP ranges are private?
RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks. The calculator shows the address type automatically, including special ranges like loopback or CGNAT. Find your public address with What Is My IP?.
Can I enter a subnet mask instead of a prefix?
Yes, e.g. 192.168.1.10 255.255.255.0. The mask must be contiguous – 255.255.0.255 is invalid.
Is IPv6 supported?
Yes. Just enter an IPv6 address with prefix, e.g. 2001:db8:abcd:12::1/64. The calculator shows the network, the first and last address, the number of addresses and /64 networks, the address type (e.g. global unicast, unique local, link-local) and the ip6.arpa name. IPv6 has no broadcast address; networks are usually split at four-bit boundaries (/48 → /52 → /56 → /64).