New to subnet calculator? Learn how to read the output
Subnet calculator.
From CIDR to address ranges. Make your network make sense.
LOCAL UTILITYReady when you are.
Your result will appear here.
What this tool does
A CIDR prefix tells you how an IPv4 address is split into a network and a set of hosts, and this calculator does that arithmetic for you. Enter a network such as 192.168.1.0/24 and it returns the network address, the subnet mask, the broadcast address, the first and last usable host, the wildcard mask, and the number of addresses in each group. Everything runs in your browser, so no address leaves the page. Use it when you plan a VLAN, write firewall rules, or need to know how many devices a given prefix actually supports.
How to use it
- Type an IPv4 network with its prefix, for example 192.168.1.0/24, into the CIDR field.
- Choose Calculate subnet and the calculation happens locally in your browser, so no request leaves the page.
- Use the network address as the identifier for the whole block, and the mask to see the boundary in dotted form.
- Read the usable host range to find where your DHCP pool should start and stop.
- Compare the total address count with the usable host count, since the difference is the reserved network and broadcast addresses.
Reading the result
- Network shows the masked base address of the block, so an input of 192.168.1.55/24 returns 192.168.1.0/24.
- Subnet mask gives the same boundary in dotted decimal, which is the form most router interfaces ask for.
- Total addresses is the whole size of the block, including the two reserved addresses in a normal prefix.
- Usable hosts removes the network and broadcast addresses, which cannot be assigned to an ordinary device.
- First and last usable addresses mark the range you can hand out inside the block.
- Wildcard mask is the inverse of the subnet mask, the form used in access lists and packet filter rules.
What it cannot tell you
- The calculator covers IPv4 only, so an IPv6 prefix returns an error instead of a result.
- It does not check your router, so it cannot tell you whether a range overlaps a live DHCP pool.
- It does not split a block into smaller subnets, so a VLSM plan still has to be worked out by hand.
- A /31 or /32 follows the host route rules, so the usable host count differs from a normal block.
What to do next
A /24 gives 256 addresses and 254 usable hosts, which is why it suits a small office or a home lab. Use the first and last usable addresses as the edges of your DHCP range and keep the network address for the router. Before you reserve a static address outside the pool, compare the range with the one already configured on the router. To confirm what your own machine holds, check the adapter settings on your device.
Read the full subnet calculator guide