Network and IP Planning · #01

Online IPv4 Subnet Calculator

Calculates the network address, broadcast, mask and usable host range of a single IPv4 network.

  • Data is processed in your browser and not sent to a server

Tool

Example: 192.168.10.37/27 or just 192.168.10.37

If the address has no prefix: 27, /27 or 255.255.255.224

What does this tool do?

When you address an interface, write an ACL or firewall object, or check how many devices fit in a network, you need the same answers: which network does this IP belong to, what is the broadcast, which are the first and last usable addresses? This tool solves one network. To split a parent block into several VLANs, use the VLAN and VLSM IP Planner.

How to use it

  1. Enter the IP address with its CIDR prefix (192.168.10.37/27) or leave out the prefix and enter the mask in the second field.
  2. The mask field accepts 27, /27 or 255.255.255.224.
  3. Press Calculate; you can copy the result table.

Fields

IP address / CIDR
Example: 192.168.10.37/27 or just 192.168.10.37
Subnet mask (optional)
If the address has no prefix: 27, /27 or 255.255.255.224

Worked example

InputValue
IP address / CIDR192.168.10.37/27

Expected result: Network 192.168.10.32, broadcast 192.168.10.63, mask 255.255.255.224, wildcard 0.0.0.31, usable range .33–.62, 30 hosts.

A /27 is a block of 32 addresses. 37 falls into the block from 32 to 63. The first address is the network and the last is the broadcast, leaving 30 host addresses. The gateway is usually .33 or .62.

Second scenario

InputValue
IP address / CIDR10.255.0.6
Subnet mask (optional)255.255.255.254

Expected result: 10.255.0.6/31 has two usable addresses (.6 and .7) and no broadcast.

Point-to-point links use /31 under RFC 3021; both addresses are assigned to interfaces.

Method and assumptions

Address and mask are converted to 32-bit integers. The network is IP AND mask, the broadcast is network OR wildcard. The wildcard is the bitwise inverse of the mask.

The total is 232−prefix addresses. For /30 and larger networks the network and broadcast addresses are subtracted. For /31, RFC 3021 makes both addresses usable and there is no broadcast. /32 is a single host route.

A mask with non-contiguous bits (e.g. 255.255.0.255) is rejected. Octets with leading zeros (010) are rejected because of the octal ambiguity.

Using the result and troubleshooting

Use the wildcard value in ACL and OSPF statements, and the mask or prefix in interface configuration.

If you entered a host address, the tool also shows its network. Assigning the network or broadcast address to an interface makes the device reject the configuration or behave incorrectly.

Limits and common mistakes

  • IPv4 only. For IPv6 use the IPv6 Prefix and Address Normalizer.
  • Classful (A/B/C) addressing is not shown; routing today is classless.
  • The private/public scope label comes from the IANA special-purpose blocks; it does not check whether the address is actually routed.

Frequently asked questions

Why does a /31 have no broadcast?

RFC 3021 defines two-address networks for point-to-point links. With only the two endpoints there is no need for a broadcast address, so both addresses can be assigned.

How do mask and prefix relate?

/27 means the first 27 bits of the mask are 1: 255.255.255.224. The tool accepts both notations and shows both.

Related tools and service

  • VLAN and VLSM IP PlannerSplits one parent block into several VLANs; returns subnet, gateway, DHCP range and spare capacity per VLAN, with XLSX export.
  • IP Range to CIDR ConverterProduces the shortest CIDR list that exactly covers the range between two IP addresses.
  • Subnet Overlap CheckerLists overlaps within the same VRF and deliberate reuse across VRFs separately.

Related service: VLAN, Routing and Network Segmentation

Network online tools · See all online tools