IP Subnet Calculator
MiniWebtool’s IP Subnet Calculator turns an address and CIDR prefix into a subnet mask, network and broadcast addresses, and host range. Binary visualization shows which bits identify the network and which remain for hosts.
For Gemini, paste the copied question into the chat. You can also copy it below.Need help using this tool? Ask AI
View the question
Enter an IP address and a CIDR prefix. The result gives the network and broadcast addresses, subnet mask, host range and binary forms.
Video Guide: IP Subnet Calculator
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.
At a Glance
IP Subnet Calculator turns an IPv4 address and CIDR prefix length into the subnet mask, wildcard mask, network and broadcast addresses, usable host range and host count. A 32-bit binary view marks network and host bits.
| Feature | What you get | Good for |
|---|---|---|
| Address and prefix | Enter an IPv4 address with a prefix length of 0 to 32, or type the full CIDR form such as 192.168.1.0/24. | Planning a subnet from an address block |
| Network details | Returns the subnet mask, wildcard mask, network address, broadcast address, usable host range and total host count. | Documenting a subnet or configuring ACLs |
| Binary view | A 32-bit visualization shows network bits in indigo and host bits in teal; binary and hexadecimal forms are also given. | Seeing where the network and host split falls |
| Address space map | A color-coded bar marks the network address, usable host range and broadcast address. | Picturing how much of the block is usable |
| Class and type | Detects the IP class and whether the address is private or public. | Checking an address against RFC 1918 ranges |
| Examples and copy | Example buttons load common blocks such as 10.0.0.0/8 and 192.168.10.0/28, and Copy All Results copies the output. | Quick checks and subnet allocation tables |
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
IPv4 subnet sizes and usable-address conventions
A /24 IPv4 subnet contains 256 addresses, usually leaving 254 host addresses on a conventional broadcast subnet. A /31 point-to-point link is an exception: RFC 3021 permits both of its addresses as endpoints.
| CIDR prefix | Subnet mask | Total IPv4 addresses | Usable addresses under stated convention |
|---|---|---|---|
| /32 | 255.255.255.255 | 1 | 1 single host address or route |
| /31 | 255.255.255.254 | 2 | 2 on an RFC 3021 point-to-point link |
| /30 | 255.255.255.252 | 4 | 2 on a conventional broadcast subnet |
| /29 | 255.255.255.248 | 8 | 6 on a conventional broadcast subnet |
| /28 | 255.255.255.240 | 16 | 14 on a conventional broadcast subnet |
| /27 | 255.255.255.224 | 32 | 30 on a conventional broadcast subnet |
| /26 | 255.255.255.192 | 64 | 62 on a conventional broadcast subnet |
| /25 | 255.255.255.128 | 128 | 126 on a conventional broadcast subnet |
| /24 | 255.255.255.0 | 256 | 254 on a conventional broadcast subnet |
| /23 | 255.255.254.0 | 512 | 510 on a conventional broadcast subnet |
| /22 | 255.255.252.0 | 1,024 | 1,022 on a conventional broadcast subnet |
| /20 | 255.255.240.0 | 4,096 | 4,094 on a conventional broadcast subnet |
| /16 | 255.255.0.0 | 65,536 | 65,534 on a conventional broadcast subnet |
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 on a conventional broadcast subnet |
Total addresses = 2^(32 - prefix length). Subtracting two applies to conventional broadcast subnets, not every prefix or provider policy.
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
Chat with your favorite AI
For Gemini, paste the copied question into the chat. You can also copy it below.
View the question
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
- Cryptogram Generator
- CTR Calculator New
- Cube Timer New
- Daily Time Savings Calculator
- 💧 Dew Point Calculator New
- ⚔️ DPS Calculator New
- Eisenhower Matrix 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
- Instagram Engagement Rate Calculator Popular
- 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
- 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 Popular
- 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 Popular
- 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 Popular
- 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 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
- Wet Bulb Temperature Calculator New
- 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
- YouTube Transcript Generator New
- QR Code Scanner New
- Keyboard Tester New
- Reaction Time Test New
- Qibla Direction Finder New
- CPS Test New
- Aim Trainer New
- Mouse Test New
- Laundry Symbols Guide New