Skip to main content

IP Subnet Calculator

Enter any IPv4 address and prefix length to instantly calculate network address, broadcast, usable host range, and binary breakdown.

0 32 /24

Results

Network Address
Broadcast Address
Subnet Mask
Wildcard Mask
First Usable Host
Last Usable Host
Usable Hosts
IP Class & Type

Binary Breakdown

0 Network bits   0 Host bits
LabelBinaryDecimal

Common CIDR Reference

Click any row to load that subnet into the calculator.

CIDRSubnet MaskTotal IPsUsable HostsCommon Use
/8255.0.0.016,777,21616,777,214Class A private
/12255.240.0.01,048,5761,048,574Class B private range
/16255.255.0.065,53665,534Large campus network
/20255.255.240.04,0964,094Medium office network
/22255.255.252.01,0241,022Large LAN
/23255.255.254.0512510Medium LAN
/24255.255.255.0256254Standard LAN
/25255.255.255.128128126Half subnet
/26255.255.255.1926462Quarter subnet
/27255.255.255.2243230Small department
/28255.255.255.2401614Small office / VLAN
/29255.255.255.24886Small server cluster
/30255.255.255.25242Point-to-point link
/32255.255.255.25510Host route / loopback

What Is IP Subnetting?

IP subnetting is the process of dividing a single IP network into smaller, logically segmented sub-networks (subnets). Each subnet operates as its own broadcast domain, which improves network performance, tightens security boundaries, and makes IP address management more efficient.

Network engineers and system administrators use subnetting daily — when designing office LANs, segmenting VLANs in data centres, configuring cloud VPC networks, or planning routed WAN links between sites.

What Is CIDR Notation?

CIDR (Classless Inter-Domain Routing) notation expresses an IP address and its routing prefix together — for example, 192.168.1.0/24. The number after the slash tells you how many bits of the 32-bit address are the network portion; the remaining bits identify individual hosts.

A /24 has 8 host bits, giving 28 = 256 total addresses (254 usable — the network address and broadcast address are reserved). A /30 has just 2 host bits — ideal for point-to-point router links.

Network vs Broadcast Address

Every subnet reserves two addresses: the network address (all host bits set to 0) identifies the subnet itself and cannot be assigned to any device. The broadcast address (all host bits set to 1) is used to send a packet to every host in the subnet simultaneously.

This is why a /24 subnet provides 254 usable host addresses rather than 256 — the first and last are always reserved.

How to Use This Calculator

Enter any IPv4 address in dotted-decimal format (e.g. 10.0.4.0) and set the CIDR prefix using the slider or the prefix field. You can also type a subnet mask directly — the tool keeps all three inputs in sync automatically.

The calculator shows the network address, broadcast address, first and last usable hosts, subnet mask, wildcard mask, total and usable host counts, the IP class, and a full binary breakdown that colour-codes network bits from host bits.

Copied!