Free Subnet Calculator
Enter an IPv4 or IPv6 address with a prefix or a mask and get the network, broadcast address, usable host range, masks and a binary view. Split any network into smaller subnets. It runs entirely in your browser, so nothing you type leaves this page.
IPv4 network
192.168.1.0/24
254 usable hosts of 256 addresses
- Network address
- 192.168.1.0
- Broadcast address
- 192.168.1.255
- First usable host
- 192.168.1.1
- Last usable host
- 192.168.1.254
- Usable hosts
- 254
- Total addresses
- 256
- Subnet mask
- 255.255.255.0
- Wildcard mask
- 0.0.0.255
- Prefix length
- /24
- Address class
- CThe old classful label, kept for exams and legacy gear.
- Address type
- privatePrivate network (RFC 1918)
- Your address as a number
- 32322357860xC0A8010A
- Reverse DNS zone
- 1.168.192.in-addr.arpa
Binary view. Bold blue bits are the network part (the first 24), grey bits are the host part.
- Address
- 11000000.10101000.00000001.00001010
- Subnet mask
- 11111111.11111111.11111111.00000000
- Network address
- 11000000.10101000.00000001.00000000
Split 192.168.1.0/24 into smaller subnets
Divide the network into equal subnets, by how many you need or by the size of each.
192.168.1.0/24 splits into 4 subnets of /26, each with 64 addresses and 62 usable hosts.
| # | Subnet | First usable | Last usable | Broadcast | Usable hosts |
|---|---|---|---|---|---|
| 1 | 192.168.1.0/26 | 192.168.1.1 | 192.168.1.62 | 192.168.1.63 | 62 |
| 2 | 192.168.1.64/26 | 192.168.1.65 | 192.168.1.126 | 192.168.1.127 | 62 |
| 3 | 192.168.1.128/26 | 192.168.1.129 | 192.168.1.190 | 192.168.1.191 | 62 |
| 4 | 192.168.1.192/26 | 192.168.1.193 | 192.168.1.254 | 192.168.1.255 | 62 |
Scroll the table sideways to see every column.
A subnet tells you how addresses are grouped, not who is behind them
Look up where an address in this range is located, which network owns it and whether it is flagged as a VPN, proxy or datacenter. Check as many addresses as you like with a free 1Lookup account.
What each result means
The examples are for 192.168.1.10/24.
| Result | What it is | Example |
|---|---|---|
| Network address | The first address of the block. It names the subnet and cannot be given to a device (except in a /31 or /32). | 192.168.1.0 |
| Broadcast address | The last address. A packet sent to it reaches every host in the subnet. A /31 and a /32 have none. | 192.168.1.255 |
| First and last usable host | The range you can hand out to devices: everything between the network and broadcast addresses. | 192.168.1.1 to 192.168.1.254 |
| Usable hosts | 2 to the power of the host bits, minus the two reserved addresses. | 254 |
| Subnet mask | A 1 for every network bit and a 0 for every host bit, written as four numbers. | 255.255.255.0 |
| Wildcard mask | The subnet mask turned inside out, as many router and firewall configurations write it. | 0.0.0.255 |
| Prefix length (CIDR) | The count of network bits, written after a slash. It is the short way to write the mask. | /24 |
CIDR cheat sheet: /8 to /32
Every IPv4 prefix length with its mask, wildcard and host counts. Usable hosts are the total minus the network and broadcast addresses, except /31 and /32.
| Prefix | Subnet mask | Wildcard mask | Total addresses | Usable hosts | Common use |
|---|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 | The size of the 10.0.0.0/8 private block |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 | |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 | The size of the carrier-grade NAT block |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 | |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 | The size of the 172.16.0.0/12 private block |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 | |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 | |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 | |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 | A large campus or site (the old class B size) |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 | |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 | |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 | |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 | |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 | |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 | |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 | |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 | The usual office or home network (the old class C size) |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 | |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 | |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 | |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 | A small group of servers or devices |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 | A tiny segment, such as a few servers |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 | A point-to-point link between two routers |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 | A point-to-point link with no broadcast (RFC 3021) |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 | One address: a host route or a loopback |
IPv6 prefix lengths
IPv6 has no broadcast address and nothing is subtracted: every address in a prefix is usable. These are the sizes you meet most.
| Prefix | Addresses | Typical use |
|---|---|---|
| /32 | 2^96 | The usual size of an allocation to an internet provider |
| /48 | 2^80 | One site or organization: holds 65,536 networks of /64 |
| /56 | 2^72 | A home or small site: holds 256 networks of /64 |
| /64 | 2^64 | One network segment, the size automatic address setup (SLAAC) needs |
| /127 | 2 | A point-to-point link between two routers (RFC 6164) |
| /128 | 1 | A single address: a host route or a loopback |
Private and special IPv4 ranges
The calculator labels a result with the range it falls in. These are the ones you will see most.
| Range | Addresses | What it is for |
|---|---|---|
| 10.0.0.0/8 | 16,777,216 | Private (RFC 1918): large company networks and VPNs |
| 172.16.0.0/12 | 1,048,576 | Private (RFC 1918): mid-size networks |
| 192.168.0.0/16 | 65,536 | Private (RFC 1918): home routers and small offices |
| 100.64.0.0/10 | 4,194,304 | Shared address space for carrier-grade NAT (RFC 6598) |
| 169.254.0.0/16 | 65,536 | Link-local: what a device gives itself when no DHCP server answers |
| 127.0.0.0/8 | 16,777,216 | Loopback: 127.0.0.1 means this computer |
Looking for the term itself? See CIDR notation in the glossary.
How subnetting works, in four steps
- Write the address and the mask in binary. The mask is a run of 1s followed by a run of 0s. The number of 1s is the prefix length, so 255.255.255.0 is 24 ones and 8 zeros: a /24.
- Keep the network bits, zero the host bits. Combine the address and the mask bit by bit (a bitwise AND). What is left is the network address: 192.168.1.10 with a /24 becomes 192.168.1.0.
- Set every host bit to 1 for the broadcast address. That gives the last address of the block, 192.168.1.255. The calculator shows both lines in the binary view, with the network bits in bold.
- Count what is in between. The addresses from network plus one to broadcast minus one are the usable hosts. With 8 host bits that is 2^8 − 2 = 254. Each bit you move from the host side to the network side halves the subnet.
Frequently asked questions
What is a subnet calculator?
A subnet calculator takes an IP address and a prefix length or subnet mask and works out the network it belongs to: the network address, the broadcast address, the range of addresses you can give to devices, how many fit, and the masks. This one handles IPv4 and IPv6, shows the mask in binary, and can split a network into smaller subnets.
How do I work out how many usable hosts a subnet has?
Subtract the prefix length from 32 to get the number of host bits, raise 2 to that power, then subtract 2 because the first address (the network address) and the last (the broadcast address) cannot be given to a device. A /24 has 8 host bits, so 2^8 = 256 addresses and 254 usable hosts. A /26 has 6 host bits: 64 addresses, 62 usable. The two exceptions are /31 (2 usable) and /32 (1).
What does the number after the slash mean?
It is the prefix length from CIDR notation: how many of the address's leading bits identify the network. In 192.168.1.0/24 the first 24 of 32 bits are the network and the last 8 are for hosts. A smaller number means a bigger network: a /16 holds 65,536 addresses, a /24 holds 256, a /30 holds 4.
What is the difference between a subnet mask and a wildcard mask?
A wildcard mask is the subnet mask turned inside out. The mask 255.255.255.0 has the wildcard 0.0.0.255. A subnet mask marks the bits that name the network, and a wildcard mask marks the bits that may vary; some router and firewall configurations are written with wildcards. You can type either: a value like 0.0.255.255 is not a valid subnet mask, so the calculator reads it as a wildcard and tells you so.
Why does a /31 have two usable addresses?
The classic rule sets aside the first and last address of every subnet, which would leave a /31 with none. RFC 3021 changed that for point-to-point links: a link with two ends has no use for a broadcast address, so both addresses can be hosts. The calculator shows both as usable and no broadcast. A /32 is a single address, used for a host route or a loopback.
How is IPv6 subnetting different?
IPv6 has no broadcast address and nothing is subtracted: every address in a prefix is usable. Addresses are 128 bits, so prefixes run from /0 to /128. One network segment is normally a /64, because automatic address setup (SLAAC) needs 64 host bits. A site usually receives a /48 or a /56 from its provider, which holds 65,536 or 256 networks of /64.
Is anything I type sent to a server?
No. The calculation runs in your browser, so the address and mask you type never leave your device. Like the rest of this site, the page records that the calculator was used, along with the IP version and a rough size band for the prefix, but never the address itself. There is no limit and no signup.
What does public, private or reserved mean in the result?
Private ranges (10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 in IPv4, fc00::/7 in IPv6) are for use inside a home or company network and are not routed on the public internet. Reserved ranges are set aside for things like loopback, link-local addresses, multicast and documentation. Public means the range is outside all of those. It does not mean the addresses are assigned or in use: to see who an address belongs to, run it through an IP lookup.
How do I split a network into smaller subnets?
Choose how many subnets you need, or the prefix length of each, in the split panel under the result. Each extra bit of prefix doubles the number of subnets and halves their size: a /24 split into 4 gives four /26 networks of 62 usable hosts each. Subnets here are all the same size, so a count that is not a power of two is rounded up. For subnets of different sizes, split the network in two and split one half again.
Is this subnet calculator free?
Yes, with no signup and no limit. It is a form in your browser with no server call behind it, so there is nothing to meter.