01What is MTU Calculator?
MTU trouble has a classic signature. SSH logs in fine, small API calls work, and then a large download or a TLS handshake just hangs. Usually a tunnel or PPPoE link has shrunk the room for each packet and something along the path is dropping the oversized ones. This calculator gives you the byte counts to reason about it. You enter the MTU of the underlying link, anywhere from 68 to 65535 bytes, and choose what runs over it. The Protocol list covers plain IPv4 and IPv6, PPPoE, GRE, WireGuard, IPsec tunnel and transport mode, VXLAN and MPLS. The maths follows the header sizes in the relevant RFCs. Encapsulation comes off the link MTU first, which gives the Inner IP MTU. PPPoE takes 8 bytes (6 PPPoE plus 2 PPP, per RFC 2516). GRE over IPv4 takes 24. WireGuard over IPv4 takes 60: 20 outer IP, 8 UDP and 32 for its own header and auth tag. VXLAN takes 50, which includes the inner Ethernet header from RFC 7348. One MPLS label adds 4. IPsec ESP is the fuzzy one, so the tool uses 73 bytes for tunnel mode and 53 for transport mode, a worst case for AES-CBC with HMAC-SHA1-96. From the inner MTU it then removes the inner IP header (20 bytes for IPv4, 40 for IPv6) and a 20-byte TCP header to get the MSS. It removes an 8-byte UDP header for the largest UDP payload. Efficiency is MSS divided by the link MTU. Take a 1500-byte Ethernet link. Plain IPv4 gives an MSS of 1460 at 97.3% efficiency. WireGuard drops that to an inner MTU of 1440 and an MSS of 1400 at 93.3%. The Protocol Comparison table lists all nine options for your MTU at once, so you can see that GRE lands at 1436 and VXLAN at 1410 without retyping anything. Some limits to keep in mind. Every tunnel option assumes IPv4 both outside and inside, so WireGuard over IPv6 needs 20 more bytes than shown. The MSS ignores TCP options such as timestamps and IP options. Only one MPLS label is counted. The figures are arithmetic, not a probe of your real path, so confirm them with ping and the do-not-fragment flag.
Network engineers and platform teams sizing tunnel, PPPoE and overlay MTUs before a VPN or Kubernetes rollout. The tool runs entirely in your browser, so your data never leaves your device.
02How to use MTU Calculator
- Type the link's MTU (bytes), for example 1500 or 9000, or pick one of the examples.
- Choose a Protocol and read the overhead line under the inputs.
- Check the MSS (TCP), Max UDP Payload, Inner IP MTU and Efficiency cards.
- Scan the Protocol Comparison table to see every option at the same MTU.
- Click Copy for a plain-text summary, or the reset button to return to 1500 and IPv4.
03Worked examples
- Input:
MTU 1500, IPv4 - Result:
MSS 1460; Max UDP Payload 1472; Efficiency 97.3% - 1500 minus 20 bytes of IPv4 and 20 of TCP gives the familiar 1460.
- Input:
MTU 1500, IPv6 - Result:
MSS 1440; Max UDP Payload 1452; Efficiency 96.0% - The fixed IPv6 header is 40 bytes, 20 more than IPv4.
- Input:
MTU 1500, PPPoE - Result:
Inner IP MTU 1492; MSS 1452; Max UDP Payload 1464 - PPPoE takes 8 bytes, which is where the common 1492 DSL MTU comes from.
- Input:
MTU 1500, WireGuard - Result:
Inner IP MTU 1440; MSS 1400; Max UDP Payload 1412; Efficiency 93.3% - Uses the 60-byte overhead for WireGuard over IPv4.
- Input:
MTU 1500, IPsec Tunnel - Result:
Inner IP MTU 1427; MSS 1387; Max UDP Payload 1399; Efficiency 92.5% - Based on a 73-byte worst case for AES-CBC with HMAC-SHA1-96. Other ciphers give different overhead.
- Input:
MTU 9000, VXLAN - Result:
Inner IP MTU 8950; MSS 8910; Efficiency 99.0% - With jumbo frames the 50-byte VXLAN overhead barely registers, compared with 94.0% at MTU 1500.
04Common use cases
- Picking the MSS clamp value for a router on a PPPoE DSL or fibre link with a 1492-byte MTU
- Setting the interface MTU on both ends of a WireGuard, GRE or IPsec site-to-site tunnel
- Checking VXLAN overhead before choosing the pod network MTU for a Kubernetes CNI such as Flannel or Calico
- Showing a storage team how much payload 9000-byte jumbo frames gain over 1500
- Debugging a VPN where small requests succeed but large file transfers stall
- Working through TCP/IP header sizes for a networking course or certification lab
05Tips
- Enter the outer link's MTU, not the tunnel's. The Inner IP MTU card is the number to set on the tunnel interface itself.
- WireGuard's usual default of 1420 leaves room for an IPv6 outer header. If the tunnel only ever runs over IPv4, 1440 works.
- Linux turns on TCP timestamps by default, which cost 12 bytes per segment, so real data per packet is often 12 less than the MSS shown.
- Stack MPLS labels by adding 4 bytes each yourself. The tool counts only one label.
- If a firewall drops the ICMP messages that path MTU discovery depends on, MSS clamping on the router is the usual fix.
06Related concepts
MTU, MSS, Encapsulation overhead, Path MTU discovery, Jumbo frames, IP fragmentation.
Frequently Asked Questions
What is MTU Calculator?
MTU Calculator is a free, browser-based developer tool on AIDToolStack. Calculate MTU/MSS for different protocols It requires no installation or sign-up and works entirely in your browser.
Is MTU Calculator free to use?
Yes. No sign-up, no fees and no usage cap.
Does MTU Calculator store my data?
No. It runs in your browser; nothing is uploaded.