Everyday tools · Free online tool

IPv4 Subnet Calculator

IPv4 Subnet Calculator. Calculate ipv4 subnet with clear inputs and an explained result.

  • IPv4 address
  • CIDR prefix length /0 — 4,294,967,296 total addresses/1 — 2,147,483,648 total addresses/2 — 1,073,741,824 total addresses/3 — 536,870,912 total addresses/4 — 268,435,456 total addresses/5 — 134,217,728 total addresses/6 — 67,108,864 total addresses/7 — 33,554,432 total addresses/8 — 16,777,216 total addresses/9 — 8,388,608 total addresses/10 — 4,194,304 total addresses/11 — 2,097,152 total addresses/12 — 1,048,576 total addresses/13 — 524,288 total addresses/14 — 262,144 total addresses/15 — 131,072 total addresses/16 — 65,536 total addresses/17 — 32,768 total addresses/18 — 16,384 total addresses/19 — 8,192 total addresses/20 — 4,096 total addresses/21 — 2,048 total addresses/22 — 1,024 total addresses/23 — 512 total addresses/24 — 256 total addresses/25 — 128 total addresses/26 — 64 total addresses/27 — 32 total addresses/28 — 16 total addresses/29 — 8 total addresses/30 — 4 total addresses/31 — 2 total addresses/32 — 1 total addresses
IPv4 Subnet Calculator screen showing its inputs and result area
Actual IPv4 Subnet Calculator interface in AIT Quick Tools.
Free to usePublic browser toolNo installationOpen it on desktop or mobileMade by AITOperated by a UK technology company

How it works

A useful result in three clear steps.

Example result: 192.168.1.0/24 This is the example supplied by the tool. Enter your own inputs in the application to calculate a result.

01

Set up

Open IPv4 Subnet Calculator and choose the units or options for your calculation.

02

Check the details

Enter your values, using the labels and worked example to check the scale and units.

03

Use the result

Read the result together with the method and limitations before using it.

Inputs, example and method

What to enter

IPv4 address: enter the value or list in the format shown in the form.

CIDR prefix length: choose 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32.

Worked example

This example uses the form’s starting values; it is not your personal result.

IPv4 address: 192.168.1.42

CIDR prefix length: 24

Example result: 192.168.1.0/24

Subnet mask: 255.255.255.0

Last address: 192.168.1.255

Total addresses: 256

Usable hosts (conventional): 254

First usable: 192.168.1.1

/31 uses point-to-point convention; /32 is one address. No IPv6 support in this calculator.

Method and limitations

Block size = 2^(32 − prefix). Network = floor(address / block size) × block size.

/31 uses point-to-point convention; /32 is one address. No IPv6 support in this calculator.

Use IPv4 Subnet Calculator

Questions answered

Before you use the tool.

Clear information about what the tool does and where an extra check may be sensible.

Where can I use IPv4 Subnet Calculator?

Use the Open the free tool button on this page to go directly to IPv4 Subnet Calculator in AIT Quick Tools.

What does the screenshot show?

The screenshot shows the real tool with its example or starting values. Enter your own values in the application to obtain your result.

Ready when you are

Try the IPv4 Subnet Calculator now.

No installation. Open the tool in your browser and get started.