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.

Inputs

IP versions
Use No if the input already reflects the PPPoE interface MTU.

Calculated in your browser

Results

Inner IP MTU
1,412 B
TCP MSS
1,372 B
Budgeted overhead
88 B

Tunnel packet byte budget

Tunnel packet byte budgetThe top bar compares encapsulation overhead with the usable packet. The bottom bar expands the overhead to show its parts in bytes.Underlay budget · 1,500 BInner IPOverhead1,412 B inner IPOverhead detail88 BPPPoE + PPP: 8 B8Outer IPv6: 40 B40UDP: 8 B8WireGuard data header: 16 B16Poly1305 tag: 16 B16
  • PPPoE + PPP · 8 B
  • Outer IPv6 · 40 B
  • UDP · 8 B
  • WireGuard data header · 16 B
  • Poly1305 tag · 16 B
The top bar compares encapsulation overhead with the usable packet. The bottom bar expands the overhead to show its parts in bytes.
Encapsulation
WireGuard
Starting MTU
1,500 B
Inner TCP/IP base headers
40 B
Byte budget
LayerBytes
PPPoE + PPP8
Outer IPv640
UDP8
WireGuard data header16
Poly1305 tag16
Inner IP packet1412

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.

References