TapCub is live — analytics, insights and live chat, free on one platform

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.

Calculator

For 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.

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

FieldValue
CIDR notation192.168.1.128/26
Network address192.168.1.128
Subnet mask255.255.255.192
Wildcard mask0.0.0.63
Broadcast address192.168.1.191
Usable host range192.168.1.129 – 192.168.1.190
Total addresses64
Usable addresses62
Address typePrivate use (RFC 1918) · 192.168.0.0/16
Historic classC
Address in binary11000000.10101000.00000001.10000010
Address as an integer3232235906
Address in hex0xC0A80182
Reverse DNS zone1.168.192.in-addr.arpa

Binary view

Address11000000.10101000.00000001.10000010
Mask11111111.11111111.11111111.11000000
Network11000000.10101000.00000001.10000000
Broadcast11000000.10101000.00000001.10111111

Blue: 26 network bits. Grey: 6 host bits.

Runs entirely in your browser. Nothing you type here is uploaded or stored by TapCub.

Share these inputs: the values go after the # in the link, so they never reach a server.

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

Read the result

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
Subnet calculator illustration: IPv4 and IPv6 subnet math: network, broadcast and host range, splitting, VLSM plans, range to CIDR and block summaries
Subnet calculator, illustrated

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.

How to use it

From one block to a full address plan

Start with the block you were given, then cut it up.

  1. 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. 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. 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.

Method

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
Common IPv4 prefixes
PrefixSubnet maskWildcardAddressesUsable
/16255.255.0.00.0.255.25565,53665,534
/20255.255.240.00.0.15.2554,0964,094
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122 (point-to-point)
/32255.255.255.2550.0.0.011 (host route)
Worked example

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.

Last octet of 192.168.1.130/26
ValueBinaryDecimalMeaning
Address10 000010130What you typed
Mask11 000000192255.255.255.192
Network10 000000128address AND mask → 192.168.1.128
Broadcast10 111111191host bits all 1 → 192.168.1.191
First host10 000001129network + 1
Last host10 111110190broadcast − 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.

Common mistakes

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.

FAQ

Subnetting 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.

Feedback

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.

Rate this tool

Please don’t include passwords or other sensitive information.

Only used to reply to this feedback.

Type, details and email are required.

We only use this to handle your feedback. See the privacy policy.

Feedback received

Thank you! We will read it and reply from hello@tapcub.com if needed.

Need help right now?

Chat with our support team, best for urgent problems; you can leave a message when we are offline.

Chat with support
Changelog

Update history

New features, fixes and data refreshes for this tool, newest first.

  1. · 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

Cite this tool

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.

URL
https://tapcub.com/tools/subnet-calculator
HTML link
<a href="https://tapcub.com/tools/subnet-calculator">Subnet calculator - TapCub</a>

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics