Subnet calculator
Enter an address with a prefix, such as 192.168.1.130/26, or with a subnet mask. The result shows the range, host count and binary mask, and each bit is marked as network or host.
Subnet calculator calculates in your browser: the numbers you enter are never sent to a server. It is free and needs no sign-up.
How to use it
- Pick a tab and enter an address Choose IPv4, IPv6, Split subnets, VLSM, Summarize or Contains check. Enter an address with its prefix, such as 192.168.1.130/26, to see the result.
- Read the network and broadcast For 192.168.1.130/26 the network is 192.168.1.128 and the broadcast is 192.168.1.191. Usable hosts run from .129 to .190, which makes 62 hosts.
- Plan VLSM or summarize In VLSM, enter host needs of 100, 50, 25 and 10 to get /25, /26, /27 and /28 blocks. In Summarize, 192.168.0.0/24 and 192.168.1.0/24 combine into 192.168.0.0/23.
Questions
Why does a /31 or /32 have no broadcast address?
RFC 3021 treats a /31 as two usable point-to-point addresses, so it has no separate broadcast address. A /32 names a single host route, which is why the page lists just one address.
What block size does VLSM pick for a host need?
Enter the number of hosts you need, not a prefix length. The page picks the smallest block that fits, so 100 hosts need a /25 with 128 addresses, and 50 hosts need a /26 with 64 addresses.
Does this page upload my addresses?
No. Everything is calculated in your browser. A share link keeps the inputs after the # sign, and nothing is sent to a server, but anyone with the link can read those inputs.