Subnet Calculator

Calculate subnet masks, network ranges, broadcast addresses, and host counts from any IP address and CIDR.

Embed this tool
/24
Network
192.168.1.0
Broadcast
192.168.1.255
Subnet Mask
255.255.255.0
Usable Hosts
254

Details

First Host:192.168.1.1
Last Host:192.168.1.254
Wildcard Mask:0.0.0.255
IP Class:C

Advertisement

Ad

Understanding Subnets

Subnetting is the practice of dividing a single physical network into multiple smaller logical networks called subnets. It improves security by isolating broadcast domains, reduces network congestion, and makes IP address management far more efficient. At the heart of subnetting is the bitwise AND operation: a device takes its own IP address and performs a bitwise AND with the subnet mask to determine its local network prefix.

Before CIDR, the internet used rigid class-based addressing. Class A networks (/8) supported 16 million hosts, Class B (/16) supported 65,000, and Class C (/24) supported 254. This wasted enormous blocks of addresses. CIDR and Variable Length Subnet Masking (VLSM) solved this by allowing arbitrary prefix lengths, letting administrators carve out exactly the right amount of address space for each network segment. For a quick reference of all CIDR values, see our Subnet Mask Table.

In IPv6, subnetting is dramatically simpler. The standard LAN allocation is a /64 subnet, providing 264 addresses—more than enough for every device on Earth. Because the address space is so vast, IPv6 networks typically do not use NAT, and each device can have a globally unique routable address while still being protected by stateful firewalls.

References & Further Reading

Frequently Asked Questions

A subnet mask is a 32-bit number that divides an IPv4 address into a network portion and a host portion. By performing a bitwise AND between the IP address and the subnet mask, you obtain the network address. This mechanism allows routers to determine whether traffic should remain on the local network or be forwarded to a remote destination.

Related Tools