IPv4 Subnet Calculator (CIDR & Subnetting)
Network, broadcast, host range and count, masks and binary from an IP/prefix, plus equal subnet splits.
- Broadcast address
- 192.168.10.127
- Total addresses
- 64
- Subnet mask
- 255.255.255.192
- Wildcard mask
- 0.0.0.63
- IP in binary (| = prefix boundary)
- 11000000.10101000.00001010.01|001101
- Address type
- Private (RFC 1918)
- Class (pre-CIDR system)
- C
- Next subnet
- 192.168.10.128/26
- PTR name (reverse DNS)
- 77.10.168.192.in-addr.arpa
- IP in hexadecimal
- 0xC0A80A4D
- IP as an integer
- 3232238157
- Number of /28 subnets
- 4
- Hosts per /28 subnet
- 14
/28 subnets inside 192.168.10.64/26
| No. | Subnet | First host | Last host | Broadcast | Hosts |
|---|---|---|---|---|---|
| 1 | 192.168.10.64/28 | 192.168.10.65 | 192.168.10.78 | 192.168.10.79 | 14 |
| 2 | 192.168.10.80/28 | 192.168.10.81 | 192.168.10.94 | 192.168.10.95 | 14 |
| 3 | 192.168.10.96/28 | 192.168.10.97 | 192.168.10.110 | 192.168.10.111 | 14 |
| 4 | 192.168.10.112/28 | 192.168.10.113 | 192.168.10.126 | 192.168.10.127 | 14 |
Formula and sources
Subnet size = 2^(32 − prefix); network = the IP rounded down to a multiple of the size; broadcast = network + size − 1 Hosts = size − 2 (network and broadcast are not used); /31 = 2 point-to-point hosts (RFC 3021), /32 = 1 host Wildcard = 255.255.255.255 − subnet mask; split into /n: 2^(n − prefix) subnets PTR name = the octets reversed + .in-addr.arpa; integer = a × 2²⁴ + b × 2¹⁶ + c × 2⁸ + d
When to use the IPv4 Subnet
From an IP and a prefix to the subnet
Enter an IP address and prefix such as 192.168.10.77/26. The calculator finds the network address 192.168.10.64, the broadcast 192.168.10.127 and the 62 usable hosts from 192.168.10.65 to 192.168.10.126.
Prefix or subnet mask
The prefix box takes /26, 26 or 255.255.255.192. Masks whose bits are not contiguous, such as 255.255.0.255, are refused because they are not valid subnet masks. The wildcard mask for ACLs and OSPF is shown as well.
Splitting a subnet into smaller ones
Enter a split prefix to cut the subnet into equal blocks. A /26 split into /28 gives 4 subnets of 14 hosts each, with the range and broadcast of every subnet, downloadable as CSV.
Address type
The calculator says whether the address is private (RFC 1918), CGNAT 100.64.0.0/10, loopback, link-local, documentation, multicast or public, following the IANA registry. Classes A–E are only the pre-CIDR names.
Frequently asked questions
How many hosts are in a /24, /25, /26, /27 and /28?
A /24 has 254, a /25 126, a /26 62, a /27 30 and a /28 14 hosts. Each extra prefix bit halves the number of addresses.
What if each subnet needs a different number of hosts?
Use the VLSM calculator: enter the hosts each network needs and it allocates right-sized prefixes from the parent block without overlaps.
Is my IP address sent anywhere?
No. The calculation runs entirely in your browser, so internal office or customer addresses are safe to enter without being sent anywhere.
Related calculators
- VLSMCarve one IP block into subnets sized to each network's host count, with no overlaps.Example: Addresses allocated244Calculate →
- IPv6 SubnetPrefix, first and last address, short and full forms, /64 count, ip6.arpa and /48 to /64 splits.Example: Prefix (compressed)2001:db8:abcd::/48Calculate →
- Tunnel MTU & MSSTunnel MTU and TCP MSS for PPPoE, GRE, IPIP, WireGuard and VXLAN, for IPv4 and IPv6.Example: Tunnel / VPN interface MTU1,432 bytesCalculate →