CompTIA Network+ Formulas & Calculators

Plug in your numbers and see every result worked out, step by step — then use the reference below to recognise which formula a question is really asking for.

← Back to the full “How to pass CompTIA Network+” guide

IPv4 subnet calculator

Enter any host address and a prefix length (CIDR) to get the whole subnet — the network and broadcast addresses, usable host range, mask, and host count.

Network address

192.168.1.0/24

192.168.1.0

Broadcast address

192.168.1.255

Usable host range

192.168.1.1 – 192.168.1.254

Subnet mask

/24

255.255.255.0

Wildcard mask

0.0.0.255

Usable hosts

2^(32 − prefix) − 2

254

Total addresses

2^(32 − prefix)

256

Formula reference

What each formula means and when to reach for it on exam day.

Frequently asked questions

Do you have to subnet by hand on the Network+ exam?
Yes. CompTIA does not provide a calculator, so you should be able to work out usable host counts, subnet boundaries, block sizes, and CIDR-to-mask conversions on paper or in your head under time pressure.
What subnetting formulas are on CompTIA Network+ (N10-009)?
Usable hosts = 2^(32 − prefix) − 2, subnets = 2^(borrowed bits), block size = 256 − mask octet, the wildcard mask (used by ACLs and OSPF), and the /31 point-to-point case from RFC 3021.