CZ
CalcyZone
computer-science Verified Precision Tool

IPv4 Subnet & CIDR Calculator

Calculate network address, broadcast address, subnet mask, wildcard mask, and usable IP range for any IPv4 address and CIDR prefix.

Interactive Algorithm Visualizer

Algorithm Step-by-Step Simulator

Enter your custom input data → Run the real algorithm engine → Observe step transitions.

⚙️ Customize Algorithm Input Data

Mathematical Formula

Subnet Mask = (0xFFFFFFFF << (32 - CIDR)); Network = IP & Mask

Overview & Explanation

An IPv4 Subnet Calculator partitions IP networks into logical sub-networks, determining exact network boundaries, broadcast addresses, and host capacities.

How It Works

  • Convert IP address and CIDR prefix to 32-bit binary representations.
  • Apply Bitwise AND with subnet mask to calculate Network Address.
  • Apply Bitwise OR with wildcard mask to calculate Broadcast Address.

Practical Applications

  • Network engineering
  • VLSM design
  • Cloud VPC CIDR allocation

Subnetting 192.168.1.100/24

Calculating network metrics for /24 prefix

1

Mask

32 - 24 = 8 host bits

= 255.255.255.0
2

Network

192.168.1.100 & Mask

= 192.168.1.0
3

Broadcast

Network | Wildcard

= 192.168.1.255

Frequently Asked Questions

How many usable hosts does a /24 subnet support?
A /24 subnet supports 254 usable hosts.