VoIP Bandwidth Calculator
A voice codec quote such as "8 kb/s" is only the payload. Every packet also carries RTP, UDP, IP and often an Ethernet header, and at twenty milliseconds those headers are a large share of the total. Pick a codec and framing, and this returns the bandwidth one call needs, both directions, and how many calls fit on a link.
What one call needs
On the wire, per direction
- Voice per packet
- Headers per packet
- Packets per second
- Layer 3 rate
- Both directions
- Calls on link
—
| Packet time | Packets/s | Voice bytes | On the wire |
|---|
How the bandwidth is worked out
- Payload follows from the codec and the packet time. A 64 kb/s codec carries
64 × ptime / 8bytes of encoded voice per packet, so twenty milliseconds is 160 bytes. A 10 ms packet carries half of that, and the packet rate doubles to a hundred packets a second. - Headers do not shrink with the codec. Each packet adds 12 bytes of RTP, 8 of UDP and 20 of IPv4 (40 for IPv6). Ethernet adds 18 bytes of header and frame check sequence, or 38 if the preamble and inter-frame gap are counted as well. G.711 at 20 ms therefore carries 160 bytes of voice in a 218-byte frame.
- Bandwidth is the frame size times the packet rate. Fifty packets a second of 218 bytes is 87.2 kb/s on the wire for a 64 kb/s codec, and 80 kb/s if the Ethernet framing is left out. Doubling the link's scope to both directions doubles that figure again.
- Low-bitrate codecs save less than the ratio suggests. G.729 at 20 ms puts 20 bytes of voice against 58 bytes of headers, so it still needs 31.2 kb/s on Ethernet: the payload fell by eight times, the total by less than three. That is why header compression and packet aggregation matter on narrow links.
- The call count divides the link by both directions. A call is symmetric, so a link carrying each call in both directions loses twice the per-call figure per call; the result is rounded down, and a single call that does not fit returns zero. Signalling, jitter buffers and protocol overhead on top of RTP are not part of it.
- What it does not do. No silence suppression, no RTP header compression, no SRTP overhead, no retransmission, no codec lookahead or jitter-buffer delay, no traffic shaping and no variable-rate codecs such as Opus, whose payload size depends on the encoder's setting and mode. Everything runs in your browser with no storage, uploads or network access.