Free tool Subnet calculator for IPv4 and IPv6 networks
Type an address with a prefix or mask and read the network address, usable host range, broadcast, wildcard mask and binary view at once. Switch modes to cut a block into equal subnets, plan different sizes with VLSM, convert an address range into CIDR blocks or merge a list of routes.
- IPv4 and IPv6
- Splitting and VLSM
- Calculated locally
Calculate a subnet
Results update as you type. Use the example buttons to try IPv6, VLSM or an IPv6 split.
Saved to My tools
Open the free tools page next time and it is right at the top under My tools (stored in this browser only).
You can also press Ctrl+D to bookmark this page in your browser.You can also press ⌘+D to bookmark this page in your browser.You can also tap your browser’s Share button (at the bottom in Safari) and choose Add Bookmark or Add to Home Screen.You can also open the ⋮ menu at the top right and tap ☆ to bookmark it, or choose Add to Home screen.You can also tap ··· at the top right and choose Favorite, or open it in your browser and bookmark it there.
View My toolsFor example 192.168.1.130/26, 10.0.0.0 255.255.0.0 or 2001:db8::1/64.
Used when the address has no “/”. Accepts 26, 255.255.255.192 or a wildcard such as 0.0.0.63.
IPv4 only. Cloud networks keep a few extra addresses in every subnet.
An address, a CIDR block or a start-end range.
The new prefix length, the number of subnets, or the hosts each subnet must hold.
Name, then number of hosts. The largest block is allocated first.
First and last address, for example 192.168.1.10 - 192.168.1.200.
CIDR blocks, single addresses or start-end ranges. Not added to the share link.
Result
192.168.1.128/26: 62 usable addresses, 192.168.1.129 – 192.168.1.190
Notes
- NoteThe address has host bits set. The network it belongs to is 192.168.1.128/26.
- OK192.168.1.150 is inside 192.168.1.128/26.
Network details
| Field | Value |
|---|---|
| CIDR notation | 192.168.1.128/26 |
| Network address | 192.168.1.128 |
| Subnet mask | 255.255.255.192 |
| Wildcard mask | 0.0.0.63 |
| Broadcast address | 192.168.1.191 |
| Usable host range | 192.168.1.129 – 192.168.1.190 |
| Total addresses | 64 |
| Usable addresses | 62 |
| Address type | Private use (RFC 1918) · 192.168.0.0/16 |
| Historic class | C |
| Address in binary | 11000000.10101000.00000001.10000010 |
| Address as an integer | 3232235906 |
| Address in hex | 0xC0A80182 |
| Reverse DNS zone | 1.168.192.in-addr.arpa |
Binary view
| Address | 11000000.10101000.00000001.10000010 |
|---|---|
| Mask | 11111111.11111111.11111111.11000000 |
| Network | 11000000.10101000.00000001.10000000 |
| Broadcast | 11000000.10101000.00000001.10111111 |
Blue: 26 network bits. Grey: 6 host bits.
Subnets
VLSM allocation
CIDR blocks
Share these inputs: the values go after the # in the link, so they never reach a server.
https://tapcub.com/tools/subnet-calculator
Done here? Try these next
Use this tool often? Save it to My tools.Saved to My tools. Find it any time at the top of the free tools page. You can also press Ctrl+D to bookmark this page in your browser.You can also press ⌘+D to bookmark this page in your browser.You can also tap your browser’s Share button (at the bottom in Safari) and choose Add Bookmark or Add to Home Screen.You can also open the ⋮ menu at the top right and tap ☆ to bookmark it, or choose Add to Home screen.You can also tap ··· at the top right and choose Favorite, or open it in your browser and bookmark it there.
Problem or suggestion?Send feedbackChat with support
Version v1.0Updated Update history
What each address in a subnet is for
A prefix such as /26 fixes the first 26 bits as the network and leaves the rest for hosts.
- IPv4 and IPv6, any prefix
- Split a network or plan VLSM
- Range to CIDR and summarization

Network address
All host bits set to 0. It names the subnet in routing tables and is not assigned to a device in an ordinary IPv4 network.
Broadcast address
All host bits set to 1. A packet sent there reaches every host on the subnet. IPv6 has no broadcast; it uses multicast instead.
Usable host range
Everything between the two. In IPv4 that is 2host bits − 2 addresses, one of which is usually the gateway. Cloud networks reserve more.
Subnet and wildcard mask
The mask has 1s over the network bits. The wildcard is its inverse and appears in Cisco access lists and OSPF network statements.
The address type comes from the IANA special-purpose address registries, checked on 2026-12-02. “Public unicast” means the address is not listed there; it says nothing about whether anyone is actually using it.
From one block to a full address plan
Start with the block you were given, then cut it up.
-
1
Check the block
Enter the address and prefix. Read the network address and range, and test whether a specific device or block falls inside it.
-
2
Cut it into subnets
Use “Split into equal subnets” for same-size pieces, or the VLSM plan when departments need different numbers of hosts.
-
3
Export the plan
Copy the table as CSV or download it, then paste it into your documentation or spreadsheet. Share the page link to send someone the same inputs.
Subnet formulas
Every figure comes from simple operations on the address bits. IPv4 uses 32 bits and IPv6 uses 128, so the same arithmetic works for both.
- Network = address AND mask
- Broadcast (last address) = network OR inverted mask
- Total addresses = 2^(32 − prefix) for IPv4, 2^(128 − prefix) for IPv6
- Splitting from /a into /b gives 2^(b − a) subnets
- VLSM: round each host count plus reserved addresses up to a power of two, then allocate from largest to smallest
| Prefix | Subnet mask | Wildcard | Addresses | Usable |
|---|---|---|---|---|
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /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 |
| /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 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 (point-to-point) |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 (host route) |
Working out 192.168.1.130/26 by hand
A /26 keeps 26 bits for the network, so only the last octet is split: 2 bits network, 6 bits host.
| Value | Binary | Decimal | Meaning |
|---|---|---|---|
| Address | 10 000010 | 130 | What you typed |
| Mask | 11 000000 | 192 | 255.255.255.192 |
| Network | 10 000000 | 128 | address AND mask → 192.168.1.128 |
| Broadcast | 10 111111 | 191 | host bits all 1 → 192.168.1.191 |
| First host | 10 000001 | 129 | network + 1 |
| Last host | 10 111110 | 190 | broadcast − 1 |
The block holds 26 = 64 addresses, 62 of them usable. On an AWS subnet of the same size only 59 would be usable, because AWS keeps the first four and the last address. A VLSM plan for 100, 50, 25 and 2 hosts in 192.168.10.0/24 gives a /25 at .0, a /26 at .128, a /27 at .192 and a /30 at .224, leaving 28 addresses free.
Where subnet plans go wrong
Most errors come from forgetting reserved addresses or from blocks that do not start on a boundary.
Forgetting the two reserved addresses
30 hosts do not fit in a /27 once you add a gateway: the subnet has 30 usable addresses and the router takes one.
Starting a block off its boundary
A /26 can only start at .0, .64, .128 or .192. Writing 192.168.1.100/26 really means the 192.168.1.64/26 network.
Sizing cloud subnets like office LANs
AWS and Azure keep 5 addresses per subnet. A /28 gives 11 usable addresses there, not 14.
Over-broad route summaries
The smallest block covering a list can include networks you do not own. Check the extra-address count before announcing it.
Networks also tell you who is a bot
TapCub looks at the network of every visitor so that automated traffic stays out of your human numbers.
Five layers of bot detection
User agent, headers, client signals, network and rate. The network layer uses a data-centre ASN list.
Learn moreVerified crawlers from server logs
Crawler hits sent from your server or imported logs get a reverse-and-forward DNS check for crawlers that publish verification host names.
Learn moreNo IP addresses stored
The collector keeps the network name and country per session, never the address itself.
Learn moreSubnetting questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
What is a subnet mask?
A 32-bit number that marks which bits of an IPv4 address are the network. 255.255.255.0 means the first 24 bits, written /24 in CIDR notation. Devices with the same network bits can reach each other without a router.
How many usable hosts are in a /24, /27 or /30?
A /24 has 254, a /27 has 30 and a /30 has 2. The rule is 2 to the power of the host bits, minus the network and broadcast addresses. /31 links are the exception: both addresses are usable.
What is the difference between VLSM and equal splitting?
Equal splitting makes every subnet the same size. Variable-length subnet masking (VLSM) gives each segment a block sized to its needs, allocating the largest first so that every block starts on a valid boundary and little space is wasted.
How is IPv6 subnetting different?
Addresses are 128 bits and LANs are almost always /64. Planning means choosing which bits between your assignment and /64 identify the subnet: a /48 gives 65,536 networks of /64. There is no broadcast address and no need to count hosts.
Which addresses are private?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for IPv4, and fc00::/7 (in practice fd00::/8) for IPv6. 100.64.0.0/10 is shared space used by internet providers, and 169.254.0.0/16 and fe80::/10 only work on the local link.
Why does my cloud subnet have fewer addresses?
The provider uses some. AWS and Azure reserve the first four and the last address of each subnet, Google Cloud reserves the first two and the last two, and Alibaba Cloud reserves the first and the last three. Choose the provider under “Reserved addresses”.
Is anything I enter sent to a server?
No. The calculation runs in your browser. Inputs are written after the # in the address bar so you can share a link; that part of a URL is not sent to the server, and the merge list is left out of it.
Is this tool working for you?
Rate it, or tell us what went wrong and what you’d like improved. A person reads every message, and frequent requests go into the next update.
Need help right now?
Chat with our support team, best for urgent problems; you can leave a message when we are offline.
Chat with supportUpdate history
New features, fixes and data refreshes for this tool, newest first.
-
· v1.0
LaunchedFirst release.
Data this tool relies on
- IANA special-purpose addresses and cloud subnet reservations — checked 2026-12-02, reviewed every 6 months (next review by 2027-06-02)
Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates
Recommend this tool in an article or on your site
This tool is free to cite and share. Copy the URL or link below into your article, tutorial or resource page; to write a review, embed a tool or partner with us, get in touch.
https://tapcub.com/tools/subnet-calculator<a href="https://tapcub.com/tools/subnet-calculator">Subnet calculator - TapCub</a>Check a real address next
Once the plan is drawn, look up who owns a public address or what a host name resolves to.