IPv4 Subnet Calculator - MacigHub

Calculate IPv4 subnet CIDR ranges: network address, broadcast, host count, wildcard mask, class and CIDR notation.

Popular tools: Base64 · JSON Diff · UUID · QR Code · Regex · Password

About this tool

What is a subnet calculation?

It splits an IPv4 network (e.g. 192.168.1.0/24) into the network address, broadcast address, usable host range, subnet mask, wildcard mask and host count. Essential for VLAN planning, firewall rules and cloud VPC design.

How to use it

  • Enter an IP with CIDR notation (/24) or an explicit mask.
  • Read the usable range — first and last addresses are reserved.
  • Split into smaller subnets when segmenting departments or tiers.

Examples

  • 10.0.0.0/24 gives 254 usable hosts (.1–.254); .0 is network, .255 broadcast.
  • Carving four /26 subnets (62 hosts each) out of one /24.
  • Checking whether two hosts sit in the same broadcast domain.

Important limitations

  • Calculator math assumes standard subnetting; exotic setups (NAT overlap, anycast) need architect review.
  • Usable-host math excludes network and broadcast — a /31 is a special point-to-point case.
  • IPv6 uses the companion IPv6 tools; v4 math does not transfer.

Privacy

All computation is local. Internal IP schemes stay in your browser — good, since they map your infrastructure.

Frequently asked questions

How many hosts in a /24?

254 usable. Each extra CIDR bit halves the count: /25 → 126, /26 → 62.

Network vs broadcast address?

First address names the network, last shouts to everyone on it — neither is assignable to a host.

What mask gives me ~500 hosts?

/23 (510 usable). Size up one step beyond your need for growth.

Related tools

IPv4 range expander · IPv4 address converter · Random port generator