Subnet Overview
{{ summary.network }} / {{ summary.prefix }}
{{ summary.netmask }} Netmask {{ summary.wildcard }} Wildcard {{ summary.usableHosts }} Usable Hosts
# Subnet Address Range of Addresses Hosts Split / Join
  • Network{{ summary.network }} / {{ summary.prefix }}
  • Netmask{{ summary.netmask }}
  • Wildcard{{ summary.wildcard }}
  • Broadcast{{ summary.broadcast }}
  • First host{{ summary.firstHost }}
  • Last host{{ summary.lastHost }}
  • Usable hosts{{ summary.usableHosts }}

            
{{ subnetsCSV }}

Introduction:

IPv4 subnetting divides the 32-bit address space into logical segments so different networks can coexist and be routed efficiently. Each segment shares a common prefix, represented by a slash length or equivalent subnet mask, that distinguishes the network portion from the host portion of every address. An accurately chosen prefix balances address conservation with routing clarity across private and public topologies.

The calculator accepts any IPv4 address and prefix length, converts them to binary integers, and applies bitmask arithmetic to derive the network, broadcast, range of usable hosts, and wildcard mask. A reactive engine then renders an interactive bar that lets you split or join subnets visually, updating summaries, JSON, and CSV exports in real time.

Use it when planning a new office network: enter 10.0.0.0/24, split into four equal /26 segments for separate departments, and copy the results directly into router configuration. This avoids manual math errors and accelerates rollout. Always confirm generated ranges against device limits and reserved addresses before deploying to production during change windows.

Technical Details:

An IPv4 address is a 32-bit value often shown in dotted-decimal notation. Subnetting treats the leftmost p bits as the network identifier and the remaining (32 − p) bits as the host field. A one-bit mask of length p yields the subnet mask, while its complement forms the wildcard mask. Combining the address with these masks produces deterministic network, broadcast, and host ranges essential for routing decisions and access-control lists.

Core Equations:

mask=232 232p
network=ipmask
wildcard=¬mask
broadcast=networkwildcard
usable hosts= 232p 2
PrefixUsable HostsCommon Use
/816,777,214Large public provider block
/1665,534Campus or ISP region
/24254Standard LAN segment
/302Router link—legacy
/312Modern point-to-point
/321Host-specific route

Prefixes shorter than /24 favour many hosts but fewer networks; longer prefixes reverse that trade-off. The calculator highlights the usable-host figure so you can gauge address efficiency instantly.

Parameters:

ParameterMeaningUnit/Datatype
IP addressBase network identifierdotted-decimal
Prefix lengthBits forming the network partinteger 0–32
NetmaskBinary mask of prefix bitsdotted-decimal
WildcardInverse of netmaskdotted-decimal
BroadcastHighest address in subnetdotted-decimal

Assumptions & Limitations:

  • Assumes classless routing; class-based rules are ignored.
  • Does not calculate variable-length subnet masks automatically. Manual planning required
  • Treats prefix ≥ 31 as point-to-point with special host rules.
  • Ignores reserved carrier-grade NAT and experimental blocks.

Edge Cases & Error Sources:

  • Leading zeros in IP octets can be misread as octal.
  • Splitting unevenly sized subnets can exhaust address space.
  • Joining misaligned subnets yields non-contiguous ranges.
  • Copy-pasted IPs with trailing spaces invalidate parsing.

Concepts are defined in RFC 791 (Internet Protocol) and refined by CIDR introductions (RFC 4632). Academic analyses of address efficiency corroborate the host calculations.

This calculation runs entirely in-browser, processing non-sensitive data and requiring no external transmission.

Step-by-Step Guide:

Follow these actions to generate and export a subnet plan efficiently.

  1. Enter an IPv4 address in dotted-decimal format.
  2. Select a prefix length from the list.
  3. Review the summary panel for network, mask, and host counts.
  4. Click bars to split or hold Shift to join adjacent subnets.
  5. Switch to JSON or CSV, then copy or download the output for documentation.

FAQ:

What is CIDR?

Classless Inter-Domain Routing represents the network portion length after a slash, replacing legacy classful boundaries for finer address control.

Why show a wildcard mask?

Wildcard masks are used in many router ACLs; they match host bits inversely to subnet masks, simplifying rule notation.

Is my data stored?

No. All calculations occur locally in your browser; nothing leaves your device or persists between sessions.

How does split/join work?

Splitting halves a subnet by incrementing its prefix length. Joining merges two contiguous, equally sized subnets back into their parent block.

Can I use IPv6?

This version focuses on IPv4. For IPv6, you need a calculator that supports 128-bit address logic and different host-allocation rules.

Glossary:

IPv4 Address
32-bit identifier for a host or network interface.
Subnet Mask
Binary mask indicating the network portion.
Wildcard Mask
Inverse of subnet mask, used in ACLs.
Broadcast Address
Highest address; reaches every host in subnet.
Usable Hosts
Addresses available for assignment, excluding network and broadcast.

No data is transmitted or stored server-side.

Embed this tool into your website using the following code: