NetSense logo

Subnet Calculator

Calculate network addresses, host ranges, and masks from CIDR notation.

Enter an IPv4 address and prefix length to instantly see the network address, broadcast address, usable host range, subnet mask, wildcard mask, and binary representation. You can also paste CIDR notation directly (e.g. 10.0.1.0/24).

Results

Network Address192.168.1.0/24
Broadcast Address192.168.1.255
Host Range192.168.1.1 – 192.168.1.254
Usable Hosts254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255

32-Bit Visual Map

1591317212529
/24
1
1
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
192
168
1
0
Octet 1
Octet 2
Octet 3
Octet 4
Network bits
Host bits

Binary Representation

IP11000000.10101000.00000001.00000000
Mask11111111.11111111.11111111.00000000
Network11000000.10101000.00000001.00000000
Broadcast11000000.10101000.00000001.11111111

Subnet Mask Cheat Sheet

CIDRHostsTypical ISP Use
/321Loopback, management IP
/312Point-to-point links (RFC 3021)
/302OLT uplinks, router interconnects
/296Small customer allocation
/2814Small office, CPE management
/2730Medium customer block
/2662OLT management VLAN
/25126Large customer block
/24254Standard LAN, subscriber segment
/221,022Large subscriber pool
/204,094NAT pool, cloud VPC
/1665,534Large ISP internal network
/816.8MMassive network (Class A)

Private & Reserved IP Ranges

CIDRAddressesCommon Use
10.0.0.0/816.7MCloud VPCs, large ISP backbones
172.16.0.0/121MDocker, medium networks
192.168.0.0/1665KHome networks, CPE management
100.64.0.0/104.2MCGNAT shared address space (RFC 6598)

What Is Subnetting?

Subnetting divides a single IP network into smaller, isolated segments. Each subnet has its own network address, broadcast address, and range of usable host addresses. For ISPs, subnetting is fundamental to network architecture — it determines how subscriber traffic is segmented, how management VLANs are isolated, and how efficiently public and private address space is utilized.

CIDR (Classless Inter-Domain Routing) notation, defined in RFC 4632, replaced the old Class A/B/C system in 1993, enabling flexible prefix lengths from /0 to /32. A /24 gives you 254 usable hosts, a /30 gives you 2, and a /20 gives you 4,094 — allowing ISPs to allocate exactly the right amount of address space for each purpose.

How Subnet Calculation Works

Every subnet calculation boils down to bitwise operations on the IP address and subnet mask:

  • Network address = IP AND subnet mask
  • Broadcast address = network OR wildcard mask
  • Usable hosts = 2^(32 − prefix length) − 2
  • Wildcard mask = NOT subnet mask (255.255.255.255 − mask)

The binary representation in the calculator above shows exactly how these operations work bit-by-bit. The 1-bits in the mask identify the network portion, while the 0-bits identify the host portion.

How Should ISPs Plan Their Subnets?

Effective subnet planning is critical for ISP operations. Common allocation patterns:

  • /31 or /30 — Point-to-point links between routers and OLTs
  • /28 to /26 — Management VLANs for network devices
  • /24 to /22 — Subscriber segments per VLAN or area
  • /20 or larger — CGNAT pools (RFC 6598, 100.64.0.0/10)

Always over-provision slightly — renumbering a subnet is far more disruptive than allocating a few extra addresses upfront. Pair your IP address planning with switch and port monitoring to track utilization and detect oversubscribed segments before they affect subscribers.

Frequently Asked Questions

Common questions about subnetting, CIDR notation, and IP address planning for ISPs.

Written by Plamen Haralambiev, Network Engineer and ManagerLast updated: February 20, 2026

Monitor Every Subnet in Your Network

NetSense NMS gives ISPs real-time visibility into every switch port, OLT interface, and subscriber segment. Detect oversubscribed subnets, port errors, and capacity issues before they impact your customers.