This route summarization calculator takes a list of IPv4 prefixes and finds the single best summary route. It shows the shared bits in binary, counts how many addresses the summary would claim that are not in your list, offers a lossless alternative, and prints OSPF, EIGRP and BGP commands you can adapt.
Result
The result updates automatically as you change any input.
Formula and worked steps
Formulas used
- Lowest address = smallest network address; highest = largest broadcast address
- Summary prefix length = number of leading bits shared by the lowest and highest addresses
- Wasted addresses = summary size - addresses covered by the entered prefixes (overlaps merged)
- Lossless alternative = fewest CIDR blocks that cover exactly the same addresses
- IPv4 only. The commands use Cisco IOS syntax as examples; other platforms use similar statements with different keywords.
- The best single summary is the smallest one prefix that contains every entered prefix; it may include addresses that are not yours.
- Overlapping or duplicate prefixes are merged before waste is counted.
What is route summarization?
Route summarization, also called aggregation or supernetting, replaces many specific prefixes with one shorter prefix that covers them. Routers upstream then keep one entry instead of many, which shrinks routing tables, reduces update traffic and hides instability: if one /24 inside the summary flaps, routers outside the summary never see it.
The common-prefix rule
Take the lowest and the highest address in your list and compare them bit by bit. The bits they share, counted from the left, are the summary prefix. Everything between the lowest and highest address then shares those bits, so one prefix of that length contains the whole range. It is exact only if the range has no gaps.
Over-summarisation
Summaries claim every address inside them. If your list covers only part of the summary, the rest belongs to someone else or to nobody. Traffic for those addresses is pulled toward you and dropped, or loops if a default route points back. The calculator reports that waste as an address count and a percentage, which turns a vague unease into a number you can judge.
How the route summarization calculator works
Formulas
The tool converts each prefix to its network and broadcast address, finds the minimum and maximum, then counts the leading bits that agree. The summary size is 2^(32 − prefix). Wasted space is the summary size minus the number of distinct addresses in your prefixes after overlaps are merged.
Worked example: four contiguous /24 networks
10.1.0.0/24, 10.1.1.0/24, 10.1.2.0/24 and 10.1.3.0/24 differ only in the last two bits of the third octet, so the first 22 bits are shared. The summary is 10.1.0.0/22 (1,024 addresses), the four prefixes cover 1,024 addresses, and nothing is wasted. This is the ideal case and the reason to allocate contiguous, aligned blocks to a site.
Worked example: a gap in the middle
192.168.1.0/24, 192.168.3.0/24 and 192.168.4.0/24 look close, but the third octet values 1 (00000001) and 4 (00000100) differ at the sixth bit. The best single summary is 192.168.0.0/21, which holds 2,048 addresses for only 768 that exist, so 1,280 addresses, 62.5%, are wasted. The lossless alternative is the three original prefixes, because .1, .3 and .4 are not aligned to combine into larger blocks. Use the lossless set when the waste is not acceptable.
Commands
On Cisco IOS an OSPF area border router summarises inter-area routes with area range, and an ASBR summarises external routes with summary-address. EIGRP summarises per interface with ip summary-address eigrp. BGP uses aggregate-address, and summary-only suppresses the more specific routes. These commands normally add a discard route to Null0 for the summary, which prevents loops for addresses inside the summary that have no specific route. Check your platform’s documentation before you use them.
Where to summarise
Summarise at natural boundaries: OSPF area borders, the edge between a campus and the WAN, or the point where a region meets the backbone. Inside an area OSPF needs full topology information, so summarising there is not possible. At an area border the ABR can advertise one range for the whole area, which cuts the size of every other area’s database. The same idea applies to EIGRP at distribution layers and to BGP aggregates at the edge of your autonomous system.
Summaries and failures
A summary stays up as long as at least one component route exists behind it. That hides flaps, which is the benefit, but it also hides failures: if one site behind the summary fails, upstream routers keep sending its traffic to the summarising router, which then drops it or sends it to a default route. If a site needs fast failover, advertise its specific prefix as well. Longest-prefix match makes the specific route win while it exists and the summary take over when it does not.
Aggregation on the internet
The same principle limits global routing table growth. Providers aggregate customer blocks into larger prefixes, and filters usually reject anything longer than a /24 for IPv4. That is why a block you plan to announce publicly should be at least a /24, and why the aligned boundaries in the calculator matter beyond your own network.
Testing a summary before you apply it
Before changing a router, enter the prefixes that really exist behind it, including loopbacks and point-to-point links that are easy to forget. If the wasted-address figure is not zero, list the extra addresses and confirm nobody else owns them. Then check the routing table after the change: the summary should appear, the specific routes should disappear from neighbours, and the discard route should be present.
Why it matters for network engineers
Summarisation is the link between addressing and routing performance. A plan that aligns each site, building or region on a power-of-two boundary can be announced as one prefix. A plan that scatters blocks cannot, and every route is carried everywhere. You can see how this affects table size and hardware limits with the FIB size calculator, and how summaries change BGP behaviour with the BGP convergence time calculator.
Best practices and common mistakes
Design for summarisation before you allocate: give each site one aligned block from the VLSM calculator and keep the reserve inside the site block rather than elsewhere. Summarise at area or AS borders, not everywhere. Do not summarise across a boundary where a specific route may need to take a different path, for example a multi-homed site, unless you also advertise the specifics.
Always keep the discard route that the summary command creates, and never summarise a prefix you do not own. Check subnet boundaries with the IPv4 subnet calculator when a result looks wrong, because a mask typed one bit off is a frequent cause of wasted space. Finally, re-run the calculation whenever a prefix is added to the list: a summary that was lossless last quarter may not be now.
FAQs
How do you summarise IP routes?
Find the lowest and highest address in the list, then count the leading bits they share. That number is the summary prefix length, and the summary starts at the lowest address with the host bits cleared.
What is over-summarisation?
It is advertising a summary that covers addresses you do not own or route. The router then attracts traffic for those addresses and drops it, so check the wasted-address count before you apply a summary.
Can any set of prefixes be summarised exactly?
No. Prefixes must be contiguous and aligned to combine without waste. Otherwise a single summary includes extra addresses, and the lossless option needs several prefixes.
Does summarisation reduce routing table size?
Yes. Routers outside the summary carry one entry instead of many, and they are not affected by flaps of the more specific routes inside it.
Next, try the VLSM calculator, the IPv4 subnet calculator and bgp-convergence-time-calculator, or browse all IP & Addressing calculators and the full list of network calculators.