Work out network and broadcast address instantly with clear inputs, formula shown and shareable results.
The network address is the address ANDed with the subnet mask, which clears every host bit to zero. The broadcast address sets every host bit to one, so it is the network address plus 2^(32-prefix) - 1. The wildcard mask is the bitwise complement of the subnet mask and is what ACLs and OSPF network statements expect.
Network and broadcast
network = IP AND mask; broadcast = network OR NOT mask; wildcard = NOT mask
The prefix decides how many low-order bits are host bits. A longer prefix leaves fewer host bits, so the network boundary moves and the broadcast address lands closer to the address you entered.
Cisco ACLs, OSPF network statements and route-maps match on wildcard masks, where a 0 bit means must match and a 1 bit means ignore — exactly the inverse of a subnet mask.