← All free tools

Free tool

Subnet calculator

Type an IPv4 address and pick a prefix. You'll see the network address, broadcast, subnet mask and usable host range straight away.

Network
192.168.1.0/24
Subnet mask
255.255.255.0
Wildcard mask
0.0.0.255
First usable host
192.168.1.1
Last usable host
192.168.1.254
Broadcast
192.168.1.255
Total addresses
256
Usable hosts
254

Quick reference

Usable hosts = 2^(32 − prefix) − 2. Learn these common sizes for the exam.

PrefixMaskUsable hosts
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522

Learning to subnet by hand?

Work it out with the block-size method in how to subnet: CIDR, masks and usable hosts, then check your answers here. The OSI model cheat sheet and common ports list cover the other Network+ basics.

Common questions

How many usable hosts are in a /24?

254. A /24 has 256 addresses (mask 255.255.255.0). The first is the network address and the last is the broadcast address, so 254 can be given to devices.

Why do you subtract 2 from the number of hosts?

In each subnet the first address identifies the network and the last is the broadcast address. Neither can be assigned to a device, so usable hosts = 2 to the power of the host bits, minus 2.

What is a /30 used for?

A /30 has 4 addresses and 2 usable hosts, which is exactly enough for a point-to-point link between two routers.

What are the private IPv4 address ranges?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. They're used inside home and company networks and aren't routed on the public internet.

What does a 169.254.x.x address mean?

It's an APIPA (link-local) address. A device gives itself one when it can't get an address from a DHCP server, so it usually points to a DHCP or connection problem.

Practise for the exam, free

Take a free mock test, then get the full question bank in the app.