MTU Size Calculator

Calculate optimal MTU size, payload capacity, and overhead for different encapsulation types including VXLAN, GRE, and IPsec.

Layer 2 frame payload
bytes
Per-message data size
bytes
For bandwidth estimate
Custom headers, shims
bytes
Inner MTU
1,450.00 bytes
Set inner interface MTU to this
TCP MSS
1,410.00 bytes
IPv4 + TCP headers subtracted
UDP Max Payload
1,422.00 bytes
inner MTU minus IP + 8B UDP header
Total Overhead
50.00 bytes
VXLAN
Payload Efficiency
94.00%
1,410.00 usable of 1,500.00 bytes
Overhead Ratio
3.33%
50.00 of 1,500.00 bytes
Fragmentation
No
payload fits in one segment
Wire Efficiency
93.33%
1,000,000 bytes overhead for 10,000 packets

Overhead Visualization

Encapsulation
50B
IP Header
20B
TCP Header
20B
Custom
0B
Payload (MSS)
1410B

Encapsulation Comparison

EncapsulationOverheadInner MTUTCP MSSEfficiency
None (raw)0B1,500.00B1,460.00B97.30%
VXLAN50B1,450.00B1,410.00B94.00%
Geneve50B1,450.00B1,410.00B94.00%
GRE24B1,476.00B1,436.00B95.70%
GRE + Key28B1,472.00B1,432.00B95.50%
IPsec (AES-GCM)50B1,450.00B1,410.00B94.00%
IPsec (AES-CBC)73B1,427.00B1,387.00B92.50%
WireGuard60B1,440.00B1,400.00B93.30%
MPLS (1 label)4B1,496.00B1,456.00B97.10%
MPLS (2 labels)8B1,492.00B1,452.00B96.80%
PPPoE8B1,492.00B1,452.00B96.80%
802.1Q VLAN4B1,496.00B1,456.00B97.10%
Q-in-Q (double VLAN)8B1,492.00B1,452.00B96.80%
Common MTU Reference
MediumMTUNotes
Ethernet1500IEEE 802.3 standard
Jumbo Frame9000Data center, requires switch support
PPPoE (DSL)14928B PPPoE overhead
ATM (AAL5)9180Legacy WAN
IPv6 minimum1280Required by RFC 8200
Loopback65535OS internal
Planning notes, formulas, and examples

About the MTU Size Calculator

Maximum Transmission Unit (MTU) is the largest packet size a network link can transmit without fragmentation. Standard Ethernet MTU is 1500 bytes. However, encapsulation protocols (VXLAN, GRE, IPsec) add headers that reduce the available payload, potentially causing fragmentation and performance degradation.

This calculator determines the effective payload size after accounting for various encapsulation overheads. It helps network engineers set inner MTU values correctly to avoid fragmentation when using overlay networks, VPNs, or tunneling protocols.

MTU mismatches are a subtle but impactful source of network issues. When a packet exceeds the MTU of a link, it must be fragmented (adding overhead and delay) or dropped (causing TCP retransmissions). Proper MTU configuration prevents both scenarios.

When This Page Helps

MTU mismatches cause fragmentation, packet drops, and mysterious connectivity issues. This calculator ensures correct MTU settings for encapsulated traffic, preventing performance degradation.

How to Use the Inputs

  1. Enter the physical link MTU (typically 1500 for standard Ethernet, 9000 for jumbo frames).
  2. Select the encapsulation type (none, VXLAN, GRE, IPsec, etc.).
  3. Review the encapsulation overhead and effective payload.
  4. Set inner interface MTU to the effective payload value.
Formula used
Effective Payload = physical_MTU โˆ’ encapsulation_overhead VXLAN Overhead = 50 bytes (8 VXLAN + 8 UDP + 20 IP + 14 Ethernet) GRE Overhead = 24 bytes (4 GRE + 20 IP) IPsec Overhead = 50โ€“73 bytes (varies by cipher)

Example Calculation

Result: Effective payload: 1450 bytes

Physical MTU 1500 bytes โˆ’ 50 bytes VXLAN overhead = 1450 bytes effective payload. Set inner VM/container MTU to 1450 to prevent fragmentation. Alternatively, use jumbo frames (MTU 9000) for the physical network to support full 1500-byte inner packets.

Tips & Best Practices

  • Use jumbo frames (MTU 9000) on the physical network to accommodate overlay overhead.
  • Set container/VM MTU to physical MTU minus encapsulation overhead.
  • Test MTU with ping -f -s <size> (ping with don't-fragment flag).
  • AWS EC2 instances in the same VPC support jumbo frames (MTU 9001).
  • Kubernetes CNI plugins typically auto-configure pod MTU based on node MTU.
  • Monitor TCP MSS (Maximum Segment Size) to verify effective MTU.

MTU and Network Performance

Larger MTU means fewer packets for the same data, reducing per-packet overhead (headers, interrupts, context switches). This is why jumbo frames (MTU 9000) improve throughput by 10โ€“30% in data center networks. However, larger packets also mean more data retransmitted on packet loss.

Overlay Network MTU Management

Modern cloud and container networking relies heavily on overlay protocols (VXLAN, Geneve, WireGuard). Each adds overhead that reduces effective MTU. The best practice is jumbo frames on the physical/underlay network, preserving full 1500-byte MTU for tenant/overlay traffic.

Path MTU Discovery

Path MTU Discovery (PMTUD) uses ICMP Packet Too Big messages to determine the smallest MTU along a network path. When firewalls block ICMP, PMTUD fails silently, causing TCP connections to stall for large packets. Always allow ICMP Type 3 Code 4 through firewalls.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Standard Ethernet MTU is 1500 bytes. This is the payload of an Ethernet frame, not including the 14-byte Ethernet header and 4-byte FCS. Most networks default to this value. Jumbo frames increase MTU to 9000 bytes but require end-to-end support.