IPv4 subnet calculator showing CIDR, subnet mask and IP address ranges
NETWORKING TOOLKIT

IPv4 Subnet Calculator

Calculate network addresses, host ranges, binary boundaries, and subnet tables instantly.

● LIVE CALCULATION

⌘ Configure your network

Enter four decimal octets (0 – 255).
Network bits: 24
Select mask or CIDR prefix.
Wildcard mask0.0.0.255
/24
Results update automatically as you type.

◈ Network summary

Network address
192.168.10.0
Broadcast address
192.168.10.255
Subnet mask
255.255.255.0
First usable IP
192.168.10.1
Last usable IP
192.168.10.254
Total addresses
256
Usable host addresses
254

Address classification

Class C

IP classes are shown for historical reference; modern networks use CIDR.

Address typePrivate
Host bits8 bits
Wildcard mask0.0.0.255

RFC 1918 private address range.

Subnet IP Ranges Table

Subnets
Choose a longer CIDR prefix to create more, smaller subnets. Every subnet is available in the table; use the page controls for large results.
# Network ID First Usable IP Last Usable IP Broadcast IP Usable Hosts
Page 1 of 1
The subnet containing your entered IP address is highlighted.

Network and host boundary

/24 | 32 total bits
24 bitsNETWORK
8 bitsHOST
Network portionHost portion
Network bitsHost bits

Binary representation

32-bit IPv4 structure
IP address
Subnet mask
Network portionHost portion

Subnet information

Technical details
IP address192.168.10.25
CIDR notation192.168.10.25/24
Address range192.168.10.0 – 192.168.10.255
Network bits24 bits
Host bits8 bits
Subnet size256 addresses
How this subnet is calculated

    IPv4 Subnet Calculator: Understand CIDR, IP Ranges and Subnet Masks

    This free IPv4 subnet calculator helps you work out the details of an IP network quickly. Enter an IPv4 address and choose a CIDR prefix or subnet mask to find the network address, broadcast address when applicable, first and last usable IP addresses, wildcard mask, total addresses and host capacity. The calculator also displays the binary form of the address and mask, and can divide a network into smaller subnets with a complete, browsable IP range table.

    How to use the IPv4 subnet calculator

    1. Enter an IPv4 address using four decimal octets. Each octet must be from 0 to 255.
    2. Select a CIDR prefix, such as /24, or choose the equivalent subnet mask. The two selections stay synchronised.
    3. Read the network summary to identify the network ID, subnet mask, address range, wildcard mask and number of addresses.
    4. Under Subnet IP Ranges Table, choose a longer prefix to split the selected network into smaller subnets. The calculator lists the network ID, first and last usable IP, broadcast address and usable host count for each subnet.
    5. Use the table's page controls to browse every generated subnet. The row containing the IP address you entered is highlighted automatically.

    What do the subnet calculator results mean?

    Network address (Network ID): The first address in a conventional IPv4 subnet. It identifies the subnet and is not normally assigned to an individual host.

    Subnet mask and CIDR prefix: These show which bits identify the network and which bits are available for host addressing. For example, /24 means 24 network bits and 8 host bits. Its dotted-decimal subnet mask is 255.255.255.0.

    Broadcast address: In a conventional subnet from /0 through /30, this is the address with all host bits set to 1. It is used to reach all hosts on that IPv4 subnet. A /31 point-to-point prefix and a /32 host route are special cases and do not have a separate subnet broadcast address.

    Usable host range: For conventional subnets from /0 through /30, the first and last usable host addresses are normally between the network and broadcast addresses. A /31 point-to-point link uses both addresses as endpoints; a /32 identifies one individual address.

    Wildcard mask: The inverse of the subnet mask. It is commonly used in access control lists and some routing configurations.

    Common IPv4 CIDR prefix reference

    CIDRSubnet maskTotal addressesUsable hosts / endpoints
    /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 point-to-point endpoints
    /32255.255.255.25511 host route

    Frequently asked questions about IPv4 subnetting

    How many usable hosts are in a /24 subnet?

    A conventional /24 subnet contains 256 IPv4 addresses. Two addresses are normally reserved for the network ID and broadcast address, leaving 254 usable host addresses.

    How do I calculate the number of smaller subnets?

    Subtract the original prefix from the new, longer prefix. The number of resulting subnets is 2 raised to that difference. For example, dividing a /24 network into /26 networks borrows 2 bits and creates 4 subnets.

    Why does the subnet table sometimes show only one network?

    If the selected subdivision prefix is the same as the original network prefix, no additional subnet bits have been borrowed, so the result is one network. Choose a longer prefix, such as changing /24 to /25, to create smaller subnets. This calculator now selects the next longer prefix by default when possible.

    What is the difference between /31 and /32?

    A /31 is normally used on point-to-point links, where both addresses are usable endpoints. A /32 contains exactly one address and is commonly used to identify a single host route.

    Note: This tool performs local IPv4 and CIDR calculations in your browser. It does not test whether an address is assigned, reachable, publicly routed or available for use on a particular network. Always check your network design and address-allocation requirements before configuring production equipment.

    Post a Comment