submask calculator

IPv4 Submask / Subnet Calculator

Enter an IPv4 address and either a CIDR prefix length or a subnet mask. If both are provided, the dotted subnet mask will override the prefix.

Example valid masks: 255.0.0.0, 255.255.0.0, 255.255.255.0, 255.255.255.252

IP Address-
Address Class / Type-
CIDR Prefix-
Subnet Mask-
Wildcard Mask-
Network Address-
Broadcast Address-
First Usable Host-
Last Usable Host-
Total Addresses-
Usable Hosts-
Host Bits-
Binary Mask-

What Is a Submask Calculator?

A “submask calculator” is typically another way of saying subnet mask calculator. In IPv4 networking, the subnet mask tells you which portion of an address is the network part and which portion is the host part. This tool helps you quickly calculate key values such as network address, broadcast address, and host range.

Instead of manually converting to binary and doing bitwise math, you can input an IP and prefix (like /24) and instantly see everything you need for network planning, access control lists, routing design, and troubleshooting.

How to Use This Calculator

Step 1: Enter the IPv4 address

Type a valid IPv4 address in dotted decimal format, such as 10.0.15.200 or 172.16.4.9.

Step 2: Enter CIDR or subnet mask

  • Use a CIDR prefix (0 to 32), such as /24, or
  • Enter a dotted subnet mask, such as 255.255.255.0.

If both are entered, the calculator uses the subnet mask field to avoid ambiguity.

Step 3: Click Calculate

You’ll get an immediate breakdown of network details including total addresses, usable hosts, wildcard mask, and binary mask view.

What the Results Mean

  • Network Address: The first address in the subnet; identifies the subnet itself.
  • Broadcast Address: The last address in the subnet; used to reach all devices in that subnet.
  • First / Last Usable: Typical host range for devices (except special /31 and /32 behavior).
  • Wildcard Mask: Inverse of subnet mask, used commonly in ACL rules.
  • Host Bits: Number of bits available for host addressing.

Quick Examples

Example A: 192.168.1.34/24

  • Network: 192.168.1.0
  • Broadcast: 192.168.1.255
  • Usable range: 192.168.1.1 to 192.168.1.254
  • Usable hosts: 254

Example B: 10.0.0.9/30

  • Network: 10.0.0.8
  • Broadcast: 10.0.0.11
  • Usable range: 10.0.0.9 to 10.0.0.10
  • Usable hosts: 2

Common Mistakes to Avoid

  • Using non-contiguous subnet masks (for example, masks with mixed 1s and 0s in the middle).
  • Confusing total addresses with usable host addresses.
  • Forgetting that /31 and /32 are special cases in modern networking.
  • Assuming classful defaults still apply in all environments; CIDR is the norm now.

Why This Matters in Real Networks

Subnetting is fundamental for VLAN design, firewall segmentation, route summarization, and cloud VPC planning. Accurate submask calculations reduce IP waste and prevent outages caused by overlap or incorrect routes.

Whether you are studying for networking certifications or operating production infrastructure, a reliable subnet calculator saves time and prevents human error.

🔗 Related Calculators

🔗 Related Calculators