IP subnet calculator calculator
Network, broadcast, mask and host range of an IPv4 address in CIDR form. Enter your values and see the formula, your numbers plugged in and every step of the working. Free, no sign-up, SI and imperial units.
Formula
mask = 32 − prefix zero bits network = IP AND mask, broadcast = network OR NOT mask hosts = 2^(32 − prefix) − 2
Inputs
- IP address / prefix (e.g. 192.168.1.10/24) (IP)
Worked example: 192.168.1.10/24
- IP address / prefix (e.g. 192.168.1.10/24) IP = 192.168.1.10/24
- Prefix /24 → mask 255.255.255.0 (24 ones, 8 zeros)
- Network = 192.168.1.10 AND 255.255.255.0 = 192.168.1.0
- Broadcast = network OR 0.0.0.255 = 192.168.1.255
- Hosts = 2^8 − 2 = 254
Answer: Network address: 192.168.1.0/24; Broadcast address: 192.168.1.255; Subnet mask: 255.255.255.0; Wildcard mask: 0.0.0.255; Usable host range: 192.168.1.1 – 192.168.1.254; Usable hosts: 254
More software engineering calculators
- Algorithm complexity (Big-O): How long algorithms of different complexity take as the input grows.
- Amdahl's law (parallel speed-up): Maximum speed-up from running part of a program on more processors.
- Number base converter: Convert between binary, octal, decimal and hexadecimal, with the working.
- Password strength (entropy): Entropy of a random password and how long brute force would take.
Software Engineering formula sheet · All calculators · Practice problems