---
title: "IP Subnet Calculator"
method: GET
path: "/api/calc/ip-subnet-calculator"
tags: ["Math"]
---

# IP Subnet Calculator

`GET /api/calc/ip-subnet-calculator`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/ip-subnet-calculator`
- Auth: none declared

Paste 192.168.1.10/24 or any IPv4 CIDR to get the network, broadcast, usable host range, subnet and wildcard masks in binary – then split it into equal subnets.

## Query parameters

- `ip` string: IPv4 address You can also type CIDR notation, such as 10.0.0.0/16.
- `cidr` number: Prefix length (CIDR)
- `split` number: Split into subnets (optional) Rounded up to a power of two – e.g. 4 subnets of a /24 are four /26 networks.

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
