IPv4 & IPv6 CIDR Subnet Calculator
Calculate network addresses, subnet masks, address counts, and ranges from an IPv4 or IPv6 CIDR address. For IPv4, inspect the broadcast address and usable range; review flags for special-purpose addresses.
Enter a CIDR such as 192.168.1.1/24 or 2001:db8::1/64, then choose Refresh. The default IPv4 example is calculated when this page opens.
Export results
Flags Legend
How to use the CIDR subnet calculator
- Enter an IPv4 or IPv6 address with a prefix length, such as
192.168.1.1/24or2001:db8::1/64. IPv4 dotted subnet masks such as192.168.1.1/255.255.255.0are also accepted. - Choose Refresh to calculate the network, mask, total addresses, and range.
- Review any special-purpose address flags and the legend before using the range in a network plan.
- Download JSON or CSV, copy a summary, or copy an input link to reopen the same CIDR calculation.
Example: calculate an IPv4 /24 network
For 192.168.1.1/24, the network is 192.168.1.0, the subnet mask is 255.255.255.0, and the broadcast address is 192.168.1.255. There are 256 total addresses, with the conventional usable host range 192.168.1.1–192.168.1.254.
Understanding CIDR and address ranges
- Prefix length
- The number after the slash identifies the network bits. IPv4 addresses have 32 bits; IPv6 addresses have 128. A larger prefix leaves fewer bits for addresses within the subnet.
- Total and usable addresses
- Total addresses count every address in the block. IPv4 usable ranges depend on the prefix; /31 and /32 need different treatment from a conventional /24. An address count does not establish that addresses are available for assignment.
- IPv6 ranges
- IPv6 does not use an IPv4-style broadcast address. Review the IPv6 address range rather than applying IPv4 broadcast or host-count assumptions.
Does this check whether an IP address is reachable?
No. This calculator computes address ranges; it does not scan the network, check routing, or discover occupied addresses. Cloud providers may reserve additional addresses within a subnet.
Help shape premium features
Coming soon. Choose a feature to express interest and help us decide what to build. These would be paid features; no signup or payment is required to express interest.