IP Subnet Calculator | Best Calculator

IP Subnet Calculator

IPv4 Subnet Calculator
IPv6 Subnet Calculator
/24
IP Address: 59.103.33.9
Network Address: 59.103.33.8
Usable Host IP Range: 59.103.33.9 - 59.103.33.10
Broadcast Address: 59.103.33.11
Total Number of Hosts: 4
Number of Usable Hosts: 2
Subnet Mask: 255.255.255.252
Wildcard Mask: 0.0.0.3
Binary Subnet Mask: 11111111.11111111.11111111.11111100
IP Class: C
CIDR Notation: /30
IP Type: Public
Short: 59.103.33.9 /30
Binary ID: 00111011011001110010000100001001
Integer ID: 996614409
Hex ID: 0x3b672109
in-addr.arpa: 9.33.103.59.in-addr.arpa
IPv4 Mapped Address: ::ffff:3b67.2109
6to4 Prefix: 2002:3b67.2109::/48
How IPv4 Subnetting Works:
1. Network Address = IP Address & Subnet Mask
2. Broadcast Address = Network Address | (NOT Subnet Mask)
3. First Host = Network Address + 1
4. Last Host = Broadcast Address - 1
5. Total Hosts = 2^(32 - CIDR)
6. Usable Hosts = Total Hosts - 2
Copied!
Prefix Length: /64
Network Address: 2001:db8:85a3::
First Address: 2001:db8:85a3::1
Last Address: 2001:db8:85a3:0:ffff:ffff:ffff:ffff
Total Addresses: 18,446,744,073,709,551,616
Address Type: Global Unicast
How IPv6 Addressing Works:
1. Network Address = IPv6 Address with host bits set to 0
2. First Address = Network Address + 1
3. Last Address = All host bits set to 1
4. Total Addresses = 2^(128 - prefix length)
5. /64 is standard for most networks
Copied!

IP Subnet Calculator: Understand Subnetting Easily

A subnet, short for subnetwork, refers to a segmented portion of an IP network. IP networks operate on a set of communication rules known as the Internet Protocol Suite, widely recognized as TCP/IP (Transmission Control Protocol/Internet Protocol). This protocol is the foundation of how devices communicate across the Internet and private networks.

What is Subnetting?

Subnetting is the process of dividing a large network into smaller, manageable subnetworks. This division improves routing efficiency and network security. Devices called routers connect these subnets, directing data traffic between them while serving as boundaries for each subnetwork.

IPv4 vs. IPv6

Most networks today use IPv4 addressing, although adoption of IPv6—introduced to handle the growing number of connected devices—has been steadily increasing since 2006.

Each IP address consists of two main parts:

  • Network Prefix: Identifies the network segment.

  • Host Identifier: Specifies the unique device within that segment.

These components are defined using a format called CIDR (Classless Inter-Domain Routing). CIDR allows flexible allocation of IP addresses for both IPv4 and IPv6, replacing the older class-based system (Class A, B, and C).

Understanding Subnet Masks and CIDR Notation

In IPv4, a subnet mask separates the network part from the host part of an IP address. This mask is often shown in dot-decimal format, like 255.255.255.0. The same structure is represented more concisely using CIDR notation, such as /24, where the number indicates how many bits belong to the network portion.

In IPv6, the prefix length plays a similar role, indicating the size of the network portion in bits. Every device within the same subnet shares the same prefix, but each has a unique host ID.

The Shift from Class-Based to CIDR

Before CIDR, IP addresses were categorized into fixed classes:

  • Class A: Large networks

  • Class B: Medium-sized networks

  • Class C: Smaller networks

This rigid classification limited flexibility. CIDR was introduced to allow more efficient and scalable IP address allocation. Today, every IP address assignment includes a subnet mask (or prefix length) to define the network boundary.


IPv4 Subnet Table: Prefix Sizes, Masks, and Host Capacity

Here’s a handy reference table showing common IPv4 subnet sizes, their corresponding subnet masks, and the number of usable hosts available per subnet:

CIDR PrefixSubnet MaskUsable Hosts
/1128.0.0.02,147,483,646
/2192.0.0.01,073,741,822
/3224.0.0.0536,870,910
/4240.0.0.0268,435,454
/5248.0.0.0134,217,726
/6252.0.0.067,108,862
/7254.0.0.033,554,430
Class A  
/8255.0.0.016,777,214
/9255.128.0.08,388,606
/10255.192.0.04,194,302
/11255.224.0.02,097,150
/12255.240.0.01,048,574
/13255.248.0.0524,286
/14255.252.0.0262,142
/15255.254.0.0131,070
Class B  
/16255.255.0.065,534
/17255.255.128.032,766
/18255.255.192.016,382
/19255.255.224.08,190
/20255.255.240.04,094
/21255.255.248.02,046
/22255.255.252.01,022
/23255.255.254.0510
Class C  
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522
/31255.255.255.2540
/32255.255.255.2550