Build My Server

IPv4 Subnet Calculator

Enter an address and a prefix to get the netmask, wildcard mask, broadcast address, usable host range, and host count — then divide the block into the subnets you actually need. Everything is calculated in your browser, and the URL updates so you can share or bookmark a result.

Try

192.168.1.0/24 — Subnet Details

CIDR block192.168.1.0/24
Network address192.168.1.0
Netmask255.255.255.0
Wildcard mask0.0.0.255
Broadcast address192.168.1.255
Usable host range192.168.1.1 – 192.168.1.254
Usable hosts254
Total addresses256
Netmask (binary)11111111.11111111.11111111.00000000
Netmask (hex)0xFFFFFF00
Network (binary)11000000.10101000.00000001.00000000
Reverse DNS zone1.168.192.in-addr.arpa
Legacy classC
ScopePrivate (RFC 1918)

Divide This Block

Split any row in half, then keep splitting only the halves you need — a VLAN plan with uneven subnets (a /26 for workstations, a /30 for a router link) falls out of a few clicks. Join puts a pair back together.

SubnetNetmaskHost rangeHosts
192.168.1.0/24255.255.255.0192.168.1.1 – 192.168.1.254254

Host counts exclude the network and broadcast addresses, except on /31 (RFC 3021) and /32.

Addressing a New Rack

Give out-of-band its own subnet

iDRAC, iLO, and IPMI ports belong on a management subnet that is separate from production traffic and not reachable from the internet. A /27 covers 30 controllers, which is a full rack with room left over. Keeping it separate is also what lets you firewall BMC access down to a jump host without touching production rules.

Size for the next two years, not today

Renumbering a live subnet is the expensive part, not the addresses themselves. If a VLAN holds 40 hosts now, a /25 costs nothing extra and absorbs growth; a /26 sized exactly to today leaves you splitting VLANs later. Take the space from 10.0.0.0/8 and it stays cheap.

Leave room between blocks

Allocate subnets on boundaries you can summarise later — one /16 per site, one /24 per VLAN inside it. Contiguous, aligned blocks collapse into a single route advertisement; blocks handed out first-come-first-served do not, and the routing table grows for the rest of the network’s life.

Working out how many NICs and BMC ports a build needs in the first place? Configure the server and the networking options are priced live alongside the rest of the hardware.

CIDR Prefix Reference

Every prefix from /8 to /32 with its netmask, wildcard mask, address count, and usable hosts. Usable hosts drop the network and broadcast addresses, except at /31 and /32.

IPv4 CIDR prefix lengths with netmask, wildcard mask, total addresses, and usable hosts
PrefixNetmaskWildcardAddressesUsable hostsClassful equivalent
/8255.0.0.00.255.255.25516,777,21616,777,2141 class A
/9255.128.0.00.127.255.2558,388,6088,388,606128 class B
/10255.192.0.00.63.255.2554,194,3044,194,30264 class B
/11255.224.0.00.31.255.2552,097,1522,097,15032 class B
/12255.240.0.00.15.255.2551,048,5761,048,57416 class B
/13255.248.0.00.7.255.255524,288524,2868 class B
/14255.252.0.00.3.255.255262,144262,1424 class B
/15255.254.0.00.1.255.255131,072131,0702 class B
/16255.255.0.00.0.255.25565,53665,5341 class B
/17255.255.128.00.0.127.25532,76832,766128 class C
/18255.255.192.00.0.63.25516,38416,38264 class C
/19255.255.224.00.0.31.2558,1928,19032 class C
/20255.255.240.00.0.15.2554,0964,09416 class C
/21255.255.248.00.0.7.2552,0482,0468 class C
/22255.255.252.00.0.3.2551,0241,0224 class C
/23255.255.254.00.0.1.2555125102 class C
/24255.255.255.00.0.0.2552562541 class C
/25255.255.255.1280.0.0.1271281261/2 class C
/26255.255.255.1920.0.0.6364621/4 class C
/27255.255.255.2240.0.0.3132301/8 class C
/28255.255.255.2400.0.0.1516141/16 class C
/29255.255.255.2480.0.0.7861/32 class C
/30255.255.255.2520.0.0.3421/64 class C
/31255.255.255.2540.0.0.1221/128 class C
/32255.255.255.2550.0.0.0111/256 class C

Subnetting FAQ

How many usable hosts does a subnet have?

Take 2 to the power of the number of host bits, then subtract two for the network and broadcast addresses. A /24 has 8 host bits, so 256 addresses and 254 usable hosts; a /26 has 6, so 64 addresses and 62 hosts. The two exceptions are /31, which carries two usable addresses because RFC 3021 removed the network and broadcast pair on point-to-point links, and /32, a single host route.

What is the difference between a netmask and a CIDR prefix?

They are two spellings of the same value. The prefix counts the leading 1 bits — /24 means 24 ones — and the netmask writes those same bits as dotted decimal, 255.255.255.0. Every valid netmask is a contiguous run of ones followed by zeros, which is why 255.255.255.0 is legal and 255.0.255.0 is not.

What is a wildcard mask used for?

A wildcard mask is the netmask with every bit inverted, so 255.255.255.0 becomes 0.0.0.255. Cisco IOS access lists, OSPF network statements, and several firewall syntaxes match on it rather than on the netmask — a 1 bit means "ignore this bit". The calculator prints it next to the netmask so you can paste either form.

Which private IP ranges can I use on an internal network?

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 for private use, and RFC 6598 adds 100.64.0.0/10 for carrier-grade NAT. Pick from 10/8 if you expect to grow — it gives you room to give each site, rack, or VLAN its own /16 without renumbering later.

How do I split a /24 into smaller subnets?

Each additional prefix bit halves the block: a /24 splits into two /25s, four /26s, eight /27s, and so on. Use the divider above — split the block, then split only the halves that need to be smaller. Subnets do not have to be the same size, which is the point of variable-length subnet masking (VLSM); they only have to start on their own boundary, which the divider enforces for you.

Should a router-to-router link use a /30 or a /31?

Use a /31 if both ends support it, which nearly all current routing platforms do. A /30 spends four addresses to deliver two usable ones; a /31 delivers the same two out of two. On a large network that is thousands of addresses returned to the pool. Keep /30 only where an older device or a management tool refuses the /31.

Does this calculator send my addresses anywhere?

No. The math runs in your browser, and the address you calculate appears only in your own URL so the result stays shareable and bookmarkable. Nothing is stored on our side.

Does it handle IPv6?

Not yet — this tool is IPv4 only. IPv6 subnetting is mostly a different exercise anyway: prefixes land on nibble boundaries, /64 is the standard LAN size regardless of host count, and address exhaustion inside a subnet stops being the constraint you plan around.