IPv4 Subnet Calculator

Enter an IPv4 address and prefix length to see the network address, broadcast address, usable host range, subnet mask and wildcard mask. You can also type an address with its prefix, such as 10.20.0.0/22.

IPv4 only. All calculations run in your browser; nothing is sent to our servers.

How to use the subnet calculator

Type any IPv4 address, choose the prefix (CIDR) from the list, and select Calculate. Results update as soon as you change the prefix. The calculator shows whether the address is public or private, and handles /31 point-to-point links and /32 single hosts.

Common IPv4 subnet sizes

PrefixSubnet maskTotal addressesUsable hosts
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

Each step down in prefix length doubles the number of addresses. A /30 is common for older point-to-point links, a /29 or /28 for business internet with static IPs, and a /24 for a typical office LAN.

Frequently asked questions

What is a subnet calculator?

A subnet calculator takes an IP address and a prefix length and works out the network address, broadcast address, usable host range, subnet mask and number of hosts for that subnet.

How many usable hosts are in a /24?

A /24 has 256 addresses. Two are reserved for the network and broadcast addresses, leaving 254 usable hosts.

What is a /29 subnet?

A /29 has 8 addresses and 6 usable hosts, with a subnet mask of 255.255.255.248. Providers often assign a /29 for business internet services that need a few static IPs.

Why does a /31 have 2 usable addresses?

RFC 3021 allows /31 subnets on point-to-point links, where no network or broadcast address is needed, so both addresses are usable.

What is a wildcard mask?

A wildcard mask is the inverse of the subnet mask. It is used in router access lists and some routing protocols to match a range of addresses.

Need IP addresses with your connectivity?

Delta Communications provides Dedicated Internet Access with static IP blocks and BGP support, and connectivity for ISPs and carriers. Talk to a network engineer.