IP Subnet Calculator
Calculate subnet masks, network addresses, broadcast addresses, and available host ranges from CIDR notation. Includes interactive binary visualization and address space mapping.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
Related MiniWebtools:
About IP Subnet Calculator
The IP Subnet Calculator computes detailed network information from any IPv4 address and CIDR prefix length. It instantly determines the network address, broadcast address, subnet mask, wildcard mask, usable host range, and total host count. The interactive 32-bit binary visualization shows exactly which bits belong to the network portion and which identify individual hosts, making it an invaluable learning and planning tool for network engineers, system administrators, and IT students.
What Is IP Subnetting?
IP subnetting divides a larger network into smaller, more manageable subnetworks (subnets). By borrowing bits from the host portion of an IP address, network administrators can create multiple logical networks within a single address block. This improves network security by isolating traffic between segments, reduces broadcast traffic that would otherwise reach every device, and optimizes IP address allocation by assigning appropriately sized subnets to each department or function.
Understanding CIDR Notation
CIDR (Classless Inter-Domain Routing) notation combines an IP address with a prefix length separated by a forward slash. For example, 192.168.1.0/24 indicates that the first 24 bits identify the network, leaving 8 bits for host addresses. CIDR replaced the older classful addressing system (Classes A, B, C) in the 1990s, allowing more flexible and efficient allocation of IP address space. Instead of being locked into /8, /16, or /24 boundaries, organizations can receive exactly the block size they need.
How to Use This Calculator
- Enter an IPv4 address (e.g., 192.168.1.0) in the IP Address field. You can also type the full CIDR notation (192.168.1.0/24) directly.
- Enter the CIDR prefix length (0–32) in the Prefix Length field. Common values include /8, /16, /24, /28, and /30.
- Click "Calculate Subnet" to compute all network details instantly.
- Review the binary visualization to see the network/host bit split in the 32-bit address — network bits appear in indigo and host bits in teal.
- Use the address space map to visualize the network address, usable host range, and broadcast address as a color-coded bar.
Common Subnet Masks Reference
| CIDR | Subnet Mask | Addresses | Usable Hosts | Common Use |
|---|---|---|---|---|
| /32 | 255.255.255.255 | 1 | 1 | Host route, loopback |
| /31 | 255.255.255.254 | 2 | 2 | Point-to-point link |
| /30 | 255.255.255.252 | 4 | 2 | Point-to-point link |
| /29 | 255.255.255.248 | 8 | 6 | Small server subnet |
| /28 | 255.255.255.240 | 16 | 14 | Small office |
| /27 | 255.255.255.224 | 32 | 30 | Small department |
| /26 | 255.255.255.192 | 64 | 62 | Medium subnet |
| /25 | 255.255.255.128 | 128 | 126 | Large subnet |
| /24 | 255.255.255.0 | 256 | 254 | Standard LAN |
| /23 | 255.255.254.0 | 512 | 510 | Large LAN |
| /22 | 255.255.252.0 | 1,024 | 1,022 | Campus network |
| /20 | 255.255.240.0 | 4,096 | 4,094 | Data center block |
| /16 | 255.255.0.0 | 65,536 | 65,534 | Class B network |
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 | Class A network |
Private IP Address Ranges (RFC 1918)
| Range | CIDR Block | Addresses | Class |
|---|---|---|---|
| 10.0.0.0 — 10.255.255.255 | 10.0.0.0/8 | 16,777,216 | A |
| 172.16.0.0 — 172.31.255.255 | 172.16.0.0/12 | 1,048,576 | B |
| 192.168.0.0 — 192.168.255.255 | 192.168.0.0/16 | 65,536 | C |
These ranges are reserved for internal use and are not routable on the public internet. Most home routers use 192.168.0.0/24 or 192.168.1.0/24 by default, while enterprise networks commonly use 10.0.0.0/8 for maximum flexibility.
Subnetting Tips for Network Design
- Plan for growth: Choose a subnet size that accommodates future expansion. If you need 50 hosts now, use a /26 (62 usable) rather than a /27 (30 usable).
- Use Variable Length Subnet Masks (VLSM): Assign different prefix lengths to different subnets based on actual need. A server room with 10 devices can use a /28, while a large office floor uses a /24.
- Reserve point-to-point links: Use /30 or /31 subnets for router-to-router connections to conserve address space.
- Document everything: Maintain a subnet allocation table showing each subnet's purpose, range, and utilization. The "Copy All Results" feature helps with this.
- Remember the formula: Usable hosts = 2(32 − prefix) − 2. Subtract 2 for the network and broadcast addresses (except /31 and /32).
Frequently Asked Questions
What is a subnet mask?
A subnet mask is a 32-bit number that separates an IP address into network and host portions. Bits set to 1 represent the network part, while bits set to 0 represent the host part. For example, 255.255.255.0 (/24) means the first 24 bits are the network address and the remaining 8 bits identify individual hosts.
What is the difference between a network address and a broadcast address?
The network address is the first address in a subnet (all host bits set to 0) and identifies the subnet itself. The broadcast address is the last address (all host bits set to 1) and is used to send data to all hosts in the subnet. Neither can be assigned to individual hosts.
What is a wildcard mask and when is it used?
A wildcard mask is the inverse of a subnet mask, commonly used in access control lists (ACLs) on Cisco routers and OSPF configurations. It indicates which bits of an IP address should be checked (0) and which should be ignored (1). For a /24 subnet with mask 255.255.255.0, the wildcard mask is 0.0.0.255.
How many usable hosts are in a /24 subnet?
A /24 subnet has 256 total addresses (28), but 2 are reserved: one for the network address and one for the broadcast address. This leaves 254 usable host addresses. The general formula is: usable hosts = 2(32 − CIDR prefix) − 2.
What are /31 and /32 subnets used for?
A /32 subnet represents a single host address, commonly used in routing tables and loopback interfaces. A /31 subnet (RFC 3021) provides exactly 2 addresses without reserving network or broadcast addresses, making it ideal for point-to-point links between routers.
What is the difference between CIDR and classful addressing?
Classful addressing (Classes A, B, C) uses fixed boundaries at /8, /16, and /24, often wasting large amounts of address space. CIDR (Classless Inter-Domain Routing) allows prefix lengths at any bit boundary, enabling more efficient allocation. For example, CIDR can assign a /20 block (4,096 addresses) instead of forcing a full /16 (65,536 addresses).
Reference this content, page, or tool as:
"IP Subnet Calculator" at https://MiniWebtool.com/ip-subnet-calculator/ from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: Mar 7, 2026
General Tools:
- Age Calculator
- Air Conditioner BTU Calculator
- Barcode Generator
- Coffee Brew Ratio Calculator New
- Cost of Smoking Calculator
- How Old Are You?
- IP Address to Binary Converter
- IP Address to Hex Converter Featured
- Is JavaScript Enabled?
- Job Finder
- Maze Generator
- Miles per Gallon Calculator
- Number to Word Converter Featured
- QR Code Generator
- Quote Finder
- Word to Phone Number Converter Featured
- Daily Time Savings Calculator New
- Aquarium Volume & Stocking Calculator New
- Aquarium Substrate Calculator New
- Plant Spacing Calculator New
- Homebrew ABV Calculator (Alcohol by Volume) New
- Pizza Party Planner New
- Parking Ratio Calculator New
- Banana Radiation Calculator New
- Falling Through Earth Calculator New
- Penny Drop Impact Calculator New
- Lego Brick House Calculator New
- Wedding Alcohol Calculator New
- BBQ Calculator New
- Beer Chill Time Calculator New
- Cocktail ABV Calculator New
- Sudoku Generator & Solver New
- 24 Game Solver & Trainer New
- Nonogram Generator (Picross) New
- KenKen Generator (Calcudoku) New
- Kakuro Generator New
- Meeting Cost Ticker New
- Commute Life Wasted Calculator New
- Email Reply Time Calculator New
- Toilet Paper Value Calculator New
- Shower Cost Calculator New
- Light Bulb Savings Calculator New
- Killer Sudoku Generator New
- Futoshiki Generator New
- Hashi (Bridges) Puzzle Generator New
- Word Search Puzzle Generator New
- Slitherlink Puzzle Generator New
- Crossword Puzzle Maker New
- Cryptogram Generator New
- Word Scramble Generator New
- Word Ladder Generator New
- IP Subnet Calculator New
- Instagram Engagement Rate Calculator New
- TikTok Engagement Rate Calculator New
- YouTube Earnings Estimator New
- YouTube Thumbnail Downloader New
- YouTube Tag Extractor New
- YouTube Comment Picker New
- Twitter/X Character Counter New
- Instagram Font Generator New
- Social Media Image Size Guide New
- TikTok Money Calculator New
- YouTube Channel Statistics New
- Twitter/X Timestamp Converter New
- YouTube Watch Time Calculator New
- Twitch Earnings Calculator New
- YouTube Shorts Monetization Calculator New
- Facebook Ad Cost Calculator New
- Social Media ROI Calculator New
- Social Media Post Time Optimizer New
- Social Media Username Checker New
- CTR Calculator New
- ROAS Calculator New
- Influencer ROI Calculator New