Subnet calculator
Enter any IPv4 or IPv6 network in CIDR or mask form to get its network and broadcast address, usable host range, subnet mask, wildcard and host count. Switch modes to turn an IP range into CIDR blocks or split a network into smaller subnets.
IPv4 or IPv6. A prefix (/24) or, for IPv4, a dotted mask (255.255.255.0) both work.
| Network address | 192.168.1.0 |
|---|---|
| Broadcast address | 192.168.1.255 |
| First usable | 192.168.1.1 |
| Last usable | 192.168.1.254 |
| Subnet mask | 255.255.255.0 |
| Wildcard (Cisco ACL) | 0.0.0.255 |
| Binary mask | 11111111.11111111.11111111.00000000 |
| Address class | C |
| Scope | Private (RFC 1918) |
Calculated in your browser. Nothing you type is sent to our servers.
How subnetting works
- 1
An address has a network part and a host part
An IPv4 address is 32 bits. The prefix length says how many of the leading bits name the network; the rest number the devices inside it. - 2
The prefix sets the block size
Each bit you move from network to host doubles the block: a /25 holds 128 addresses, a /24 256, a /23 512. - 3
The first and last addresses are reserved
In IPv4 the all-zeros host is the network address and the all-ones host is the broadcast address, so a block has two fewer usable hosts than addresses (except /31 and /32). - 4
Blocks start on their own boundary
A /24 always starts at .0 and a /26 at .0, .64, .128 or .192. That is why an arbitrary range often needs several CIDR blocks to describe it.
Common IPv4 subnet sizes
/30 · 4 addresses
/29 · 8 addresses
/28 · 16 addresses
/26 · 64 addresses
/24 · 256 addresses
/22 · 1,024 addresses
Subnets and proxy IP reputation
Anti-abuse systems rarely judge one IP on its own. When an address misbehaves, the whole /24 around it is often rate-limited or blocked, since those 256 addresses usually share a network and an owner. That is why shared proxy pools with many customers in one /24 tend to burn out together, and why the size of a /24 matters when you plan a large fleet.
Frequently asked questions
A /24 holds 256 addresses. The first is the network address and the last is the broadcast address, so 254 are usable for devices. In general an IPv4 block of prefix /n has 2^(32−n) addresses and 2^(32−n) − 2 usable hosts, up to /30.