IP Subnet Calculator
Calculate IPv4 network, broadcast, host range, and address capacity from CIDR notation.
IP Subnet Inputs
Results computed instantly — your data never leaves your device.
Subnet Results
Real-TimeNetwork
192.168.1.0
Broadcast
192.168.1.255
Usable host range
192.168.1.1 – 192.168.1.254
Address / usable host count
256 / 254
How to Use the IP Subnet Calculator
- 1
Enter a valid IPv4 address.
- 2
Enter a CIDR prefix from 0 through 32.
- 3
Review network, broadcast, and host range values.
- 4
Confirm the address plan with your network documentation before changing production configuration.
Formula & Mathematical Basis
Variable Key
address32-bit IPv4 address
prefixNumber of network bits in CIDR notation
📝 For /0 through /30, usable hosts are total addresses minus network and broadcast addresses; /31 and /32 are reported using their full address counts.
Step-by-Step Examples
Private /24 network
Scenario: Analyze 192.168.1.42/24.
- 1.Apply the 255.255.255.0 mask.
- 2.Set host bits to zero for the network.
- 3.Set host bits to one for broadcast.
- 4.Count 256 addresses and 254 conventional usable hosts.
Practical Use Cases
- Document a small IPv4 address block.
- Check host capacity before allocating devices.
Common Pitfalls
- Confusing prefix length with host-bit count.
- Using IPv4 rules for IPv6.
- Assuming every /31 or /32 has two conventional hosts.
Frequently Asked Questions
Does this support IPv6?
No; this route validates dotted-decimal IPv4 only.
Does it configure a router?
No; it only calculates address boundaries client-side.
Math & Everyday Utility Calculators
Solve common math, conversion, time, construction, science, and practical planning problems in the browser.