Subnet / CIDR Calculator

Enter an IPv4 address with a prefix or mask to get the network, broadcast, mask, wildcard, host range and usable hosts. Split it into smaller subnets, or check an IPv6 prefix.

Updated November 19, 2026

IPv4 subnet

Examples: 192.168.1.10/24, 10.0.0.0/8, 172.16.5.4 255.255.252.0

Usable hosts
254
256 total addresses
Subnet mask
255.255.255.0
/24
Host range
192.168.1.1 – 192.168.1.254
Network address192.168.1.0/24
Broadcast address192.168.1.255
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
First usable host192.168.1.1
Last usable host192.168.1.254
Mask in binary11111111.11111111.11111111.00000000
Address classC
Address typePrivate (RFC 1918)

Split into subnets

Between /24 and /32.

Picks the smallest prefix that fits.

4 subnets of /26 (62 usable hosts each).

SubnetHost rangeBroadcast
192.168.1.0/26192.168.1.1 – 192.168.1.62192.168.1.63
192.168.1.64/26192.168.1.65 – 192.168.1.126192.168.1.127
192.168.1.128/26192.168.1.129 – 192.168.1.190192.168.1.191
192.168.1.192/26192.168.1.193 – 192.168.1.254192.168.1.255

IPv6 prefix

Example: 2001:db8:abcd:12::1/64

Network2001:db8::/32
First address2001:db8::
Last address2001:db8:ffff:ffff:ffff:ffff:ffff:ffff
Total addresses79,228,162,514,264,337,593,543,950,336
/64 subnets inside4,294,967,296

How subnetting works

The prefix length says how many leading bits identify the network. The rest identify hosts. A /24 keeps 24 bits for the network and 8 for hosts, giving 28 = 256 addresses, of which 254 are usable (the network and broadcast addresses are reserved).

Worked examples

  • 192.168.1.10/24: network 192.168.1.0, broadcast 192.168.1.255, mask 255.255.255.0, hosts 192.168.1.1 to 192.168.1.254 (254 usable).
  • 10.20.30.40/20 (mask 255.255.240.0): network 10.20.16.0, broadcast 10.20.31.255, hosts 10.20.16.1 to 10.20.31.254 (4,094 usable).

Pointing a domain at a new server? Check how DNS has spread with the DNS propagation checker, and verify the site's certificate with the SSL certificate checker.

See also

Frequently Asked Questions (FAQ)

How do I calculate a subnet?

Convert the prefix length to a mask (/24 is 255.255.255.0), AND it with the IP address to get the network address, and set all host bits to 1 to get the broadcast address. Usable hosts run from network + 1 to broadcast − 1. The calculator does all of it.

How many usable hosts are in a /24, /26 or /30?

A /24 has 256 addresses and 254 usable hosts, a /26 has 64 and 62, and a /30 has 4 and 2. The formula is 2^(32 − prefix) − 2, because the network and broadcast addresses cannot be assigned to hosts.

What are /31 and /32 networks?

A /31 has two addresses and both are usable (point-to-point links, RFC 3021). A /32 is a single host address, used for loopbacks and firewall rules.

What is a wildcard mask?

The inverse of the subnet mask: 255.255.255.0 becomes 0.0.0.255. It is used in Cisco ACLs and OSPF network statements to say which bits may vary.

How do I split a network into subnets?

Increase the prefix length. Each extra bit doubles the number of subnets and halves their size, so a /24 split into /26 gives four subnets of 64 addresses. Pick the new prefix in the splitter, or enter the number of hosts you need.

Does it support IPv6?

Yes, for prefix information: enter an address with a prefix such as 2001:db8::/32 to see the network, first and last address, the total addresses and how many /64 subnets it holds. IPv6 has no broadcast address and usable-host counts are not meaningful.

Is anything sent to a server?

No. All the maths runs in your browser.