IPv4 Subnet Calculator (CIDR)
Network, broadcast, mask, wildcard and usable host range from an IP with /prefix or mask.
Also called: CIDR calculator, subnet mask calculator, IP subnet calculator, CIDR IP calculator.
IPv4 Subnet Calculator (CIDR)
Network, broadcast, mask, wildcard and usable host range from an IP with /prefix or mask.
Watch: how to use the IPv4 Subnet Calculator (CIDR) (11 seconds)
Recorded on a phone, steps written on screen, no sound. Open the video page.
About the IPv4 Subnet Calculator (CIDR)
Enter an IPv4 address with a prefix, such as 192.168.1.10/24, or with a subnet mask, and get the network address, broadcast address, subnet mask, wildcard mask, first and last usable host and the number of usable hosts.
A /24 network has 256 addresses and 254 usable hosts; every bit removed from the prefix doubles the size. On a /31 point-to-point link both addresses count as usable, as RFC 3021 allows.
It is useful for planning home and office networks, firewall rules and cloud VPC ranges, and for networking exams such as CCNA.
CIDR subnet examples and host ranges
Enter an IPv4 address with a prefix, such as 192.168.1.10/24, or provide a dotted-decimal subnet mask. A /24 network has mask 255.255.255.0, 256 total addresses and typically 254 usable host addresses. The calculator returns the network, broadcast, wildcard mask and first/last host addresses.
Prefix length controls the size of the network: a larger prefix leaves fewer host bits and therefore fewer addresses. This calculator is for IPv4, not IPv6. It treats /31 point-to-point networks and /32 single-address routes specially, so their reported host counts differ from the common subnet formula.
Use the result to check network plans, firewall rules and router configurations. Confirm the prefix and address allocation with your network design before applying production changes.
How to use the IPv4 Subnet Calculator (CIDR)
- Enter your textType IP / prefix. An example is already filled in, so you can press Run tool first to see how it works.
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Example
A sample input and the result the IPv4 Subnet Calculator (CIDR) gives for it (produced by the tool itself, not typed by hand).
- IP / prefix
- 192.168.10.37/26
Result:
Address : 192.168.10.37/26 Subnet mask: 255.255.255.192 Wildcard : 0.0.0.63 Network : 192.168.10.0 Broadcast : 192.168.10.63 First host: 192.168.10.1 Last host : 192.168.10.62 Usable hosts: 62 Total addresses: 64
Good to know
- What you need
- You type or choose: IP / prefix
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Read the guide
Questions
How many hosts are in a /24?
254 usable hosts out of 256 addresses.
What is the wildcard mask?
The inverse of the subnet mask (255.255.255.0 → 0.0.0.255); it is used in Cisco ACLs and OSPF.
Does it support IPv6?
No, this calculator is for IPv4 only.