Networking Tools

MTU & MSS Calculator

Work out the effective MTU, TCP MSS and ping payload after VPN, tunnel and VLAN overhead.

Encapsulations on the path (stack as needed)
Total overhead60 bytes
Effective MTU1440 bytes
TCP MSS (IPv4)1400 bytes
TCP MSS (IPv6)1380 bytes
Max ping payload (IPv4)1412 bytes
Max ping payload (IPv6)1392 bytes
Clamp TCP MSS on the tunnel interface, or ICMP-blocked paths will black-hole large packets.

01About This Tool

The MTU & MSS Calculator shows how much payload actually fits in a packet once VPN, tunnel, PPPoE or VLAN headers are added. Every encapsulation steals bytes from the link MTU, and when the resulting packets are too large the symptoms are familiar: websites that half-load, SSH sessions that hang after login, or uploads that stall. Pick your link MTU, tick the encapsulations on the path and get the effective MTU, the TCP MSS to clamp to, and the largest ping payload for testing with the don't-fragment bit.

02How to Use

  1. 01Enter the physical link MTU (1500 for standard Ethernet, 9000 for jumbo frames)
  2. 02Tick every encapsulation the traffic passes through; overhead is added together
  3. 03Optionally add TCP option bytes such as timestamps
  4. 04Read the effective MTU and the MSS for IPv4 and IPv6
  5. 05Use the max ping payload with ping -f -l (Windows) or ping -M do -s (Linux) to verify the path
  6. 06Apply the MSS value to your firewall or tunnel interface as an MSS clamp

03Features

  • Thirteen common encapsulations with documented overhead
  • Stackable overheads (for example VLAN + PPPoE + GRE)
  • Separate IPv4 and IPv6 MSS
  • Ping payload sizes for fragmentation testing
  • Warnings for the 576-byte IPv4 and 1280-byte IPv6 minimums
  • Optional TCP options such as timestamps
  • Runs in your browser

04Common Use Cases

  • Choosing the MTU for a WireGuard or OpenVPN interface
  • Setting TCP MSS clamping on a router or firewall
  • Troubleshooting PPPoE connections that hang on large downloads
  • Planning VXLAN or GRE underlay MTU in a data centre
  • Finding the real path MTU with don't-fragment pings
  • Sizing jumbo frames across a mixed network

05Technical Details

MSS is the largest TCP payload per segment: MTU minus the IP header (20 bytes for IPv4, 40 for IPv6) minus the TCP header (20 bytes) minus any TCP options. A 1500-byte MTU therefore gives an MSS of 1460 over IPv4 and 1440 over IPv6.

Path MTU Discovery relies on ICMP "fragmentation needed" (IPv4) and "packet too big" (IPv6) messages. When a firewall drops them the connection black-holes, which is why clamping MSS on the tunnel edge is the common fix.

Overheads shown are typical values; ESP padding and OpenVPN cipher choices change the exact figure, so the calculator uses a conservative number.