IPv4 Subnet Calculator
What is an IPv4 Subnet Calculator?
Parse any IPv4 address and CIDR prefix (e.g. `192.168.1.0/24` or `10.0.0.0/16`). Calculates exact Network ID, Broadcast Address, Subnet Mask, Wildcard Mask, Usable Host IP Range, and total usable host count.
Why Use This Tool?
- Network Architecture & VPC Design: Calculate subnet ranges when building AWS VPCs, Azure VNets, or Cisco router networks.
- Firewall Rule Configuration: Determine network and broadcast boundaries for firewall rules and ACLs.
- Network Engineering Exams: Verify CCNA, CompTIA Network+, and AWS Certified SysOps subnetting homework.
How to Use
- Enter IPv4 Address and Subnet Mask CIDR prefix (e.g. `192.168.1.50/24` or select `/28` from dropdown).
- The tool computes binary subnets and IP boundaries in real time.
- Copy Network IP, Broadcast IP, or usable host ranges.
Real Working Example
Input:
IP Address: 192.168.1.50 | CIDR Prefix: /24 (255.255.255.0)
Output Result:
Network IP: 192.168.1.0 Broadcast IP: 192.168.1.255 Usable Host Range: 192.168.1.1 – 192.168.1.254 Total Usable Hosts: 254 Hosts
Important Technical Details & Standards
- 32-Bit Bitwise Subnet Math: Performs bitwise AND `(IP & Mask)` to derive Network ID and bitwise OR `(Network | ~Mask)` for Broadcast ID.
- RFC 1918 Private Address Detection: Flags whether the IP belongs to 10.0.0.0/8, 172.16.0.0/12, or 192.168.0.0/16 private IP blocks.
- 100% Client-Side Engine: Fast in-browser bitwise calculation.
Related Networking & Security Tools
- VLSM Calculator: Allocate variable-length subnets by host needs.
- CIDR Aggregator: Merge adjacent IPv4 CIDR blocks.
- IPv4 Address Converter: Convert IP to Binary, Hex, and Decimal.
Frequently Asked Questions
How many usable host IPs are in a /24 subnet?
A /24 subnet has 256 total IP addresses, minus 2 reserved addresses (Network and Broadcast), leaving 254 usable host IPs.
What is the subnet mask for /16 CIDR?
The subnet mask for a /16 CIDR prefix is 255.255.0.0.
Why are Network and Broadcast addresses reserved?
The Network address identifies the subnet itself; the Broadcast address sends packets to all hosts on the subnet.
Is it free?
Yes, 100% free with no subnet size limits.
Does it support private RFC 1918 IP addresses?
Yes, full support for Class A (10.0.0.0/8), Class B (172.16.0.0/12), and Class C (192.168.0.0/16).