IPv4 subnet calculator: mask, range, CIDR
When setting up an ICS network (PLCs, SCADA, HMIs), you often need to quickly carve up the address space and check whether devices fall in the same subnet. Enter an IP address and prefix — the calculator shows the mask, network address, broadcast address, range, and number of usable hosts.
Input data
Result
How it's calculated
- The prefix tells you how many leading bits of the address are reserved for the network number: /24 means 24 ones in the mask, i.e. 255.255.255.0.
- The network address comes from a bitwise AND of the address and mask; the broadcast address fills the remaining bits with ones.
- All addresses between them can be hosts: the network address and the broadcast address itself are never assigned to devices.
Example: 192.168.1.10/24 → network 192.168.1.0/24, mask 255.255.255.0, broadcast 192.168.1.255. Hosts run from 192.168.1.1 to 192.168.1.254 — 254 in total.
Mask from prefix /n; network = IP AND mask; broadcast = network OR wildcard. Classless addressing — RFC 4632 (CIDR); /31 and /32 — RFC 3021.
This is an estimate
Verify final values against current standards, the project design, and equipment nameplates.