Jitter Buffer Calculator: RFC 3550 Jitter and Delay

This jitter buffer calculator sizes the playout buffer of a voice or video endpoint. Enter the measured jitter, or paste send and receive timestamps and let it compute the RFC 3550 interarrival jitter, then choose a multiplier and see the buffer in milliseconds and packets, and how much of the G.114 delay budget it uses.

Result

The result updates automatically as you change any input.

Formula and worked steps
Formulas used
  • RFC 3550 interarrival jitter: D(i-1,i) = (Rj - Ri) - (Sj - Si); J = J + (|D| - J) / 16
  • Buffer = multiplier x jitter (a design choice, usually 2 to 4); adaptive buffers are clamped between a minimum and a maximum
  • Buffer in packets = ceil(buffer / packet interval)
  • Mouth-to-ear delay = network delay + codec delay + buffer; compare with the 150 ms G.114 target
Assumptions
  • The 2 to 4 times jitter rule is a common starting point, not a standard; the multiplier is editable.
  • Send and receive timestamps must use the same unit (milliseconds here). The estimator uses differences only, so the two clocks do not need to be synchronised.
  • The buffer is rounded up to a whole number of packets, as a playout buffer holds whole packets.
References

What is a jitter buffer?

Packets in a voice stream leave the sender at regular intervals, for example every 20 ms, but they do not arrive at regular intervals: queues in the network delay some more than others. A jitter buffer at the receiver holds incoming packets briefly and plays them out at a steady rate, trading a small, constant delay for smooth audio. If the buffer is too small, late packets miss their playout time and are dropped, which sounds like clipping. If it is too large, it adds delay and makes conversation awkward.

How jitter is measured

RFC 3550 defines the interarrival jitter estimate used in RTP reports. For two consecutive packets, take the difference in their arrival times and subtract the difference in their send times. That value D is how much the spacing changed. The estimator then smooths it: J = J + (|D| − J) ÷ 16. The factor of 1/16 gives a running average that reacts to trends but ignores single outliers. Because it uses differences, the sender and receiver clocks do not need to be synchronised.

Static and adaptive buffers

A static buffer has a fixed size set by configuration. It is simple and predictable but must be sized for the worst jitter you expect. An adaptive buffer measures jitter continuously and grows or shrinks, usually between a minimum and a maximum, by stretching or compressing audio between talk spurts. Most modern endpoints use adaptive buffers; the calculator lets you test the clamp limits.

How the jitter buffer calculator works

Formulas

The buffer is a multiplier times the jitter, commonly two to four times. The result is then rounded up to a whole number of packets, because a buffer holds complete packets. The mouth-to-ear delay is the network delay plus the codec and packetisation delay plus the buffer, which you compare with the 150 ms target in ITU-T G.114.

Worked example: known jitter

With 12 ms of measured jitter and a multiplier of 3 the buffer is 36 ms. Packets arrive every 20 ms, so the buffer rounds up to 40 ms, or two packets. If the network adds 30 ms and codec and packetisation add 25 ms, the total is 95 ms, leaving 55 ms inside the 150 ms target. A multiplier of 4 would give 48 ms, rounded to 60 ms, and total delay of 115 ms, which is still comfortable but uses another 20 ms of margin for little extra safety if the jitter is stable.

Worked example: from timestamps

Take four packets sent at 0, 20, 40 and 60 ms and received at 50, 72, 88 and 115 ms. The spacing differences D are +2, −4 and +7 ms. The estimator gives 0.125 ms after the first, 0.367 ms after the second and 0.782 ms after the third. A buffer of three times 0.78 ms is 2.3 ms, but the minimum useful size is one packet, so the tool rounds up to 20 ms. Real streams need hundreds of packets for a stable estimate, so paste a longer capture when you can.

Adaptive clamps

For an adaptive buffer, enter a minimum and maximum. If the target falls below the minimum, the buffer stays at the minimum; if it rises above the maximum, the buffer stops growing and late packets are lost. The tool tells you when the clamp is active, which is a sign that the limits do not match the network.

Choosing the multiplier

A multiplier of 2 suits a stable, well-managed network with a priority queue; 3 is a sensible default; 4 suits shared internet paths and wireless links where jitter comes in bursts. Check the answer against the 99th percentile jitter rather than the average, because the average hides the rare large delays that cause audible gaps. If you can only get an average, use the higher multiplier.

Why it matters for network engineers

Jitter is the main network-caused impairment for real-time media, and the jitter buffer is where it turns into delay. A network engineer reduces jitter with queuing policy, so that voice packets do not wait behind bulk transfers, and then sets expectations for the delay budget. If the budget is already tight because of a long path, you may need to cut jitter at the source rather than enlarge the buffer. Check the path delay with the network latency calculator, and the queuing policy with the QoS bandwidth calculator.

Best practices and common mistakes

Measure jitter at the busy hour, not at night. Use a long enough sample, at least a few minutes of a call, because the estimator needs time to converge. Keep voice in a priority queue and bulk data in another. Where possible, use a shorter packet interval for lower fixed delay, remembering that a 10 ms interval doubles the packet rate and the header overhead shown in the VoIP bandwidth calculator.

Do not size the buffer to the maximum jitter ever seen, because a single spike would permanently add delay. Do not confuse jitter with latency: a path with 200 ms of constant delay and no jitter needs almost no buffer, while a 30 ms path with heavy jitter does. And do not forget that the jitter buffer is only one part of the delay: codec lookahead, packetisation, serialisation and propagation all count against the same 150 ms.

Reading the packet-loss effect

A packet that arrives after its playout time is as good as lost. If you see loss reports on a call with no real loss in the network, late arrival is the likely cause, and a slightly larger buffer or lower jitter fixes it. Monitor both loss and jitter together, because each can hide the other.

FAQs

How big should a jitter buffer be?

A common starting point is two to four times the measured jitter, rounded up to whole packets. Adaptive buffers adjust this automatically between a minimum and a maximum.

How is RTP jitter calculated?

For each packet, D is the change in spacing between arrival times minus the change in spacing between send times. The estimate is updated as J = J + (|D| – J) / 16, as defined in RFC 3550.

What is the difference between jitter and latency?

Latency is the delay of a packet. Jitter is the variation in that delay from packet to packet. A constant 200 ms delay has no jitter.

Does a bigger jitter buffer improve call quality?

Only up to a point. It reduces drops from late packets but adds delay, and delay above about 150 ms one way degrades conversation. Keep the buffer as small as the jitter allows.

Next, try the VoIP bandwidth calculator, the network latency calculator and QoS bandwidth calculator, or browse all Latency, Jitter & QoS calculators and the full list of network calculators.