Black Friday until Nov 30: +50% on top-ups ⏳ Take the bonus
IP & Network

Subnet Calculator

Calculate mask, IP range, host count by CIDR notation.

Enter IP address with CIDR (e.g. 192.168.1.0/24) or just IP (default /24)

Key facts

IPv4 subnet calculator: enter an address with a prefix (for example 192.168.1.0/24) and get the subnet mask, wildcard, network address, broadcast, host range and host count. Free, no sign-up. IPv6 and splitting a network into subnets are not supported.

Price
Free
Sign-up
Not required
Processing
On our server: PHP functions compute from the IP and prefix you enter; the tool calls no third-party services
Input
An IPv4 address with a CIDR prefix, for example 192.168.1.0/24; without a prefix /24 is assumed. A mask is also accepted as 192.168.1.0/255.255.255.0
Limits
IPv4 only, prefix 0–32; one calculation at a time; no sign-up; there is no splitting of a network into subnets (VLSM)
Output
Network address, broadcast, subnet mask, wildcard mask, first and last host, number of hosts, binary form of the IP and mask, and a private-network flag
Last updated

See it in action

IPv4 subnet calculator: mask, network, broadcast and hosts

Enter an IP address with a prefix, such as 192.168.10.77/26, or just an IP (then /24 is assumed). The calculator finds the network and broadcast addresses, first and last host, host count, subnet mask and wildcard mask, shows the mask and address in binary and marks RFC 1918 private ranges. IPv4 only.

Subnet mask and wildcard mask
Network, broadcast and host range
Mask and IP address in binary
Mask reference table from /16 to /32

How to Use

  1. Enter an IP address with a prefix, e.g. 192.168.10.77/26
  2. Without a prefix the calculator assumes /24
  3. Read the mask, network address, broadcast and host range

Use Cases

  • Plan subnet segmentation for infrastructure and environments.
  • Prepare firewall and ACL rules based on IP ranges.

Limitations

  • Focused on IPv4 CIDR calculations.
  • Does not analyze real BGP routes or host reachability.

Example Input / Output

Example Input
192.168.10.0/26
Example Output
Mask 255.255.255.192, Host range 192.168.10.1-62, Broadcast 192.168.10.63.

FAQ

Enter an address with a prefix, such as 192.168.1.0/24, and click Calculate. You get the subnet mask, wildcard, network address, broadcast, first and last host and the number of hosts. No sign-up needed.

No, the tool accepts only a CIDR prefix (/24). To convert a mask to a prefix, count the ones in its binary form: 255.255.255.0 is /24 and 255.255.255.192 is /26.

By the formula 2^(32−prefix) − 2: a /24 has 254 hosts, a /26 has 62 and a /30 has 2. Two addresses are subtracted because the first is the network address and the last is the broadcast. For /31 the tool shows 2 addresses, for /32 it shows 1.

It is the inverted subnet mask (for /24 it is 0.0.0.255). It is used in access lists and some routing protocols, where a “0” bit means “must match” and a “1” bit means “any value”.

No. The calculator works only with IPv4 and computes a single subnet. You cannot split a network into several subnets (VLSM) or merge networks into a supernet here.

They are two neighbouring tools on the site: here you get the full set of parameters of one subnet from an IP and prefix. For working with CIDR blocks and ranges use the separate CIDR calculator.

Who it is for and typical uses

  • Admins and networking students. Check an answer to an exercise: how many hosts a /26 network has, what the broadcast of 10.1.2.77/28 is.
  • Configuring routers and firewalls. A wildcard mask is needed for Cisco access lists; here it is computed automatically.
  • Address planning. Quickly judge whether a /27 network is enough for the number of devices.
  • Cloud networks and VPNs. Check that ranges do not overlap and learn the boundaries of a CIDR block.

Honest limitations

  • IPv4 only. Enter the address as 192.168.1.0/24 or 192.168.1.0/255.255.255.0; without a prefix the calculation uses /24. IPv6 and subnet splitting are not supported.
  • IPv4 only. The tool does not suit IPv6.
  • No subnet splitting. You cannot divide a network into parts (VLSM) or merge networks into a supernet here.
  • Host count follows the classic rule. The network and broadcast addresses are subtracted; /31 shows 2 addresses (RFC 3021) and /32 shows 1.
  • The “private” flag is incomplete. Only 10/8, 172.16/12 and 192.168/16 count; loopback, link-local and other special addresses show as “Public”.

Related: CIDR calculator, IP converter, my IP address, IP geolocation, ASN lookup.

PromoPilot vs alternatives: comparison

We compare only what is confirmed on each service's own pages. Where we could not confirm a fact, the cell shows "—".

Parameter PromoPilot jodies.de IP Calculator SolarWinds Advanced Subnet Calculator
Free Yes, no sign-up Price and licence not stated; downloads and a Debian package are offered “100% free”; no sign-up requirement is stated on the page
Mask (255.255.255.0) and CIDR input Only IP/CIDR prefix ✓ dotted netmask, CIDR and inverse netmask ✓ IPv4 and mask bits (CIDR)
Splitting into subnets / supernets ✗ ✓ a second netmask splits a network or combines networks into a supernet ✓ number of subnets or subnet bits; start, end, network and broadcast of each
IPv6 ✗ — Fields are for IPv4; the FAQ says it can also work with IPv6
Wildcard mask and binary form ✓ ✓ Cisco wildcard and binary form —

Scroll the table sideways

Where we are weaker: we accept only IPv4 with a CIDR prefix (a mask such as 255.255.255.0 is not supported), have no subnet splitting (VLSM) or IPv6, and the private-network flag covers three RFC 1918 ranges.

When to choose PromoPilot: When you want every parameter of one subnet from an IP and prefix in a second and to see the binary form of the mask. To split a network into several subnets of different sizes, or to work with IPv6, you need a calculator with VLSM.

Checked on: . "—" means not confirmed on the official page; terms and prices change, so check the services' own sites.

How to use the subnet calculator

Enter an IPv4 address with a prefix, for example 192.168.10.77/26. The address does not have to be the start of the network: the calculator finds the network it belongs to. Leave the prefix out and it assumes /24 (255.255.255.0). The calculator handles IPv4 only.

What each field means

  • Subnet mask is the prefix length written in dotted decimal: /26 = 255.255.255.192.
  • Wildcard mask is the inverted mask (0.0.0.63 for a /26), used in Cisco access lists and OSPF configuration.
  • Network address is the first address of the block and names the subnet itself. It is not assigned to a device.
  • Broadcast is the last address of the block. Not for devices either.
  • First and last host give the range you can assign to devices.
  • Number of hosts is 2(32 − prefix) − 2. /31 and /32 follow different rules, see below.
  • Class shows “Private” for the RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16). Everything else is labelled “Public”, including 127.0.0.0/8 (localhost) and 100.64.0.0/10 (carrier-grade NAT), even though neither is reachable from the internet.
  • Binary mask and address: ones in the mask are the network part, zeros are the host part.

Worked example: 192.168.10.77/26

Mask255.255.255.192
Wildcard0.0.0.63
Network192.168.10.64
Broadcast192.168.10.127
Hosts192.168.10.65 – 192.168.10.126, 62 in total

The mental shortcut: the last non-zero octet of the mask is 192, so the block size is 256 − 192 = 64. Blocks start at 0, 64, 128 and 192. Address .77 falls into 64–127. The first address is the network, the last is the broadcast, and everything in between is usable.

Subnet mask cheat sheet

PrefixMaskHostsTypical use
/8255.0.0.016,777,214The whole 10.0.0.0 network
/16255.255.0.065,534Large corporate network, cloud VPC
/22255.255.252.01,022Campus, guest Wi-Fi
/23255.255.254.0510Office floor
/24255.255.255.0254Home network, small office
/25255.255.255.128126Half of a /24
/26255.255.255.19262Department, VLAN
/27255.255.255.22430Small VLAN
/28255.255.255.24014Address block from an ISP
/29255.255.255.2486A few static public IPs
/30255.255.255.2522Link between two routers
/31255.255.255.2542Point-to-point link (RFC 3021)
/32255.255.255.2551Single address: loopback, firewall rule

How to split a network into subnets

Every extra prefix bit halves the network. To split 192.168.1.0/24 into four, you need 2 bits (2² = 4), which gives /26 subnets: .0/26, .64/26, .128/26 and .192/26, 62 hosts each.

If you start from the number of devices, pick the smallest block with room to spare. 50 devices fit a /26 (62 hosts), 100 a /25 (126), 300 a /23 (510). Leave headroom for printers, access points and growth.

Why /31 and /32 are different

A /31 has only two addresses; take away network and broadcast and nothing is left. RFC 3021 therefore lets point-to-point links use both, and the calculator shows 2 hosts. A /32 is one specific address, used in routes, firewall rules and loopback interfaces.

Subnet calculator or CIDR calculator?

Use this page when you configure a network: mask, wildcard, binary form and host range for a given address. If you need to turn a block such as 203.0.113.0/22 into an address range and count every IP in it, the CIDR calculator is quicker. To convert an address to binary, hex or integer form, use the IP converter.

Cascade link promotion for your site $30 bonusBacklinks 5→50→5000 across 100+ platforms. From $30 to start, plus a $30 bonus for newcomers.