Subnet Calculator CIDR, decoded

The address 192.168.10.77/24 belongs to the network 192.168.10.0/24. Its usable hosts run from 192.168.10.1 – 192.168.10.254 (254 hosts), with 192.168.10.255 as the broadcast address. The subnet mask is 255.255.255.0, and the address type is Private (RFC 1918).

Ignored if you type a /prefix after the address.

Your result

Network (CIDR)

192.168.10.0/24

Network address
192.168.10.0
Broadcast address
192.168.10.255
Usable host range
192.168.10.1 – 192.168.10.254
Usable hosts
254
Total addresses
256
Subnet mask
255.255.255.0
Wildcard mask (ACLs, OSPF)
0.0.0.255
Address type
Private (RFC 1918)
Classful network (legacy)
C
Reverse DNS zone
10.168.192.in-addr.arpa
Hex
0xC0A80A4D

Step-by-step working

  1. IP 11000000.10101000.00001010.01001101
  2. Mask 11111111.11111111.11111111.00000000 (/24)
  3. AND → 11000000.10101000.00001010.00000000 = 192.168.10.0
  4. Broadcast = network OR wildcard = 192.168.10.255

Understand it

What the Subnet Calculator Does

A subnet calculator takes an IPv4 address and a prefix length, such as /24, and works out the network it belongs to. It gives the network and broadcast addresses, the range of usable host addresses, the subnet mask and the wildcard mask. Network engineers use it to plan addressing, write firewall rules and check router configuration.

You can type the address in CIDR form (10.0.0.0/22) or pick the mask from the list. The calculator shows the binary AND that produces the network address, so you can see how subnetting works. It also classifies the address (private, CGNAT, loopback and so on), handles /31 point-to-point links correctly under RFC 3021, and splits any network into smaller subnets.

How the Subnet (IPv4) Formula Works

Network = IP AND mask Broadcast = network OR NOT mask Total addresses = 2^(32 − prefix) Usable hosts = 2^(32 − prefix) − 2 (/31: 2, /32: 1)
prefix
number of leading 1-bits in the mask: /24 = 255.255.255.0
wildcard
the inverted mask, used in Cisco ACLs and OSPF

Worked Examples

Office LAN 10.20.30.40/22

IP address (or address/prefix): 10.20.30.40/22 · Prefix length / subnet mask: /24 – 255.255.255.0 (254 hosts) · Split into subnets of: Don’t split

Network (CIDR)10.20.28.0/22

Network 10.20.28.0/22, hosts 10.20.28.1 – 10.20.31.254.

Point-to-point link /30

IP address (or address/prefix): 203.0.113.9 · Prefix length / subnet mask: /30 – 255.255.255.252 (2 hosts) · Split into subnets of: Don’t split

Network (CIDR)203.0.113.8/30

2 usable hosts: 203.0.113.9 – 203.0.113.10.

Split 172.16.0.0/16 into /20s

IP address (or address/prefix): 172.16.0.0/16 · Prefix length / subnet mask: /24 – 255.255.255.0 (254 hosts) · Split into subnets of: /20 – 255.255.240.0 (4,094 hosts)

Network (CIDR)172.16.0.0/16

16 × 4,094 usable hosts.

Original analysis

Subnet (IPv4) Analysis in numbers

Every chart below is generated from the same tested formula that powers the calculator above, so you can see the patterns behind a single result.

View data table
PrefixSubnet maskAddressesUsable hostsWildcard
/8255.0.0.016,777,21616,777,2140.255.255.255
/16255.255.0.065,53665,5340.0.255.255
/20255.255.240.04,0964,0940.0.15.255
/22255.255.252.01,0241,0220.0.3.255
/24255.255.255.02562540.0.0.255
/26255.255.255.19264620.0.0.63
/27255.255.255.22432300.0.0.31
/28255.255.255.24016140.0.0.15
/29255.255.255.248860.0.0.7
/30255.255.255.252420.0.0.3
/31255.255.255.254220.0.0.1
/32255.255.255.255110.0.0.0

CIDR cheat sheet

Each step down in prefix length doubles the size of the network. A /24 has 254 usable hosts and a /23 has 510. Subnets are always aligned: a /26 can only start at .0, .64, .128 or .192 in the last octet.

View data table
RangeCIDRAddresses
10.0.0.0 – 10.255.255.25510.0.0.0/816,777,216
172.16.0.0 – 172.31.255.255172.16.0.0/121,048,576
192.168.0.0 – 192.168.255.255192.168.0.0/1665,536
100.64.0.0 – 100.127.255.255 (CGNAT)100.64.0.0/104,194,304

Private ranges you can use inside any network

RFC 1918 reserves three ranges for private networks. They are not routed on the public internet, so every home and office can reuse them behind NAT. The 100.64.0.0/10 range is used by ISPs for carrier-grade NAT.

Common Subnet (IPv4) Questions

Is this a CIDR calculator?

Yes. Type an address with a prefix, such as 10.0.0.0/22, and it shows the full range, mask and host count. It can also split the block into smaller CIDR subnets.

How do I find the subnet mask from a prefix?

Write the prefix length as that many 1-bits followed by 0-bits, then convert each group of 8 bits to a number. /26 is 11111111.11111111.11111111.11000000 = 255.255.255.192.

Does it support IPv6?

This calculator covers IPv4. IPv6 subnets are normally /64 for LANs, so host counts are not a practical constraint there.

Tips and Common Mistakes

  • Size subnets with room to grow: a /24 for 200 devices leaves little headroom.
  • Use /31 for router-to-router links (RFC 3021) to save addresses, if your equipment supports it.
  • Keep a plan: give each site or VLAN an aligned block, so routes can be summarised later.

Frequently asked questions

Why are two addresses unusable in a subnet?

The first address identifies the network and the last is the broadcast address. Neither can be assigned to a host, except in /31 and /32 networks.

How many hosts are in a /24?

256 addresses, of which 254 are usable for hosts.

What is a wildcard mask?

The bitwise inverse of the subnet mask. 255.255.255.0 becomes 0.0.0.255. Cisco access lists and OSPF use it to match address ranges.

Are IP classes still used?

No. Classful addressing (A, B, C) was replaced by CIDR in 1993. The class is shown only for reference, as some exams still ask about it.

Sources and methodology

Last reviewed

byBhuvanesh S. Runs through our automated test suite on every build.

Results are estimates. Double-check anything important before relying on it.