IP Address & Subnet Calculator
Calculate network address, broadcast, host range, and usable hosts from an IP and CIDR.
Format: x.x.x.x/prefix (e.g. 10.0.0.1/8)
IP Address
192.168.1.50
Subnet Mask
255.255.255.0
Network Address
192.168.1.0
Broadcast
192.168.1.255
First Host
192.168.1.1
Last Host
192.168.1.254
Usable Hosts
254
CIDR Prefix
/24
IP Type
Private (Class C)
Binary representation (32-bit)
Related Tools
0 comments
How it works
Enter an IPv4 address and a CIDR prefix length (e.g. 192.168.1.50/24). The tool computes the subnet mask, network address (bitwise AND of IP and mask), broadcast address (network OR inverse mask), first usable host, last usable host, and total usable host count. It also shows whether the IP is private, public, or a special-purpose address. Everything runs locally in your browser.
Network = IP & Mask Broadcast = Network | ~Mask
Common use cases
- Planning IP address ranges for a new server or home network.
- Checking whether two IP addresses are on the same subnet.
- Learning subnetting concepts by exploring different prefix lengths.
Frequently asked questions
Does this support IPv6?
No — this tool covers IPv4 only. IPv6 subnetting follows the same bitwise principles but with 128-bit addresses, which is a separate tool.
What is a CIDR prefix?
CIDR (Classless Inter-Domain Routing) notation appends /N to an IP address, where N is the number of bits in the network portion. /24 = 255.255.255.0 mask, giving 254 usable hosts per subnet.