IPv4 Subnet Calculator
Calculate Subnet Details for Any IPv4 Network
Need to use IPv4 Subnet Calculator right now?
Every core IPv4 subnetting value in one place — network address, broadcast address, usable host range, and total host count — calculated instantly from any address and prefix.
Network address
192.168.1.0
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Usable hosts
254
IP class (legacy)
C
Features
- Runs entirely in your browser
- Privacy-first — your data is never uploaded
- Real-time, instant results
- 100% free, no sign-up required
- Works on desktop, tablet, and mobile
- No installation needed
Who uses this tool?
About IPv4 Subnet Calculator
Subnetting — dividing a network into smaller segments — is a core skill in network administration, but the math behind it (converting a CIDR prefix into a subnet mask, then figuring out the resulting network address, broadcast address, and usable host range) is tedious to do by hand and easy to get wrong, especially with less common prefix lengths.
This tool takes any IPv4 address and CIDR prefix (like /24 or /26) and instantly calculates the network address, broadcast address, subnet mask, wildcard mask, the first and last usable host addresses, the total number of usable hosts, and the address's legacy IP class (A, B, or C).
Understanding subnet boundaries matters for real network configuration tasks: assigning IP ranges to VLANs without overlap, configuring firewall rules that need an exact network/broadcast pair, sizing a subnet correctly for how many devices it needs to support, and troubleshooting why a device can't reach others on what should be the same network.
This is useful for network engineers and system administrators planning IP address allocation, students learning subnetting for networking certifications, configuring router and firewall rules that reference network ranges, and quickly sanity-checking subnet math without doing binary conversion by hand.
How it works
- Enter an IP address. Any IPv4 address in the subnet you want to analyze.
- Enter the CIDR prefix. The subnet size, from /0 to /32.
- Read the results. Network, broadcast, usable range, and host count are calculated instantly.
Examples
Calculating a standard /24 subnet
Input
192.168.1.100 / 24
Output
Network: 192.168.1.0, Broadcast: 192.168.1.255, Usable hosts: 254
Calculating a smaller /26 subnet
Input
10.0.5.130 / 26
Output
Network: 10.0.5.128, Broadcast: 10.0.5.191, Usable hosts: 62