Free Online Subnet Calculator
Calculate IPv4 subnets, CIDR notation, subnet masks, network and broadcast addresses, and usable host ranges in seconds. A practical IP subnet calculator for students, network learners, and IT professionals. Learn the concepts in our Subnetting & IP Address Learning Center.
IPv4 Subnet Calculator
Enter an IPv4 address with CIDR notation, or enter the address and subnet mask separately. The calculator works in your browser.
Subnet calculation results
32-bit subnet mask
Subnet Split Calculator
Divide the calculated IPv4 network into smaller equal-sized subnets. Calculate a parent network above first, then choose how many subnets you need.
The splitter creates equal-sized child networks and lists their network address, broadcast address, and usable host capacity.
What Is a Subnet Calculator?
A subnet calculator is a networking tool that divides an IP network into smaller logical networks and calculates the addressing details for each subnet. It helps you find the network address, broadcast address, subnet mask, wildcard mask, first and last usable IP addresses, and the number of available hosts.
Subnetting is an essential skill in computer networking. Network administrators use it to organize devices, manage IP address ranges, reduce unnecessary broadcast traffic, and plan networks for offices, campuses, and data centers. Students use an IP subnet calculator to check subnetting exercises and understand how CIDR prefixes affect host capacity.
How to Use This IP Subnet Calculator
- Enter an IPv4 address, such as 192.168.1.10.
- Add a CIDR prefix such as /24, or enter a dotted-decimal subnet mask.
- Select Calculate subnet to view the network details.
- Review the network address, broadcast address, usable range, and host count.
- Use the subnet splitter to divide the parent network into equal smaller subnets.
Understanding CIDR Notation and Subnet Masks
CIDR stands for Classless Inter-Domain Routing. It represents the network prefix with a slash followed by a number. For example, 192.168.1.0/24 means that the first 24 bits identify the network and the remaining 8 bits are available for host addressing.
A /24 subnet mask is equivalent to 255.255.255.0. It contains 256 total IPv4 addresses. In a traditional subnet, the first address identifies the network and the last address is the broadcast address, leaving 254 usable host addresses.
Common IPv4 subnet reference
| CIDR | Subnet mask | Total addresses | Usable hosts* |
|---|---|---|---|
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 2 |
| /31 | 255.255.255.254 | 2 | 2 on supported point-to-point links |
| /32 | 255.255.255.255 | 1 | 1 host route |
*Traditional usable-host calculations subtract the network and broadcast addresses for prefixes /30 and larger. IPv4 /31 point-to-point links and /32 host routes are special cases.
Network Address vs. Broadcast Address
The network address identifies the subnet itself and is not normally assigned to an individual device. The broadcast address is the final IPv4 address in the subnet and is used to reach all hosts on that subnet. The usable host range is the space between these two addresses, except for special prefixes such as /31 and /32.
What Is VLSM?
Variable Length Subnet Masking (VLSM) allows a network administrator to create subnets of different sizes from one larger address block. Instead of assigning the same number of addresses to every department, VLSM helps allocate address space according to each network segment's actual host requirements. This calculator currently focuses on standard IPv4 subnet calculations and equal-size subnet splitting.
Who Can Use This Subnet Calculator?
- Computer science and networking students learning IPv4 subnetting.
- CCNA learners practicing CIDR, subnet masks, and host calculations.
- IT support technicians checking IP address ranges.
- Network administrators planning small office or lab networks.
- Teachers demonstrating network address and broadcast address calculations.
Frequently Asked Questions
How many usable hosts are in a /24 subnet?
A standard IPv4 /24 subnet contains 256 total addresses and 254 traditionally usable host addresses. The network address and broadcast address are reserved.
What is the subnet mask for /24?
The dotted-decimal subnet mask for /24 is 255.255.255.0. It uses 24 network bits and 8 host bits.
What is the difference between CIDR and a subnet mask?
CIDR expresses the network prefix as a slash number, such as /24. A subnet mask expresses the same boundary in dotted-decimal form, such as 255.255.255.0.
How do I find the network address?
The network address is calculated by applying a bitwise AND operation between the IPv4 address and its subnet mask. This calculator performs that operation automatically.
Can I split a /24 network into smaller subnets?
Yes. A /24 can be divided into two /25 subnets, four /26 subnets, eight /27 subnets, or more equal-sized networks, provided the new prefix fits inside the parent network.
Does this tool calculate IPv6 subnets?
This version is an IPv4 subnet calculator. IPv6 uses 128-bit addresses and different address-range conventions, so IPv6 calculations are not included in this tool yet.
Is this online subnet calculator free?
Yes. You can use the calculator and subnet splitter without creating an account. Calculations run locally in your browser.
Use calculated values as a learning and planning aid. Verify addressing plans and special network requirements before applying changes to production equipment.