Works on this device
Subnet Capacity Planner
Plan how large your subnets must be, today and after growth. Find the prefix length for a number of hosts, see how full a subnet is, split an address block into subnets of different sizes, and count the /64 subnets of an IPv6 prefix.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this planner
- Choose what you want to plan.
- Type your hosts, the growth you expect each year and the number of years. For VLSM, type the address block and one row for each subnet you need.
- Choose Calculate. Read the prefix length, the addresses and the room that is left. You can copy, print or download the result as a CSV file.
The rules
- An IPv4 subnet with prefix length p has 2^(32 − p) addresses. In a normal subnet the first address names the network and the last one is the broadcast address, so the usable hosts are 2^(32 − p) − 2.
- A /31 has 2 usable addresses for a link between two routers, with no network or broadcast address (RFC 3021). A /32 is one single address, for a loopback or a host route.
- Hosts after growth = hosts now × (1 + growth ÷ 100) to the power of the years, rounded up to a whole host. The addresses kept back for routers and services are added to that.
- Prefix length needed: the longest prefix whose usable hosts are at least the addresses needed.
- VLSM (variable length subnet masks): each subnet gets the smallest block that fits its hosts with growth. The blocks are placed largest first from the start of the address block, so each one starts on a boundary of its own size.
- IPv6: a LAN uses a /64 whatever its number of hosts (RFC 4291 and RFC 4862). A prefix of length p holds 2^(64 − p) subnets of /64.
Worked example
You have 45 hosts and expect 10% more each year for 3 years. Hosts after growth = 45 × 1.1 × 1.1 × 1.1 = 59.895, rounded up to 60. With 1 address for the gateway you need 61 addresses. A /26 has 64 − 2 = 62 usable hosts, so /26 (mask 255.255.255.192) is the answer, with 1 address to spare.
VLSM for 10.20.0.0/22 with 20% growth: Office 200 hosts (240 with growth) gets 10.20.0.0/24, Guest Wi-Fi 120 hosts (144) gets 10.20.1.0/24, Servers 30 hosts (36) get 10.20.2.0/26, Printers 12 hosts (15) get 10.20.2.64/27, and the link to the provider gets 10.20.2.96/31. That uses 610 of the 1,024 addresses.
IPv6: a /48 holds 2^16 = 65,536 subnets of /64. 40 LANs with 10% growth for 3 years become 54, which need 6 bits: a /58 or a shorter prefix, such as a /56.
Limits you should know
- The growth is your own estimate. The planner does not know how your network will grow.
- Cloud networks keep back more addresses in each subnet (for example five). Type them as addresses kept back, and check the current rules of your provider.
- VLSM and the host rules are for IPv4. IPv6 subnets are planned by number of /64 subnets.
- This page does address maths only. It cannot see your network or check which addresses are in use. For every detail of one subnet, use the IP & Subnet Calculator.