esc
Calculators

IP subnet calculator:
IPv4 CIDR and IPv6 prefixes

Type an address with its prefix, like 192.168.1.10/24, 10.0.0.1 255.255.0.0 or 2001:db8::1/48, and get the network, host range, broadcast, mask and address type.

IPv4 only, e.g. 26 lists the /26 subnets inside the network.
Network192.168.1.0/24254 usable hosts
Usable host range
192.168.1.1 – 192.168.1.254
Broadcast address
192.168.1.255
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
Total addresses
256
Mask in binary
11111111.11111111.11111111.00000000
Address type
Private (RFC 1918)
Class (old system)
C
  • Usable hosts = 2^(32 − prefix) − 2: the first address names the network and the last is broadcast. A /31 has 2 usable addresses for point-to-point links (RFC 3021).

How to use IP subnet calculator

  1. 01Type the addressWith /prefix or a mask.
  2. 02Add a split (optional)A longer prefix.
  3. 03Read the subnetRange, mask, broadcast.
File character arranging marked pages

Mask off the host bits.

The prefix length says how many leading bits name the network. Masking the address with it gives the network address; setting the remaining host bits to 1 gives the broadcast. Usable hosts are 2^(32 − prefix) − 2, except /31 and /32. For IPv6 the prefix gives the first and last address and the number of /64 networks.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Your text stays in your browser. Nothing is uploaded.
Works in
Chrome, Edge, Firefox and Safari, on phones and computers

Questions

What is the range of 10.20.30.40/19?

A /19 mask is 255.255.224.0, so the network is 10.20.0.0, the broadcast 10.20.31.255 and the usable hosts 10.20.0.1 to 10.20.31.254: 8,190 of them.

How many hosts in a /24?

2^8 = 256 addresses, minus the network and broadcast addresses, so 254 usable hosts. A /26 has 62 and a /30 has 2.

How do I split a /24 into four subnets?

Use a /26 (two more bits). 192.168.1.0/24 becomes .0, .64, .128 and .192, each with 62 hosts. Type 26 in the split box to list them.

Is what I type sent anywhere?

No. The calculation runs in your browser and nothing you type leaves your device.