Type a tool name, for example "keyword density" or "transcript".
Calculate IPv4 network, broadcast, mask, host range, and binary representation from a CIDR.
| Network | |
| Broadcast | |
| Subnet Mask | |
| Wildcard Mask | |
| Mask (binary) | |
| First Usable Host | |
| Last Usable Host | |
| Total Addresses | |
| Usable Hosts | |
| Class | |
| Type |
This subnet CIDR calculator turns any IPv4 address and prefix length into a full subnet breakdown. Enter something like 192.168.1.10/24 and you get the network address, broadcast address, subnet mask, wildcard mask, usable host range, host counts and address type. It is built for network admins, students and anyone planning IP space.
A subnet CIDR block is a range of IPv4 addresses written as a starting address plus a prefix length, such as 10.0.0.0/24. CIDR stands for Classless Inter-Domain Routing. The number after the slash tells you how many of the 32 bits identify the network. The remaining bits identify individual hosts inside it.
The prefix fixes the size of the block. The total number of addresses is 2 raised to the power of (32 minus the prefix). A /24 holds 256 addresses, a /26 holds 64 and a /30 holds 4. In an ordinary subnet, the first address is the network address and the last is the broadcast address, so usable hosts equal the total minus 2.
The subnet mask is the same prefix written in dotted decimal, for example /24 is 255.255.255.0. The wildcard mask is the inverse of the subnet mask (0.0.0.255 for a /24), and you will see it in router access lists and routing configuration.
Write the prefix as that many 1 bits followed by enough 0 bits to reach 32, then convert each group of 8 bits to decimal. For /26, that is 11111111.11111111.11111111.11000000, which is 255.255.255.192. The tool shows this binary form in the Mask (binary) row so you can check the work.
There is also a shortcut. Subtract the changing octet of the mask from 256 to get the block size: 256 minus 192 is 64. Subnets then start at multiples of 64 (0, 64, 128, 192), and any host belongs to the block whose start is the nearest multiple at or below its last octet.
| CIDR | Subnet mask | Usable hosts |
|---|---|---|
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 |
You only need an IPv4 address and a prefix length. The page starts with 192.168.1.10/24 filled in, so you can see a result right away.
For 10.0.0.77/26, the calculator reports the subnet that contains that host and every boundary you need. Here is the reasoning behind each value.
This tells you the host at 10.0.0.77 shares a subnet with 10.0.0.100 but not with 10.0.0.130, which sits in the next /26. That is the kind of question the tool answers fastest: are these two addresses on the same network?
Each row answers a specific planning or troubleshooting question, and the Type row warns you when an address is not what you assumed.
The network address identifies the subnet and is used in routing tables and firewall rules. The broadcast address is the top of the range. Do not assign either to a device in a standard subnet. If your input was a host address like 10.0.0.77, the network row shows the true subnet start, which often differs from what you typed.
These two rows are the range you can assign to devices, gateways and DHCP pools. A common habit is to give the router the first usable address and keep a few at the end for static devices.
Compare Usable Hosts with the number of devices you need, plus growth. If you need 40 devices, a /26 with 62 usable hosts fits, while a /27 with 30 does not. Leaving 25 to 30 percent headroom is a common planning habit, not a rule.
Use the wildcard mask when a platform asks for it instead of a subnet mask, as in many router access lists and OSPF network statements. A 0 bit means the bit must match and a 1 bit means any value is accepted.
The Class row (A, B, C, D or E) comes from the first octet and describes the old classful system. Modern networks use CIDR, so treat the class as background information. It does not limit the prefix you can use.
The Type row labels the address as Private (RFC 1918), Loopback, Link-local, Shared address space (CGNAT), Documentation, Benchmarking, Multicast, Reserved / special use, or Public address space (routing not verified). A public label only means the address is not in a special range. It does not confirm the address is routed or owned by you. To find who announces a public range, try an ASN lookup.
A /31 shows 2 usable hosts and a /32 shows 1. The tool treats a /31 as a point-to-point link where both addresses are usable, as described in RFC 3021, and a /32 as a single host route.
It helps anyone who needs to size, check or document an IPv4 block without doing binary math by hand.
Most wrong answers come from input mistakes or from misreading a host address as a network address.
This tool works with IPv4 only and calculates one subnet at a time. For 128-bit addresses, use the IPv6 subnet calculator instead. It does not split a block into several subnets automatically, so for VLSM planning you work through your segments from largest to smallest and check each one here.
The Type row is based on well-known special-purpose ranges, not live routing data. To see which IP a domain actually uses, run it through a domain to IP lookup. More utilities for addressing and DNS are collected in the Network & IP tools hub.
Enter your address and prefix in the fields above to get the network, mask, host range and counts in one table. Adjust the prefix until the usable host count fits your design, then copy the values into your configuration.
Your report has been submitted. We will look into this issue.
A VPN changes your network exit. It does not guarantee anonymity.
Themes, plugins, code, video, audio, graphics & more from 90,000+ authors.
Web Development
Design & Media
Unlimited Access
Explore Envato MarketCalculates IPv4 network ranges from a strict address and prefix. Private, loopback, documentation, carrier-grade NAT and other special-use ranges have separate labels. A public-range address is not proof of Internet reachability.
Implementation reviewed: 4 October 2026. Source documentation