255.255.255.252 • 2 hosts • 2 host bits

/30 Subnet Mask: 255.255.255.252

/30 Subnet Analysis

Pre-set to 192.168.1.4/30 so there is a worked block to read. Change the address and keep the /30, or change the prefix to compare — any address inside a block resolves to the same network.

10.0.0.5/22, 10.0.0.5 255.255.252.0 and 2001:db8::/48 all parse.
Optional — lists the equal subnets inside the block.

No address you type is resolved, logged or sent anywhere.
Quick Answer • What is a /30 subnet?

A /30 subnet mask is 255.255.255.252. It has 2 host bits, so 4 total addresses and 2 hosts. Example: 192.168.1.4/30 runs from 192.168.1.4 to 192.168.1.7, with hosts 192.168.1.5–192.168.1.6. Wildcard mask 0.0.0.3.

Everything a /30 implies, worked through on 192.168.1.4/30: the mask in dotted decimal and binary, the wildcard mask, the address range, how many blocks of this size fit inside a larger one, and what happens when you split it. The calculator above is pre-filled, so change the address and the answers follow.

1. What a /30 network is

The /30 in a CIDR block is the prefix length: how many leading bits identify the network. Those 30 bits are identical for every address in the block, and the remaining 2 host bits are free to vary. Written out as a mask that is 30 ones followed by 2 zeros, which in dotted decimal is 255.255.255.252.

prefix     /30
mask       255.255.255.252
binary     11111111.11111111.11111111.11111100
wildcard   0.0.0.3

2 host bits give 22 = 4 addresses. Two of them are not assignable to an interface: the first is the network address and the last is the broadcast address. That leaves 2 usable hosts.

PropertyValue
CIDR notation/30
Subnet mask255.255.255.252
Wildcard mask0.0.0.3
Host bits2
Total addresses4
Usable hosts2

The wildcard mask is the bitwise inverse of the subnet mask — 0.0.0.3 here — and it is what Cisco access lists and OSPF network statements expect instead of a netmask. A zero bit in a wildcard means “this bit must match”, which is the opposite convention to a netmask, and mixing the two up is one of the most common configuration errors in the subject. In classful terms a /30 is longer than a class C default mask — a subnetted class C in classful terms.

2. The 192.168.1.4/30 block, address by address

A worked example is easier to check than a formula. 192.168.1.4/30 is a real /30 inside a private range, and every figure below follows from the mask alone:

AddressValueWhat it is
Network192.168.1.4The block itself; not assigned to a host
Host range192.168.1.5192.168.1.62 hosts you can assign
Broadcast192.168.1.7The last address — reaches every host on the segment
Subnet mask255.255.255.252Which bits are the network
Wildcard0.0.0.3The inverse, for ACLs
network  11000000.10101000.00000001.00000100
mask     11111111.11111111.11111111.11111100

Line the two up and the rule is visible: wherever the mask has a 1, the network bit is fixed; wherever it has a 0, the address is free to count up. This is also why entering any address inside the block gives the same answer — the calculator masks the host bits away, so 192.168.1.5/30 and 192.168.1.4/30 describe the same network.

3. How many /30 networks fit inside a bigger block

Prefix arithmetic is powers of two all the way down: each extra bit of prefix halves the block. Going the other way, the number of /30 networks inside a shorter prefix is two to the power of the difference between the two prefix lengths, which is where these counts come from.

One block ofContainsUsable hosts in total
1 × /84,194,304 × /308,388,608
1 × /12262,144 × /30524,288
1 × /1616,384 × /3032,768
1 × /201,024 × /302,048
1 × /2464 × /30128

The usable-host column is the one worth noticing. Every split costs two addresses per subnet to the network and broadcast addresses, so a plan built from many small subnets always has fewer usable addresses than the block it came from — dividing one /24 into eight /27s leaves 240 usable addresses where the /24 had 254. That is the real price of a subnetting plan, and it is why router-to-router links in a modern design get /31s rather than /30s.

4. Splitting a /30

Borrowing host bits turns one block into several equal ones. Each bit borrowed doubles the number of subnets and halves their size:

Split intoMaskHow manyUsable hosts each
/31255.255.255.25422
/32255.255.255.25541

The console at the top of this page does this for you: set the CIDR to a /30 and choose a longer prefix under Split into to get the resulting networks with their ranges. It caps how many rows it draws — splitting a /8 into /24s is 65,536 subnets — but the count it reports is always the true total.

Variable-length subnetting Nothing requires the subnets of a block to be the same size. A /30 can be carved into a mix of longer prefixes as long as each one is aligned to its own size — that is what VLSM means, and it is how one parent block gives a /30 to a router link and a /26 to a user VLAN.

5. Where a /30 is used

2 hosts — the traditional point-to-point link, and the shortest prefix where the network and broadcast addresses still exist.

A prefix length says nothing about whether the addresses are private. That is decided by the address itself: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 are the RFC 1918 private ranges, 100.64.0.0/10 is carrier-grade NAT space from RFC 6598, 169.254.0.0/16 is link-local, and 127.0.0.0/8 is loopback. A /30 carved out of any of them is private; the same /30 out of a public allocation is globally routable. The console labels which range an address falls into, including the documentation blocks from RFC 5737 that turn up in tutorials.

IPv6 changes the habit rather than the arithmetic. The mask still marks the network bits, but subnets are conventionally /64 regardless of how many hosts are on them — SLAAC needs 64 host bits — and a site is normally delegated a /48 or /56. There is no broadcast address to subtract, so the “minus two” rule has no IPv6 equivalent. The console handles IPv6 blocks as well; switch the address family above.

6. CIDR to subnet mask, around /30

The neighbouring prefixes, for when the question is really “which one do I need?” — each row is a page of its own with the same worked detail:

PrefixSubnet maskWildcardAddressesUsable hosts
/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

The subnet calculator carries the full /8 to /32 chart, and works the question backwards too: give it a host count and it returns the shortest prefix that fits, which is the calculation a design actually starts from.

7. /30 Subnet FAQs

What is the subnet mask for a /30?

255.255.255.252. In binary that is 11111111.11111111.11111111.11111100 — 30 network bits followed by 2 host bits. The wildcard mask, which Cisco access lists and OSPF network statements use instead of a netmask, is the bitwise inverse: 0.0.0.3.

How many hosts are in a /30?

4 addresses in total and 2 usable hosts. The first address in the block is the network address and the last is the broadcast address, so two of the 4 cannot be assigned to an interface.

How many /30 networks fit in a /24?

64. Each extra bit of prefix halves the block, so the count is two to the power of the difference in prefix length — 30 minus 24 is 6 bits, giving 64 separate /30 networks with 2 usable hosts each.

What is the address range of 192.168.1.4/30?

192.168.1.4 to 192.168.1.7, which is 4 addresses. Assignable hosts run from 192.168.1.5 to 192.168.1.6, with 192.168.1.7 reserved as the broadcast address.

Why is a /30 not simply the address count minus two?

Because the first address in every block identifies the network itself and the last is the broadcast address for the segment, so neither can be given to an interface. A /30 has 4 addresses and therefore 2 usable hosts. The exceptions are /31 and /32, where RFC 3021 removes both special addresses.

How do I split a /30 into smaller subnets?

Borrow host bits. Moving from /30 to /31 gives two equal subnets, /32 gives four, and so on — each bit doubles the count and halves the size. Enter the block above and set “Split into /” to the longer prefix to list every resulting subnet with its range and host count.

Does a /30 mean the addresses are private?

No. The prefix length says how big the block is, not who can route to it. Private addressing comes from the ranges themselves: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16 under RFC 1918, plus 100.64.0.0/10 for carrier-grade NAT and 169.254.0.0/16 for link-local. The same prefix length out of a public allocation is globally routable.

Is the address I enter sent to a server?

No. Addresses are parsed and masked in your browser as 32-bit integers, or as BigInt values for IPv6. No DNS query is made, nothing is resolved, nothing is logged or stored, and the page works offline once it has loaded.