IP Subnet Calculator
Calculate subnet information for IPv4 networks including network address, broadcast address, host range, and binary representations.
Network Information
Host Range
Network Details
Binary Representation
Related Calculators
Tire Size Calculator
Calculate tire sizes for vehicles.
Voltage Drop Calculator
Calculate voltage drop in electrical circuits for DC, single-phase, and three-phase systems with wire resistance data and NEC compliance assessment.
BTU Calculator
Calculate heating and cooling requirements for any space with comprehensive HVAC recommendations.
Ohms Law Calculator
Calculate values using Ohm's Law.
Resistor Calculator
Calculate resistor values.
What is IP Subnet Calculator?
Calculate IPv4 subnet information instantly with our free IP subnet calculator. Enter any IP address and subnet mask (in CIDR or dotted-decimal format) to get complete network details including network address, broadcast address, usable host range, network class, and binary representations. Perfect for network administrators, IT professionals, students, and anyone working with IP networking. Our calculator supports both CIDR notation (/24) and traditional subnet mask format (255.255.255.0) for maximum flexibility.
How to Use the IP Subnet Calculator
Using our IP subnet calculator is simple and intuitive. First, enter a valid IPv4 address in dotted-decimal format (e.g., 192.168.1.1). Choose your preferred input mode - either CIDR notation (like /24) or full subnet mask (like 255.255.255.0). Enter the subnet information, and the calculator instantly displays all relevant network details including network address, broadcast address, first and last usable hosts, total addresses, network class, and binary representations. Switch between CIDR and subnet mask formats anytime to see equivalent values.
What is IP Subnetting?
IP subnetting is the practice of dividing a larger network into smaller, more manageable sub-networks (subnets). This fundamental networking concept helps organizations optimize their IP address space, improve network performance, enhance security, and simplify network management. By creating subnets, network administrators can logically separate different departments, locations, or functions while still maintaining connectivity through routing. Subnetting is essential for efficient network design and is a critical skill for anyone working in IT networking.
Understanding Subnet Components
Every subnet has specific components that define its characteristics and usable address space. Understanding these components is crucial for proper network design and troubleshooting.
Network Address
The network address is the first address in a subnet and identifies the network itself. It's calculated by performing a bitwise AND operation between the IP address and subnet mask. This address cannot be assigned to any host device - it serves solely to identify the subnet. For example, in the 192.168.1.0/24 network, 192.168.1.0 is the network address. All devices in this subnet share this network address as their network identifier.
Broadcast Address
The broadcast address is the last address in a subnet, used to send data to all hosts on that network simultaneously. It's calculated by setting all host bits to 1. Like the network address, the broadcast address cannot be assigned to any individual host. In the 192.168.1.0/24 network, the broadcast address is 192.168.1.255. Any packet sent to this address will be received by all devices on the subnet.
Usable Host Range
The usable host range includes all addresses between the network address and broadcast address. These are the addresses that can be assigned to actual devices (computers, servers, printers, etc.). For a /24 network (256 total addresses), you have 254 usable hosts because the network address and broadcast address are reserved. The first usable host is the network address + 1, and the last usable host is the broadcast address - 1.
Subnet Mask
The subnet mask determines which portion of an IP address represents the network and which represents the host. It's a 32-bit number where network bits are set to 1 and host bits are set to 0. For example, 255.255.255.0 (binary: 11111111.11111111.11111111.00000000) means the first 24 bits identify the network and the last 8 bits identify hosts. CIDR notation (/24) is a shorthand that specifies how many bits are used for the network portion.
CIDR Notation Explained
CIDR (Classless Inter-Domain Routing) notation provides a compact way to represent subnet masks. Instead of writing out the full subnet mask like 255.255.255.0, you write /24. The number after the slash indicates how many bits are used for the network portion of the address.
Common CIDR Notations
/24 = 255.255.255.0
254 usable hosts
/25 = 255.255.255.128
126 usable hosts
/26 = 255.255.255.192
62 usable hosts
/27 = 255.255.255.224
30 usable hosts
/28 = 255.255.255.240
14 usable hosts
/30 = 255.255.255.252
2 usable hosts (point-to-point links)
Network Classes
IP addresses were originally divided into classes based on the first octet. While modern networks use CIDR and don't strictly follow classful addressing, understanding network classes is still relevant for many networking concepts and legacy systems.
Class A
1.0.0.0 to 126.255.255.255
Default mask: 255.0.0.0 (/8)
16.7 million hosts per network. Used for very large networks.
Class B
128.0.0.0 to 191.255.255.255
Default mask: 255.255.0.0 (/16)
65,534 hosts per network. Used for medium to large networks.
Class C
192.0.0.0 to 223.255.255.255
Default mask: 255.255.255.0 (/24)
254 hosts per network. Used for small networks.
Class D (Multicast)
224.0.0.0 to 239.255.255.255
Reserved for multicast groups. Not used for regular host addressing.
Class E (Reserved)
240.0.0.0 to 255.255.255.255
Reserved for experimental purposes. Not available for general use.
Private IP Address Ranges
Private IP addresses are reserved for use in private networks and are not routable on the public internet. These addresses can be used freely within organizations without coordination with IANA or regional internet registries. Private networks connect to the internet through Network Address Translation (NAT).
Class A Private: 10.0.0.0 to 10.255.255.255
CIDR: 10.0.0.0/8 | 16.7 million addresses | Large enterprise networks
Class B Private: 172.16.0.0 to 172.31.255.255
CIDR: 172.16.0.0/12 | 1 million addresses | Medium networks
Class C Private: 192.168.0.0 to 192.168.255.255
CIDR: 192.168.0.0/16 | 65,536 addresses | Home and small office networks
Subnet Calculation Formulas
Understanding the mathematics behind subnetting helps you quickly calculate network details without a calculator.
Total Addresses:
2^(host bits)
Example: /24 has 8 host bits, so 2^8 = 256 total addresses
Usable Hosts:
2^(host bits) - 2
Subtract 2 for network and broadcast addresses. Example: 256 - 2 = 254 usable hosts
Number of Subnets:
2^(borrowed bits)
If you borrow 3 bits from a /24 to create /27, you get 2^3 = 8 subnets
Practical Applications of Subnetting
Subnetting is used extensively in real-world networks for various purposes:
- Network Segmentation: Separate different departments (Sales, HR, IT) into different subnets for better organization and security
- Security: Isolate sensitive systems and apply different security policies to different subnets
- Performance: Reduce broadcast traffic by creating smaller broadcast domains
- IP Address Conservation: Allocate only the necessary number of addresses to each subnet
- Geographic Distribution: Create subnets for different locations or buildings
- VLANs: Map subnets to virtual LANs for logical network separation
- Network Troubleshooting: Quickly identify which network segment a device belongs to
Why Use Our IP Subnet Calculator?
Our free IP subnet calculator provides instant, accurate results for all your subnetting needs:
- Instant calculation of network and broadcast addresses
- Complete usable host range display
- Support for both CIDR and subnet mask formats
- Binary representation for learning and verification
- Network class and type identification
- Private vs public IP detection
- Perfect for certification study (CCNA, Network+, etc.)
- No registration or software installation required
