Skip to content

Subnet calculator:
the mask is the seam.

Type 192.168.1.0/24, a dotted netmask, or an IPv6 prefix and get the whole picture: network and broadcast, first and last usable host, the mask in every notation, class and scope, the seam in binary, splits, and a real VLSM planner. One tool for both address families — and the maths never leaves this tab.

try:
Live result · IPv4 203.0.113.64/26Documentation (TEST-NET-3)Class C · historic
Network203.0.113.64/26the name, not a host
Broadcast203.0.113.127all host bits set
Usable hosts62of 64 total
First usable203.0.113.65network + 1
Last usable203.0.113.126broadcast − 1
Wildcard0.0.0.63the mask, inverted
mask 255.255.255.192 hex 0xFFFFFFC0 wildcard 0.0.0.63
203
11001011
octet 1
0
00000000
octet 2
113
01110001
octet 3
64
01000000
octet 4
recomputes in your browser as you type — no request, and nothing you type is logged
IPv4 + IPv6 + VLSM in one tool Mask in every form — dotted, CIDR, wildcard, binary, hex Calculating runs in your browser — what you type is never sent
DOCUMENTATION (TEST-NET-3) · 64 ADDRESSES · 62 USABLE

The seam lands mid-octet.

203.0.113.64/26 runs from 203.0.113.65 to 203.0.113.126: 62 usable addresses out of 64. 203.0.113.64 names the block and 203.0.113.127 calls everyone in it, which is the famous −2.

The seam, in binary

bit 26 of 32
203
11001011
octet 1
0
00000000
octet 2
113
01110001
octet 3
64
01000000
octet 4
203.0.113.64/26 — the seam falls at bit 26 of 32: 26 network bits (green) leave 6 for hosts = 64 addresses, 62 usable.

The subnet

Documentation (TEST-NET-3)Class C · historic
Network203.0.113.64/26the name, not a host
Broadcast203.0.113.127all host bits set
Usable hosts62of 64 total
First usable203.0.113.65network + 1
Last usable203.0.113.126broadcast − 1
Wildcard0.0.0.63the mask, inverted
Documentation (TEST-NET-3): never routed — made for examples, RFC 5737. Class C (first bits 110) is printed because exams still ask — routing has ignored classes since CIDR shipped in 1993.

The mask, in every form

same seam, five spellings
Dotted decimal255.255.255.192
CIDR/26
Wildcard (ACL)0.0.0.63
Binary11111111.11111111.11111111.11000000
Hex0xFFFFFFC0

Around this subnet

grow it · split it
◂ parent203.0.113.0/25this block and its sibling, merged
prev203.0.113.0/26the same-size block just below
next203.0.113.128/26the same-size block just above
split ×2203.0.113.64/27 · 203.0.113.96/272 × /27 — 30 usable hosts each
split ×4203.0.113.64/28 · 203.0.113.80/28 …4 × /28 — 14 usable hosts each
split ×8203.0.113.64/29 · 203.0.113.72/29 …8 × /29 — 6 usable hosts each
Shareable link
status.uptimia-dev.ovh/subnet-calculator/203.0.113.64-26

It travels only if you copy it and send it — opening it is the one thing that does reach our access log. What you type in the box never enters the address bar.

What we computed

arithmetic, not discovery
Input203.0.113.64/26 Netmask255.255.255.192 · 0xFFFFFFC0 Wildcard0.0.0.63 Network203.0.113.64 Broadcast203.0.113.127 Usable62 (203.0.113.65 – 203.0.113.126) Class · scopeC (historic) · Documentation (TEST-NET-3) Lookupsnone — this is arithmetic

Copy as text

Subnet:    203.0.113.64/26
Netmask:   255.255.255.192 = /26
Wildcard:  0.0.0.63
Network:   203.0.113.64
Broadcast: 203.0.113.127
HostMin:   203.0.113.65
HostMax:   203.0.113.126
Hosts:     62 usable of 64
Class:     C (historic) · Documentation (TEST-NET-3)
-- calculated at status.uptimia-dev.ovh/subnet-calculator
paste into a ticket — the format engineers already read
What the mask decides

One number, four consequences.

Most calculators make you pick a page — IPv4 here, IPv6 elsewhere. Addresses stopped working like that years ago, so this one takes either.

Where the network ends

The network address and the broadcast are not configured anywhere — they fall out of the seam. All host bits zero names the block; all host bits one calls everyone in it.

network · broadcast

How many devices fit

Host bits set the size: 232−n addresses, minus the two the block spends on itself. The famous −2 — and the /31 and /32 exceptions where it does not apply.

2^(32−n) − 2

Who needs a router

Two hosts compare networks with one AND. Same result and they talk directly; different and everything goes via the gateway. A wrong mask here is why two machines on the same wire cannot see each other.

the AND test

How to grow

Every block splits into two halves, four quarters — or unequal pieces sized to real needs. That is VLSM, and it is the difference between fitting and buying more space.

split · right-size
Readout decoder

Six subnet mistakes people keep making

Much of subnetting folklore is a habit from 1993. What the numbers actually mean.

/31 on a point-to-point link

"No usable hosts"? Not since RFC 3021: on a link with exactly two ends, both addresses are usable. No network address, no broadcast, nothing wasted. The old habit says /30 and burns half of it.

→ modern gear: /31 · classic: /30
172.16.33.255 — a host?

Inside a /20, yes, and a perfectly normal one. Broadcast means all host bits set, which only the top address of the whole block has. Ending in .255 means nothing without the mask.

→ check the mask before you panic
255.0.255.0

Not a mask. Mask bits have to be contiguous — ones, then zeros, no gaps. This tool rejects it, and so does essentially all real equipment. If a config accepts it, worry.

→ contiguous or nothing
172.32.0.1 — "it's private"

It is not. RFC 1918's middle range is 172.16.0.0/12, which ends at 172.31.255.255. 172.32.x.x belongs to someone on the public internet — and one day your traffic will find them.

→ private stops at 172.31
wildcard 0.0.0.63

The mask, inverted — Cisco ACL notation, where 0 means "must match" and 1 means "don't care". Same /26 boundary, opposite spelling. We print both, and accept either as input.

→ same seam, ACL dialect
"Class C" on a 10.x network

Classes stopped mattering in 1993 when CIDR shipped. 10.0.0.0/8 is "class A" only in exam questions — what routes is the prefix length, nothing else. We print the class because interviews still ask.

→ read the /n, not the class
Two families, one habit change

IPv4 counts hosts, IPv6 counts networks

The mental model flips between families, which is exactly why a calculator that takes both in one box beats two separate pages.

  • IPv4 — "how many devices fit?" Total, minus two, watch the seam. Scarcity thinking, because v4 is scarce.
  • IPv6 — "how many /64 LANs do I get?" A /64 is the standard LAN and hosts inside one are effectively unlimited. Nobody counts them; count subnets.
  • VLSM — when equal splits do not fit, size each subnet to its real need, largest first. The planner does the alignment for you.
Open the VLSM planner

What the maths can and cannot prove

the no-overclaim table
network, broadcast, counts — exactThis is arithmetic, the same AND your router does. There is no estimate in it.
a VLSM plan that fits — exactAlignment and fit are provable. If the table says it fits, it fits.
what your network actually runs — noWe cannot see router configs, VLANs or DHCP scopes. The maths is exact; whether reality matches it is yours to know.
whether hosts are alive — noA calculator names the range; nothing here connects to it. Sweeping a block is nmap -sn 10.20.0.0/22 run inside the network — most of what this tool computes is private space no outside service can reach. For a single public host, the Port Checker answers it.
who owns an address — not hereOwnership lives in the registries. That is the Find IP tool's job, not arithmetic.
Worth saying out loud

Four things most calculators leave out.

Subnet maths is exact — but some of what tools print around it is convention, history, or marketing.

Classes are history

Address classes stopped mattering in 1993, when CIDR shipped. We print the class because exams and old configs still ask — routing has not looked at it in thirty years.

post-1993 world

−2 is a convention

The usable-hosts subtraction is IPv4 custom with real exceptions: /31 links (RFC 3021) use both addresses, /32 is a host route, and IPv6 dropped the idea entirely. We label the exceptions instead of hiding them.

convention ≠ physics

Maths, not discovery

Nothing here proves what is deployed. The numbers are exact; your network is whatever someone configured. A calculator that implies otherwise is selling something.

exact ≠ deployed

Nothing leaves this tab

Parsing, maths, VLSM — all of it runs in your browser. Calculating makes no request, and what you type is never logged or written into the address bar. Check the network tab.

0 requests
For terminal people

The same maths, from your shell

Every number on this page is reproducible in one command. We just draw the seam. There is deliberately no API here — an endpoint would be a reason to send us your addressing, and these do not phone home either.

The classicipcalc 192.168.1.0/24
IPv6 versionsipcalc 2001:db8:af00::/48
No tools installedpython3 -c 'import ipaddress; print(ipaddress.ip_network("10.20.0.0/22"))'
Which subnet does my box think this is in?ip route get 172.16.32.7
Common blocks

The subnets people actually look up

Worked answers for the blocks that turn up in real networks, each with a note on why it matters.

192.168.1.0/24The single most-typed subnet on earth. It is the LAN behind a large share of consumer routers, w… 192.168.0.0/24The other consumer-router default, and the reason a VPN between two homes so often fails: both e… 192.168.0.0/16The whole RFC 1918 "192.168" pool — 256 consecutive /24s. Useful as a summary route, but assigni… 192.168.1.0/25The first half of the home-router classic, and the usual first cut when a flat LAN is split — on… 192.168.1.128/25The upper half of 192.168.1.0/24. Note the network address is .128, not .0 — the seam has moved… 10.0.0.0/8The largest private block RFC 1918 defines — 16.7 million addresses. Almost nobody uses it as on… 10.0.0.0/16A typical site-sized slice of the 10/8 pool: 65,536 addresses, room for 256 /24s, and a boundary… 10.0.0.0/24The first /24 inside 10/8, and the default LAN of a good deal of virtualisation and container to… 10.10.10.0/24A lab favourite, picked because it is memorable rather than because it is free. Worth checking a… 172.16.0.0/12The RFC 1918 middle range, and the one people get wrong. It is a /12: it runs from 172.16.0.0 to… 172.16.0.0/16The first /16 of the 172.16/12 pool. Docker allocates bridge networks from this neighbourhood, w… 172.16.32.0/20A mid-octet seam, and the clearest proof that an address ending in .255 is not automatically a b… 192.168.1.1/32A single host route — the gateway address of most home networks. A /32 has no usable-hosts subtr… 0.0.0.0/0The default route. Every address matches it, which is why it is the last resort in a routing tab… 203.0.113.0/24TEST-NET-3, reserved by RFC 5737 for documentation. It never routes on the public internet, whic… 198.51.100.0/24TEST-NET-2, one of three ranges RFC 5737 set aside for documentation. Safe to put in a book, a d… 192.0.2.0/24TEST-NET-1, the original documentation range. If a config file contains it, that config was copi… 100.64.0.0/10Carrier-grade NAT space (RFC 6598). Your ISP may put your router behind it, which means the addr… 169.254.0.0/16Link-local, self-assigned when DHCP does not answer. An address here is almost never a plan — it… 127.0.0.0/8Loopback. A whole /8 — sixteen million addresses — spent on "this machine", which is generous by… 224.0.0.0/4The multicast range. These are group addresses, not host addresses: nothing is assigned one as i… 10.20.0.0/22A four-/24 block, the size an office site is often given. Big enough that variable-length subnet… 192.168.100.0/24A common default on cable modems and management interfaces, which is why it sometimes appears on… 10.1.1.0/24A widely-copied example block from vendor documentation and certification labs. Harmless in a la… 172.31.0.0/16The last /16 inside the 172.16/12 private pool — the boundary case. The next block up, 172.32.0.… 192.168.1.0/26A quarter of the home-router classic: 64 addresses, 62 usable. The size people reach for when ca… 192.168.1.0/27Thirty-two addresses, thirty usable — a common size for a small VLAN or a DHCP pool that should… 192.168.1.0/28Sixteen addresses, fourteen usable. Small enough that the −2 tax is a real 12.5% of the block.… 192.168.1.0/30Four addresses, two usable — the classic point-to-point link. Half the block is spent on the net… 192.168.1.0/31Two addresses, both usable. RFC 3021 removed the network/broadcast pair on point-to-point links,… 10.0.0.0/30A point-to-point link out of the 10/8 pool — the shape a router-to-router connection takes in mo… 10.0.0.0/31The RFC 3021 version of the same link: both addresses usable, nothing spent on a broadcast that… 255.255.255.0A /24 written the old way. The dotted netmask and the prefix length describe the same seam; the… 255.255.255.252The /30 netmask — the dotted spelling of the four-address point-to-point link.… 255.255.0.0A /16 in dotted form. Sixteen network bits, sixteen host bits, 65,534 usable addresses.… 2001:db8::/32The IPv6 documentation prefix (RFC 3849). It is the 2001:db8 you see in every example, and it ne… 2001:db8::/48A /48 is the allocation a site typically receives: 65,536 /64 LANs from one line of configuratio… 2001:db8::/56A /56 is what many ISPs delegate to a residential customer — 256 /64 LANs, enough to number a ho… 2001:db8::/64The standard IPv6 LAN. SLAAC autoconfiguration is specified around a 64-bit interface identifier… fe80::/10IPv6 link-local. Every IPv6 interface has one whether you configured it or not, and it is what n… fc00::/7Unique local addresses — IPv6's answer to RFC 1918. The intended use is fd00::/8 with a randomly… ::1/128IPv6 loopback — one single address, where IPv4 spent an entire /8 of sixteen million on the same…
FAQ

Common subnet calculator questions

Every IPv4 subnet spends its lowest address as the network identifier: all host bits zero, the name routing tables use. It spends its highest as the broadcast: all host bits one, which addresses everyone in the block at once. Neither can be assigned to a device, so a /24's 256 addresses yield 254 usable. Two exceptions are worth knowing. A /31 point-to-point link (RFC 3021) has no broadcast and uses both addresses; a /32 is a single-host route. IPv6 dropped the whole scheme — there is no broadcast address to subtract.

No. RFC 1918 defines exactly three private ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. The /12 is the trap: it covers 172.16.0.0 through 172.31.255.255 only. 172.32.x.x is public address space that belongs to someone else, and traffic you meant to keep internal will eventually route toward them. The calculator prints the scope for every address, so this shows up before deployment rather than after.

A wildcard mask is the subnet mask with every bit flipped: a /26's mask 255.255.255.192 becomes wildcard 0.0.0.63. Cisco access-control lists and OSPF network statements use this inverted spelling: 0 means "this bit must match", 1 means "don't care". It describes the same boundary as the mask, from the opposite direction. We print both, and you can paste either into the box above.

Variable-Length Subnet Masking gives each network the smallest block that fits, instead of splitting the parent into equal pieces. A 500-host department gets a /23, a point-to-point link gets a /30, and both live in the same /22. The largest-first rule is about alignment: a block can only start on a multiple of its own size (a /23 on a 512 boundary, a /24 on 256). Allocate big to small and every block lands exactly where the previous one ended, gap-free. Allocate small to big and the later large blocks must skip ahead to their next legal boundary, stranding addresses in between. The planner does the sorting and the alignment and shows what is left over.

Because SLAAC is specified to work with a 64-bit interface identifier, full stop. SLAAC is the mechanism that lets IPv6 hosts configure their own addresses without a DHCP server. Make the subnet smaller and autoconfiguration breaks. So the practical unit of IPv6 planning is the /64 LAN. An allocation is measured in how many /64s it cuts into: a /56 gives 256, a /48 gives 65,536. The exceptions are deliberate: /127s on router-to-router links (RFC 6164) and /128 loopbacks — places where no host will ever autoconfigure.

Not to any router built in the last three decades. Classes (A/B/C by the first bits of the address) were how space was allocated before 1993, and they wasted it badly. The smallest classful unit an organisation could get was a /24, and the next step up was a /16. CIDR replaced the whole scheme with explicit prefix lengths, which is what every routing table uses today. We still print the class because certification exams, interview questions and thirty-year-old configs keep the vocabulary alive — but nothing about how your traffic moves depends on it.

Nowhere. The parser and all the maths run as JavaScript in your browser, so calculating makes zero network requests. Confirm it in your browser's network tab. Your internal addressing is exactly what should not be pasted into a random web tool, so this one never receives it. What you type is never written into the URL either, because a URL carrying your addressing would reach our access log through the Referer header the moment you clicked a link. And there is no JSON API, because an endpoint would be a standing invitation to send it to us. The shareable link under each result is assembled locally and only travels if you copy it.

Free tools are just the start.
Uptimia keeps your sites healthy.

Uptime, SSL, domain expiry, page speed, transactions — monitored from 171+ locations worldwide. Free for 30 days.

30 days free no credit card cancel anytime free plan after trial
100,000+ websites monitored · GDPR-compliant