TCP MSS from MTU Calculator
Estimates TCP MSS from link MTU, subtracting IP and TCP headers.
—
TCP MSS, MTU & IP Overhead
The Maximum Segment Size (MSS) is the biggest chunk of TCP payload you can pack into one IP packet without it fragmenting. You get it straight from the link MTU (Maximum Transmission Unit) by peeling off the network and transport headers: MSS = MTU - IP_header(20) - TCP_header(20). Run the numbers for standard Ethernet at MTU 1500 bytes and MSS lands at 1500 - 20 - 20 = 1460 bytes per segment.
IPv6 carries a 40-byte base header instead of the 20 in IPv4, so MSS drops to 1440 bytes on that same 1500 MTU link. Move into datacenters and storage networks and jumbo frames at MTU 9000 take MSS all the way up to 8960 bytes, which slashes the per-byte CPU cost of bulk transfers. Get the MSS wrong and you invite IP fragmentation, or something nastier: black-holed packets, the kind you see when a firewall drops ICMP and breaks PMTU discovery.
Applications
MSS math shows up across a network engineer's day. It sizes VPN tunnels, where IPsec/GRE/WireGuard pile on 20-80 bytes of overhead. It drives MSS clamping on edge routers and Path MTU Discovery tuning under RFC 8201 for IPv6. And it feeds capacity planning on high-throughput links, where jumbo frames mean 6× fewer packets per gigabyte.
FAQ
Why is MSS 1460 and not 1500? Because MTU measures the whole IP packet (headers + payload), while MSS only counts the TCP payload. Knock off the 20 + 20 bytes of IPv4 and TCP headers and you're left with 1460.
What is MSS clamping? A router edits the MSS option inside the TCP SYN, forcing a smaller value so traffic doesn't fragment on tunnels where the effective MTU has shrunk, like PPPoE running at MTU 1492.
When should I use jumbo frames? Keep them inside a controlled L2 segment (datacenter, SAN, iSCSI) where every device actually handles MTU 9000. Don't reach for them on the public Internet, since intermediate hops will just fragment or drop anything oversized.
Related Tools
MTU Calculator by Tunnel Encapsulation
Subtracts tunnel overhead from a base MTU of 1500 bytes: PPPoE 8, GRE 24, VXLAN 50, IPsec 56. Returns the effective size to set on the link.
MSS from MTU: TCP Maximum Segment Size
Subtracts the IP and TCP headers from a link MTU, 40 bytes on IPv4 and 60 on IPv6, so 1500 leaves 1460 and 1440 bytes of payload per segment.
HTTP/3 QUIC Overhead Calculator
Computes useful HTTP/3 payload over QUIC, subtracting UDP, QUIC and TLS overhead.
VXLAN Overhead Calculator
Computes effective payload MTU on VXLAN by subtracting outer Ethernet, IP, UDP and VXLAN headers.
HTTP/2 Multiplex Streams Calculator
Estimates how many HTTP/2 streams fit per window from MTU and average frame size.
TCP Window BDP Calculator
Computes ideal TCP window size from bandwidth (Mbps) and RTT (ms) using bandwidth-delay product.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.