1001Ferramentas
✂️ Security

Split CIDR into N Equal Subnets

Split a CIDR block into N equal-sized subnets — a one-page visual VLSM calculator.

Splitting a block into equal subnets

Splitting an address range into equal parts is the calculation that shows up every time someone builds a VPC, separates production from staging or hands blocks out to branch offices. The rule is short: every time the prefix grows by one bit, the block halves. A /24 becomes two /25s, four /26s, eight /27s, and onwards.

Enter the base block and how many subnets you want and the page returns the list, with the first and last address of each. The number of parts has to be a power of two, because the division happens by bits — there is no splitting a block into three equal parts in CIDR, and the page refuses rather than rounding silently. It also refuses when the resulting prefix would exceed 32.

Two sums regularly cause confusion. A block's address count is two to the power of thirty-two minus the prefix, but not all of them are usable: in an ordinary subnet the first is the network address and the last is broadcast, which leaves a /24 with 254 hosts rather than 256. And cloud providers reserve a few more in every subnet — AWS, for instance, takes five.

Frequently asked questions

Why does it have to be a power of two?
Because the split works by borrowing bits from the host part, and each bit doubles the number of blocks. For three subnets you borrow two bits, which produce four blocks, and you use three of them — the fourth sits reserved. There is no equal split that is not a power of two.
Do all subnets have to be the same size?
No, and that is exactly what VLSM allows: splitting unevenly, giving a larger block to the segment with more hosts and smaller ones to point-to-point links. This page does the uniform split, which is the common case; for VLSM, divide in stages, subdividing only the piece that needs it.
Can I use /31 and /32 as subnets?
As host subnets, no — no usable address is left under the traditional rule. But /31 is allowed on point-to-point links by RFC 3021, with both ends taking the two addresses, and /32 identifies a single host, common on router loopbacks and in specific routes.

Related Tools