Subnet Calculator

Enter an IPv4 address and a prefix length to see the subnet it belongs to: network and broadcast addresses, the usable host range, masks and the number of hosts.

/24 = 255.255.255.0
Results update as you type.

Network

192.168.10.0/24

254 usable hosts

Subnet mask
255.255.255.0
Usable host range
192.168.10.1 – 192.168.10.254
Broadcast
192.168.10.255
Wildcard mask
0.0.0.255
Total addresses
256
Address type
Class C, private

About this calculator

Useful for configuring routers, servers, firewalls and cloud networks.

How to use it

  1. Enter the IP address.
  2. Enter the prefix length.
  3. Read the subnet details.

The formula

Network = IP AND mask; broadcast = network OR wildcard; hosts = 232 − prefix − 2
prefix
number of network bits, such as /24
wildcard
inverse of the subnet mask

Worked example

192.168.10.37/24

  1. Network 192.168.10.0, broadcast 192.168.10.255.
  2. Usable hosts 192.168.10.1 to 192.168.10.254: 254 hosts.
  3. Mask 255.255.255.0, wildcard 0.0.0.255; class C, private.

What the result means

/31 and /32 are special: point-to-point links and single hosts.

Assumptions

  • IPv4 only.

Limitations

  • IPv6 subnets are not covered.

Frequently asked questions

How many hosts in a /24?

254 usable addresses.

What is a wildcard mask?

The inverse of the subnet mask, used in ACLs.

Is 192.168.x.x private?

Yes, it is a private range for local networks.

Last reviewed on 3 October 2026. Found a mistake? Tell us.