- Enter an IPv4 address (e.g. 192.168.1.100).
- Enter the prefix length (e.g. 24) or subnet mask (e.g. 255.255.255.0).
- View the calculated network address, broadcast, first and last host, and total hosts.
Subnet Calculator
Calculate subnet details from an IPv4 address and prefix length or subnet mask.
How to Use This Tool
Learn More About Subnet Calculator
Understanding Subnets
A subnet divides a larger network into smaller segments. The subnet mask (or prefix length) defines how many bits belong to the network and how many to the host. The network address is the first address in the range; the broadcast address is the last. Usable host addresses are between the first host and the last host (inclusive).
Related Tools
- CIDR to IP Range converts CIDR notation to first and last IP.
- IP Validator checks if an address is valid IPv4 or IPv6.
About Subnet Calculator
- Platform
- Web-based
- Cost
- Free
- IPv4 only
- Yes
Examples
Class C subnet
IP: 192.168.1.0, Prefix: 24
Network: 192.168.1.0, Broadcast: 192.168.1.255, Usable hosts: 254
Small subnet
IP: 10.0.0.1, Prefix: 28
Network: 10.0.0.0, First host: 10.0.0.1, Last host: 10.0.0.14, Broadcast: 10.0.0.15, Usable: 14
Features
Prefix or Mask
Full Subnet Info
Instant Results
Use Cases
- Plan subnets and allocate IP ranges.
- Configure firewalls and ACLs with correct ranges.
- Verify network and broadcast addresses for an IP and mask.
- Learn how subnetting works with real examples.