IP Subnet Calculator CalculatorScale.com
Network EngineeringIPv4 / IPv6 CIDR Subnet Engine

IP Subnet Calculator

Calculate network address, broadcast address, usable host IP ranges, subnet masks, wildcard masks, binary representations, and CIDR blocks for IPv4 and IPv6 networks.

Modify the values and click the calculate button to use

IPv4 Network Parameters

Quick Presets:
Subnet Output: 108.177.2.198/24

Usable Hosts: 254(256 total addresses)

Range: 108.177.2.1 - 108.177.2.254
Network Address:108.177.2.0
Broadcast Address:108.177.2.255
Subnet Mask:255.255.255.0
Wildcard Mask:0.0.0.255
Class / Scope:Class A
IP Type:Public Internet
Binary Dotted Representation32-Bit Map
IP Address:01101100.10110001.00000010.11000110
Subnet Mask:11111111.11111111.11111111.00000000
Network ID:01101100.10110001.00000010.00000000
Broadcast:01101100.10110001.00000010.11111111

How IP Subnetting and CIDR Masks Work

An IPv4 address is composed of 32 bits divided into 4 octets (e.g. 192.168.1.1). Subnet masking divides these 32 bits into two parts:

  • Network Identifier (Prefix bits): Shared by all devices on the same local physical or virtual network segment.
  • Host Identifier: Unique address identifying an individual computer, smartphone, or router interface.

The bitwise formula to determine the network address is: Network ID = IP Address AND Subnet Mask.

RFC 1918 Private IPv4 Address Allocations

Class A Block

10.0.0.0/8

10.0.0.0 – 10.255.255.255 (16.7M hosts)

Class B Block

172.16.0.0/12

172.16.0.0 – 172.31.255.255 (1.04M hosts)

Class C Block

192.168.0.0/16

192.168.0.0 – 192.168.255.255 (65,536 hosts)