WireGuard, IPsec & Tunnel MTU / MSS Calculator
Calculate inner IP MTU and TCP MSS for WireGuard, IPsec ESP, VXLAN, GRE and PPPoE. See the byte cost of each encapsulation layer.
Results
- Inner IP MTU
- 1,412 B
- TCP MSS
- 1,372 B
- Budgeted overhead
- 88 B
Tunnel packet byte budget
- PPPoE + PPP · 8 B
- Outer IPv6 · 40 B
- UDP · 8 B
- WireGuard data header · 16 B
- Poly1305 tag · 16 B
- Encapsulation
- WireGuard
- Starting MTU
- 1,500 B
- Inner TCP/IP base headers
- 40 B
| Layer | Bytes |
|---|---|
| PPPoE + PPP | 8 |
| Outer IPv6 | 40 |
| UDP | 8 |
| WireGuard data header | 16 |
| Poly1305 tag | 16 |
| Inner IP packet | 1412 |
How the calculator works
Start with the smallest underlay MTU
Subtract PPPoE and PPP when starting from the Ethernet IP MTU. When starting at a PPPoE interface’s reported MTU, its eight bytes are already accounted for.
Subtract encapsulation and respect alignment
Use 20 bytes for an ordinary IPv4 outer header or 40 for IPv6. WireGuard adds UDP and 32 bytes of data header and tag. ESP adds SPI, sequence, explicit IV, tag, trailer and any alignment headroom. VXLAN includes the inner Ethernet header.
Calculate the TCP MSS
Subtract another 20-byte TCP base header and the inner IP base header from the tunnel MTU. Options, extension headers and a smaller downstream path can reduce usable payload further.
Questions
Can I subtract PPPoE twice by entering 1492 as the underlay MTU?
Yes. If 1492 is the measured PPPoE interface MTU, turn off the separate eight-byte PPPoE subtraction.
Why can a tunnel MTU below 1280 matter for IPv6?
IPv6 expects a link to carry a 1280-byte packet or provide its own lower-layer fragmentation and reassembly. Check the tunnel implementation and effective path.