TCP Window Size Calculator
Enter your link speed and round-trip time to calculate the optimal TCP window size that maximizes network throughput.
Use the TCP Window Size Calculator
Link Parameters
Nominal line rate of your link (e.g. 1000 Mbps = 1 Gbps)
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.
Bandwidth-Delay Product (BDP)
Recommended Window Size
Theoretical Max Throughput
Current Window Efficiency
Linux Sysctl Reference (2× BDP for Kernel Overhead)
Summary
The TCP window size determines how much data can be in-flight on the network before an acknowledgment is required. Too small a window throttles throughput; the ideal size equals the bandwidth-delay product (BDP) — the amount of data that fills the pipe end-to-end. This calculator takes your link speed and round-trip time, computes the optimal TCP window size, and provides tuned Linux socket buffer (sysctl) settings accounting for kernel overhead.
How it works
- Enter your link speed in Mbps or Gbps.
- Enter the round-trip time (RTT) in milliseconds.
- The calculator computes the bandwidth-delay product: BDP = Bandwidth x RTT.
- The optimal receive window equals the BDP, while Linux sysctl buffers are scaled to 2× BDP for kernel sk_buff overhead.
- Results are shown in bytes, kilobytes, and megabytes for easy reference.
- 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.