IPv4 Address & Subnet Calculator
IPv4 Classes & Private Ranges
Class | Range | Notes |
---|---|---|
A | 1.0.0.0 - 126.255.255.255 |
Default mask /8; Private range: 10.0.0.0/8 |
B | 128.0.0.0 - 191.255.255.255 |
Default mask /16; Private range: 172.16.0.0/12 |
C | 192.0.0.0 - 223.255.255.255 |
Default mask /24; Private range: 192.168.0.0/16 |
D | 224.0.0.0 - 239.255.255.255 | Multicast addresses |
E | 240.0.0.0 - 255.255.255.255 | Experimental |
Special & Bogon IPv4 Addresses
- 127.0.0.0/8 – Loopback addresses
- 169.254.0.0/16 – Link-local (APIPA)
- 255.255.255.255 – Limited broadcast
- 0.0.0.0 – Unspecified address
- Bogons – Not routable on the public Internet (includes private, loopback, link-local, etc.)
What Is This IPv4 Subnet Calculator?
This IPv4 Subnet Calculator is a user-friendly tool designed to help network engineers, students, and IT professionals quickly calculate critical details about an IPv4 subnet. It simplifies complex subnetting calculations, providing instant results for important information such as:
- IP Address Class: Identifies whether the entered IP belongs to Class A, B, C, D, or E.
- Subnet Mask: Displays the corresponding subnet mask for the CIDR notation (e.g.,
/24 = 255.255.255.0
). - Wildcard Mask: Shows the wildcard mask, often used in network access control lists (ACLs).
- Network Address: Calculates the starting address of the subnet.
- Broadcast Address: Calculates the last address of the subnet, used for broadcasting packets.
- First & Last Usable Hosts: Determines the range of usable host addresses in the subnet.
- Total IPs: Shows the total number of IPs in the subnet (e.g., `/24 = 256 IPs).
- Usable Hosts: Displays the number of usable host addresses (excluding network and broadcast addresses for most subnets).
- Private Address Check: Indicates whether the IP belongs to a private range (e.g.,
10.x.x.x
,172.16.x.x - 172.31.x.x
, or192.168.x.x
). - Special/Bogon Check: Flags special or reserved IP addresses (e.g.,
127.0.0.1
loopback,169.254.x.x
link-local).
How to Use This IPv4 Subnet Calculator
- Enter the IP Address:
- Type a valid IPv4 address (e.g.,
192.168.1.10
) in the “IP Address” input field. - Ensure the address follows the dotted-decimal format (e.g.,
A.B.C.D
).
- Type a valid IPv4 address (e.g.,
- Enter the CIDR Mask:
- Enter the CIDR prefix length (e.g.,
24
for a/24
subnet) in the “CIDR Mask” field. - The CIDR represents the number of bits used for the network portion of the address.
- Enter the CIDR prefix length (e.g.,
- Click “Calculate”:
- Press the “Calculate” button to generate the results instantly.
- Review the Results:
- The results will display in a section below the input fields, highlighted with a light blue background for better visibility.
- Information provided includes:
- IP class
- Subnet mask and wildcard mask
- Network and broadcast addresses
- First and last usable host addresses
- Total and usable IPs
- Whether the IP is private or special/bogon.
Example Use Case
Scenario:
You are tasked with subnetting a network for a branch office that requires 50 devices. You’ve been given the IP address 192.168.1.10/26
.
Steps:
- Enter
192.168.1.10
in the IP Address field. - Enter
26
in the CIDR Mask field. - Click “Calculate”.
Results:
- IP Class: Class C
- Subnet Mask: 255.255.255.192
- Wildcard Mask: 0.0.0.63
- Network Address: 192.168.1.0
- Broadcast Address: 192.168.1.63
- First Host: 192.168.1.1
- Last Host: 192.168.1.62
- Total IPs: 64
- Usable Hosts: 62
With these details, you now know the subnet can accommodate your 50 devices with room to spare.
Who Can Benefit From This Tool?
- Students learning about subnetting and IP addressing.
- Network Engineers designing or troubleshooting networks.
- IT Professionals working on access control lists (ACLs), firewalls, or IP planning.
- Educators teaching networking concepts and subnetting basics.
Why Use This Calculator?
- Instant Results: Saves time compared to manual calculations.
- Easy to Use: No technical knowledge or special tools required—just input an IP and CIDR.
- Accurate Calculations: Avoid errors in subnet mask, wildcard mask, or address range calculations.
- Educational: Helps users understand subnetting principles and IPv4 concepts.
This calculator is a must-have tool for anyone involved in IP planning or network configuration!