Subnet/CIDR Calculator

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

Enter a valid IPv4 address (e.g. 192.168.1.0).
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
How to Use

About the Subnet/CIDR Calculator

What it calculates

This subnet/cidr calculator helps with subnetting, bandwidth, DNS TTL, and other IT networking calculations. Calculate network address, broadcast, host range, wildcard mask from IP and subnet.

When to use it

Use for network planning, certification prep, and sysadmin troubleshooting.

Example

Adjust the inputs above to model your specific scenario with the Subnet/CIDR Calculator.

Explore More

Related Calculators