An IP subnet calculator takes an IP address and a prefix, such as 192.168.1.10/24, and tells you the network address, the broadcast address, the range of usable hosts and the mask. This one also splits networks, plans VLSM, turns IP ranges into CIDR blocks and works with IPv6. It runs in your browser, so nothing you type is sent anywhere.
Quick answer Type your address and prefix in the Calculate tab, for example 192.168.1.10/24. For a /24 you get the network 192.168.1.0, the broadcast 192.168.1.255 and 254 usable hosts, from 192.168.1.1 to 192.168.1.254.
It can
- Work out network, broadcast, host range, mask and wildcard
- Split a network into equal subnets or plan VLSM
- Turn an IP range into the smallest list of CIDR blocks
- Calculate IPv6 prefixes and subnets
It cannot
- Scan or test your real network
- Change any settings on your devices
- Tell you which addresses are already in use
- Replace a check on your own equipment
Best for
- Students learning subnetting
- Home and office network planning
- Cloud VPC and firewall rules
- Quick checks while you work
What subnetting means in plain words
Every device on a network has an IP address. An IPv4 address is 32 bits long, and we usually write it as four numbers like 192.168.1.10. A subnet is a group of addresses that belong together, such as all the devices in one office or one cloud network. The prefix, written after a slash, says how many of the 32 bits identify the group. The rest of the bits identify the device inside the group.
So in 192.168.1.10/24, the first 24 bits are the network part and the last 8 bits are the host part. That is why a /24 has room for 256 addresses: 8 host bits give 2 to the power of 8, which is 256.
The Binary view in the tool draws this same picture for any address you type.
What each result means
| Result | What it is | Example for 192.168.1.10/24 |
|---|---|---|
| Network address | The first address, which names the subnet itself | 192.168.1.0 |
| Broadcast address | The last address, used to reach every device at once | 192.168.1.255 |
| First and last usable | The addresses you can give to devices | 192.168.1.1 to 192.168.1.254 |
| Usable hosts | Total addresses minus the network and broadcast addresses | 254 |
| Subnet mask | The prefix written as four numbers | 255.255.255.0 |
| Wildcard mask | The mask turned upside down, used in some router and firewall rules | 0.0.0.255 |
| Address type | Private, public, loopback and so on | Private network |
The usable hosts formula is simple: 2 to the power of (32 minus the prefix), minus 2. For a /26 that is 2 to the power of 6, which is 64, minus 2, so 62 hosts.
Two special cases are worth knowing. A /31 has two addresses and both can be used on a link between two routers. A /32 is one single address.
How to use the calculator, step by step
- Type an address and a prefix. Use 192.168.1.10/24 or write the mask, such as 192.168.1.10 255.255.255.0. A wildcard mask like 0.0.0.255 works too.
- Read the results. The boxes show the network, broadcast, hosts and masks. Press Copy next to any value, or Copy all results for a text summary.
- Change the size. Move the slider to try other prefixes. The values update as you move it.
- Look at the neighbours. The buttons under the binary view jump to the previous subnet, the next one, or the bigger block that contains this one.
- Check a device. Type another address in Check another address to see whether it is inside the subnet.
- Go further. Press Split this network to divide it, or Plan VLSM inside it to share it between networks of different sizes.
What the seven tabs do
The Reference tab is a cheat sheet of every prefix from /0 to /32, plus the special address ranges. You can filter it, for example by typing 255.255.255.192.
VLSM: giving each network the size it needs
Splitting a network into equal parts wastes space when your networks are different sizes. VLSM, short for variable length subnet masking, lets each network get just the block it needs. The rule is to place the biggest network first, then the next biggest, so each block starts on a correct boundary.
Here is the example the tool loads when you press Load an example. The parent network is 192.168.10.0/24, and the needs are 100, 50, 25, 10 and 2 hosts.
Bar widths are drawn to scale, so small blocks look small.
If the networks do not fit, the tool says so, lists what did not fit, and suggests a parent size that would hold everything. Tick the /31 box if your two-host links use /31 instead of /30.
Ranges, summaries and CIDR
CIDR is the way of writing a network as an address and a prefix. Many firewalls, cloud consoles and routers want CIDR, but a list of addresses often comes as a plain range. The Range tab converts it. For example, 192.168.1.5 to 192.168.1.20 becomes five blocks: 192.168.1.5/32, 192.168.1.6/31, 192.168.1.8/29, 192.168.1.16/30 and 192.168.1.20/32.
The other half of that tab works the other way round. Paste many networks, one per line, and the tool removes overlaps and joins neighbours. It also shows one single block that holds the whole list, and tells you how many extra addresses that block would include, so you can decide if it is too wide.
Private, public and special addresses
| Range | Meaning |
|---|---|
| 10.0.0.0/8 | Private, for use inside networks |
| 172.16.0.0/12 | Private, from 172.16.0.0 to 172.31.255.255 |
| 192.168.0.0/16 | Private, very common at home |
| 100.64.0.0/10 | Shared space used by internet providers for carrier-grade NAT |
| 127.0.0.0/8 | Loopback, which means this device itself |
| 169.254.0.0/16 | Link-local, given automatically when no address is found |
| 224.0.0.0/4 | Multicast |
The tool labels your address with one of these types. Private ranges are not routed on the public internet, which is why many homes and offices can all use 192.168.1.0/24 at the same time.
A short guide to IPv6
IPv6 addresses are 128 bits long and are written in hexadecimal, like 2001:db8:abcd::1. Two colons in a row mean a run of zero groups, and they can be used once. The usual size for one LAN is a /64. A home is often given a /56 and a business a /48, which can be split into many /64 networks.
The IPv6 tab shows the short and the full form of an address, the first and last address in the prefix, the type, the reverse DNS zone and the number of /64 networks inside. You can pick a new prefix length to list the first subnets.
Tips from my own testing
- Check the network address first. If you type a host address, the tool still works out the network. A note appears if you typed the network or broadcast address itself.
- Leave room to grow. In VLSM, pick a parent that is bigger than you need today. The free blocks list shows what is left.
- Use the neighbour buttons. They are the quickest way to plan the next subnet after the one you just made.
- Copy the whole plan. The VLSM and Split tabs copy a table you can paste into a document or a spreadsheet.
- Share a result. Press Copy link to this result and the address goes into the link, so a colleague sees the same numbers.
What it cannot do
- It is a calculator, not a scanner. It cannot see your network or tell you which addresses are taken.
- Old equipment may differ. Some very old devices do not accept /31 links or all-zero subnets. Check your own equipment.
- Classes are only a label. The tool shows the old A, B and C class, but modern networks use prefixes instead.
- Large IPv6 numbers are shown as powers of 2 when they are too long to read comfortably.
- Lists are limited. The summarise box takes up to 5,000 lines, and the copy and CSV of a split include up to 65,536 subnets.
- Reverse DNS for blocks smaller than /24 shows the parent zone, because splitting it needs classless delegation (RFC 2317).
Privacy
All calculations run in your browser. The addresses and networks you type are not sent to a server by this tool. If Remember is on, your last entries and your VLSM list are saved in your own browser storage, and you can turn it off in the Reference tab. A link made with Copy link to this result puts the address in the part after the # sign, so anyone you give the link to can read it.
Why trust this page
I built this tool myself and tested it before writing this page. I checked the calculations against 55 known answers, including 192.168.1.10/24, a /30, a /31, a /32, a /0, wildcard masks, the VLSM example above, and the range 192.168.1.5 to 192.168.1.20. I also tested the tool in a browser. I checked the results on screen, the mask form of input, error messages for bad addresses, the slider, the split table and CSV, the VLSM overflow warning and the /31 option, the Range and summarise tools, the Compare tab, IPv6 results and subnets, the link that carries an address, saved entries after a reload, and the layout at 375 pixels wide.
I did not test it on real routers or on a range of phones, and I did not check it against every other subnet tool. For a change that matters, check the numbers against your own equipment. If you find a result that looks wrong, please tell me.
Quick answers
What is an IP subnet calculator?
It is a tool that works out the details of a subnet from an IP address and a prefix or mask. It gives you the network address, the broadcast address, the usable host range, the number of hosts and the masks.
How many hosts are in a /24?
A /24 has 256 addresses and 254 usable hosts. The first address is the network address and the last is the broadcast address, so two are not given to devices.
Why do you subtract 2 from the host count?
The first address of a subnet names the network and the last one is the broadcast address. Neither is normally given to a device, so usable hosts are the total minus 2. A /31 and a /32 are special cases.
What is a subnet mask?
It is the prefix written as four numbers. 255.255.255.0 means the first 24 bits are the network part, which is the same as /24.
What is a wildcard mask?
It is the subnet mask turned upside down, so 255.255.255.0 becomes 0.0.0.255. Some routers and firewalls use it in access rules. The tool shows it for every result.
What is CIDR notation?
It writes a network as an address, a slash and the prefix length, such as 10.0.0.0/16. The prefix is how many bits belong to the network part.
How do I split a /24 into four subnets?
Open the Split tab, enter the /24, and ask for 4 subnets. Each one is a /26 with 64 addresses and 62 usable hosts.
What is VLSM?
VLSM means variable length subnet masking. It lets each network get a block of the size it needs instead of every network getting the same size, which wastes less address space.
How do I convert an IP range to CIDR?
Open the Range tab, type the first and last address, and the tool lists the smallest set of CIDR blocks that covers exactly that range.
Which IP ranges are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are the private ranges. They are not routed on the public internet.
Does it support IPv6?
Yes. The IPv6 tab shows the short and full form of an address, the first and last address in a prefix, the type, the reverse DNS zone and a list of smaller subnets.
Is this subnet calculator free and private?
Yes. It is free, needs no sign-up and runs in your browser. What you type is not sent to a server by this tool. The site may show ads to cover its costs.
Hi, I’m Waqas, the person behind Brivonto. I started this site because I wanted online tools that simply work, without sign-ups or watermarks. I build each tool myself and keep improving them based on your feedback. Questions or feedback?

