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 upgrading for ad-free browsing and more daily uses, or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade for ad-free browsing and higher daily limits
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:
- 0–60 / Quarter Mile Calculator New
- 24 Game Solver & Trainer
- 2-Stroke Oil Mix Calculator New
- Age Calculator
- AI Gift Idea Generator New
- AI Travel Itinerary Generator New
- AI Unit Converter (Natural Language) New
- Air Conditioner BTU Calculator
- Aquarium Heater Wattage Calculator New
- Aquarium Substrate Calculator
- Aquarium Volume & Stocking Calculator
- Baby Name Generator New
- Backpacking Food Weight Calculator New
- Banana Radiation Calculator
- Barcode Generator
- BBQ Calculator
- Beer Chill Time Calculator
- Betting Odds Converter New
- Birthday Across Cultures Calculator New
- 🖱️ Click Counter Popular
- Closet Capsule Calculator New
- Cocktail ABV Calculator
- Coffee Brew Ratio Calculator
- Commute Life Wasted Calculator
- Cost of Smoking Calculator
- Crossword Puzzle Maker Popular
- Cryptogram Generator
- CTR Calculator New
- Daily Time Savings Calculator
- 💧 Dew Point Calculator New
- Dishwasher Load Optimizer New
- ⚔️ DPS Calculator New
- Elo Rating Calculator New
- Email Reply Time Calculator
- Facebook Ad Cost Calculator New
- Falling Through Earth Calculator
- Fertilizer Calculator (NPK) New
- Flight Distance Calculator New
- Frost Date Calculator New
- Futoshiki Generator
- 🎰 Gacha Pity Calculator Popular
- 🎮 Game Sensitivity Converter New
- Gas Mileage Calculator New
- Hair Dye Mixing Calculator New
- Hashi (Bridges) Puzzle Generator
- 🌡️ Heat Index Calculator New
- Homebrew ABV Calculator (Alcohol by Volume)
- How Old Are You?
- 🎮 In-Game Currency Converter New
- Influencer ROI Calculator New
- Instagram Engagement Rate Calculator New
- Instagram Font Generator New
- Invoice Generator New
- IP Address to Binary Converter Popular
- IP Address to Hex Converter Popular
- IP Subnet Calculator Popular
- Is JavaScript Enabled?
- Job Finder Popular
- Julia Set Generator New
- K/D Ratio Calculator New
- Kakuro Generator
- KenKen Generator (Calcudoku)
- Killer Sudoku Generator
- Knot Tying Reference Tool New
- L-System Fractal Generator New
- Laundry Detergent Dosage Calculator New
- Lawn Fertilizer Calculator New
- Lego Brick House Calculator
- Light Bulb Savings Calculator
- 🎲 Loot Drop Probability Calculator New
- Mandelbrot Set Explorer New
- Maze Generator
- Meeting Cost Ticker
- Miles per Gallon Calculator
- Nonogram Generator (Picross)
- Number to Word Converter Popular
- Octane Mix Calculator New
- Packing List Generator New
- Paper Size Reference New
- Parking Ratio Calculator
- Penny Drop Impact Calculator
- Pizza Party Planner
- Plant Spacing Calculator
- QR Code Generator
- Quote Finder
- Raised Bed Soil Calculator New
- ROAS Calculator New
- Shower Cost Calculator
- Sierpinski Triangle Generator New
- Sleeping Bag Temperature Rating Guide New
- Slitherlink Puzzle Generator
- ❄️ Snow Day Calculator New
- Social Media Image Size Guide New
- Social Media Post Time Optimizer Popular
- Social Media ROI Calculator New
- Social Media Username Checker Popular
- Speedrun Split Timer New
- Spirograph Generator New
- Storage Unit Size Calculator New
- Sudoku Generator & Solver
- Tent Footprint Size Calculator New
- Tessellation Generator Popular
- TikTok Engagement Rate Calculator New
- TikTok Money Calculator New
- Tire Load Index & Speed Rating Lookup New
- Tire Size Calculator New
- Tire Tread Wear Calculator New
- Toilet Paper Value Calculator
- Trailer Tongue Weight Calculator New
- TV Size Calculator New
- Twitch Earnings Calculator New
- Twitter/X Character Counter New
- Twitter/X Timestamp Converter New
- Vehicle Towing Capacity Calculator New
- Vehicle Weight Distribution Calculator New
- Voronoi Diagram Generator New
- Wedding Alcohol Calculator
- Wheel Offset Calculator New
- 🌬️ Wind Chill Calculator New
- Word Ladder Generator Popular
- Word Scramble Generator Popular
- Word Search Puzzle Generator
- Word to Phone Number Converter Popular
- Would You Rather Generator New
- YouTube Channel Statistics Popular
- YouTube Comment Picker New
- YouTube Earnings Estimator New
- YouTube Shorts Monetization Calculator New
- YouTube Tag Extractor Popular
- YouTube Thumbnail Downloader New
- YouTube Watch Time Calculator New
- Motorcycle Ergonomics Fit Calculator New
- Motorcycle Helmet Replacement Age Checker New
- Trailer Axle Position Calculator New
- Winch Line Pull Calculator New
- Car Wrap Material Calculator New
- Headlight Bulb Compatibility Lookup New