MTU & MSS Calculator: PPPoE, WireGuard, GRE, VXLAN
Tunnel MTU and TCP MSS for PPPoE, GRE, IPIP, WireGuard and VXLAN, for IPv4 and IPv6.
- TCP MSS for IPv6
- 1,372 bytes
- Total overhead
- 68 bytes
- MTU after PPPoE
- 1,492 bytes
- TCP payload per full packet (IPv4)
- 92.8%
Working
- 1.Link MTU: 1500 bytes
- 2.− PPPoE 8 bytes → 1492 bytes
- 3.− WireGuard over IPv4 (20 + 8 UDP + 32): 60 bytes → tunnel MTU 1432 bytes
- 4.IPv4 MSS = 1432 − 20 (IPv4) − 20 (TCP) = 1392
- 5.IPv6 MSS = 1432 − 40 (IPv6) − 20 (TCP) = 1372
Formula and sources
Tunnel MTU = link MTU − PPPoE (8) − tunnel overhead Overhead: GRE 24 (20 IPv4 + 4 GRE), IPIP/6in4 20, WireGuard 60 over IPv4 or 80 over IPv6 (IP + 8 UDP + 32 WireGuard), VXLAN 50 (20 IPv4 + 8 UDP + 8 VXLAN + 14 inner Ethernet) MSS = tunnel MTU − IP header (20 IPv4 / 40 IPv6) − TCP header (20)
When to use the Tunnel MTU & MSS
Why a tunnel's MTU is smaller
Every tunnel wraps the original packet in extra headers. If the inner packet stays at 1,500 bytes, the wrapped packet exceeds the link MTU and has to be fragmented or dropped. The tunnel MTU must shrink by the overhead.
PPPoE from your ISP
Many home and office internet services use PPPoE, which takes 8 bytes and leaves an MTU of 1,492. WireGuard over PPPoE on IPv4 then leaves 1,432 bytes for the VPN interface MTU.
MSS clamping
MSS is the largest TCP payload in one packet. Clamp the MSS on the router so TCP connections adapt, for example clamp-to-pmtu on MikroTik or --clamp-mss-to-pmtu in iptables, or set the MSS this calculator gives.
The overhead figures used
GRE 24 bytes, IPIP 20, WireGuard 60 over IPv4 or 80 over IPv6, and VXLAN 50, from the header sizes in each specification. WireGuard's default 1,420 MTU is 1,500 minus 80.
Frequently asked questions
What MTU should WireGuard use?
On a 1,500-byte link, 1,420 is safe for both IPv4 and IPv6, or 1,440 if the tunnel always runs over IPv4. Over PPPoE, take off another 8 bytes.
What about IPsec?
IPsec ESP overhead varies with the cipher, mode, padding and NAT traversal, so there is no single fixed figure. Measure with large pings with the don't-fragment flag set, then adjust.
Does a VLAN tag reduce the MTU?
Not the IP MTU. An 802.1Q tag adds 4 bytes to the Ethernet frame at layer 2, so it is the switch and trunk ports' layer-2 MTU that must allow for it, not the devices' IP MTU.
Related calculators
- Data Transfer TimeHow long a file or backup takes at a link speed, or the speed needed to finish in time.Example: Transfer time01:14:04Calculate →
- IPv4 SubnetNetwork, broadcast, host range and count, masks and binary from an IP/prefix, plus equal subnet splits.Example: Network address192.168.10.64/26Calculate →
- IPv6 SubnetPrefix, first and last address, short and full forms, /64 count, ip6.arpa and /48 to /64 splits.Example: Prefix (compressed)2001:db8:abcd::/48Calculate →