Subnet Mask Calculator

Free calculators that train you for the real exam question, not just the maths. Enter an IPv4 address and a prefix to see the network address, broadcast address, usable host range, subnet mask, wildcard mask and the mask in binary, or press Check my answer to work it out yourself first. It works as a subnet mask calculator, a CIDR calculator and a CIDR to IP range calculator, and you can split any network into smaller subnets.

How the exam asks it

Five real exam questions on subnetting from our Cisco CCNA 200-301 and CompTIA Network+ N10-009 question banks.

Exam pace drill

Ten subnetting questions against the clock, as many rounds as you like.

Pace: CompTIA lists Network+ N10-009 as a maximum of 90 questions in 90 minutes, so 60 seconds a question (comptia.org). Cisco lists the CCNA 200-301 exam as 120 minutes but does not publish the number of questions (cisco.com), so there is no official per-question CCNA pace. Checked 19 November 2026.

How to use it

  • Type an address such as 192.168.10.77 and pick a prefix, or type CIDR straight in, such as 10.0.0.5/22. The results update as you type.
  • Press Check my answer to hide the results and type your own. Each box is marked, and a wrong answer gets the exact slip named, such as an off-by-one broadcast or a mask typed where the wildcard goes.
  • Answer the real exam questions, then press Load into calculator to see the numbers worked out.
  • Run the Exam pace drill to answer at the Network+ pace of 60 seconds a question.
  • Use Split this network to divide it into equal smaller subnets.

Practise and learn

Want more without a calculator? Try the free subnetting practice, which gives you unlimited questions with worked answers, or keep the subnetting cheat sheet next to you. Subnetting is on CompTIA Network+ and Cisco CCNA: try the free Network+ practice test or the free CCNA practice test.

Splitting a network into several subnets? Try our free CIDR calculator and VLSM planner, or the wildcard mask calculator for Cisco ACLs and OSPF.

Subnet calculator FAQ

What is a subnet mask?

It marks which part of an IP address is the network and which part is the host. 255.255.255.0 (/24) keeps the first three octets for the network.

How many usable hosts are in a subnet?

Total addresses minus two, because the first is the network address and the last is the broadcast. A /24 has 256 addresses and 254 usable hosts. A /31 is the exception: 2 usable addresses on a point-to-point link.

What is a wildcard mask?

The inverse of the subnet mask (255.255.255.255 minus the mask). Cisco ACLs and OSPF use it.

What is the subnet mask of 192.168.1.1/24?

255.255.255.0. The network is 192.168.1.0, the broadcast is 192.168.1.255 and there are 254 usable hosts.

Is 255.255.255.0 a /24?

Yes. 255.255.255.0 has 24 bits set to 1, so it is /24.

How many hosts are in a /20?

4,094 usable hosts: 4,096 addresses minus the network and broadcast addresses. The mask is 255.255.240.0.

What subnet is 10.0.0.0/8?

A private network (RFC 1918) with mask 255.0.0.0, running from 10.0.0.0 to 10.255.255.255, with 16,777,214 usable hosts.

How do I turn CIDR into an IP range?

Type it in, for example 10.0.0.5/22. The network address and broadcast address shown above are the start and end of the range.

How long do I get for each Network+ question?

CompTIA allows a maximum of 90 questions in 90 minutes for N10-009, so about 60 seconds each. The exam mixes multiple-choice and performance-based questions, so quick subnetting leaves more time for the rest.

How many questions are on the CCNA exam?

Cisco does not publish a number. It lists the 200-301 CCNA as a 120 minute exam.

Practising for Network+ or CCNA? See the Network+ N10-009 pack or the CCNA pack.

Embed this calculator

Want this subnet calculator on your own site? It is free to embed. Copy the code below and keep the link underneath the calculator.

More free tools

All free tools