IPv4 Subnet Calculator

Enter 192.168.1.50/24 (or any IP and CIDR) — get the network, broadcast, mask, and host range.

Subnet info

CIDR prefix

Subnet mask

Wildcard mask

Network address

Broadcast

First host

Last host

Usable hosts

How CIDR works

192.168.1.50/24 means "the IP address 192.168.1.50, with the first 24 bits identifying the network." Everything in the same /24 — 192.168.1.0 through 192.168.1.255 — is on the same subnet.

  • Network address (192.168.1.0): the first address in the range. Reserved — not assignable to a host.
  • Broadcast address (192.168.1.255): the last address. Reserved for broadcast traffic.
  • Usable hosts: total addresses minus 2 (network + broadcast). For /24 that's 254.

Common prefixes

  • /8 — 16.7 million hosts. Class A. (10.0.0.0/8)
  • /16 — 65,534 hosts. Class B. (172.16.0.0/16)
  • /24 — 254 hosts. Class C. Typical home LAN. (192.168.1.0/24)
  • /30 — 2 hosts. Point-to-point links between routers.
  • /32 — 1 host. Single specific address (often used in firewall rules).