1. Home
  2. Math
  3. IP Subnet Calculator

IP Subnet Calculator

For 192.168.1.130/26 the network is 192.168.1.128, the broadcast is 192.168.1.191 and the usable hosts run from .129 to .190 (62 hosts).

Planning a network? Use the Split a network tab to divide one block into equal subnets and see every range at once.

Calculate an IPv4 subnet

Answer โ€”

How we got this

    Your next step

    Your answer carries over, so you donโ€™t have to type it again.

    How subnetting works

    An IPv4 address is 32 bits. The prefix length (CIDR, like /24) says how many of those bits name the network; the rest number the hosts. The subnet mask is the same thing written as an address: /24 = 255.255.255.0.

    • Network address = IP AND mask (all host bits 0).
    • Broadcast = network OR wildcard (all host bits 1).
    • Usable hosts = 2(32 โˆ’ prefix) โˆ’ 2, because the network and broadcast addresses are reserved.

    CIDR cheat sheet

    CIDRSubnet maskAddressesUsable hosts
    /8255.0.0.016,777,21616,777,214
    /16255.255.0.065,53665,534
    /20255.255.240.04,0964,094
    /22255.255.252.01,0241,022
    /23255.255.254.0512510
    /24255.255.255.0256254
    /25255.255.255.128128126
    /26255.255.255.1926462
    /27255.255.255.2243230
    /28255.255.255.2401614
    /29255.255.255.24886
    /30255.255.255.25242
    /31255.255.255.25422
    /32255.255.255.25511

    Private address ranges

    RangeCIDRTypical use
    10.0.0.0 โ€“ 10.255.255.25510.0.0.0/8Large company networks
    172.16.0.0 โ€“ 172.31.255.255172.16.0.0/12Medium networks, Docker
    192.168.0.0 โ€“ 192.168.255.255192.168.0.0/16Home and office routers
    100.64.0.0 โ€“ 100.127.255.255100.64.0.0/10Carrier-grade NAT

    Private addresses (RFC 1918) are not routed on the public internet. /31 links (RFC 3021) use both addresses for point-to-point connections, and /32 is a single host.

    Frequently asked questions

    How many hosts are in a /24?

    256 addresses, 254 usable hosts.

    What is the subnet mask for /26?

    255.255.255.192, with 64 addresses and 62 usable hosts.

    What is a wildcard mask?

    The inverse of the subnet mask, used in router access lists. For /24 it is 0.0.0.255.

    Does this support IPv6?

    This page handles IPv4. IPv6 uses 128-bit addresses and different conventions.

    Last updated ยท Written and checked by the AzCalculator team ยท Calculations run in your browser with full precision and are rounded only for display. How we build calculators