/29 subnet calculator (255.255.255.248)
A /29 prefix fixes the first 29 bits of the address, leaving 3 bits for hosts. That gives 8 addresses in the block.
- Total addresses in the block
- 8
- Mask octet 1
- 255
- Mask octet 2
- 255
- Mask octet 3
- 255
- Mask octet 4
- 248
- Usable hosts across all the blocks
- 6
- Blocks needed for the hosts you listed
- 9
- Spare addresses in one block
- -44
- Utilisation of one block
- 833.33 %
- How many fit inside a /24
- 32
Show the working
- Number of these subnets = 1
- Hosts you need to fit = 50
- prefix = 29 = 29
- host_bits = 32 - 29 = 3
- Total addresses in the block = 2^3 = 8
- Usable hosts per subnet = 29 >= 31 ? (29 == 31 ? 2 : 1) : 8 - 2 = 6
- mask_value = 2^32 - 2^3 = 4 294 970 000
- Mask octet 1 = floor(4 294 970 000 / 2^24) = 255
- Mask octet 2 = floor(4 294 970 000 / 2^16) % 256 = 255
- Mask octet 3 = floor(4 294 970 000 / 2^8) % 256 = 255
- Mask octet 4 = 4 294 970 000 % 256 = 248
- total_addresses = 8 * 1 = 8
- Usable hosts across all the blocks = 6 * 1 = 6
- Blocks needed for the hosts you listed = 6 > 0 ? ceil(50 / 6) : 0 = 9
- Spare addresses in one block = 6 - 50 = -44
- Utilisation of one block = 6 > 0 ? 50 / 6 * 100 : 0 = 833.333
- How many fit inside a /24 = 29 >= 24 ? 2^(29 - 24) : 0 = 32
Values are shown to six significant figures here; the arithmetic itself runs on exact fractions and is only rounded where a number is printed.
Scenarios & local history
Compare a saved scenario
Recent calculations
The formula
- host bits = 32 - prefix length
- total addresses = 2^host bits
- usable hosts = total - 2, reserving the network and broadcast addresses
- mask = 2^32 - 2^host bits, written as four octets
The two reserved addresses are the all-zeros network address and the all-ones broadcast address.
RFC 3021 makes a /31 usable as a two-address point-to-point link with no broadcast, and a /32 is a single host route. Both are special-cased here.
This is IPv4. IPv6 does not reserve a broadcast address, so an IPv6 prefix has 2^(128 - n) usable addresses.
This prefix at a glance
| Property | Value |
|---|---|
| CIDR | /29 |
| Subnet mask | 255.255.255.248 |
| Wildcard mask | 0.0.0.7 |
| Total addresses | 8 |
| Usable hosts | 6 |
| Host bits | 3 |
Frequently asked
How many hosts are in a /29?
6 usable hosts, out of 8 total addresses.
What subnet mask is a /29?
255.255.255.248, with a wildcard mask of 0.0.0.7.
Where the numbers come from
- Address arithmetic follows RFC 4632 (CIDR) and RFC 3021 for the /31 case.