Skip to Calculator
/24
Subnet Calculator
RFC 791 & RFC 1519 Engine

IPv4 Subnet Calculator & CIDR Range Console

Calculate IPv4 network boundaries, usable host ranges, subnet masks, Cisco wildcard masks, and broadcast addresses. Featuring 32-bit register visualization, point-to-point /31 link support (RFC 3021), and instant Cisco CLI snippet generation.

255.255.255.0
Popular Subnet Presets:
32-Bit Net/Host Matrix:
Network Bits (24) Host Bits (8)

Subnet Boundary Summary

Network Address (CIDR)
192.168.1.0/24
Directed Broadcast
192.168.1.255
Subnet Mask
255.255.255.0
Cisco Wildcard Mask
0.0.0.255
Usable Host Range
192.168.1.1 - 192.168.1.254
Usable Hosts
254
Total IP Addresses
256
IP Scope / RFC Type
Private Network (RFC 1918)
IP Class (Legacy)
Class C
Cisco IOS Interface Config:
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0

How IPv4 Subnetting Works Under the Hood

An IPv4 address consists of 32 binary bits divided into four 8-bit octets separated by decimal points. When a device communicates over a network, it performs a bitwise logical AND operation between its own IP address and its subnet mask to determine whether the destination is local or remote.

IP Address: 192.168.1.130 → 11000000.10101000.00000001.10000010
Subnet Mask: 255.255.255.192 → 11000000.10101000.00000001.11000000
Network ID: 192.168.1.128 → 11000000.10101000.00000001.10000000

By isolating the network prefix from the host identifier, routers can route millions of packets using compact routing tables rather than keeping individual records for every connected device.

The IPv4 Subnetting Mathematical Formulas

1. Usable Hosts Formula

In standard subnets (/0 to /30), two addresses are reserved: all zeros in the host portion represents the Network Address, and all ones represents the Directed Broadcast: Usable Hosts = 2^(32 - Prefix) - 2.

Usable Hosts = 2^(32 - Prefix) - 2

2. Wildcard Mask Calculation

Used in Cisco IOS Access Control Lists (ACLs) and OSPF configurations, the wildcard mask is the exact bitwise inversion of the subnet mask: Wildcard Mask = 255.255.255.255 - Subnet Mask.

Wildcard Mask = 255.255.255.255 - Subnet Mask

Subnetting Edge Cases: RFC 3021 /31 & /32 Host Routes

RFC 3021: Point-to-Point Links with 31-Bit Prefixes (/31)

Historically, network engineers used /30 subnets for point-to-point router links. Because a /30 requires 4 addresses to deliver only 2 usable hosts, 50% of the allocated addresses were wasted. RFC 3021 eliminates this waste by allowing 31-bit prefixes on point-to-point links.

RFC 1122: Single Host Routes (/32)

A /32 prefix has a subnet mask of 255.255.255.255 and defines an exact, single host interface. Routers use /32 routes for loopback interfaces, VPN endpoint termination, and specific security overrides.

Related Networking Calculators & Engineering Tools