IPv4 Subnet Calculator
Calculate IPv4 subnet details and address ranges.
tip: click any bit to set the boundary — network bits identify the subnet, host bits count its addresses
Overview
A CIDR calculator that shows the arithmetic rather than just its results. The 32-bit ruler makes the mask boundary something you can see and move: network bits identify the subnet, host bits count its addresses, and the highlighted bit is the boundary itself.
Below it, the address-space bar places the subnet inside its parent block, so “a /26 is one quarter of a /24” stops being a fact you have to memorise.
How to use
- Type an IPv4 address, then set the prefix with the −/+ buttons, the MASK slider, or by clicking any bit in the ruler.
- Read the result grid — network, first and last host, broadcast, netmask, wildcard, total and usable counts. Click any cell to copy it.
- Use the split preview to drill down one level: clicking a half makes it the current subnet, so you can carve a block step by step.
Examples
- Carving a /24 for VLANs: set
192.168.1.0/24, then drill down twice to reach four /26 blocks of 62 usable hosts each. - Writing an ACL: copy the WILDCARD value straight into a Cisco
access-listor OSPFnetworkstatement. - Sizing a link network: set the prefix to
/31and confirm both addresses are usable — no broadcast is reserved.
Notes
The parent block shown in the address-space bar is the next multiple of eight bits above the current prefix — a /26 sits inside its /24, a /24 inside its /16. That matches how address plans are usually written down.
Scope labels come from the registered IANA and RFC allocations (RFC 1918 private space, RFC 6598 CGNAT, RFC 5737 documentation ranges, and so on), evaluated against the network address of the current subnet.