Network Packet Overhead Calculator

Every packet carries headers: Ethernet (14 bytes + 4 FCS, plus 8 preamble and 12 inter-frame gap on the wire), IPv4 (20) or IPv6 (40), and TCP (20 + options) or UDP (8). This shows how much of the link actually carries your data.

Also called: TCP/IP overhead calculator · Ethernet frame efficiency calculator

  • Last updated
  • Formula tested against reference values

Your numbers

IP version
Transport

12 with TCP timestamps (common on Linux); must be a multiple of 4.

VLAN tag

Result

Efficiency (data ÷ bytes on the wire)
—

Calculating…

Packets
—
Max data per packet (MSS)
—
Ethernet frame bytes
—
Bytes on the wire
—
Overhead
—

How to use this calculator

  1. Enter or choose application data to send.
  2. Enter or choose mTU.
  3. Enter or choose iP version.
  4. Enter or choose transport.
  5. Enter or choose vLAN tag.
  6. The efficiency (data ÷ bytes on the wire) updates as you type. Use Copy result or Share to keep it.

Method

MSS = MTU − IP header − TCP/UDP header; Packets = ⌈Data ÷ MSS⌉; Frame = 14 (+4 VLAN) + IP + L4 headers + data + 4 FCS, at least 64 bytes; Wire = Frames + 20 bytes per packet (preamble, SFD and inter-frame gap)

MTU
largest IP packet the link carries
MSS
largest data chunk per packet

Worked example

  1. MSS = 1,500 − 20 (IPv4) − 20 (TCP) = 1,460 bytes, so one packet.
  2. Frame = 14 + 1,500 + 4 = 1,518 bytes; on the wire add 8 + 12 = 1,538 bytes.
  3. Efficiency = 1,460 ÷ 1,538 = 94.93%.

A full-size TCP/IPv4 segment on standard Ethernet is 94.93% efficient, so a 1 Gbit/s link carries at most about 949 Mbit/s of TCP data.

What the result means

Small packets are very inefficient: one byte of UDP data still occupies 84 bytes of wire time. Larger MTUs (jumbo frames) raise efficiency only if every hop supports them.

Assumptions and limits

  • Data larger than one packet is split into full-size packets plus a final partial packet.
  • For UDP, the application sends separate datagrams rather than relying on IP fragmentation.
  • TCP acknowledgements, retransmissions and tunnel headers are not included.

Questions

Why is the minimum frame 64 bytes?

Ethernet requires at least 64 bytes from destination address to FCS so collisions can be detected; shorter frames are padded.

What MSS does IPv6 give on a 1,500-byte MTU?

1,500 − 40 − 20 = 1,440 bytes, 20 less than IPv4 because the IPv6 header is twice as long.