Formula
Address integer = octets packed into 32 bits. Mask = first prefix bits set to 1. Network = address AND mask. Broadcast = network OR inverted mask. Usable hosts = 2^(32 − prefix) − 2 for ordinary prefixes.
Developer & IT
Calculate IPv4 network address, broadcast address, usable host range, wildcard mask and host count from an IP address and CIDR prefix.
Developer & IT
Address integer = octets packed into 32 bits. Mask = first prefix bits set to 1. Network = address AND mask. Broadcast = network OR inverted mask. Usable hosts = 2^(32 − prefix) − 2 for ordinary prefixes.
This is the method behind the answer, so the result can be checked rather than simply trusted.Visual grid
Subnet is not just a final answer. It is a step on a line: before and after, input and output, assumption and result.
CalculationTime keeps the path visible: the input, the method and the final number belong together.
CalculationTime
Address integer = octets packed into 32 bits. Mask = first prefix bits set to 1. Network = address AND mask. Broadcast = network OR inverted mask. Usable hosts = 2^(32 − prefix) − 2 for ordinary prefixes.
Use this space on the printed report for client, supplier, classroom, job-location, measurement, quote or approval notes.
Address integer = octets packed into 32 bits. Mask = first prefix bits set to 1. Network = address AND mask. Broadcast = network OR inverted mask. Usable hosts = 2^(32 − prefix) − 2 for ordinary prefixes.
192.168.10.25/24 has mask 255.255.255.0, network 192.168.10.0, broadcast 192.168.10.255 and ordinary usable host range 192.168.10.1 to 192.168.10.254.
Master’s Tip: print the wildcard mask beside the subnet mask when handing a network note to someone writing ACLs.
Standard IPv4 CIDR arithmetic using 32-bit addresses and binary masks.
Methodology & Accuracy
CalculationTime pages are built around visible arithmetic: the formula, assumptions, worked example and practical limitations are shown so the result can be checked rather than simply trusted.
Address integer = octets packed into 32 bits. Mask = first prefix bits set to 1. Network = address AND mask. Broadcast = network OR inverted mask. Usable hosts = 2^(32 − prefix) − 2 for ordinary prefixes.
Standard IPv4 CIDR arithmetic using 32-bit addresses and binary masks.
Where a calculator follows a named legal, trade or industry standard, that standard is cited visibly. Otherwise the page uses transparent general arithmetic and states its limits.Master’s Tip: print the wildcard mask beside the subnet mask when handing a network note to someone writing ACLs.
/24 means the first 24 bits are the network prefix, leaving 8 host bits.
An ordinary /24 has 256 addresses and usually 254 usable host addresses after network and broadcast.
No. This page is deliberately IPv4-only.
CIDR made IPv4 subnetting more flexible by allowing arbitrary prefix lengths instead of fixed classful networks.