
IPv4 Subnet Calculator
Calculate network addresses, host ranges, binary boundaries, and subnet tables instantly.
⌘ Configure your network
◈ Network summary
Address classification
Class CIP classes are shown for historical reference; modern networks use CIDR.
RFC 1918 private address range.
Subnet IP Ranges Table
Subnets| # | Network ID | First Usable IP | Last Usable IP | Broadcast IP | Usable Hosts |
|---|
Network and host boundary
/24 | 32 total bitsBinary representation
32-bit IPv4 structureSubnet information
Technical detailsIPv4 Subnet Calculator: Understand CIDR, IP Ranges and Subnet Masks
This free IPv4 subnet calculator helps you work out the details of an IP network quickly. Enter an IPv4 address and choose a CIDR prefix or subnet mask to find the network address, broadcast address when applicable, first and last usable IP addresses, wildcard mask, total addresses and host capacity. The calculator also displays the binary form of the address and mask, and can divide a network into smaller subnets with a complete, browsable IP range table.
How to use the IPv4 subnet calculator
- Enter an IPv4 address using four decimal octets. Each octet must be from 0 to 255.
- Select a CIDR prefix, such as /24, or choose the equivalent subnet mask. The two selections stay synchronised.
- Read the network summary to identify the network ID, subnet mask, address range, wildcard mask and number of addresses.
- Under Subnet IP Ranges Table, choose a longer prefix to split the selected network into smaller subnets. The calculator lists the network ID, first and last usable IP, broadcast address and usable host count for each subnet.
- Use the table's page controls to browse every generated subnet. The row containing the IP address you entered is highlighted automatically.
What do the subnet calculator results mean?
Network address (Network ID): The first address in a conventional IPv4 subnet. It identifies the subnet and is not normally assigned to an individual host.
Subnet mask and CIDR prefix: These show which bits identify the network and which bits are available for host addressing. For example, /24 means 24 network bits and 8 host bits. Its dotted-decimal subnet mask is 255.255.255.0.
Broadcast address: In a conventional subnet from /0 through /30, this is the address with all host bits set to 1. It is used to reach all hosts on that IPv4 subnet. A /31 point-to-point prefix and a /32 host route are special cases and do not have a separate subnet broadcast address.
Usable host range: For conventional subnets from /0 through /30, the first and last usable host addresses are normally between the network and broadcast addresses. A /31 point-to-point link uses both addresses as endpoints; a /32 identifies one individual address.
Wildcard mask: The inverse of the subnet mask. It is commonly used in access control lists and some routing configurations.
Common IPv4 CIDR prefix reference
| CIDR | Subnet mask | Total addresses | Usable hosts / endpoints |
|---|---|---|---|
| /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 point-to-point endpoints |
| /32 | 255.255.255.255 | 1 | 1 host route |
Frequently asked questions about IPv4 subnetting
How many usable hosts are in a /24 subnet?
A conventional /24 subnet contains 256 IPv4 addresses. Two addresses are normally reserved for the network ID and broadcast address, leaving 254 usable host addresses.
How do I calculate the number of smaller subnets?
Subtract the original prefix from the new, longer prefix. The number of resulting subnets is 2 raised to that difference. For example, dividing a /24 network into /26 networks borrows 2 bits and creates 4 subnets.
Why does the subnet table sometimes show only one network?
If the selected subdivision prefix is the same as the original network prefix, no additional subnet bits have been borrowed, so the result is one network. Choose a longer prefix, such as changing /24 to /25, to create smaller subnets. This calculator now selects the next longer prefix by default when possible.
What is the difference between /31 and /32?
A /31 is normally used on point-to-point links, where both addresses are usable endpoints. A /32 contains exactly one address and is commonly used to identify a single host route.
Note: This tool performs local IPv4 and CIDR calculations in your browser. It does not test whether an address is assigned, reachable, publicly routed or available for use on a particular network. Always check your network design and address-allocation requirements before configuring production equipment.
Post a Comment