Clarks Size Calculator

Subnet Size Calculator

Enter how many hosts need addresses and how much growth to allow. The calculator gives the CIDR prefix, the subnet mask, the usable hosts and the wildcard mask.

  • Subnet prefix
  • Subnet mask
  • Usable hosts
Your network

From 1 to 100000000

From 0 to 1000

Some cloud providers reserve extra addresses in each subnet.

A subnet holds 2 to the power of its host bits, less 2. 50 hosts with 20% growth is 60, which needs 6 host bits, a /26. That has a mask of 255.255.255.192 and 62 usable addresses.

Subnet size chart

IPv4. Search for a prefix.

Subnet sizes
PrefixMaskAddressesUsable hosts
/30255.255.255.25242
/29255.255.255.24886
/28255.255.255.2401614
/27255.255.255.2243230
/26255.255.255.1926462
/25255.255.255.128128126
/24255.255.255.0256254
/23255.255.254.0512510
/22255.255.252.010241022
/21255.255.248.020482046
/20255.255.240.040964094
/16255.255.0.06553665534

Hosts.

Prefix and hosts

IPv4. Slide the prefix.

Network and host bits are coloured.

How to size a subnet

Hosts to prefix. Step through it.

Hosts

Count.

Leave room for growth so you do not have to renumber.

/24, /26 or /28

Common subnets. Compare them.

Office LAN.

Usable254
Mask255.255.255.0
UseFloors, sites

Smaller subnets waste fewer addresses but leave less room to grow.

Before you assign

Network checks. Tick each item.

Tick each item as you go.

Document every subnet in an address plan.

What you get

Subnet sizing. Each tile explains one result.

Prefix

CIDR.

Mask

Dotted.

Hosts

Usable.

Growth

Allowed.

Wildcard

For ACLs.

The network and broadcast addresses cannot be given to hosts.

Frequently Asked Questions

How do I choose a subnet size?

Add two to the hosts, round up to a power of two and subtract the bits from thirty two.

How many hosts in a slash twenty four?

Two hundred and fifty four usable hosts.

What subnet do I need for fifty hosts?

A slash twenty six, with sixty two usable addresses.

What is a subnet mask?

The prefix written as four numbers, such as two five five dot two five five dot two five five dot zero.

Why subtract two hosts?

The first address names the network and the last is the broadcast.

What is CIDR notation?

A slash and the number of network bits, such as slash twenty four.

What is a wildcard mask?

The inverse of the subnet mask, used in router access lists.

Address space that fits

Pick the right subnet for your hosts and growth and your network plan stays tidy.

More size calculators

Each one has its own calculator, worked examples and answers to common questions.

See all size calculators