Subnet CIDR Calculator
Calculate IPv4 and IPv6 subnet ranges, netmask, network and broadcast addresses and usable hosts from CIDR notation like 192.168.1.0/24.
CIDR notation
Stays in your browserSubnet details
Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)
Free Online Subnet CIDR Calculator
Enter an IPv4 address in CIDR notation to instantly see its network and broadcast addresses, subnet mask, usable host range, and total address count. It helps network engineers and developers calculate usable ranges, broadcast addresses, and masks from CIDR notation.
What this calculator shows
Given an address like 192.168.1.10/24, this tool separates the network and host portions using the prefix length, then derives the network address (all host bits zeroed), the broadcast address (all host bits set to one), the subnet mask and its inverse wildcard mask, and the range of addresses actually assignable to devices on that network. This is the same math network engineers do by hand when planning IP address allocation, just done instantly and without arithmetic mistakes.
How to use this tool
Type an IPv4 address followed by a slash and a prefix length between 0 and 32, then click Calculate. Each result field has its own copy button so you can quickly grab, for example, just the subnet mask to paste into a router configuration.
Common use cases
- Planning how to split a larger network into smaller subnets for different departments or VLANs
- Checking whether a given IP address falls within a particular subnet range
- Looking up the broadcast address or usable host range for a firewall or DHCP configuration
- Converting between a prefix length like /24 and its dotted-decimal subnet mask 255.255.255.0
All calculations happen locally in your browser using standard 32-bit bitwise arithmetic — no address you enter is ever sent to a server.
Worked example
192.168.1.10/24 gives network 192.168.1.0, broadcast 192.168.1.255, netmask 255.255.255.0, and a usable range of 192.168.1.1–192.168.1.254 (254 usable hosts out of 256 total). At the extremes, 10.0.0.4/31 gives exactly 2 addresses, both usable per RFC 3021 (10.0.0.4 and 10.0.0.5), and 10.0.0.5/32 gives a single address that is its own network, broadcast, and only usable host all at once.
Common mistakes and edge cases
- Host bits in the address.
192.168.1.77/24is accepted: the network address is still192.168.1.0. The calculator shows the network the address belongs to, not the address you typed. - Very small networks. A /31 (two addresses) is treated as a point-to-point link, so both addresses are usable; a /32 is a single host. Neither has a separate network and broadcast address, so read the usable-host count shown instead of subtracting two.
- Write a prefix, not a netmask. Enter
192.168.1.0/24. A netmask such as255.255.255.0is not accepted as input; the calculator shows the netmask for the prefix you gave. - IPv6 has no broadcast address. For an IPv6 range you get the first and the last address of the prefix and the total number of addresses; there is no "usable hosts" count to subtract from.