Subnet Calculator
Calculate subnet mask, network address, broadcast address, usable host range, CIDR notation, and binary representation for any IPv4 address instantly.
IPv4 Subnet Calculator
Enter an IPv4 address and CIDR prefix to instantly calculate network details. All calculations run locally in your browser.
Network Details
Enter mask to auto-convert to CIDR
Press Esc to reset
Result Summary
Quick Presets
Calculation Results
How to Use the Subnet Calculator
Quick Start Guide
- 1Enter IPv4 Address: Type any valid IPv4 address (e.g. 192.168.1.10) in the input field.
- 2Set CIDR Prefix: Drag the slider or type a subnet mask (e.g. 255.255.255.0) to auto-convert.
- 3View Results Instantly: Network address, broadcast, host range and more update in real time.
- 4Export or Copy: Copy all results to clipboard, or export as TXT or JSON for documentation.
Key Features
- ✓Real-time subnet calculations as you type
- ✓CIDR ↔ subnet mask auto conversion
- ✓Binary visualization of IP and mask
- ✓Private / public / loopback IP detection
- ✓Calculation history saved locally
- ✓Export results as TXT or JSON
- ✓Copy all results to clipboard
- ✓Quick presets for common subnets
Example Subnet Calculations
| Input | Network | Broadcast | Usable Hosts |
|---|---|---|---|
| 192.168.1.10 /24 | 192.168.1.0 | 192.168.1.255 | 254 |
| 10.0.0.50 /16 | 10.0.0.0 | 10.0.255.255 | 65,534 |
| 172.16.10.33 /27 | 172.16.10.32 | 172.16.10.63 | 30 |
| 10.10.0.1 /30 | 10.10.0.0 | 10.10.0.3 | 2 |
| 192.168.100.0 /8 | 192.0.0.0 | 192.255.255.255 | 16,777,214 |
Subnet Mask Reference
| CIDR | Subnet Mask | Total Addresses | Usable Hosts |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 2 |
Frequently Asked Questions
What is a subnet calculator?
A subnet calculator is a tool that takes an IPv4 address and CIDR prefix and computes the network address, broadcast address, usable host range, subnet mask, wildcard mask, and number of hosts. It eliminates manual bitwise calculations for network engineers and students.
What is CIDR notation?
CIDR (Classless Inter-Domain Routing) notation represents an IP address and its associated network prefix. For example, 192.168.1.0/24 means the first 24 bits are the network portion, leaving 8 bits for host addresses (256 total, 254 usable).
How is the network address calculated?
The network address is computed by performing a bitwise AND between the IP address and the subnet mask. For 192.168.1.100 with mask 255.255.255.0, the result is 192.168.1.0.
How many usable hosts are in a /24 subnet?
A /24 subnet has 256 total addresses (2^8). Subtracting the network address and broadcast address gives 254 usable hosts.
What is a wildcard mask?
A wildcard mask is the inverse of the subnet mask. It's used in access control lists (ACLs) and routing protocols. For a /24 subnet mask of 255.255.255.0, the wildcard mask is 0.0.0.255.
Who should use this tool?
Network engineers, system administrators, DevOps engineers, cloud engineers, cybersecurity professionals, and students studying for CCNA, Network+, AWS, or Azure certifications.
Who Uses Subnet Calculators?
Network Engineers
Plan VLAN segmentation, IP addressing schemes, and route summarization for enterprise networks.
Cloud Engineers
Design VPC CIDR blocks, subnet splits, and security group rules for AWS, Azure, and GCP.
Security Professionals
Configure firewall rules, ACLs, and network segmentation for zero-trust architecture.
Certification Learners
Practice subnetting for CCNA, Network+, and cloud certifications with instant feedback.
System Admins
Manage DHCP pools, static IP assignments, and troubleshoot IP conflicts efficiently.
DevOps Engineers
Define infrastructure-as-code network configurations with precision and confidence.
Related Tools
IP Range Calculator
Calculate usable IP range, network address, broadcast address, subnet mask, CIDR notation, total hosts, usable hosts, wildcard mask, and IP class from any IPv4 address and subnet.
CIDR Calculator
Calculate CIDR notation details including network address, broadcast, subnet mask, wildcard mask, usable hosts, IP range, and binary representation for any IPv4 address instantly.
Bandwidth Calculator
Estimate internet bandwidth usage, file transfer time, monthly website traffic, streaming data consumption, and multi-user bandwidth requirements instantly in your browser.
Checksum Calculator
Generate MD5, SHA-1, SHA-256, SHA-512, CRC32, and more checksums for text or files instantly in your browser.
IP Address Masker & CIDR Calculator
Convert IP addresses to CIDR notation, calculate subnet masks, and practice subnetting with interactive exercises
Download Time Calculator
Estimate how long a file download will take based on file size and internet speed. Supports KB, MB, GB, TB and Kbps, Mbps, Gbps with real-world efficiency presets.