MTU Calculator
Choose a connection type and the page shows a typical MTU for it: 1500 for Ethernet and VLAN Tagged, 1492 for PPPoE, 1476 for GRE, 1420 for WireGuard, and a conservative 1400 for IPsec and OpenVPN. It also shows the TCP MSS for IPv4 and IPv6, a table of the headers behind the number, and commands for setting that MTU on Linux, Windows, and macOS. Custom MTU accepts any whole number from 576 to 9000. These are rules of thumb, not a measurement of your path.
How to find the right MTU and MSS
- Select a Connection Type: Ethernet (Standard), PPPoE (DSL/Fiber), VPN (IPsec), VPN (OpenVPN), VPN (WireGuard), GRE Tunnel, VLAN Tagged, or Custom MTU.
- For Custom MTU, type a whole number from 576 to 9000 into the Custom MTU (bytes) field that appears.
- Read MTU Settings, which updates as you choose: the Recommended MTU, Protocol Overhead (how far the MTU sits below 1500), and the TCP MSS for IPv4 (MTU minus 40 bytes) and IPv6 (MTU minus 60 bytes). Calculate Settings runs the same calculation again.
- Review Overhead Breakdown. Its first group lists the headers added inside the 1500-byte link MTU, and their total equals Protocol Overhead. The IP and TCP headers and the Ethernet framing are listed separately. Then copy a line from Configuration Commands. Interface names such as
eth0,wg0, and"Ethernet"are examples, so substitute your real interface name before running them.
Why tunnels need a smaller MTU
A packet larger than the link MTU is fragmented or dropped, and a tunnel wraps every inner packet in extra headers. On a 1500-byte Ethernet link, PPPoE takes 8 bytes (hence 1492), GRE over IPv4 takes 24 (hence 1476), and WireGuard takes up to 80 bytes over IPv6, which is why 1420 is its usual default. The inner interface MTU has to shrink by that amount, or large packets will not get through.
MSS is the largest TCP payload per segment: the MTU minus 20 bytes of IPv4 header and 20 of TCP header, so 1460 on plain Ethernet. MSS clamping on a router is the standard fix for connections that stall on large transfers because path MTU discovery messages are being filtered, a common reason pages load halfway and hang.
The IPsec and OpenVPN presets of 1400 are conservative round numbers, since real overhead depends on cipher, mode, and options. The breakdown lists the headers of one common setup (AES-GCM over IPv4) and shows the rest as a safety margin. VLAN Tagged stays at 1500 because the 4-byte 802.1Q tag enlarges the frame to 1522 bytes and leaves the IP MTU alone. To find the real limit, ping with the don't-fragment flag and shrink the size until it passes: ping -M do -s 1372 host on Linux or ping -f -l 1372 host on Windows, then add 28 bytes for the ICMP and IP headers.