Networking tool
IPv4 Subnet Calculator
Calculate network boundaries, masks and usable host ranges from an IPv4 address and CIDR prefix. The calculation runs entirely in your browser.
Network input
Enter an address and prefix, or enter CIDR notation directly in the address field.
Your input stays on this device. No address entered here is sent to the website backend.
Subnet details
Standard classless IPv4/CIDR calculation with RFC 3021 handling for /31 point-to-point networks.
Quick reference
Common IPv4 prefixes
Free tools · Bikram Bhujel
About this IPv4 subnet calculator
An IPv4 subnet calculator by Bikram Bhujel. Enter an address and a CIDR prefix, such as 192.168.10.25/24, and it returns the network address, broadcast address, subnet mask, wildcard mask and the range of usable hosts. It runs in your browser.
How subnetting works in one minute
The prefix is the number of bits that identify the network. The remaining bits identify hosts. A /24 leaves 8 host bits, which is 256 addresses. The first is the network address and the last is the broadcast address, so 254 are usable. The formula for usable hosts is 2 to the power of the host bits, minus 2.
- /24: mask 255.255.255.0, 254 usable hosts.
- /26: mask 255.255.255.192, 62 usable hosts.
- /30: mask 255.255.255.252, 2 usable hosts, common for router links.
A worked example
Take 192.168.10.25/26. A /26 leaves 6 host bits, so each subnet has 64 addresses: 192.168.10.0 to .63, .64 to .127, and so on. The address .25 falls in the first block, which gives:
- Network: 192.168.10.0
- Broadcast: 192.168.10.63
- Usable hosts: 192.168.10.1 to 192.168.10.62, which is 62 addresses
- Subnet mask: 255.255.255.192, wildcard mask 0.0.0.63
Common questions
What does the number after the slash mean?
It is the prefix length: how many of the 32 bits belong to the network part of the address. A larger number means a smaller subnet.
How many usable hosts are in a /24?
254. A /24 has 256 addresses, and the network and broadcast addresses cannot be assigned to hosts.
Which IPv4 ranges are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. These are used inside networks and are not routed on the public internet.
What is a wildcard mask?
It is the inverse of the subnet mask, used in access lists and OSPF on Cisco devices. For a /24 the wildcard mask is 0.0.0.255.
Made by Bikram Bhujel, infrastructure and systems engineer in Nepal. More free tools: PoE budget calculator, chmod calculator, QR code generator, all tools.