How to Calculate a Broadcast Address

Learn to calculate the broadcast address for any subnet. Set all host bits to 1 using the subnet mask. Step-by-step guide with binary math examples.

192.168.1.0/24Calculation

Detailed Explanation

How to Calculate a Broadcast Address

The broadcast address is the last address in a subnet. A packet sent to the broadcast address is delivered to all hosts on that subnet. To calculate it, set all host bits to 1.

Step-by-Step Method

Given: 192.168.1.0/24

Step 1: Write the network address and subnet mask in binary:

Network: 11000000.10101000.00000001.00000000
Mask:    11111111.11111111.11111111.00000000

Step 2: Identify the host bits (where the mask has 0s):

Host bits: last 8 bits (positions 25-32)

Step 3: Set all host bits to 1:

Broadcast: 11000000.10101000.00000001.11111111
         = 192.168.1.255

Quick Method (No Binary)

For subnets on octet boundaries (/8, /16, /24), simply set the host octets to 255:

  • 10.0.0.0/8 -> Broadcast: 10.255.255.255
  • 172.16.0.0/16 -> Broadcast: 172.16.255.255
  • 192.168.1.0/24 -> Broadcast: 192.168.1.255

Non-Octet Boundary Example

Given: 192.168.1.64/26

Network:   11000000.10101000.00000001.01000000
Mask:      11111111.11111111.11111111.11000000
Broadcast: 11000000.10101000.00000001.01111111
         = 192.168.1.127

The host bits (last 6) are set to 1, giving 192.168.1.127.

The Formula

Broadcast = Network Address OR (NOT Subnet Mask)

The NOT of the mask (also called the wildcard mask) flips all bits. ORing this with the network address fills all host bits with 1s.

Why Broadcast Addresses Matter

  • DHCP discovery — clients broadcast to find DHCP servers
  • ARP requests — devices broadcast to resolve MAC addresses
  • Network diagnostics — pinging the broadcast address reveals active hosts
  • Subnet boundaries — the broadcast address marks the end of a subnet's range

Broadcast addresses are not assignable to hosts and are reserved alongside the network address.

Use Case

A network technician calculates the broadcast address of 10.50.96.0/20 to verify the last usable IP in the subnet before assigning it to a server.

Try It — Subnet Calculator

Open full tool