IP Subnet Calculator
This calculator returns a variety of information regarding Internet Protocol version 4 (IPv4) and IPv6 subnets including possible network addresses, usable host ranges, subnet mask, and IP class, among others.
IPv4 Subnet Calculator
IPv4 Calculation Results
| Parameter | Value |
|---|---|
| IP Address | 117.195.138.233 |
| Network Address | -- |
| Usable Host Range | -- |
| Broadcast Address | -- |
| Total Hosts / Usable Hosts | -- |
| Subnet Mask | -- |
| Network Class | -- |
| Binary IP | -- |
| Binary Subnet Mask | -- |
IPv6 Subnet Calculator
IPv6 Calculation Results
| Parameter | Value |
|---|---|
| IPv6 Address | 2001:db8:85a3::8a2e:370:7334 |
| Prefix Length | /64 |
| Network Prefix | -- |
| Interface ID / Host Range | -- |
| Total Subnet Addresses | -- |
Comprehensive Guide to IP Subnetting, CIDR, and Network Calculations
In modern computer networking, understanding Internet Protocol (IP) addresses and subnetting is an essential requirement for network administrators, systems engineers, developers, and cybersecurity professionals. An IP network is structured around a set of standardized communications protocols used across the Internet and local enterprise environments, widely referred to as TCP/IP (Transmission Control Protocol / Internet Protocol). To efficiently manage routing, optimize bandwidth performance, and isolate network traffic for robust security, networks are divided into smaller interconnected segments known as subnets.
The specialized tool provided above on Dxcalculator.com serves as a complete solution for calculating IPv4 and IPv6 network attributes. Whether you are planning a cloud infrastructure deployment using our Cloud Infrastructure Resources or configuring local routing tables, having precise mathematical calculations for subnet masks, broadcast addresses, and usable host ranges prevents configuration errors.
What is Subnetting and Why is it Critical?
The practice of breaking down a single large physical network into two or more logical sub-networks is called subnetting. Routers function as physical boundaries between these subnetworks, managing and filtering traffic exchange. Without subnetting, broadcast traffic would flood every connected device on a single massive network domain, drastically degrading performance and creating bottlenecks. By utilizing advanced networking tools like our IP Subnet Calculator, administrators can instantly determine exact host capacities and boundary parameters.
For related mathematical operations that underpin data packet structuring, you can also explore our Binary Calculator and Hex Calculator to convert IP octets between decimal, binary, and hexadecimal formats seamlessly.
IPv4 Addressing and Subnet Masks Explained
IPv4 addresses consist of 32 bits, typically represented in dot-decimal notation comprising four octets separated by periods (e.g., 192.168.1.1). Every IP address is fundamentally divided into two distinct components: the network routing prefix and the host identifier. The network number identifies the specific subnetwork, while the host identifier uniquely points to an individual device interface within that subnetwork.
To distinguish between the network prefix and the host identifier, IPv4 relies on a subnet mask. Historically, IP addresses were categorized into rigid classes:
- Class A: Designed for extremely large networks, utilizing an 8-bit default prefix (/8) with a subnet mask of 255.0.0.0, supporting over 16 million hosts.
- Class B: Allocated for medium-to-large networks, utilizing a 16-bit default prefix (/16) with a subnet mask of 255.255.0.0, supporting 65,534 usable hosts.
- Class C: Tailored for smaller local area networks (LANs), utilizing a 24-bit default prefix (/24) with a subnet mask of 255.255.255.0, accommodating 254 usable hosts.
With the exhaustion of traditional IPv4 address pools, Classless Inter-Domain Routing (CIDR) notation was introduced. CIDR allows flexible prefix lengths (written as a forward slash followed by the number of network bits, such as /24 or /30), removing rigid class boundaries and optimizing IP allocation efficiency across global internet service providers.
Complete IPv4 Subnet Reference Table
The reference table below outlines standard IPv4 CIDR prefix sizes, their corresponding subnet masks, and the precise number of usable hosts per subnetwork:
| Prefix Size | Network Mask | Usable Hosts per Subnet |
|---|---|---|
| /1 | 128.0.0.0 | 2,147,483,646 |
| /2 | 192.0.0.0 | 1,073,741,822 |
| /3 | 224.0.0.0 | 536,870,910 |
| /4 | 240.0.0.0 | 268,435,454 |
| /5 | 248.0.0.0 | 134,217,726 |
| /6 | 252.0.0.0 | 67,108,862 |
| /7 | 254.0.0.0 | 33,554,430 |
| /8 (Class A) | 255.0.0.0 | 16,777,214 |
| /9 | 255.128.0.0 | 8,388,606 |
| /10 | 255.192.0.0 | 4,194,302 |
| /11 | 255.224.0.0 | 2,097,150 |
| /12 | 255.240.0.0 | 1,048,574 |
| /13 | 255.248.0.0 | 524,286 |
| /14 | 255.252.0.0 | 262,142 |
| /15 | 255.254.0.0 | 131,070 |
| /16 (Class B) | 255.255.0.0 | 65,534 |
| /17 | 255.255.128.0 | 32,766 |
| /18 | 255.255.192.0 | 16,382 |
| /19 | 255.255.224.0 | 8,190 |
| /20 | 255.255.240.0 | 4,094 |
| /21 | 255.255.248.0 | 2,046 |
| /22 | 255.255.252.0 | 1,022 |
| /23 | 255.255.254.0 | 510 |
| /24 (Class C) | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 |
| /31 | 255.255.255.254 | 0 (Point-to-point links) |
| /32 | 255.255.255.255 | 0 (Single host) |
Transitioning to IPv6 Subnetting
While IPv4 remains widely deployed, IPv6 has experienced steady growth. IPv6 expands address lengths from 32 bits to 128 bits, expressed in hexadecimal format separated by colons (e.g., 2001:db8:85a3::8a2e:370:7334). In IPv6, the prefix length performs a parallel function to the IPv4 subnet mask, denoting the exact bit length dedicated to network routing while the remaining bits designate the interface identifier. Our calculator evaluates both IPv4 and IPv6 architectures seamlessly, providing visual graphs to help you comprehend bit distribution instantly.
Additional Calculators and Resource Tools on Our Platform
To further assist you with technical calculations, mathematics, and web utilities, explore other free tools available on Dxcalculator.com:
- Bandwidth Calculator: Measure data transfer speeds, download durations, and network throughput requirements.
- Base64 Encode / Decode: Easily encode and decode binary or text data for secure web transmission.
- URL Encode / Decode: Format special characters for safe inclusion in Uniform Resource Locators.
- Binary Calculator: Perform arithmetic calculations and conversions across binary, decimal, and hexadecimal numbers.
- Scientific Calculator: Handle complex mathematical functions, trigonometry, and logarithms effortlessly.
- Percentage Calculator: Solve everyday percentage increases, decreases, and ratio proportions quickly.
All calculators on Dxcalculator.com are designed to be fast, responsive, and completely free to use without requiring software installations. Bookmark our portal for your daily calculation needs across networking, finance, health, and engineering.