TCP Window Size Calculator

Enter your link speed and round-trip time to calculate the optimal TCP window size that maximizes network throughput.

Link Parameters

Nominal line rate of your link (e.g. 1000 Mbps = 1 Gbps)

ms

Measured ping RTT to the remote host in milliseconds

Your current window to compare efficiency against optimal

Quick Presets

Enter link speed and RTT, then click Calculate.

Copied!

Summary

Enter your link speed and round-trip time to calculate the optimal TCP window size that maximizes network throughput.

How it works

  1. Enter your link speed in Mbps or Gbps.
  2. Enter the round-trip time (RTT) in milliseconds.
  3. The calculator computes the bandwidth-delay product: BDP = Bandwidth x RTT.
  4. The BDP is rounded up to the nearest power of two (required by some OS TCP stacks).
  5. Results are shown in bytes, kilobytes, and megabytes for easy reference.
  6. A throughput efficiency estimate shows the impact of a smaller window.

Use cases

  • Tune Linux tcp_rmem / tcp_wmem sysctl parameters for high-speed WAN links.
  • Size the TCP receive window for satellite or long-haul fiber connections.
  • Diagnose slow file transfers where the window is the bottleneck.
  • Plan buffer sizes for network appliances and load balancers.
  • Validate iperf3 --window flag values before benchmarking.
  • Educate network engineers on the BDP concept with real numbers.

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu