Aspect Ratio Calculator
Simplify W:H ratio.
Open →Enter an IP and CIDR prefix to get the network, mask, hosts and range.
| Subnet mask | — |
|---|---|
| Broadcast | — |
| Usable hosts | — |
| Host range | — |
An IPv4 address paired with a CIDR prefix (like /24) splits into a network part and a host part. The prefix says how many leading bits are the network; the rest identify hosts. From that this calculator works out the subnet mask, the network and broadcast addresses, the usable host range and how many hosts the subnet holds.
A /24, the classic home network, has 256 addresses — 254 usable once you set aside the network and broadcast addresses. Each step smaller in prefix doubles the size; each step larger halves it.
usable hosts = 2^(32 − prefix) − 2
The first 24 bits are the network, leaving 8 bits (256 addresses) for hosts — 254 usable. Its mask is 255.255.255.0.
One address is the network identifier and one is the broadcast address, so neither can be assigned to a device.
The last address in the subnet, used to send to every host at once. For 192.168.1.0/24 it’s 192.168.1.255.
Simplify W:H ratio.
Open →Same plain method, different figures.
Open →Same plain method, different figures.
Open →Same plain method, different figures.
Open →Same plain method, different figures.
Open →