Monitoring
Solutions
Resources
Free Tools
Pricing
Free Tools / IP Subnet Calculator

IP subnet calculator

Enter an IPv4 address and CIDR prefix to get the network address, broadcast address, subnet mask, and usable host range. Runs locally in your browser.

Network address–
Broadcast address–
Subnet mask–
Wildcard mask–
First usable host–
Last usable host–
Total addresses–
Usable hosts–

How CIDR notation works

CIDR (Classless Inter-Domain Routing) notation writes a subnet as an IP address plus a slash and a prefix length, like 192.168.1.0/24. The prefix tells you how many of the 32 bits are fixed for the network — the rest are available for host addresses.

CIDRSubnet maskUsable hosts
/24255.255.255.0254
/25255.255.255.128126
/28255.255.255.24014
/30255.255.255.2522

Frequently asked questions

What's the difference between network and broadcast address?

The network address (first address in the range) identifies the subnet itself and can't be assigned to a device. The broadcast address (last address) sends a packet to every host on that subnet — it can't be assigned either.

Why are there only 254 usable hosts in a /24?

A /24 has 256 total addresses, but the first (network) and last (broadcast) are reserved, leaving 254 for actual devices.

What is a wildcard mask used for?

A wildcard mask is the inverse of a subnet mask. Cisco access control lists and some routing configs use it instead of a standard mask to define address ranges.

What happens at /31 and /32?

A /31 has no usable host range in the traditional sense — it's used for point-to-point links (RFC 3021). A /32 identifies a single host with no other addresses in the subnet.

More free tools

Once your subnet is planned, keep an eye on what's running in it

Upzilla monitors servers, DNS, and infrastructure across your network from one dashboard. 10 monitors free, no card required.

Start monitoring free →