Create a free account
Free tool · no sign-up

Subnet calculator

Network, broadcast, host range and masks, instantly.

Network address192.168.1.0
Usable host range192.168.1.1 – 192.168.1.254
Broadcast address192.168.1.255
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Usable hosts254
Total addresses256
CIDR notation192.168.1.0/24
IP classC
Address typePrivate (RFC 1918)
Address 11000000.10101000.00000001.00001010
Mask 11111111.11111111.11111111.00000000

The mask’s 1 bits are the network; the 0 bits are the host.

How to read it

What the results mean

  • Network & broadcast — the first and last address in the block. Neither is assignable to a host; the network names the subnet and the broadcast reaches every host on it.
  • Usable host range — the addresses you can actually assign, from network + 1 to broadcast − 1 (a /31 and /32 are the special cases).
  • Subnet mask & wildcard mask — the mask splits network from host; the wildcard (its inverse) is what OSPF and ACLs match on.
  • Binary — line the address up under the mask: where the mask shows 1s is the network, where it shows 0s is the host. That boundary is the whole game.

Subnet calculator FAQ

What does this subnet calculator work out?

Enter any IPv4 address and a prefix length (or subnet mask) and it instantly returns the network (subnet) address, the broadcast address, the first and last usable host, the subnet and wildcard masks, the number of usable hosts and total addresses, the IP class, and whether the address is public or private — plus the address and mask in binary so you can see the network/host boundary.

What is the difference between a subnet mask and a wildcard mask?

A subnet mask marks the network bits with 1s and host bits with 0s (for example 255.255.255.0 for a /24). A wildcard mask is its exact inverse — 255.255.255.255 minus the subnet mask — so a /24 becomes 0.0.0.255. Cisco uses wildcard masks in OSPF network statements and in ACLs, and mixing the two up is a very common cause of a rule matching the wrong traffic.

How many usable hosts are in a subnet?

For a normal subnet, usable hosts = 2^(host bits) − 2, because you subtract the network address and the broadcast address. So a /24 has 254, a /26 has 62, and a /30 has 2. The exceptions are a /31, which carries 2 usable addresses for point-to-point links (RFC 3021), and a /32, a single-host route.

Should I still learn to subnet by hand?

Yes. A calculator is perfect for checking your work and planning quickly, but the CCNA exam is timed and gives you none — and neither does a live console. Use this to verify, then drill the arithmetic on the subnetting practice tool until the block-size method is second nature.

Free — no account needed

More tools

You can size a subnet. Can you configure one?

Put the numbers on an interface and grade your config against the answer key. See the subnetting labs or the subnetting study hub.

Put this calculator on your own site

Embed it on a blog, a course page or a study guide. Copy the code, paste it in — nothing to sign up for.
Colour scheme

Use it on any site. Keep the credit line — it is the only thing we ask for.