Prefix Aggregation Calculator

July 28, 2026

CIDR route summarization planner

Prefix Aggregation Calculator

Estimate how contiguous IPv4 or IPv6 prefixes collapse into CIDR summaries, then compare target aggregate size, exception routes, route limits, utilization, growth buffer, and wasted address space.

⚙Aggregation presets
📊CIDR aggregation inputs
The length of each original equal-size routed block, such as /24 or /48.
Count of adjacent prefixes in address order with no gaps inside the run.
IPv4 reports exact addresses; IPv6 also shows useful /64 equivalents.
The aggregate length you want to advertise, such as /22 for four /24s.
Operational cap from TCAM, BGP policy, route filter, or appliance limit.
More-specific routes kept for traffic engineering, NAT, firewalls, or migration.
Current address use inside the original contiguous prefix set.
Extra planned consumption before treating remaining space as waste.

How the CIDR model works

The calculator first builds the exact minimal CIDR cover for a contiguous run by repeatedly taking the largest power-of-two block. It then compares that exact cover with the requested target summary prefix.

2^nblock sizes
ceiltarget cover
+routesexceptions
headroomgrowth model
Summarized prefix count
0
target summaries plus exceptions
Target summary route count.
Address capacity
0
addresses covered
Total space inside advertised summaries.
Route reduction
0%
versus original routes
Exceptions reduce the savings.
Wasted address space
0%
after utilization and growth
Unused capacity in the summary cover.

Aggregation breakdown

Ready.
🛠Spec grid
4
Original routes
Equal-size prefixes before aggregation.
1
Exact CIDR cover
Minimal aligned blocks with no extra space.
/22
Target summary
Requested aggregate advertisement size.
4
Start blocks per target
How many original prefixes fit each target.
0
Planned used space
Utilization plus growth buffer.
OK
Route max status
Final routes compared with the cap.
N/A
IPv6 /64 units
Useful for IPv6 site and subnet planning.
aligned
CIDR shape
Power-of-two fit of the prefix count.
🗂Prefix aggregation reference tables
Original blocksStart prefixSingle summaryCapacity effect
2 contiguous blocks/24 or /48/23 or /47No wasted space when aligned on the parent boundary.
4 contiguous blocks/24 or /48/22 or /46Classic one-step route reduction for powers of two.
8 contiguous blocks/24 or /48/21 or /45Useful for branches, sites, POPs, and routed VLAN groups.
16 contiguous blocks/24 or /64/20 or /60Often used for Kubernetes pools and IPv6 subnet bundles.
ScenarioStarting routesAggregate stylePlanning note
Four /24 to /224 IPv4 routesOne /22Clean if the first /24 is aligned to a /22 boundary.
Eight /48 IPv6 Sites8 IPv6 routesOne /45Summarizes site assignments while leaving huge subnet capacity.
Branch /27 Blocks12 IPv4 routesTarget /23May intentionally cover unused adjacent /27 space.
Anycast POP Prefixes24 routesSeveral /21sExceptions can preserve traffic engineering per POP.
Address familyBit widthCommon startUseful capacity view
IPv432 bits/24 customer or VLANExact address count, such as 256 addresses per /24.
IPv432 bits/27 service blockThirty-two addresses per block before host reservations.
IPv6128 bits/48 site assignmentCount addresses and /64 LAN units separately.
IPv6128 bits/56 small siteShows how many /64s fit the planned summary.
Exception typeWhy it existsRoute impactWhen to remove
Migration more-specificMove one VLAN, VPC, or tenant firstAdds one route per exceptionAfter all traffic uses the aggregate cleanly.
Traffic engineeringPrefer a different uplink or regionPreserves extra control at route scale costWhen policy can move to communities or metrics.
Firewall separationKeep DMZ, NAT, or provider edge explicitConsumes route max headroomWhen policy is enforced below the routing layer.
Temporary leakAdvertise one child during cutoverMay defeat some aggregation savingsAfter monitoring confirms parent reachability.
💡Aggregation tips
Check alignment before advertising. A count of four /24s can summarize to one /22 only when the first /24 starts on the matching /22 boundary. This calculator assumes the contiguous run starts aligned for the target plan.
Keep exceptions visible. Deaggregation exceptions are useful for migrations, firewalls, and traffic engineering, but they consume route table space and reduce the actual savings from aggregation.
Separate route waste from address waste. A target summary can reduce routes while covering unused address space. The waste card uses utilization and growth buffer to show the remaining unused capacity.
Use IPv6 /64 units for sanity checks. Raw IPv6 address counts get huge quickly. The spec grid converts covered IPv6 capacity into /64 subnet units when the summary is shorter than /64.

Prefix aggregation is a jigsaw puzzle for network engineers: How neatly can we arrange the jagged pieces? Can we fit them all into nice even rows without any gaps? For the most part, how well those blocks align determines whether routing will be smooth or a meltdown occurs. You might have four sequential /24 subnets before you with your eyes closed, but unless they rest on natural power-of-two border they won’t collapse into a combined /22 summary.

This inefficiency decreases the effectiveness of BGP. It transforms what should of a basic route-reduction task into an ugly mess of gotchas clogging up your neighbors’ tables while gobbling up precious TCAM space. After entering the count of consecutive blocks in question, as well as length of the initial prefix, the calculator (above) computes numbers for you. It eliminates your need to guess boundary conditions or count bits yourself.

How to Summarize IP Addresses Well

Most people believe aggregation simply involves splitting up addresses. In fact, it’s all about geometry. Both IPv4 and IPv6 address space are binary constructs. They can be summarized neatly only if your range begins on a multiple of the block size. For example, exactly four /24s can be covered by a /22 summary, provided the first /24 begins on an IP address whose final two octets falls on the same /22 boundary. Any other starting point means the router need to issue two distinct routes rather than just one.

That’s what most network planners forget about, usually until they reach the limit of their routes. But what’s in the summary? Summaries group details together; this is good for scale but bad for precision. For example, maybe you want to migrate a handful of routes. Or you might want to separate a firewall. Or you may want to do traffic engineering with a few more specific routes.

These outliers nibble at your gains. When you group 10 routes down to 2 summaries plus 3 outliers, sure that reduces how many routes you have, but it doesn’t reduce them by as much as the back-of-the-napkin math would imply. The tool helps you account for those outliers so that you don’t get the idealized view of your route reduction percentage: you get the actual one. And it makes you face the trade-off: how much less precise your routing table will be vs. You’ll have more detailed control over what happens on the wire.

Another thing I commonly see people overlook is wasted address space. As you summarize a range that spans multiple /24s (or whatever), you’re bound to pick up additional IP addresses that aren’t assigned to a functional device somewhere. That’s painful in an environment like IPv4 where addresses are precious. For IPv6, with practically unlimited space, it becomes more about managing subnets at the /64 level instead of per-host.

The tool flags how much space you’re wasting once you factor in your existing usage and your buffer for future growth. It then shows how many bits is being held idle within your announced aggregates. This is good for auditing efficiency, or if you need to sell management on why they don’t really want a smaller prefix when there is so little benefit from doing so in terms of operational overhead versus announcing more routes.

The page includes reference tables laying out familiar use cases: aggregating Kubernetes pod CIDRs; summarizing a bunch of /48s from an ISP into a single /45. Concrete examples bridge abstract binary math to practical infrastructure design. Remember that aggregates not only limit what is possible, but they are also part of your planning strategy. How aggressively do you want to pack today versus how much room should you reserve for future growth?

Don’t accidentally make it harder to scale up by summarizing too much. Keep growth free by leaving it in unused addresses. That’s where network design comes in: breaking the rules is the art. Sticking to perfection (in this case perfect alignment), can result in slower deployment. In some cases, advertising an additional route makes sense. In others, delaying a project until you’ve renumbered addresses does not make sense. With the calculator, you can measure that choice.

A vague worry about “wasted space,” or “too many routes” becomes something you can express as numbers and defend during your architecture review. You learn how to balance striving for simplicity against messiness and complexity of the real world. In summary: Prefix aggregation is a balance of flexible vs. Orderly. You want your routing table to be orderly so you can understand where things are going quickly, but you don’t want it falling apart when under pressure.

Knowing which boundaries have an exception and what that exception costs will help you build out networks that scale, while still being neat and tidy in your routing tables. The math doesn’t get different, but your view on the math does. Instead of seeing a long list of IPs, you begin to see address space as having a shape. From there you can make decisions more clearly and instead of fighting against the binary structure, you work with it. It’s this mindset switch that makes the difference between good network designs and great ones.

Prefix Aggregation Calculator

Related posts

Leave a Comment