Calculator

Bandwidth Calculator

Estimate ingress and egress bandwidth in Mbps from request rate and payload sizes, plus daily and monthly data transfer.

Inputs

Body and headers, after compression.

TCP/IP, TLS and HTTP framing on top of the payload.

Results

Peak egress

1.32 Gbps

The link and instance limits must cover this.

Average egress
440 Mbps
Peak ingress
52.8 Mbps
Average ingress
17.6 Mbps
Egress per day
4.75 TB
Egress per monthWhat egress pricing is applied to.
142.56 TB

How it works

Bandwidth is request rate multiplied by bytes per request. The two directions are sized separately: ingress (requests coming in) is usually small, while egress (responses going out) dominates for anything that serves pages, images or API payloads.

Network links and cloud instance limits are quoted in bits per second, but payloads are measured in bytes, so the calculation multiplies by eight. Protocol overhead (TCP/IP and TLS framing, HTTP headers) adds a few percent to a few tens of percent depending on payload size; small responses carry proportionally more overhead.

Two numbers come out of this. Peak bandwidth tells you whether a link, load balancer or instance type can carry the traffic. Daily and monthly transfer tell you what egress will cost, which on public clouds is often the line item that surprises teams, and is the main argument for a CDN.

Formula

  1. bytes per second out = RPS × response size × (1 + overhead)
  2. bytes per second in = RPS × request size × (1 + overhead)
  3. bandwidth (bit/s) = bytes per second × 8
  4. peak bandwidth = average bandwidth × peak factor
  5. egress per day = average bytes per second out × 86,400
  6. egress per month = egress per day × 30

Inputs

Every input with its unit, allowed range and default.
InputUnitRangeDefault
Average requests per secondreq/s0 – 100,000,0001,000
Peak-to-average factor×1 – 503
Average response sizeBody and headers, after compression.KB0 – 10,000,00050
Average request sizeKB0 – 10,000,0002
Protocol overheadTCP/IP, TLS and HTTP framing on top of the payload.%0 – 10010

Assumptions

  • Decimal units: 1 KB = 1,000 bytes, 1 Mbps = 1,000,000 bit/s, as network vendors and cloud providers quote them.
  • Response size is what actually crosses the wire, so measure it after compression.
  • Overhead is a flat percentage. Real overhead is roughly fixed per packet and per request, so it is relatively larger for small payloads.
  • Transfer totals use the average rate, not the peak, and a 30-day month.
  • Traffic served by a CDN cache does not reach your origin; apply your expected hit ratio to the RPS to estimate origin bandwidth.

Worked example

An API serves 1,000 requests per second on average with a 3× evening peak. Responses average 50 KB, requests 2 KB, and protocol overhead adds about 10%.

Inputs
Average requests per second1,000 req/s
Peak-to-average factor3 ×
Average response size50 KB
Average request size2 KB
Protocol overhead10 %
Results
Peak egress1.32 Gbps
Average egress440 Mbps
Peak ingress52.8 Mbps
Average ingress17.6 Mbps
Egress per day4.75 TB
Egress per month142.56 TB

Average egress is 440 Mbps, peak egress 1.32 Gbps: more than a single 1 Gbps link, so the origin needs either faster links, several servers or a CDN in front. The service ships about 4.75 TB a day, roughly 143 TB a month, which is a real cost line at typical cloud egress prices.

Load this example into the calculator