IPv4 Subnet Calculator
IP Address
CIDR Prefix
⚠ Please enter a valid IPv4 address (e.g. 192.168.1.0)
Subnet Summary
Network Address
,
Broadcast Address
,
Usable Hosts
,
IP Class
,
NETWORK
USABLE HOSTS
BROADCAST
Network address
Usable host range
Broadcast address
Full Details
IP Address ,
Network Address ,
Subnet Mask ,
Wildcard Mask (Cisco ACL) ,
Broadcast Address ,
First Usable Host ,
Last Usable Host ,
Total Addresses ,
Usable Host Addresses ,
CIDR Notation ,
IP Class ,
Private Range ,
Binary Subnet Mask
CIDR Quick Reference
CIDR Subnet Mask Wildcard Total IPs Usable Hosts Common Use

💡 Click any row to calculate that CIDR using your entered IP address. Rows with * have special host rules.

About This Tool

The Subnet Calculator is a fundamental tool for network engineers, sysadmins and anyone studying for networking certifications. Enter an IPv4 address and a CIDR prefix length and the tool instantly calculates the network address, broadcast address, subnet mask, wildcard mask, first and last usable host addresses, and the total number of usable hosts in that subnet.

The visual host range bar gives an at-a-glance view of the subnet structure, showing the network address, usable host range and broadcast address in proportion. The binary subnet mask display shows exactly which bits are network bits (1s) and which are host bits (0s), which is essential for understanding how subnetting works rather than just getting the numbers.

The CIDR Quick Reference table at the bottom covers the most commonly used prefix lengths from /8 to /32 with their subnet masks, wildcard masks, total addresses and typical use cases. Click any row to calculate that prefix using your entered IP address. This is useful for quickly checking what a /27 or /29 gives you without having to do the binary arithmetic manually.