IP subnet calculator

Planning a VPC, a firewall rule or an office network? Type an address with its prefix and read the whole block: where it starts, where it ends and how many machines it holds.

How it works

  1. Type an IPv4 address with a prefix, such as 10.0.4.20/22.
  2. Press Calculate.
  3. Read the range, the mask and the host count.

What does /24 mean?

The first 24 bits name the network and the remaining 8 name the hosts: 256 addresses, 254 of them usable.

Why are two addresses not usable?

The first is the network address and the last is the broadcast address. A /31 and a /32 are the exceptions: every address counts.

Which ranges are private?

10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. They never route on the public internet.

Use it from ChatGPT, Claude or your own agent

This tool is also a function an AI agent can call for you. It needs the same free account as this page, nothing else.

Fields

  • cidr (text, required): Address and prefix

A call that works

POST https://orkosi.com/api/v1/public/tools/ip-subnet-calculator/run
Authorization: Bearer <api_key>

{
  "input": {
    "cidr": "10.0.4.20/22"
  }
}

Need an account? One request creates it and answers the key: POST https://orkosi.com/api/v1/public/signup. In Claude or ChatGPT, add the Orkosi connector and sign in: https://orkosi.com/api/v1/public/mcp.

This tool as Markdown · Connect an AI assistant