calc.engineer / Homelab & Networking / Subnet Calculator
Subnet Calculator v1.0.0
Calculate IPv4 subnet details from CIDR notation. Parses a CIDR block (e.g. 192.168.1.0/24) and returns the network address, broadcast address, subnet mask, wildcard mask, first and last usable host addresses, total and usable host counts, prefix length, and classful IP class (A/B/C/D/E). Essential for homelab network planning, VLAN segmentation, firewall rule design, and understanding address space allocation. Handles special cases for /31 point-to-point links (RFC 3021) and /32 host routes.
Fill in the inputs and Compute to see the structured result.
From an agent (MCP) or the API
curl -X POST https://calc.engineer/api/subnet_calculator \
-H "Content-Type: application/json" \
-d '{"cidr": …}'MCP: connect to https://calc.engineer/mcp and call subnet_calculator.
calc.engineer — free, MCP-native engineering tools.