A step-by-step calculator makes the result explainable
The purpose of this page is not just to output a network and broadcast address. It is to show how those values follow from the prefix. If you can reproduce the steps on paper, a changed IP address becomes a routine calculation instead of a new puzzle.
After checking a result here, try calculating it without the tool in the AP Networking IP Addressing and Subnetting Practice Test. Write the containing network, broadcast, and usable range before selecting an answer; the feedback shows why a plausible neighboring boundary is wrong.
Convert the prefix to a mask
For example, /27 means 27 network bits. The first 24 fill three mask octets with 255. The remaining 3 network bits in the fourth octet are 11100000, decimal 224. The mask is therefore 255.255.255.224.
Find the block size
The interesting octet is 224. Subtract from 256: 256 − 224 = 32. Every subnet boundary in that octet is a multiple of 32: 0, 32, 64, 96, 128, 160, 192, 224.
Place the host inside one block
For host 192.168.50.173/27, the final octet 173 falls between the boundaries 160 and 192. The subnet therefore begins at 192.168.50.160.
Find network, broadcast, and usable range
Network = 192.168.50.160. The next network starts at .192, so broadcast = .191. Traditional usable range = .161 through .190. Five host bits provide 32 total addresses and 30 traditional usable hosts.
Use the result to predict host behavior
A destination of 192.168.50.180 is inside the same /27, so the client treats it as local. A destination of 192.168.50.200 belongs to another /27 and is remote. The subnet math therefore predicts whether the default gateway is needed.
172.16.45.22/20
A /20 mask is 255.255.240.0. The interesting third octet has block size 16. Value 45 lies in the 32–47 interval. Network = 172.16.32.0, broadcast = 172.16.47.255, first host = 172.16.32.1, last host = 172.16.47.254.
This example shows why the method must work beyond the fourth octet.
A calculator checks subnet math, not the rest of the network
If the subnet result is correct but communication still fails, move to the relevant layer: link state, VLAN, gateway, routing, DNS, security policy, or service availability. The calculator answers the address-boundary question only.
Use AP Networking Subnetting for the broader concept and Wrong Subnet Mask Symptoms for troubleshooting.