Subnet/CIDR Calculator

Enter an IP address and subnet mask to instantly view network address, broadcast, host range, wildcard mask, and total usable hosts.

Coursera AI Professional CertificateAd
Enter a valid IPv4 address (e.g. 192.168.1.0).
Coursera Holi Offer
Ad

Coursera Holi Offer

Build your AI fluency and get more done, faster. Get the AI skills employers are looking for and create 20+ solutions you can use at work, right away.

Start Learning
Subnet Details
/24
CIDR
254
Usable Hosts
256
Total Addresses

Calculated Results

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Binary Mask11111111.11111111.11111111.00000000
Documentation

How It Works

Enter an IPv4 address and select a CIDR prefix length. The calculator performs bitwise AND between the IP and subnet mask to find the Network Address, and OR with the wildcard mask to find the Broadcast Address.

Usable host addresses are all IPs between the network and broadcast addresses, exclusive (except for /31 point-to-point and /32 host routes).

Key Formulas

Network: IP AND Subnet Mask
Broadcast: Network OR Wildcard Mask
Wildcard: NOT Subnet Mask (bitwise inverse)
Usable Hosts: 2^(32 - CIDR) - 2

Last Updated: February 2026

Note: This calculator supports IPv4 only.

Frequently Asked Questions
Coursera AI Professional CertificateSponsored