IPv4/IPv6 Subnet Calculator
Calculate network address, broadcast address, and usable IP ranges.
Results
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Usable Host Range
192.168.1.1 - 192.168.1.254
Total Usable Hosts
254
Subnet Mask
255.255.255.0
Binary Subnet Mask
11111111.11111111.11111111.00000000
Interactive Bit-Level Visualizer
Click any bit to flip it and instantly update the IP address. Network bits are indigo, host bits are pink.
About this tool
The Subnet Calculator is an essential tool for network engineers, sysadmins, and IT students. It takes any IPv4 or IPv6 address and a CIDR prefix (like /24 or /64) and instantly calculates the exact boundaries of that network segment.
Whether you are setting up a home lab, configuring AWS VPCs, or studying for the CCNA, this tool provides the exact network address, broadcast address, and usable IP range you need without having to do binary bit-shifting in your head.
How it works
The calculator converts your IP address into its raw binary representation. It then applies a bitwise AND operation using the subnet mask to find the Network Address, and a bitwise OR operation to find the Broadcast Address. The addresses between these two boundaries are your usable hosts.
IPv6 Support
IPv6 subnetting works on the exact same mathematical principles as IPv4, but uses 128-bit addresses instead of 32-bit. Because the numbers are astronomically large, this calculator uses native BigInt math to compute IPv6 network boundaries and host counts up to /128.
Frequently asked questions
What is a Subnet Mask or CIDR?
How many usable IP addresses are in a /24 subnet?
What is the difference between IPv4 and IPv6?
What is a broadcast address?
Related tools
RAID Calculator
Calculate usable capacity and fault tolerance for RAID 0, 1, 5, 6, and 10.
Use tool ➜Data Transfer Calculator
Estimate transfer times for files over USB, WiFi, Ethernet, and more.
Use tool ➜Display Bandwidth Calculator
Check if your HDMI/DP cable supports your resolution and refresh rate.
Use tool ➜JSON Formatter
Validate, format, and minify JSON data with syntax highlighting.
Use tool ➜