Skip to content

IP & subnet calculator: networks, masks and addresses for IPv4 and IPv6

The subnet calculator breaks down an IPv4 or IPv6 address with prefix (CIDR) or netmask into its parts: network address, broadcast, netmask, wildcard mask, first and last usable address, and the number of addresses. It splits IPv4 networks into smaller subnets; for IPv6, it counts the /64 networks of a prefix.

The calculation is done in your browser; your inputs do not leave it.

Example IPv4
/24
254 usable addresses
Example IPv6
/48
65,536 networks /64
Per system
/64
IPv6 prefix and one IPv4 address, at no extra charge
IPv4 subnets
/30 to /27
from โ‚ฌ6.00 / $6.96 per month

Calculate networks and addresses

Enter an address with prefix or netmask. The result recalculates with every input, and an invalid input states the reason.

IPv4

Address with prefix (CIDR) or netmask. An address in the middle of the network is allowed; the calculator identifies the network it is in.

For example 10.0.0.1/8 or 172.16.4.2 255.255.240.0.

To try it out:

The new prefix is longer than that of the network: /26 splits a /24 into four networks.

Network

192.168.10.0/24

254 usable addresses of 256; your input is in this network.

Network address
192.168.10.0
Broadcast
192.168.10.255
Network mask
255.255.255.0
Wildcard mask
0.0.0.255
First usable address
192.168.10.1
Last usable address
192.168.10.254
Addresses in network
256
Usable addresses
254
Private according to RFC 1918
ja
Address range
Private network (RFC 1918)

Bits

Address
11000000.10101000.00001010.00100101
Network mask
11111111.11111111.11111111.00000000

24 network bits bold, 8 host bits dimmed.

Split

4 networks /26 with 62 usable addresses: each

  1. 192.168.10.0/26192.168.10.1 โ€“ 192.168.10.62
  2. 192.168.10.64/26192.168.10.65 โ€“ 192.168.10.126
  3. 192.168.10.128/26192.168.10.129 โ€“ 192.168.10.190
  4. 192.168.10.192/26192.168.10.193 โ€“ 192.168.10.254

IPv6

Address with prefix, compressed or expanded. The calculator sets the host bits to zero and formats the prefix according to RFC 5952.

For example 2001:db8::/32 or fd00::/8.

To try it out:

Prefix

2001:db8:1234::/48

65,536 networks of size /64.

Prefix, compressed
2001:db8:1234::/48
Prefix, expanded
2001:0db8:1234:0000:0000:0000:0000:0000
First address
2001:db8:1234::
Last address
2001:db8:1234:ffff:ffff:ffff:ffff:ffff
Networks of size /64
65,536
Total addresses
โ‰ˆย 1.21ย ยทย 10 high 242 high 80
Address range
Documentation (RFC 3849)

Calculated as follows

Host bits
128 โˆ’ 48 = 80
Addresses
2 high 80 โ‰ˆย 1.21ย ยทย 10 high 24
Networks of size /64
2 high (64 โˆ’ 48) = 65,536

How it's calculated

An IPv4 address has 32 bits, an IPv6 address 128. The prefix indicates how many of these designate the network; the rest count the addresses in the network.

Calculation example: 192.168.10.100/26. The address is in the middle of the network; network and broadcast are derived from it and the mask.
StepInvoiceResult
Network mask26 ones, then 6 zeros255.255.255.192
Last octet100 = 01100100, mask 192 = 1100000001000000 = 64
Network addressAddress AND netmask192.168.10.64
Wildcard maskNOT netmask0.0.0.63
BroadcastNetwork address OR wildcard mask192.168.10.127
Usable from โ€ฆ toNetwork address + 1 to broadcast โˆ’ 1192.168.10.65 โ€“ 192.168.10.126
Addresses2^(32 โˆ’ 26)64
Usable addressesAddresses โˆ’ 262
All prefixes from /8 to /32 with netmask and addresses
IPv4 prefixes from /8 to /32 with netmask, wildcard mask, addresses and usable addresses
PrefixNetwork maskWildcardAddressesusable
/8255.0.0.00.255.255.25516,777,21616,777,214
/9255.128.0.00.127.255.2558,388,6088,388,606
/10255.192.0.00.63.255.2554,194,3044,194,302
/11255.224.0.00.31.255.2552,097,1522,097,150
/12255.240.0.00.15.255.2551,048,5761,048,574
/13255.248.0.00.7.255.255524,288524,286
/14255.252.0.00.3.255.255262,144262,142
/15255.254.0.00.1.255.255131,072131,070
/16255.255.0.00.0.255.25565,53665,534
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122
/32255.255.255.2550.0.0.011

/31 and /32

In every network up to /30, the first and last addresses are assigned as the network address and broadcast. According to RFC 3021, a /31 has neither โ€” both addresses serve a point-to-point connection. A /32 is a single address.

Short form for IPv6

According to RFC 5952, leading zeros of each group are omitted, and the longest sequence of at least two zero groups becomes โ€œ::โ€ โ€” once per address. The calculator reads any valid notation and outputs the short form.

Common sizes for IPv6

Common IPv6 prefixes: how many /64 segments and how many addresses they contain. Total addresses are 2^(128 โˆ’ prefix).
PrefixSizeNetworks /64Addresses
/32typical for allocation to a network operator4,294,967,2962 high 96
/48typical for a location65,5362 high 80
/56typical for a single connection2562 high 72
/64a segment12 high 64
/128a single addressโ€”2 high 0

IP addresses at ENTRONYX CLOUD

Every system, whether dedicated server, VPS or cloud instance, comes with one IPv4 address and a /64 IPv6 prefix at no extra charge. Additional IPv4 addresses are available as a subnet; prefix and usable addresses are calculated by the same code as the calculator above.

Additional IPv4 subnets: size, usable addresses and amount per month, no setup fee. .
SubnetAddressesusableMonthNote
/3042โ‚ฌ6.00 / $6.96โ€”
/2986โ‚ฌ14.00 / $16.24โ€”
/281614โ‚ฌ27.00 / $31.32โ€”
/273230โ‚ฌ52.00 / $60.32Proof of use required

ENTRONYX CLOUD allocates additional IPv4 addresses according to the rules of the RIPE NCC, the address registry for Europe. A subnet loses two addresses to the network address and broadcast โ€” the โ€œusableโ€ column deducts this.

In the private network between your servers, you determine the addressing yourself, for example with a range according to RFC 1918. The calculator above divides it into subnets.

Frequently asked questions about subnets

Seven questions about prefix, netmask and addresses. Masks and numbers are calculated by the same function as the calculator.

Can't find your question? The calculator above shows the full calculation for every input.

How many usable addresses does a /24 network have?

A /24 contains 256 addresses; the first is the network address, the last is the broadcast, so 254 are usable. Generally, 2^(32 โˆ’ prefix) โˆ’ 2 applies, with two exceptions: according to RFC 3021, a /31 has two usable addresses, a /32 exactly a.

Calculate a network of your choice

How do I convert a network mask into a prefix?

The prefix counts the ones in the network mask in binary notation: 255.255.255.0 is 24 ones, so /24. A mask is only valid if all ones are at the front without gaps; 255.0.255.0 is therefore not a network mask.

Which IPv4 address ranges are private?

RFC 1918 reserves 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 for private networks; these addresses are not routed on the internet. The calculator shows for every input whether it falls within one of these ranges.

What is a wildcard mask?

The wildcard mask is the inverted network mask: 255.255.255.0 becomes 0.0.0.255. Access control lists of routers and firewalls use this to specify which bits of an address can be arbitrary.

What does /31 mean in IPv4?

A /31 has two addresses and neither a network nor a broadcast address: RFC 3021 allows both as host addresses for point-to-point links. This means a connection between two routers needs two addresses fewer than with a /30.

How many /64 networks does an IPv6 /48 contain?

A /48 contains 2^16 = 65,536 networks of size /64. A /64 is the usual size of a segment because stateless address autoconfiguration (SLAAC) requires 64 bits for the interface identifier.

Calculate an IPv6 prefix

Which IP addresses does a server get at ENTRONYX CLOUD?

Every system, whether dedicated server, VPS or cloud instance, includes one IPv4 address and a /64 IPv6 prefix at no extra charge. Additional IPv4 addresses are available as a subnet from /30 to /27; from a /27 upwards, allocation requires evidence of use.

/30 subnet with 4 addresses, per month net โ‚ฌ6.00 / $6.96

IPv4 subnets and their amounts

Addresses and private networks for your servers

Every system comes with its own addresses, you can add further IPv4 subnets, and private networks connect servers and instances. The other calculators help with storage and transfer.

IPv6 per system
/64
IPv4 subnets
/30 to /27
per month from
โ‚ฌ6.00 / $6.96
Evidence from
/27