Skip to content
SubnettingCalculator
IPv4 Detecting…
IPv6 Detecting…

Supernetting Calculator – IP Route Summarization Calculator

Use this free supernetting calculator, also called a route summarization calculator, to combine several IPv4 networks into one summary route. Paste your networks, one per line, and get the summary network with its usable range and masks, and a note if the summary covers addresses that are not in your list. Useful for routing tables, OSPF and BGP summarization and exam practice.

Route Summarization Calculator

Enter the networks you want to summarize, one per line.

Networks to Summarize

Example Input:
192.168.0.0/24 192.168.1.0/24 192.168.2.0/24 192.168.3.0/24

What is supernetting?

Supernetting joins several small networks into one bigger network. It is the opposite of subnetting. Four /24 networks that sit side by side, 192.168.0.0 to 192.168.3.0, can be written as one /22: 192.168.0.0/22.

In routing, the same idea is called route summarization or route aggregation. A router announces one summary route instead of four separate ones. The routing table gets shorter, routers use less memory, and a problem in one small network stays local instead of being announced everywhere.

How to use this supernetting calculator

1Enter your networks

Type or paste the networks into Enter Subnets, one per line, like 192.168.0.0/24. You can also write the mask in full, like 192.168.0.0/255.255.255.0. Click Copy Example if you want a sample to paste in and try.

2Click Calculate

The result appears below the form. From then on it follows your changes, so you can add or remove a line and watch the result update. If a line is not valid, a red message names it.

3Read the summary

The note at the top says if your networks fit the summary exactly, or how many extra addresses the summary also covers. Summary Network Details shows the single network that contains all your networks. Individual Networks lists each of your networks in address order, with the same details.

4Choose the columns

Tick or untick boxes in Show Columns to choose what you see: first and last usable IP, broadcast, usable and total hosts, subnet mask, wildcard mask and IP type. It works for both tables. On a phone or tablet that row slides sideways. The network column is always shown.

5Copy, download or start again

Copy puts both tables on your clipboard and Download saves them as a CSV file, with the summary on the first row. Both use only the columns you ticked. Clear All empties the box and hides the result.

Common slip-ups

  • "Enter at least two networks". One network has nothing to join with.
  • Extra addresses in the note. Your list has gaps, or does not fill the whole summary block. See the second example below.
  • A line is marked as not valid. Each network needs a prefix, such as /24. An address with no prefix is not enough.
  • Fewer networks in the table than I entered. Duplicates and networks that sit inside another one are left out.

How route summarization works

Look at the first and the last address of all your networks. The bits that are the same at the start of both addresses are the bits every network shares. That is the summary.

Summary prefix = number of leading bits shared by the first and the last address Summary network = first address, with all the other bits set to 0 Summary size = 2^(32 - summary prefix) Extra addresses = summary size - addresses in your networks

Example 1: four /24 networks that fit exactly

The networks are 192.168.0.0/24, 192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24.

  1. The first address is 192.168.0.0 and the last is 192.168.3.255.
  2. In binary, the third byte of the first address is 00000000 and of the last is 00000011. They share the first 6 bits of that byte.
  3. 16 bits from the first two bytes plus 6 shared bits makes a prefix of /22.
  4. The four networks hold 4 × 256 = 1,024 addresses, and a /22 holds 1,024. Nothing extra is covered.

Summary Network Details

Summary NetworkFirst Usable IPLast Usable IPBroadcast AddressTotal Usable HostsTotal Available HostsSubnet MaskWildcard Mask
192.168.0.0/22192.168.0.1192.168.3.254192.168.3.2551,0221,024255.255.252.00.0.3.255

Individual Networks

Network AddressFirst Usable IPLast Usable IPBroadcast AddressTotal Usable HostsTotal Available HostsSubnet MaskWildcard Mask
192.168.0.0/24192.168.0.1192.168.0.254192.168.0.255254256255.255.255.00.0.0.255
192.168.1.0/24192.168.1.1192.168.1.254192.168.1.255254256255.255.255.00.0.0.255
192.168.2.0/24192.168.2.1192.168.2.254192.168.2.255254256255.255.255.00.0.0.255
192.168.3.0/24192.168.3.1192.168.3.254192.168.3.255254256255.255.255.00.0.0.255

Example 2: two networks with a gap

The networks are 192.168.0.0/24 and 192.168.2.0/24. The first address is 192.168.0.0 and the last is 192.168.2.255. The third byte goes from 00000000 to 00000010, so they share 6 bits and the summary is again a /22. But your two networks hold only 512 addresses and a /22 holds 1,024. The summary also covers 192.168.1.0/24 and 192.168.3.0/24, which are not in your list. The calculator shows this as 512 extra addresses.

Summary NetworkFirst Usable IPLast Usable IPBroadcast AddressTotal Usable HostsTotal Available HostsSubnet MaskWildcard Mask
192.168.0.0/22192.168.0.1192.168.3.254192.168.3.2551,0221,024255.255.252.00.0.3.255

When is a summary exact?

A summary covers your networks and nothing else only when all three of these are true:

  • The networks are next to each other, with no gaps.
  • Together they fill the whole summary block. That means a power of 2 of equal-sized networks: 2, 4, 8, 16 and so on.
  • The first network starts on the boundary of the block. 192.168.1.0/24 and 192.168.2.0/24 are side by side, but they cannot make an exact /23, because a /23 must start on an even third byte.

Here is how many /24 networks it takes to fill each summary:

NetworksSummary prefixSummary subnet maskAddresses
2 × /24/23255.255.254.0512
4 × /24/22255.255.252.01,024
8 × /24/21255.255.248.02,048
16 × /24/20255.255.240.04,096
32 × /24/19255.255.224.08,192
64 × /24/18255.255.192.016,384
128 × /24/17255.255.128.032,768
256 × /24/16255.255.0.065,536

Where summarization helps

Use it at the edge of an area or a site. A branch router that owns 10.1.0.0/24 to 10.1.3.0/24 can announce just 10.1.0.0/22 to the rest of the network. It works best when you plan addresses with it in mind: give each site a block that fills a summary exactly, and your routing tables stay small as you grow.

To look closer at one network, put its address and mask into the IPv4 Subnet Calculator. To split a network instead of joining networks, use the FLSM Calculator.

Frequently asked questions

What is supernetting?

Supernetting is the opposite of subnetting. Instead of cutting one network into smaller pieces, you join several smaller networks into one bigger network. Four /24 networks that sit next to each other become one /22.

What is route summarization, and why use it?

Route summarization (also called route aggregation) replaces many routes with one route that covers them all. Routing tables get smaller, routers use less memory, and a change in one small network does not have to be announced to the whole network.

How do I find the summary route by hand?

Write the first and the last address of your list in binary and count how many bits at the start are the same. That count is the new prefix length. The summary network is the first address with all the remaining bits set to 0. This calculator does exactly that.

Why does my summary cover more addresses than my list?

A summary is always one block whose size is a power of 2. If your networks leave gaps, or there are not enough of them to fill the block, the summary also takes in the addresses in between. For example, 192.168.0.0/24 and 192.168.2.0/24 give 192.168.0.0/22, which also covers 192.168.1.0/24 and 192.168.3.0/24.

Is a summary that covers extra addresses a problem?

It can be. A router that announces the summary says it can reach every address in it, so it may attract traffic for addresses that belong to someone else. When the calculator shows extra addresses, think about announcing two or more smaller summaries instead.

Do the networks have to be next to each other?

For an exact summary, yes. They must be back to back with no gaps, they must fill the whole summary block, and the first one must start on the boundary of that block. The calculator also accepts networks that are far apart. It then gives the smallest network that contains all of them and tells you how many extra addresses it covers.

Can I summarize networks of different sizes?

Yes. You can mix /24, /25, /26 and so on. The summary is still the smallest single network that contains all of them.

What if I enter an address that is not the first one in its network?

The calculator uses the network address instead. 192.168.1.77/24 is treated as 192.168.1.0/24, and the result says that it did so.

What happens with duplicates or networks inside other networks?

They are left out of the Individual Networks table, because the bigger network already covers them. The result tells you how many entries were left out.

Which formats can I enter?

One network per line, written as 192.168.0.0/24. You can also write the mask in full, like 192.168.0.0/255.255.255.0. Commas, semicolons and spaces between networks work too. Up to 2,000 networks are accepted.

How is supernetting different from subnetting?

Subnetting splits one network into smaller ones. Supernetting joins smaller networks into a bigger one. If you want to split a network, try the FLSM Calculator or the VLSM Calculator.

Is anything I type sent to your server?

No. The calculation runs in your browser, so the networks you enter stay on your device.