Networking
Smallest IPv4 Covering Prefix Calculator
Find one CIDR block containing every IPv4 address in a supplied list.
How the calculation works
Smallest single covering prefix = ipv4_covering(addresses) . Addresses included by the covering block = ipv4_cover_size(addresses) addresses.
Worked example
Example inputs — IPv4 addresses, separated by commas or whitespace: 192.168.1.1, 192.168.2.4. Expected results — Smallest single covering prefix: 192.168.0.0/22; Addresses included by the covering block: 1024 addresses.
Assumptions and limits
Offline planning arithmetic: this calculator sends no packets and changes no device configuration. Actual routing, reservations, implementation limits and measured network conditions must be checked separately. Produces one supernet, so it can include addresses not in the input list. This differs from lossless CIDR decomposition of a continuous start/end range.
Reference and further reading
Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.
Related calculators
- IPv4 Subnet, Host Range & Mask Calculator
- IPv4 Range to Exact CIDR Blocks Calculator
- IPv4 VLSM Host Requirement Planner
- IPv6 Prefix & Exact Address Capacity Calculator
- Modified EUI-64 IPv6 Interface ID Calculator
Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.