Calculator
Bandwidth Calculator
Estimate ingress and egress bandwidth in Mbps from request rate and payload sizes, plus daily and monthly data transfer.
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
- bytes per second out = RPS × response size × (1 + overhead)
- bytes per second in = RPS × request size × (1 + overhead)
- bandwidth (bit/s) = bytes per second × 8
- peak bandwidth = average bandwidth × peak factor
- egress per day = average bytes per second out × 86,400
- egress per month = egress per day × 30
Inputs
| Input | Unit | Range | Default |
|---|---|---|---|
| Average requests per second | req/s | 0 – 100,000,000 | 1,000 |
| Peak-to-average factor | × | 1 – 50 | 3 |
| Average response sizeBody and headers, after compression. | KB | 0 – 10,000,000 | 50 |
| Average request size | KB | 0 – 10,000,000 | 2 |
| Protocol overheadTCP/IP, TLS and HTTP framing on top of the payload. | % | 0 – 100 | 10 |
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%.
| Average requests per second | 1,000 req/s |
|---|---|
| Peak-to-average factor | 3 × |
| Average response size | 50 KB |
| Average request size | 2 KB |
| Protocol overhead | 10 % |
| Peak egress | 1.32 Gbps |
|---|---|
| Average egress | 440 Mbps |
| Peak ingress | 52.8 Mbps |
| Average ingress | 17.6 Mbps |
| Egress per day | 4.75 TB |
| Egress per month | 142.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.