Port Range Calculator
Counts the ports in a range for firewall rules and NAT planning.
Ports in the range
—
Share sends a link that reopens these numbers. Copy details pastes the full breakdown as a list.
Share of all ports — %
By type
Reading this —
The formula
ports = last − first + 1
Both ends count. TCP and UDP each have their own 65,536 ports, so port 53 on TCP and on UDP are separate. The three types are the ones defined by IANA.
What to watch out for
Port 0 is reserved and is not normally used for connections. Operating systems can pick their own range for outgoing connections, which may differ from the dynamic range shown.
Frequently Asked Questions
How many ports are in the dynamic range?
16,384, from 49152 to 65535.
How many ports are there in total?
65,536 per protocol, from 0 to 65535.