IP Subnet Calculator

Quick start: Enter an IP/CIDR and select Calculate to instantly see network details.

What you’ll get (IPv4): network, subnet mask, broadcast, usable range, and total/usable hosts.
IPv6: network, first/last address, and total addresses (no broadcast in IPv6).

Tips:

Try examples: 192.168.1.10/24 · 10.0.0.5/8 · 2001:db8::/64

Understanding IP Subnets — A Practical Guide

Subnets are the way we split a larger IP space into smaller, manageable networks. Instead of treating every address as part of one flat pool, we carve out segments for teams, VLANs, sites, or services. That segmentation improves performance, reduces broadcast noise on IPv4, and—most importantly—gives you clean boundaries for routing and access control. A good subnet plan keeps growth simple and avoids accidental overlap that can break connectivity in surprising ways. If you just need to see your current IP, visit What is my IP address.

CIDR and Prefix Lengths

Classless Inter-Domain Routing (CIDR) expresses network size with a slash prefix. In 192.168.1.0/24, “/24” means the first 24 bits identify the network, leaving 8 bits for hosts. More prefix bits mean a smaller subnet; fewer bits mean a larger one. Netmasks like 255.255.255.0 are the older notation for the same thing. Many engineers prefer CIDR because it’s unambiguous and works the same for IPv4 and IPv6.

IPv6: Plenty of Space, Different Rules

IPv6 eliminates broadcast entirely and encourages larger, uniform subnets—/64 is the norm for LANs because Stateless Address Autoconfiguration (SLAAC) expects it. That feels huge if you’re used to IPv4, but the scale makes neighbor discovery efficient and design decisions simpler. Point-to-point links often use /127. Because there’s no broadcast, concepts like “first/last usable” don’t apply. Any address within the prefix can be assigned, subject to your policy. Not sure your network or ISP supports it? Run a quick IPv6 test first.

IPv4: Broadcasts, Usable Hosts, and Edge Cases

In most IPv4 subnets, the first address is the network ID and the last is the broadcast address, so they’re not assigned to hosts. A /24 offers 256 addresses total, typically 254 usable. On point-to-point links, /31 gives you two usable addresses; /32 represents a single host route. When planning, remember NAT does not replace routing—NAT hides addresses, while subnets determine reachability. Use separate subnets to isolate environments like “user Wi-Fi,” “servers,” and “management.”

VLSM, Summarization, and Growth

Variable Length Subnet Masking (VLSM) lets you allocate different sizes per need—/26 for a small device pool, /23 for a busy floor, and so on. If you reserve blocks with summarization in mind (e.g., two adjacent /24s that roll up to a /23), you’ll thank yourself later when routing tables stay tidy. Always leave headroom; renumbering is harder than being generous up front.

Common Pitfalls

Overlapping subnets are the number one source of bizarre routing behavior. Document allocations and stick to a plan. Mixing DHCP scopes with mismatched prefixes, or forgetting to update ACLs when you split a subnet, can cause intermittent failures that look like “random” drops. For IPv6, handing out anything other than /64 to end hosts can break autoconfiguration unless you use DHCPv6 with care. When troubleshooting naming or reachability, a quick DNS lookup helps confirm you’re targeting the right host.

When a Calculator Helps

Subnet math is straightforward but easy to get wrong under pressure. A calculator removes guesswork: it turns 192.168.10.37/26 into concrete network, broadcast, and usable ranges instantly, or shows the full span of an IPv6 /48 so you can plan per-site /64s. Use it to validate allocations before you push changes, and keep a clean record of what you actually deployed.

Subnet Calculator (FAQ)

A subnet is a portion of an IP network defined by a prefix (CIDR). It groups addresses so routing and policy can treat them as a single unit.

They describe the same thing. CIDR (e.g., /24) is concise and works for IPv4 and IPv6; netmasks (e.g., 255.255.255.0) are IPv4-only.

Typically total - 2 (network and broadcast). /24 has 254 usable. Edge cases: /31 has two usable (point-to-point), /32 is a single host.

No broadcast in IPv6. Any address within the prefix can be assigned (policy permitting), so “usable host count” isn’t meaningful the same way.

SLAAC and neighbor discovery are designed for /64. Other sizes can work with DHCPv6, but /64 is the safest default for end-host subnets.

VLSM (Variable Length Subnet Masking) lets you allocate different subnet sizes per need. Use it to reduce waste and keep routing summarized.

They can, but they shouldn’t. Overlap causes routing ambiguity and intermittent failures. Keep an authoritative IP plan to avoid it.

No. NAT hides addresses; subnetting defines reachability and policy boundaries. You often need both, but they solve different problems.

IPv4 point-to-point: use /31 where supported; otherwise /30. IPv6 point-to-point commonly uses /127. Keep LANs at /24 (v4) and /64 (v6) by default.

We don’t send your input to third-party services. If processing happens on our server, we only use it to return your result and don’t keep it.