HomeSubnet Calculator
Subnet Calculator

Subnet Calculator

Calculate subnet details from an IP address and CIDR prefix or subnet mask

/
192.168.1.100/24 is in the 192.168.1.0/24 network with 254 usable hosts.This is a private (RFC 1918) address — not routable on the public internet.

Subnet Details

Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
CIDR Notation
/24
First Usable Host
192.168.1.1
Last Usable Host
192.168.1.254
Total Addresses
256
Usable Hosts
254
IP Class
Class C
Address Type
Private (RFC 1918)

Binary Representation

Network11000000.10101000.00000001.00000000
Subnet Mask11111111.11111111.11111111.00000000
Broadcast11000000.10101000.00000001.11111111

Address Range Visualization

Net
254 usable hosts
Bcast
192.168.1.0192.168.1.1192.168.1.254192.168.1.255

CIDR Quick Reference

CIDRSubnet MaskUsable Hosts
/32255.255.255.2551
/31255.255.255.2542
/30255.255.255.2522
/29255.255.255.2486
/28255.255.255.24014
/27255.255.255.22430
/26255.255.255.19262
/25255.255.255.128126
/24255.255.255.0254
/23255.255.254.0510
/22255.255.252.01,022
/21255.255.248.02,046
/20255.255.240.04,094
/16255.255.0.065,534
/12255.240.0.01,048,574
/8255.0.0.016,777,214
/00.0.0.04,294,967,294

Understanding Subnetting

Subnetting is the practice of dividing a network into smaller, more manageable sub-networks (subnets). It is a fundamental skill for network engineers, system administrators, and anyone working with IP networks. Subnetting allows you to efficiently allocate IP addresses, improve network security through segmentation, and reduce broadcast traffic.

Every IPv4 address consists of 32 bits, divided into a network portion and a host portion. The subnet mask determines where this division occurs. Bits set to 1 in the subnet mask identify the network portion, while bits set to 0 identify the host portion.

CIDR Notation

CIDR (Classless Inter-Domain Routing) notation is the modern way to express subnet masks. Instead of writing out the full mask (e.g., 255.255.255.0), CIDR uses a slash followed by the number of network bits (e.g., /24). A /24 network has 24 bits for the network portion and 8 bits for hosts, giving 256 total addresses (254 usable).

Key Subnet Concepts

TermDescription
Network AddressThe first address in a subnet; identifies the network itself. Cannot be assigned to a host.
Broadcast AddressThe last address in a subnet; used to send data to all hosts in the network.
Subnet MaskA 32-bit number that separates the network and host portions of an IP address.
Wildcard MaskThe inverse of the subnet mask. Used in ACLs and OSPF configurations (Cisco).
Usable HostsTotal addresses minus 2 (network and broadcast). For /31, both addresses are usable (RFC 3021).
CIDR PrefixThe number of leading 1-bits in the subnet mask, written as /N (e.g., /24).

Private IP Address Ranges (RFC 1918)

Three address ranges are reserved for private networks and are not routable on the public internet. These are the addresses used inside homes, offices, and data centers behind NAT (Network Address Translation).

RangeCIDRAddresses
10.0.0.0 – 10.255.255.25510.0.0.0/816,777,216
172.16.0.0 – 172.31.255.255172.16.0.0/121,048,576
192.168.0.0 – 192.168.255.255192.168.0.0/1665,536

Subnetting Example

Suppose you have the network 192.168.1.0/24 and need to create 4 equal subnets. You would borrow 2 bits from the host portion (2^2 = 4 subnets), changing the prefix from /24 to /26. Each /26 subnet has 64 total addresses (62 usable):

SubnetRangeBroadcast
192.168.1.0/26192.168.1.1 – .62192.168.1.63
192.168.1.64/26192.168.1.65 – .126192.168.1.127
192.168.1.128/26192.168.1.129 – .190192.168.1.191
192.168.1.192/26192.168.1.193 – .254192.168.1.255

Frequently Asked Questions