IP Subnet Calculator for IPv4 & IPv6

Calculate subnets in seconds. Enter an IP address and subnet mask (or CIDR prefix) to get the network address, broadcast address, usable host range, subnet mask, wildcard mask, CIDR notation, and IP class.

IPv4
IPv6
IPv4 Subnet Calculator
Result
IP Address:
192.168.0.1
Usable Host IP Range:
192.168.0.1 - 192.168.0.254
Total Number of Hosts:
256
Subnet Mask:
255.255.255.0
Binary Subnet Mask:
11111111.11111111.11111111.00000000
CIDR Notation:
/24
Short:
192.168.0.1/24
Integer ID:
3232235521
in-addr.arpa:
1.0.168.192.in-addr.arpa
6to4 Prefix:
2002:c0a8.0001::/48
Network Address:
192.168.0.0
Broadcast Address:
192.168.0.255
Number of Usable Hosts:
254
Wildcard Mask:
0.0.0.255
IP Class:
C
IP Type:
Private
Binary ID:
11000000101010000000000000000001
Hex ID:
0xc0a80001
IPv4 Mapped Address:
::ffff:c0a8.0001

All 1 of the Possible / 24 Networks for 192.168.0

Network AddressUsable Host RangeBroadcast Address
192.168.0.0192.168.0.1 - 192.168.0.254192.168.0.255

Understanding Your Results

Every value comes from combining your IP address with your subnet mask. Here's what each field means, using the default example 192.168.0.1 /24:

Network Address

192.168.0.0the first address in the subnet; identifies the network itself and can't be assigned to a host.

Broadcast Address

192.168.0.255the last address; used to reach every host on the subnet at once.

Usable Host Range

192.168.0.1 – .254the addresses you can actually assign to devices.

Subnet Mask

255.255.255.0separates the network portion of the address from the host portion.

Wildcard Mask

0.0.0.255the inverse of the subnet mask, used in Cisco ACLs and routing rules.

CIDR Notation & Class

/24, Class C, Privateshorthand for the mask plus the legacy class and public/private type.

CIDR / Subnet Mask Cheat Sheet (IPv4)

Match a prefix to its mask and the number of usable hosts it supports.

CIDRSubnet maskUsable hosts
/8255.0.0.016,777,214
/12255.240.0.01,048,574
/16255.255.0.065,534
/20255.255.240.04,094
/22255.255.252.01,022
/23255.255.254.0510
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522
/31255.255.255.2540 (point-to-point)
/32255.255.255.2550 (single host)

Usable hosts = 2(host bits) − 2. Full /1–/32 table available on the live page.

Key Subnetting Terms

CIDR Notation

Classless Inter-Domain Routing replaced the old class system. Instead of 255.255.255.0 you write /24 — the first 24 bits are the network. It lets you size a network to any prefix length.

Subnet Mask

A 32-bit value that tells a device which part of an IP address is the network and which is the host. Every host on the same subnet shares the same mask.

Wildcard Mask

The bitwise inverse of the subnet mask (0.0.0.255 for a /24). Used in Cisco ACLs and OSPF: a 0 bit means "must match", a 1 bit means "ignore".

IP Class

The original scheme splitting addresses into Class A (/8), B (/16) and C (/24) by their leading bits. CIDR has largely replaced it, but the class is still reported for reference.

Private vs Public

RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) can't route on the public internet; everything else is public.

Hosts Per Subnet

Decided by the number of host bits: 2^(host bits) − 2. A /24 gives 254, a /26 gives 62, a /30 gives 2 — see the cheat sheet.

How to Use the IP Subnet Calculator

As simple as that

Enter Your IP Details

Provide the base IP address and subnet mask.

Choose Preferences

Select how you want to divide the network (e.g., number of hosts or subnets).

View Results

Instantly see the network address, broadcast address, usable IP range, and more.

Frequently Asked Questions

An IP calculator is a tool used for subnet and network calculations. It helps calculate various network-related values based on an IP address and subnet mask.
An IP subnet calculator is a specialized tool used to divide an IP network into smaller, more manageable subnets. It is used to perform subnet calculations quickly and accurately.
inoRain's IP calculator uses your IP address and subnet mask to calculate results based on the chosen number of hosts or subnets.
Yes, inoRain's IP calculator supports both IPv4 and IPv6.
An IP calculator can significantly reduce the need for manual calculations for Internet Service Providers (ISPs), saving time for other important tasks.