Calculate WireGuard MTU for an IPv4 endpoint and IPv6 traffic

Use a 1500-byte Ethernet path with an IPv4 WireGuard endpoint and calculate the different overhead inside and outside the tunnel.

Try these inputs

Worked calculation

  1. The outer IPv4 and UDP headers use 20 + 8 = 28 bytes.
  2. Add 16 bytes for the WireGuard data header and 16 for the authentication tag. The tunnel budget is 1,500 − 60 = 1,440 bytes, already a multiple of 16.
  3. The inner IPv6 and TCP headers need 40 + 20 = 60 bytes. The resulting MSS is 1,380 bytes.

Inputs

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

Calculated in your browser

Results

Inner IP MTU
1,440 B
TCP MSS
1,380 B
Budgeted overhead
60 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,440 B inner IPOverhead detail60 BOuter IPv4: 20 B20UDP: 8 B8WireGuard data header: 16 B16Poly1305 tag: 16 B16
  • Outer IPv4 · 20 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
60 B
Byte budget
LayerBytes
Outer IPv420
UDP8
WireGuard data header16
Poly1305 tag16
Inner IP packet1440

Questions

Can the inner and outer address families differ in WireGuard?

Yes. The outer family carries UDP to the peer. The inner family describes the packet carried by WireGuard.

Does switching this 1440-byte case to MTU-capped padding change the result?

Both padding profiles yield 1,440 here because the remaining budget already divides by 16.

References