Home / Tools

    Subnet Calculator

    Enter any IPv4 address and prefix length to get the full subnet breakdown instantly. Everything is computed locally in your browser.

    Network address
    192.168.1.0
    Broadcast address
    192.168.1.255
    Subnet mask
    255.255.255.0
    Wildcard mask
    0.0.0.255
    First usable host
    192.168.1.1
    Last usable host
    192.168.1.254
    Total addresses
    256
    Usable hosts
    254
    Mask in binary
    11111111.11111111.11111111.00000000
    CIDR notation
    192.168.1.0/24

    How subnetting works

    An IPv4 address is 32 bits long. The prefix length states how many leading bits identify the network; the remaining bits address hosts inside it. A /24 keeps 24 network bits and 8 host bits, giving 256 addresses of which 254 are assignable.

    1. Convert the address and mask to binary.
    2. AND them together to get the network address.
    3. Set every host bit to 1 to get the broadcast address.
    4. Everything between them, exclusive, is the usable host range.

    Frequently Asked Questions

    Get answers to common questions about internet speed testing.