Free network utility
MTU and MSS Calculator
Estimate TCP MSS from an MTU for IPv4 or IPv6 and common tunnel overheads.
Planning output based on your inputs
The calculation checks the supplied values against standard networking rules. It cannot account for every router, switch, ISP, firmware, device limit, or existing configuration.
Before relying on the result: Record the current settings, change one item at a time, test the network, and keep a rollback path.
What this MTU and TCP MSS calculator estimates
Enter an underlying link MTU, choose a typical encapsulation profile, select the inner IP version, add known custom overhead, and choose a TCP option allowance. RouterNAT estimates the effective inner MTU, TCP MSS, application bytes in a full TCP segment, maximum UDP payload, and ICMP echo-data size. A comparison table shows common stacks at the entered link MTU. Everything runs in the browser. The calculator does not send probes, inspect packets, read an interface, change a router, or discover the actual Path MTU. Every result is a technically justified planning estimate that must be verified against the real protocol stack, current vendor documentation, packet capture, and authorized path testing.
MTU is a layer-specific limit
Maximum Transmission Unit describes the largest protocol data unit that a particular layer or interface can carry without requiring a lower-layer split. In ordinary router discussions, IP MTU usually means the largest complete IPv4 or IPv6 packet accepted on an interface. Ethernet framing, preamble, inter-packet gap, frame check sequence, and physical encoding are not all counted in that IP value. A 1500-byte Ethernet IP MTU therefore does not mean only 1500 bytes travel on the wire. Confusion appears when one device reports a Layer 2 frame size, another reports IP MTU, and a tunnel interface reports the inner packet limit. Always identify the layer, interface, direction, and whether the displayed number already includes encapsulation before subtracting any header.
TCP MSS is not the same as MTU
TCP Maximum Segment Size is the largest TCP data portion a host advertises that it is prepared to receive in one segment. For basic IPv4 at MTU 1500, subtract the minimum 20-byte IPv4 header and minimum 20-byte TCP header, producing MSS 1460. For IPv6, subtract the 40-byte IPv6 base header and minimum 20-byte TCP header, producing MSS 1440. MSS excludes the IP and TCP headers. It is negotiated in TCP SYN options and applies to TCP, not UDP, QUIC, ICMP, or every packet on the interface. An MSS-clamp rule modifies advertised TCP behavior; it does not directly reduce all IP packets, repair every Path MTU fault, or prove that a value is supported in both directions.
How the calculation model works
The tool begins with the underlying link MTU and subtracts the selected encapsulation plus custom overhead to estimate the inner MTU. From that value it subtracts the inner IP base header and minimum TCP header to estimate MSS. IPv4 normally contributes 20 bytes without options; IPv6 has a 40-byte base header, although extension headers add more. TCP contributes at least 20 bytes. UDP and ICMP echo each use an eight-byte header for the displayed payload estimate. These are arithmetic boundaries, not guarantees. Encryption padding, authentication tags, extension headers, nested tunnels, provider links, implementation choices, and a smaller downstream hop can change what succeeds. Start from the limit that applies immediately outside the encapsulation rather than subtracting an overhead that an intermediate interface has already accounted for.
Why ordinary Ethernet commonly uses 1500
A 1500-byte IP MTU is the widespread Ethernet baseline and produces the familiar IPv4 TCP MSS of 1460. It is not a universal internet constant. Broadband access, wireless systems, VPNs, overlays, mobile cores, cloud networks, and virtual switches can impose different limits. Some networks support baby giant frames to preserve a 1500-byte customer payload after provider or VLAN tags. Others expose a smaller IP MTU. Using 1500 because it is familiar can fail when another header must fit inside a fixed outer limit. Reducing every device to a very small number can mask the real fault, waste efficiency, increase packets per transfer, and leave inconsistent settings. Establish the actual bottleneck and ownership boundary before standardizing a value.
PPPoE and the 1492-byte result
PPPoE typically adds eight bytes of PPPoE and PPP overhead to traffic carried over an Ethernet service. When the underlying service cannot carry a larger frame, the customer-facing IP MTU becomes 1492. Basic IPv4 TCP then commonly uses MSS 1452, while basic IPv6 TCP uses MSS 1432. Whether a configuration field expects physical Ethernet MTU, PPP interface MTU, or an already-reduced payload depends on the platform; do not subtract eight twice. Some providers support larger Ethernet frames that preserve a 1500-byte PPP payload. Verify the WAN interface, provider requirement, and capture. If PPPoE is combined with a VPN, the tunnel overhead is usually deducted from the effective PPP payload, but the exact interface where that deduction belongs remains implementation specific.
GRE overhead depends on its exact form
A simple GRE tunnel over IPv4 is often estimated at 24 bytes: 20 for the outer IPv4 header and four for the basic GRE header. Optional checksum, key, sequence, routing fields, outer IPv6, security, or nested encapsulation increase the total. At an outer limit of 1500, subtracting 24 gives an inner MTU of 1476 and a basic inner IPv4 TCP MSS of 1436. That value is correct only for the stated stack. GRE over IPsec, GRE over PPPoE, or an MPLS/provider path requires cumulative accounting. Record headers in their on-wire order and confirm packet length in a capture taken on the appropriate pre- or post-encapsulation interface. Do not treat a copied GRE recommendation as proof that every optional header is absent.
WireGuard and the outer IP family
WireGuard commonly consumes about 60 bytes over outer IPv4 and about 80 over outer IPv6: an outer IP header, UDP header, WireGuard data header, and authentication tag. A 1500-byte path therefore suggests inner MTU 1440 for outer IPv4 or 1420 for outer IPv6 before PPPoE or another lower constraint. The inner TCP MSS also depends on whether the packet carried inside is IPv4 or IPv6. Implementations may choose conservative defaults, and mobile paths can change while a tunnel remains active. Do not copy one internet value into every peer. Consider both directions, endpoint routes, roaming networks, lower-layer PPPoE, and the smallest path actually used. Verify after changing endpoint software because defaults and offload behavior can evolve.
VXLAN and virtual overlays
VXLAN over outer IPv4 is often estimated near 50 bytes from outer Ethernet, IPv4, UDP, and VXLAN headers, although what counts against a configured MTU depends on the interface and platform. Outer IPv6 adds more. Data-center designs may increase underlay MTU so an ordinary 1500-byte tenant frame fits intact. If the underlay remains 1500, the overlay carries a smaller inner frame. Additional VLAN tags, encryption, service chaining, load balancers, and nested virtualization complicate the stack. A calculator can reserve stated overhead, but it cannot see whether a hypervisor performs segmentation offload, a virtual switch accepts larger frames, or one physical hop silently rejects them. Validate the tenant, tunnel, underlay, and physical interface views separately.
IPsec has no universal overhead number
IPsec ESP overhead varies with tunnel or transport mode, outer IPv4 or IPv6, encryption algorithm, integrity tag, initialization vector, padding alignment, NAT Traversal UDP encapsulation, and optional headers. A label such as IPsec equals 56 bytes can be wrong for another negotiated proposal. RouterNAT therefore uses the custom field for a value derived from current vendor documentation or measured packets rather than claiming one preset is authoritative. Padding can make final length depend on the inner payload. IKE negotiation establishes security associations but does not remove the need to account for the data-plane format. Recalculate after changing ciphers, NAT-T behavior, outer family, or tunnel nesting, and measure both directions if security associations are not symmetrical.
TCP options and application bytes
The advertised MSS convention subtracts the IP header and minimum 20-byte TCP header. TCP timestamps and other options occupy additional TCP header space. They can reduce application data in a full-size packet even when the MSS option still advertises the minimum-header result. The calculator therefore reports MSS separately from application bytes using the selected option allowance. This avoids subtracting timestamp bytes twice or labelling a reduced application payload as negotiated MSS. Actual option length can differ among SYN, data, retransmission, and control segments. Selective acknowledgment and window scaling are negotiated but do not necessarily occupy every data packet in the same way. Packet capture is the authoritative method for seeing header length, options, and payload for a specific flow.
IPv4 fragmentation and Don't Fragment
An IPv4 router can fragment an eligible packet that exceeds the next-hop MTU, but fragmentation is operationally fragile. If Don't Fragment is set, the router should drop the oversized packet and return ICMP Destination Unreachable, fragmentation needed, including a usable next-hop MTU where supported. The sender can reduce packet size. Firewalls, tunnels, load balancers, asymmetric routing, or broken devices may block or mishandle that feedback. Losing one fragment discards the useful work of the original packet, and middleboxes can treat fragments inconsistently. Correct interface MTU and discovery behavior is preferable to routine in-path fragmentation. The calculator does not determine whether DF is set, whether ICMP returns, or whether a device reassembles fragments safely.
IPv6 fragmentation is endpoint controlled
IPv6 routers do not fragment transit packets. When a packet is too large, a router should send ICMPv6 Packet Too Big so the source can reduce its packet size. The source can use an IPv6 Fragment extension header when necessary. IPv6 requires a minimum link MTU of 1280 bytes. If the calculated inner IPv6 MTU falls below 1280, RouterNAT raises a warning rather than presenting the result as an ordinary safe interface value. Tunnels may need defined fragmentation and reassembly behavior to carry IPv6 across a smaller underlying link. Blocking essential ICMPv6 can break Path MTU Discovery, neighbor discovery, and other core functions. Never apply an IPv4 firewall assumption blindly to ICMPv6.
Path MTU is the smallest effective hop
Interface MTU describes one local boundary; Path MTU is the smallest effective MTU along the complete route. Forward and return paths can differ, and routing changes over time. A local 1500-byte interface does not prove that packets survive a VPN, provider core, cloud edge, mobile link, or remote network. Classical PMTUD relies on ICMP or ICMPv6 feedback. Packetization Layer PMTUD can use transport-layer probes and acknowledgments to reduce dependence on network messages. This browser calculator performs neither method. It estimates one documented stack and must never be described as measuring the internet path. A value can fit the local tunnel and still fail later, while a conservative local value may work even though the path supports more.
How an MTU black hole appears
A Path MTU black hole occurs when larger packets are discarded and the sender does not receive or act on feedback. Small packets may work, DNS may resolve, ping with a default payload may succeed, and a TCP handshake may complete, while HTTPS stalls during certificate exchange, transfers freeze, a VPN partly works, or particular sites fail. These symptoms are not unique to MTU: DNS filtering, packet loss, firewall policy, congestion, proxy defects, and application bugs can look similar. Compare packet sizes, capture retransmissions, review ICMP filtering, and test from controlled endpoints. Lowering MTU until a symptom disappears is useful evidence but not a complete root-cause analysis. Continue until the missing feedback, hidden header, or inconsistent interface is understood.
MSS clamping helps TCP only
A router can clamp MSS in passing TCP SYN packets so endpoints choose segments that fit a known smaller path. This is useful where the router controls a tunnel or PPPoE edge and PMTUD is unreliable. It does not change UDP, QUIC, ICMP, non-TCP tunnels, or established TCP sessions. It cannot repair a wrong interface MTU, inconsistent tunnel endpoints, blocked return route, or a link dropping smaller packets. Apply clamping in the correct direction and policy chain according to vendor behavior. Avoid a value larger than the effective path and do not choose an unnecessarily small value without evidence. Verify SYN options and subsequent data packets after the change rather than trusting the configuration display alone.
UDP and QUIC require separate reasoning
UDP has an eight-byte header but no TCP MSS negotiation. Applications using UDP must size datagrams, perform probing, or rely on IP-layer behavior. QUIC runs over UDP and includes transport mechanisms that can adapt, but that does not make every oversized datagram safe. VPNs also frequently use UDP while carrying inner TCP and UDP, creating distinct sizing layers. RouterNAT reports a maximum UDP payload estimate by subtracting the inner IP and UDP headers. Extension headers, application framing, encryption, and actual Path MTU can reduce it. A TCP MSS fix can make web browsing appear healthy while DNS over UDP, voice, games, video, or the VPN transport still suffers. Test the protocols that matter to the reported symptom.
ICMP echo payload and ping testing
For a basic ICMP echo packet, subtract the IP header and eight-byte ICMP header from the tested IP packet size. A 1472-byte IPv4 echo payload plus a 20-byte IPv4 and eight-byte ICMP header equals 1500. If PPPoE reduces the path to 1492, the comparable payload is 1464. Windows and Linux ping options differ, and IPv6 tools differ again, so read local documentation. Successful echo does not prove that every protocol or direction supports the same size because policy, routes, encapsulation, load balancing, and remote handling vary. Test endpoints you control, begin from a known working size, prohibit fragmentation where supported, increase methodically, and record both the payload and complete packet size.
A safe verification workflow
Document the topology and current interface values, preserve a rollback path, and test only authorized endpoints. Establish a small working packet, increase size in measured steps, and narrow the boundary. Observe ICMP Fragmentation Needed or ICMPv6 Packet Too Big, retransmissions, fragment headers, and packet length on both sides of encapsulation. Repeat in both directions and through the real application path. Account for load balancing or mobile transitions. When arithmetic and observation differ, investigate hidden encapsulation, provider policy, capture position, and offload. Make one reversible change during a maintenance window, then validate browsing, large HTTPS transfers, IPv4, IPv6, VPN traffic, UDP applications, and inbound services. Do not infer a universal internet MTU from one remote destination.
Packet capture and offload can mislead
Checksum offload, TCP segmentation offload, generic segmentation offload, and receive offload let the operating system present packets larger or less finalized than those transmitted. A host capture may show a large TCP buffer before hardware segments it or an unverified checksum that hardware later completes. Tunnel interfaces show inner packets while physical interfaces show outer packets. Capture on the correct interface and, if necessary, adjust offload only in a controlled diagnostic window. Correlate sequence numbers and timestamps across points. Do not declare jumbo support because one pre-offload capture displays a large logical packet. Interface counters for drops, giants, fragments, ICMP errors, and tunnel failures should be correlated with the capture and application timing.
Jumbo frames require end-to-end domain support
Jumbo MTU such as 9000 can reduce per-packet processing overhead in storage and data-center environments, but every endpoint, switch port, trunk, routed interface, tunnel, and monitoring path must support the chosen size or handle its boundary. Vendors define maximum frame size differently; one includes Ethernet headers while another exposes IP MTU. Mixing 9000 and 9216 without identifying counted bytes creates failures. Jumbo frames do not make a residential internet path accept oversized packets and do not automatically improve latency. Deploy them only inside a controlled domain with documented requirements, uniform configuration, counter monitoring, and rollback tests. Confirm that management, backup, failover, and virtual paths use the same intended frame policy.
VLAN tags and nested encapsulation
An 802.1Q tag adds four bytes to an Ethernet frame, but many devices support a correspondingly larger tagged frame while preserving 1500-byte IP MTU. Blindly subtracting four for every VLAN can therefore underestimate payload. Provider QinQ or constrained hardware can differ. For nested tunnels, list every outer header in on-wire order and avoid subtracting overhead already reflected in an intermediate interface. Direction matters when NAT-T or outer families differ. Use custom overhead only when its derivation is documented. Calculate typical and worst-case sizes where padding varies, then compare captured outer lengths with the lower-layer limit. Keep Layer 2 maximum frame size, IP MTU, tunnel MTU, and TCP MSS as separate fields in design documentation.
Common mistakes and decision rule
Frequent mistakes include confusing frame size with IP MTU, treating MSS as a UDP setting, subtracting PPPoE twice, using outer IPv4 overhead for outer IPv6, assuming all IPsec proposals are equal, blocking necessary ICMP, testing only small pings, and changing every client instead of fixing a controlled edge. Another mistake is lowering MTU dramatically and declaring success without finding why discovery failed. Very small packets increase overhead and processing load. Do not change a managed router merely because a calculator returns a number. Collect vendor and provider requirements, counters, packet evidence, and controlled results first. If a reversible change restores service, verify every important protocol and continue investigating the failed adaptation.
Router and firewall counter evidence
Interface counters can reveal oversize frames, input errors, discarded packets, IPv4 fragments, reassembly failures, ICMP errors, tunnel drops, and queue loss. Read counters before the test, reproduce one controlled transfer, then read them again so historical totals are not mistaken for the current event. A rising giant-frame counter at one switch port supports a Layer 2 size mismatch, while repeated TCP retransmissions without corresponding link errors can point farther along the path. Counter names and counting stages differ among vendors, and hardware acceleration can bypass a software view. Correlate counters with timestamped packet captures, tunnel statistics, routing, and application logs. One zero counter never proves that an MTU problem is absent.
Asymmetric paths and direction-specific failures
The largest working packet can differ by direction because routing, tunnels, provider peering, firewalls, and encapsulation are not necessarily symmetrical. A download may succeed while an upload stalls, or one VPN subnet may fail while another works. TCP MSS is advertised independently by each endpoint for data it receives, so clamping only one SYN direction can leave the opposite flow oversized. ICMP feedback must also return to the correct source through the active policy. Test client-to-server and server-to-client traffic, capture both tunnel endpoints where possible, and record the observed route. A single successful outbound ping does not validate the reverse application path or an inbound forwarded connection.
DNS, TLS, and application symptoms
MTU incidents are frequently misdiagnosed because name resolution and a short TCP handshake use small packets. A browser can resolve the hostname and connect, then stall when a larger TLS certificate chain, HTTP response, or upload crosses the broken boundary. Another site may work because its packets, route, address family, content delivery edge, or QUIC fallback differs. Compare IPv4 and IPv6, TCP and UDP, the same destination through and outside the tunnel, and small versus large transfers. Do not change DNS merely because a hostname-based test fails after resolution. Capture the sequence to identify whether the failure occurs during DNS, connection establishment, TLS, transport data, or application processing.
Recalculate after network changes
Recheck the complete calculation after every topology, tunnel, cipher, provider, firmware, or protocol change.
Privacy, limitations, and final validation
Inputs remain in the browser and are not submitted as a tool calculation. RouterNAT does not know the user's interface, provider, cipher, tunnel negotiation, route, endpoint, extension headers, or actual TCP options. Presets are typical planning values, not vendor configuration or guaranteed safe clamps. The comparison rows are alternatives at the entered link MTU, not simultaneous layers. Verify the smallest path with current official documentation and authorized testing. Preserve essential ICMP and ICMPv6 rather than hiding a symptom. Document the validated MTU and MSS with topology, direction, outer and inner families, tunnel proposal, test method, date, rollback, and evidence so a later provider, firmware, cipher, or routing change triggers a fresh review.
A smaller MTU cannot bypass provider NAT. Classify the router WAN value with the IP address type checker, compare it with What Is My IP, and use the CGNAT checker when inbound IPv4 ownership is uncertain.
If only hostnames fail, inspect A and AAAA records with the DNS lookup tool before changing packet size. For a problem isolated to one client, follow the single slow Wi-Fi device guide so radio, driver, VPN, DNS, and MTU evidence are separated.
MTU calculation is separate from inbound NAT. Build an authorized rule with the port forwarding planner, identify the service in the common ports reference, and test only your own connection with the open port checker.
Privacy and responsible use
This calculation runs locally in your browser. RouterNAT does not receive or save the values entered into this tool. Use the result only for lawful network administration and troubleshooting.
Related RouterNAT guides
To understand WAN and public-address differences, read the complete CGNAT detection guide before changing NAT or port-forwarding settings.

Comments
Leave a Comment
Your email address will not be published. Comments are reviewed before appearing.