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.
Bandwidth-Delay Product (BDP)
—
Bytes
—
KB
—
MB
Recommended Window Size
—
Bytes
—
KB
—
MB
Theoretical Max Throughput
—
Mbps
—
Gbps
Current Window Efficiency
Efficiency
—%
—
Actual max Mbps
—
Throughput left on table
Linux Sysctl Reference
# Set maximum socket receive buffer
net.core.rmem_max = —
net.core.wmem_max = —
# TCP socket buffers: min default max
net.ipv4.tcp_rmem = 4096 87380 —
net.ipv4.tcp_wmem = 4096 87380 —
Copied!
Summary
Enter your link speed and round-trip time to calculate the optimal TCP window size that maximizes network throughput.
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 BDP is rounded up to the nearest power of two (required by some OS TCP stacks).
- 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.
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu