IP Subnet Calculator
Enter an IPv4 address with its CIDR prefix to see the network range, mask, broadcast address and how many usable hosts it contains.
Enter values
About the IP Subnet Calculator
An IPv4 address is 32 bits. The CIDR suffix says how many leading bits identify the network, so /24 leaves 8 bits for hosts — 256 addresses, of which two are reserved. Each step down in prefix length doubles the block size.
This IP Subnet Calculator is part of CalcHub's other collection. It runs entirely in your browser: the numbers you type are processed locally with JavaScript and never sent to a server, so you can use it offline and keep your inputs private.
Enter the values in the fields above and press Calculate. Results appear instantly below the form, together with a breakdown table where it helps explain the answer. Press Reset to start a new calculation. The tool is free, requires no account, and works on desktop, tablet and phone.
Results are estimates intended for quick reference and planning. For decisions with legal, medical or financial consequences, confirm the numbers with a qualified professional.