IP Subnet Calculator

Network, broadcast, host range, and masks from any IPv4 address and CIDR prefix

Tip: paste 10.0.0.5/16 to set both fields at once

Results for 192.168.1.10/24

Network address192.168.1.0/24
Broadcast address192.168.1.255
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
First usable host192.168.1.1
Last usable host192.168.1.254
Total addresses256
Usable hosts254
IP classC
Range typePrivate (RFC 1918: 192.168.0.0/16)

Binary Representation

Blue = network portion (24 bits), gray = host portion (8 bits)

IP address11000000.10101000.00000001.00001010192.168.1.10
Subnet mask11111111.11111111.11111111.00000000255.255.255.0
Network11000000.10101000.00000001.00000000192.168.1.0
Broadcast11000000.10101000.00000001.11111111192.168.1.255

CIDR ↔ Netmask Quick Table

Click a row to use that prefix.

CIDRNetmaskTotal addressesUsable hosts
/8255.0.0.016,777,21616,777,214
/9255.128.0.08,388,6088,388,606
/10255.192.0.04,194,3044,194,302
/11255.224.0.02,097,1522,097,150
/12255.240.0.01,048,5761,048,574
/13255.248.0.0524,288524,286
/14255.252.0.0262,144262,142
/15255.254.0.0131,072131,070
/16255.255.0.065,53665,534
/17255.255.128.032,76832,766
/18255.255.192.016,38416,382
/19255.255.224.08,1928,190
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422
/32255.255.255.25511

How IPv4 subnetting works

An IPv4 address is a 32-bit number written as four octets (192.168.1.10). CIDR notation appends a prefix length — /24 means the first 24 bits identify the network and the remaining 8 bits identify hosts within it. The subnet mask is the same idea written as an address: /24 = 255.255.255.0, because the first 24 bits are ones.

The network address is computed with a bitwise AND between the IP and the mask (192.168.1.10 AND 255.255.255.0 = 192.168.1.0). The broadcast address sets every host bit to one (192.168.1.255). Everything between them is the usable host range: 192.168.1.1 through 192.168.1.254, which is 2⁸ − 2 = 254 hosts. The wildcard mask is simply the inverted subnet mask (0.0.0.255) and is used in Cisco ACLs and OSPF configuration.

Each time you add one bit to the prefix you halve the subnet: a /24 has 254 usable hosts, a /25 has 126, a /26 has 62, and a /30 (common on router links) has just 2. Two special cases: a /31 (RFC 3021) uses both of its addresses on point-to-point links, and a /32 denotes a single host. Private ranges reserved by RFC 1918 — 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 — are never routed on the public internet.

Subnet Calculator FAQ

Disclaimer: A2ZKit's tools, calculators, cheat sheets, and articles are provided for general information and educational purposes only, on an "as is" basis without warranties of any kind. They are not financial, investment, tax, accounting, medical, health, or legal advice, and are not a substitute for a qualified professional. Results may be inaccurate or incomplete — verify independently and consult an appropriate professional before making any decision. Some tools process files — such as PDFs and images — entirely in your browser; you are responsible for keeping your own backups, and we are not liable for any data loss, file corruption, or inaccurate output. You use A2ZKit entirely at your own risk. By using the site you agree to our Terms of Service.