IP network planning

IP Subnet Calculator

Enter an IPv4 address and prefix to see the network address, usable host range, broadcast address, subnet mask and wildcard mask.

CIDR & subnet mask Usable host range Runs on our server, nothing stored

Calculate a subnet

Type an address such as 192.168.1.10 and choose the prefix, or type 10.0.0.5/22 straight into the address box. A subnet mask like 255.255.255.0 also works.

Your subnet192.168.1.0/24

254 usable hosts: 192.168.1.1 – 192.168.1.254

Network address192.168.1.0
Broadcast address192.168.1.255
First usable host192.168.1.1
Last usable host192.168.1.254
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Total addresses256
Next subnet192.168.2.0/24
Address typePrivate (RFC 1918)
Class · hexC · 0xC0A8010A
IP in binary11000000.10101000.00000001.00001010Mask in binary11111111.11111111.11111111.00000000
How it works

How to calculate a subnet by hand

  1. 01

    Read the prefix

    A /24 keeps 24 bits for the network and leaves 8 bits for devices, so the mask is 255.255.255.0.

  2. 02

    Count the addresses

    Addresses = 2 to the power of (32 − prefix). A /24 has 256; a /26 has 64.

  3. 03

    Find the network

    Round the IP down to a multiple of the block size: 192.168.1.70/26 belongs to 192.168.1.64.

  4. 04

    Find the broadcast

    Network plus block size minus one: 192.168.1.64/26 ends at 192.168.1.127.

  5. 05

    List usable hosts

    Everything between network and broadcast: 192.168.1.65 – 192.168.1.126, which is 62 hosts.

  6. 06

    Plan the next block

    The next subnet starts right after the broadcast: 192.168.1.128/26.

Quick reference

CIDR to subnet mask table

Common prefixes from /16 to /32. Usable hosts excludes the network and broadcast addresses.

PrefixSubnet maskAddressesUsable hosts
/32255.255.255.25511
/31255.255.255.25422
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/27255.255.255.2243230
/26255.255.255.1926462
/25255.255.255.128128126
/24255.255.255.0256254
/23255.255.254.0512510
/22255.255.252.01,0241,022
/21255.255.248.02,0482,046
/20255.255.240.04,0964,094
/19255.255.224.08,1928,190
/18255.255.192.016,38416,382
/17255.255.128.032,76832,766
/16255.255.0.065,53665,534
Helpful answers

Subnetting questions

What does /24 mean?

The number after the slash is the prefix length: how many of the 32 address bits identify the network. A /24 keeps 24 bits for the network and 8 bits for devices, which gives 256 addresses and 254 usable hosts, with the mask 255.255.255.0.

Why are two addresses not usable?

In a normal subnet the first address identifies the network and the last is the broadcast address, so neither can be given to a device. /31 point-to-point links and /32 single-host routes are the exceptions.

What is a wildcard mask used for?

A wildcard mask is the inverse of the subnet mask. Routers and firewalls such as Cisco and MikroTik use it in access lists and OSPF to match a range of addresses.

Which subnet size should I use for an office or CCTV network?

A /24 (254 devices) suits most small offices. Put cameras, staff, guests and phones in separate subnets or VLANs; use a /23 or larger only when a single segment really needs more than 254 devices.

Is my address private or public?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are private ranges used inside homes and offices. 100.64.0.0/10 is carrier-grade NAT used by many internet providers. Everything else in normal use is public.

Related network diagnostic tools

Combine DNS, ping, traceroute and port checks when troubleshooting slow sites, mail delivery or remote services from any ISP.

DNS lookup Ping test Port checker

Link copied