Subnet calculator
IPv4 subnet calculator
Get the network and broadcast address, usable host range, subnet mask and wildcard for any IPv4 subnet, with a bit-by-bit binary breakdown. Built for network engineers, sysadmins and CCNA students.
Calculated 10.0.0.0/8: 16,777,214 usable hosts, 10.0.0.1 to 10.255.255.254.
Results
10.0.0.0/8
16,777,214 usable hosts, 10.0.0.1 to 10.255.255.254
- Network address
- 10.0.0.0/8
- Identifies the subnet
- Broadcast address
- 10.255.255.255
- Reaches every host on the subnet
- First host
- 10.0.0.1
- Start of the usable range
- Last host
- 10.255.255.254
- End of the usable range
- Usable hosts
- 16,777,214
- 16,777,216 total addresses
- Subnet mask
- 255.0.0.0
- /8 prefix
- Wildcard mask
- 0.255.255.255
- Inverse mask for ACLs and OSPF
- IP class
- Class APrivate
- RFC 1918 private range
Binary breakdown
| Field | Dotted decimal | Binary |
|---|---|---|
| Address | 10.0.0.0 | 00001010.00000000.00000000.00000000 |
| Netmask | 255.0.0.0 = /8 | 11111111.00000000.00000000.00000000 |
| Wildcard | 0.255.255.255 | 00000000.11111111.11111111.11111111 |
| Network | 10.0.0.0/8 | 00001010.00000000.00000000.00000000 |
| Broadcast | 10.255.255.255 | 00001010.11111111.11111111.11111111 |
| First host | 10.0.0.1 | 00001010.00000000.00000000.00000001 |
| Last host | 10.255.255.254 | 00001010.11111111.11111111.11111110 |
Reference
Subnet mask cheat sheet
Prefixes from /16 to /30 with their subnet mask, address count and Class C equivalent. See also RFC 1878. Click a row to load it into the calculator.
| CIDR | Subnet mask | Addresses | Usable hosts | Class C |
|---|---|---|---|---|
| 255.255.255.252 | 4 | 2 | 1/64 | |
| 255.255.255.248 | 8 | 6 | 1/32 | |
| 255.255.255.240 | 16 | 14 | 1/16 | |
| 255.255.255.224 | 32 | 30 | 1/8 | |
| 255.255.255.192 | 64 | 62 | 1/4 | |
| 255.255.255.128 | 128 | 126 | 1/2 | |
| 255.255.255.0 | 256 | 254 | 1 | |
| 255.255.254.0 | 512 | 510 | 2 | |
| 255.255.252.0 | 1,024 | 1,022 | 4 | |
| 255.255.248.0 | 2,048 | 2,046 | 8 | |
| 255.255.240.0 | 4,096 | 4,094 | 16 | |
| 255.255.224.0 | 8,192 | 8,190 | 32 | |
| 255.255.192.0 | 16,384 | 16,382 | 64 | |
| 255.255.128.0 | 32,768 | 32,766 | 128 | |
| 255.255.0.0 | 65,536 | 65,534 | 256 |
Printable guide
Guide to sub-Class C blocks
How a /24 (256 addresses) divides into smaller subnets. Click any network to load it into the calculator.
2 subnets · 126 hosts each
| Network | Host range | Broadcast |
|---|---|---|
| .1 – .126 | .127 | |
| .129 – .254 | .255 |
4 subnets · 62 hosts each
| Network | Host range | Broadcast |
|---|---|---|
| .1 – .62 | .63 | |
| .65 – .126 | .127 | |
| .129 – .190 | .191 | |
| .193 – .254 | .255 |
8 subnets · 30 hosts each
| Network | Host range | Broadcast |
|---|---|---|
| .1 – .30 | .31 | |
| .33 – .62 | .63 | |
| .65 – .94 | .95 | |
| .97 – .126 | .127 | |
| .129 – .158 | .159 | |
| .161 – .190 | .191 | |
| .193 – .222 | .223 | |
| .225 – .254 | .255 |
16 subnets · 14 hosts each
| Network | Host range | Broadcast |
|---|---|---|
| .1 – .14 | .15 | |
| .17 – .30 | .31 | |
| .33 – .46 | .47 | |
| .49 – .62 | .63 | |
| .65 – .78 | .79 | |
| .81 – .94 | .95 | |
| .97 – .110 | .111 | |
| .113 – .126 | .127 | |
| .129 – .142 | .143 | |
| .145 – .158 | .159 | |
| .161 – .174 | .175 | |
| .177 – .190 | .191 | |
| .193 – .206 | .207 | |
| .209 – .222 | .223 | |
| .225 – .238 | .239 | |
| .241 – .254 | .255 |
32 subnets · 6 hosts each
| Network | Host range | Broadcast |
|---|---|---|
| .1 – .6 | .7 | |
| .9 – .14 | .15 | |
| .17 – .22 | .23 | |
| .25 – .30 | .31 | |
| .33 – .38 | .39 | |
| .41 – .46 | .47 | |
| .49 – .54 | .55 | |
| .57 – .62 | .63 | |
| .65 – .70 | .71 | |
| .73 – .78 | .79 | |
| .81 – .86 | .87 | |
| .89 – .94 | .95 | |
| .97 – .102 | .103 | |
| .105 – .110 | .111 | |
| .113 – .118 | .119 | |
| .121 – .126 | .127 | |
| .129 – .134 | .135 | |
| .137 – .142 | .143 | |
| .145 – .150 | .151 | |
| .153 – .158 | .159 | |
| .161 – .166 | .167 | |
| .169 – .174 | .175 | |
| .177 – .182 | .183 | |
| .185 – .190 | .191 | |
| .193 – .198 | .199 | |
| .201 – .206 | .207 | |
| .209 – .214 | .215 | |
| .217 – .222 | .223 | |
| .225 – .230 | .231 | |
| .233 – .238 | .239 | |
| .241 – .246 | .247 | |
| .249 – .254 | .255 |
64 subnets · 2 hosts each
| Network | Host range | Broadcast |
|---|---|---|
| .1 – .2 | .3 | |
| .5 – .6 | .7 | |
| .9 – .10 | .11 | |
| .13 – .14 | .15 | |
| .17 – .18 | .19 | |
| .21 – .22 | .23 | |
| .25 – .26 | .27 | |
| .29 – .30 | .31 | |
| .33 – .34 | .35 | |
| .37 – .38 | .39 | |
| .41 – .42 | .43 | |
| .45 – .46 | .47 | |
| .49 – .50 | .51 | |
| .53 – .54 | .55 | |
| .57 – .58 | .59 | |
| .61 – .62 | .63 | |
| .65 – .66 | .67 | |
| .69 – .70 | .71 | |
| .73 – .74 | .75 | |
| .77 – .78 | .79 | |
| .81 – .82 | .83 | |
| .85 – .86 | .87 | |
| .89 – .90 | .91 | |
| .93 – .94 | .95 | |
| .97 – .98 | .99 | |
| .101 – .102 | .103 | |
| .105 – .106 | .107 | |
| .109 – .110 | .111 | |
| .113 – .114 | .115 | |
| .117 – .118 | .119 | |
| .121 – .122 | .123 | |
| .125 – .126 | .127 | |
| .129 – .130 | .131 | |
| .133 – .134 | .135 | |
| .137 – .138 | .139 | |
| .141 – .142 | .143 | |
| .145 – .146 | .147 | |
| .149 – .150 | .151 | |
| .153 – .154 | .155 | |
| .157 – .158 | .159 | |
| .161 – .162 | .163 | |
| .165 – .166 | .167 | |
| .169 – .170 | .171 | |
| .173 – .174 | .175 | |
| .177 – .178 | .179 | |
| .181 – .182 | .183 | |
| .185 – .186 | .187 | |
| .189 – .190 | .191 | |
| .193 – .194 | .195 | |
| .197 – .198 | .199 | |
| .201 – .202 | .203 | |
| .205 – .206 | .207 | |
| .209 – .210 | .211 | |
| .213 – .214 | .215 | |
| .217 – .218 | .219 | |
| .221 – .222 | .223 | |
| .225 – .226 | .227 | |
| .229 – .230 | .231 | |
| .233 – .234 | .235 | |
| .237 – .238 | .239 | |
| .241 – .242 | .243 | |
| .245 – .246 | .247 | |
| .249 – .250 | .251 | |
| .253 – .254 | .255 |
Quick start
How to use this calculator
- 1
Enter an IPv4 address
Any valid address works, public (like
8.8.8.8) or private (like192.168.1.10). You can also paste a block such as10.0.0.0/8. - 2
Pick a prefix
The dropdown shows both slash notation (
/24) and the full dotted-decimal mask (255.255.255.0). - 3
Read the breakdown
Click Calculate to see the network and broadcast address, wildcard mask, usable host range and full 32-bit binary breakdowns.
The basics
What is subnetting and why does it matter?
Subnetting is the process of partitioning a single IP network into two or more smaller, logical sub-networks. Every device connected to the internet sits inside a subnet, and understanding subnets is a core networking skill for the Cisco CCNA, CompTIA Network+ and AWS Solutions Architect certifications.
When an organisation receives an IP address block from a Regional Internet Registry (such as APNIC, ARIN or RIPE), it uses subnetting to divide that block into departments, offices or services. A company with a /16 network (65,534 usable hosts) might split it into 256 separate /24 subnets, one for each floor, branch or VLAN.
This calculator does the same maths as ipcalc and sipcalc on Linux, but entirely in your browser: no server calls, no API usage, and no data leaves your machine. Enter any valid IPv4 address and a CIDR prefix to see the full breakdown, or read our guide on what a subnet mask is.
Notation
Understanding CIDR notation
Usable hosts
2(32 − prefix) − 2
The minus 2 accounts for the network and broadcast addresses.
CIDR (Classless Inter-Domain Routing) replaced the legacy classful addressing system in 1993 via RFC 1519. Instead of rigid Class A (/8), Class B (/16) and Class C (/24) boundaries, CIDR lets a network boundary sit at any bit position from /1 to /32.
The notation 192.168.1.0/24 means the first 24 bits identify the network and the remaining 8 bits identify individual hosts. The number of usable hosts is 2(32 − prefix) − 2, because the first and last addresses are reserved.
In the binary breakdown above, highlighted bits are the locked network portion and grey bits are the variable host portion.
RFC 1918
Private vs public IP ranges
The calculator automatically flags addresses that fall inside the three private (RFC 1918) ranges.
Class A private
10.0.0.0/8
16,777,214 usable hosts
Class B private
172.16.0.0/12
1,048,574 usable hosts
Class C private
192.168.0.0/16
65,534 usable hosts
To check who owns a public IP, use our IP Lookup tool. You can also browse Popular IPs to see the addresses behind Google, Cloudflare and other major providers.
What is a wildcard mask?
255.255.255.0 is 0.0.0.255.Why are there 2 fewer usable hosts than total addresses?
What is a /31 or /32 subnet used for?
What is the difference between a subnet mask and a CIDR prefix?
/24 counts the leading 1-bits in the mask, while the subnet mask 255.255.255.0 writes those same 32 bits as four decimal octets.Can I share or bookmark a calculation?
?ip= and ?cidr= every time you calculate, so the link always reopens the same subnet, like this 10.0.0.0/8 example. You can also type a block such as 192.168.1.0/24 into the site search.Keep exploring
More free network tools
IP Lookup
Geolocation, ISP, ASN and timezone for any IP address, pinned on an interactive map.
Open toolWhat's My IP
Your public IP address, location and ISP the moment the page loads. Copy it in one click.
Open toolDNS Lookup
Query live DNS records for any domain to verify mail, SPF, DKIM and nameserver setup.
Open tool