IPv4 CIDR & subnet calculator
Calculate the network, broadcast, masks, host range and address counts locally in your browser.
| Network | — |
|---|---|
| Broadcast | — |
| Netmask | — |
| Wildcard | — |
| First usable | — |
| Last usable | — |
| Total addresses | — |
| Usable hosts | — |
| Address scope | — |
What CIDR means
The number after the slash is the network prefix length. A /24 leaves 8 host bits, giving 256 total addresses. Traditional IPv4 subnets from /0 through /30 reserve the network and broadcast addresses; /31 and /32 are special cases where this calculator reports all addresses as usable endpoints. The tool accepts IPv4 prefixes from /0 to /32; it does not calculate IPv6 networks.
Worked examples: /24, /26, /31 and /32
For 192.168.1.10/24, the network is 192.168.1.0 and the broadcast address is 192.168.1.255. There are 256 addresses; the conventional host range is 192.168.1.1–192.168.1.254, or 254 hosts.
For 192.168.1.70/26, the first 26 bits identify the network: 192.168.1.64 through 192.168.1.127. That block contains 64 addresses, with the conventional usable range 192.168.1.65–192.168.1.126, or 62 hosts. A /26 is one quarter of a /24 address block.
| Example input | Network | Broadcast | Total addresses | Endpoint count reported |
|---|---|---|---|---|
192.168.1.10/24 | 192.168.1.0 | 192.168.1.255 | 256 | 254 |
192.168.1.70/26 | 192.168.1.64 | 192.168.1.127 | 64 | 62 |
192.168.1.4/31 | 192.168.1.4 | 192.168.1.5 | 2 | 2 |
192.168.1.5/32 | 192.168.1.5 | 192.168.1.5 | 1 | 1 |
Important distinction: a /31 is commonly used for a point-to-point link, where both addresses can be endpoints under RFC 3021. A /32 describes one individual IPv4 address. The calculator reports mathematical endpoint counts for these special prefixes; check your router or cloud provider's requirements before applying a live network change.
Privacy for network inputs
This is a mathematical subnet calculator, not an IP-location lookup. The entered address stays in your browser and no network request is needed.
More network calculation tools
DNS Lookup · SSL Certificate Checker · Website Reachability Checker
CIDR results describe address ranges, not network reachability
A CIDR calculation can identify the network range, mask and address boundaries for the entered prefix. It does not prove that a host exists, accepts traffic or is reachable through firewalls, routing rules, NAT or provider filtering.
Use the result when planning or checking IPv4 ranges, then verify the actual network configuration separately. Avoid assuming that every numerically valid address in a range is assignable in every environment.
Read a CIDR result in network context
The prefix length determines how many IPv4 bits belong to the network portion and how many remain for hosts. A /24 leaves eight host bits, while a /16 leaves sixteen. The calculated network and broadcast boundaries are mathematical properties of that block.
Cloud platforms, routers, VPNs and firewalls can impose additional rules. Some environments reserve addresses for infrastructure, and security policies can make an otherwise valid address unusable for a particular service.
Cross-check before a live network change
Verify the prefix, compare the calculated range with the current configuration, and confirm provider-specific reservations. CIDR arithmetic can identify a range; it cannot prove a host exists or accepts traffic.
Use the subnet result for planning, not reachability
CIDR combines an IPv4 address with a prefix length that identifies the network bits. Shorter prefixes cover larger ranges; longer prefixes cover fewer addresses. The calculator returns network, mask, broadcast and host-range values for planning.
Review the prefix and usable-host count
- Enter the IPv4 address and prefix length supplied by the network plan.
- Check that the prefix is between 0 and 32 and that the address is valid IPv4 syntax.
- Compare the calculated network and broadcast addresses against the intended allocation.
- Check special cases such as /31 point-to-point links and /32 single-host routes before applying a generic host-count assumption.
For example, a /24 network contains 256 total IPv4 addresses, but the conventional number available to ordinary hosts is often lower because network and broadcast addresses have special meanings. The treatment of small prefixes depends on the networking context and configuration. Do not copy a host count without checking the purpose of the subnet and the network equipment's rules.
Security and verification limits
This calculator performs address arithmetic; it does not scan a network, test host responses or grant access. A valid range can conflict with an existing plan, so verify allocations and routing with the network administrator before changing production systems.
CIDR questions
Does a calculated broadcast address prove that a host is online?
No. CIDR arithmetic describes an address range. Connectivity requires separate routing, firewall and service checks.
IPv4 CIDR & subnet calculator: clear guide for real use
The IPv4 CIDR & Subnet Calculator works out address-range information from an IPv4 address and prefix length. It is useful for planning networks, checking subnet boundaries and understanding which addresses fall inside a CIDR block.
How to use IPv4 CIDR & subnet calculator
- Enter the exact hostname, domain, address or URL expected by IPv4 CIDR & subnet calculator; a typo can make a healthy service look broken.
- Run IPv4 CIDR & subnet calculator and record the returned value together with the time of the check so later changes can be compared properly.
- Confirm any important finding from IPv4 CIDR & subnet calculator with the authoritative DNS, hosting, certificate or network source before changing production configuration.
Practical example
For a /24 network, the calculator can show the network range that shares the first 24 address bits. Use the result to verify whether two IPv4 addresses belong to the same numerical subnet before configuring a device or firewall rule.
Limits, privacy and checks
A valid CIDR range does not prove that every address is usable, assigned or reachable. Routing, reserved addresses, NAT, cloud-provider rules and firewall policy can change real connectivity, so verify the actual network configuration separately.
