WireGuard MTU calculator
Enter your underlying link MTU (1500 for most connections, 1492 for PPPoE) to get the recommended WireGuard tunnel MTU and MSS clamp.
How to use the wireguard mtu calculator
- Enter your link MTU (1500 is typical; 1492 for PPPoE/DSL).
- Choose whether your endpoint is reached over IPv4 or IPv6.
- Read the recommended tunnel MTU and MSS clamp, and add the MTU line to your [Interface].
How the numbers are worked out
WireGuard wraps each packet in extra headers, so the tunnel MTU must be smaller than your underlying link. The overhead is about 60 bytes over IPv4 (20-byte IP header + 8 UDP + 32 WireGuard) and 80 over IPv6 (the IPv6 header is 40 bytes). On a standard 1500 link that gives a tunnel MTU of 1440 (IPv4) or 1420 (IPv6); 1420 is the safe all-round default. PPPoE/DSL links start at 1492, and mobile or CGNAT paths sometimes need less. The MSS clamp (tunnel MTU − 40) caps TCP segments so they fit without fragmenting: useful when path-MTU discovery is blocked. Set the result with an MTU = line in your config's [Interface] section; generate the rest with the config generator. The classic sign of a too-large MTU is small requests working while large pages and downloads stall.
Code & API examples
Use this from the command line or your code.
[Interface]
MTU = 1420
ip link show
See all endpoints at /api/tools/.
Frequently asked questions
vpn.golf is a no-logs WireGuard VPN. Pick a hole, take the shot.
Step up to the tee for free