Blocks nest, ranges overlap
A CIDR block is a prefix plus a length, so the set of addresses it covers always starts on a power-of-two boundary and has a power-of-two size. That constraint is what makes routing tables searchable, and it also means two blocks can never half-overlap.
A first–last range has no such constraint. 10.0.0.5–10.0.0.20 is a perfectly good range and a terrible block — it takes several CIDR blocks to express. When a firewall accepts ranges and your documentation records blocks, this is where the mismatches come from.
The blocks worth memorising
Most "is this address internal?" questions are answered by this table rather than by a calculator.
| Block | Addresses | Meaning |
|---|---|---|
| 10.0.0.0/8 | 16,777,216 | Private (RFC 1918) |
| 172.16.0.0/12 | 1,048,576 | Private (RFC 1918) |
| 192.168.0.0/16 | 65,536 | Private (RFC 1918) |
| 100.64.0.0/10 | 4,194,304 | Carrier-grade NAT (RFC 6598) |
| 127.0.0.0/8 | 16,777,216 | Loopback |
| 169.254.0.0/16 | 65,536 | Link-local (APIPA) |
| 224.0.0.0/4 | 268,435,456 | Multicast |
| 0.0.0.0/0 | 4,294,967,296 | Every address — the default route |