Tools / UART Frame Timing
How to work out UART frame time and data rate
Each UART character carries a start bit, the data, an optional parity bit and stop bits. The extra bits cost time.
Tframe = (1 + data + parity + stop bits) / baud
Result
- Bits per frame
- 10
- Frame time
- 86.81 µs
- Ideal frames per second
- 11,520
What this leaves out
- Excludes line idle, protocol overhead, framing errors and physical-layer considerations.
Step by step
The working with your numbers
- Bits per character
1 start + 8 data + 0 parity + 1 stop = 10 bits - Time for one bit
1 ÷ 115,200 = 8.68 µs - Time for one character
10 × 8.68 µs = 86.8 µs - Characters per second
1 ÷ 86.8 µs = 11,520 bytes/sOnly 80 % of the bits are data.
Does the answer make sense?
- OK: Sending 100 characters takes at least 8.68 ms.
- OK: Both ends must use the same baud, data bits, parity and stop bits (8N1 is the usual setting), or you get garbage.
Common mistakes
- Dividing baud by 8 for bytes per second. With 8N1 each byte is 10 bits, so divide by 10.
- Mismatched baud rates: the Serial Monitor must match Serial.begin().
- Connecting TX to TX. TX of one side goes to RX of the other.
Learn it, try it, build it
Calculated, not measured. Check the exact part datasheet and your real circuit before powering anything.
Just need the number? Use the UART frame timing calculator on Geekobot.
Common questions
How many bytes per second is 115200 baud?
With 8N1 (1 start, 8 data, 1 stop) each byte is 10 bits, so 115200 ÷ 10 = 11,520 bytes per second.
What does 8N1 mean?
8 data bits, no parity, 1 stop bit. Each character is sent as 10 bits including the start bit.
