Skip to content
Get Started
Free tool

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.

Calculator

IPv4 or IPv6. A prefix (/24) or, for IPv4, a dotted mask (255.255.255.0) both work.

IPv4 network · Private (RFC 1918)192.168.1.0/24
Usable hosts254Network and broadcast excluded
Total addresses256
Subnet mask255.255.255.0Wildcard 0.0.0.255
24 network bits8 host bits
Network address192.168.1.0
Broadcast address192.168.1.255
First usable192.168.1.1
Last usable192.168.1.254
Subnet mask255.255.255.0
Wildcard (Cisco ACL)0.0.0.255
Binary mask11111111.11111111.11111111.00000000
Address classC
ScopePrivate (RFC 1918)

Calculated in your browser. Nothing you type is sent to our servers.

How subnetting works

  1. 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. 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. 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. 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

The blocks you will meet most often, with their masks and usable hosts.

/30 · 4 addresses

255.255.255.252 · 2 usable hosts. The classic size for a link between two routers.

/29 · 8 addresses

255.255.255.248 · 6 usable hosts. A common size for a small static IP block from an ISP.

/28 · 16 addresses

255.255.255.240 · 14 usable hosts. Small office networks and server ranges.

/26 · 64 addresses

255.255.255.192 · 62 usable hosts. A quarter of a /24, often used to split a LAN by floor or team.

/24 · 256 addresses

255.255.255.0 · 254 usable hosts. The default LAN size and the smallest block routed on the public internet.

/22 · 1,024 addresses

255.255.252.0 · 1,022 usable hosts. Four /24s, used for larger campuses and VPCs.

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.

Dedicated /24 blocks, ready to use

Whole ISP subnets of 255, 510 or 1,020 static IPs from $1.19/IP, or single ISP IPs from $0.75. Try them for $4.99.