CalcToolVault

MTU & MSS Calculator

Calculate the correct MTU and TCP MSS for tunnels, VPNs, and overlay networks with encapsulation overhead.

Your details

bytes

Additional

This calculator runs entirely on your device. Nothing you enter is uploaded, stored, or sold. How this works

Effective MTU

1,500 bytes

TCP MSS should be clamped to 1,460 bytes

Save these results

Includes your inputs, the full breakdown, and every row of the table.

TCP MSS

1,460 bytes

Total overhead

0 bytes

Payload efficiency

97.3%

Application data as a share of the frame

Recommended tunnel MTU

1,500

Breakdown
Physical MTU
1,500 bytes
Encapsulation overhead
- 0 bytes
Tunnel MTU
1,500 bytes
IP header (IPv4)
- 20 bytes
TCP header
- 20 bytes
TCP MSS
1,460 bytes
Common encapsulation overhead
TypeOverheadMTU from 1500MSS (IPv4)
Plain Ethernet015001460
PPPoE (DSL)814921452
GRE2414761436
VXLAN5014501410
WireGuard6014401400
IPsec transport (AES)~5714431403
OpenVPN UDP~6914311391
IPsec tunnel (AES)~7314271387
GRE over IPsec~9714031363

What this means

  • Clamp MSS on tunnel interfaces rather than relying on Path MTU Discovery — many networks block the ICMP messages PMTUD depends on.
  • Symptoms of an MTU mismatch are distinctive: small requests succeed, pings work, but large transfers and TLS handshakes hang. That pattern almost always means blocked ICMP plus an oversized MTU.
  • IPsec overhead varies with cipher, mode, and whether NAT-T is in use. The values here are typical for AES-CBC with SHA; measure your own path if it is close to the edge.

How the mtu & mss calculation works

MTU is the largest frame a link will carry. Every layer of encapsulation — VPN, GRE, VXLAN, PPPoE — adds headers that eat into the payload, so a tunnel riding on a 1500-byte Ethernet link always has a smaller usable MTU.

MSS is the TCP-level equivalent: the effective MTU minus the IP and TCP headers. Clamping MSS on tunnel interfaces is the standard fix for MTU problems, because it tells both endpoints to send smaller segments rather than relying on Path MTU Discovery, which frequently fails when ICMP is filtered.

Frequently asked questions

What MTU should I use for a VPN?

Subtract the tunnel overhead from your path MTU. WireGuard over standard Ethernet is 1420-1440; IPsec tunnel mode is usually around 1400-1430. When in doubt, clamp MSS and test with large pings.

How do I test the real path MTU?

Send pings with the don't-fragment bit set and shrink the size until they succeed. On Linux: ping -M do -s 1472 host. On Windows: ping -f -l 1472 host. Add 28 bytes to the largest working size to get the MTU.

Related calculators

Spotted a problem, or want this calculator to do more?Corrections are fixed first, and the most-requested features get built next.Tell us →

Disclaimer. This calculator is provided for general information and educational purposes only and does not constitute financial, tax, legal, medical, or engineering advice. Results are estimates based on the inputs you provide and the assumptions described above. Confirm any figure with a qualified professional before acting on it.