UART Baud Rate Calculator
Check what baud rates your clock can actually hit — divider, real baud and error %.
Divider (rounded)—
Actual baud—
Error—
Verdict—
Common baud rates at this clock:
Where baud rate error comes from
A UART derives its bit clock by dividing the peripheral clock:
where OS is the oversampling factor (usually 16) and DIV an integer (or fractional) divider. When is not an integer, the divider is rounded and the real baud rate shifts. Keep the combined TX+RX error under ≈4.7% for 8N1 framing — in practice each side should stay below about 2.5%. Crystal choices like 48 MHz hit most rates well; 115200 from some clocks (e.g. 16 MHz at ×16) lands at 2.1% error, which is why higher rates sometimes fail.
More in Embedded & MCU
ADC Resolution Calculator LSB size, counts, ideal SNR and code ↔ voltage conversion. Timer Prescaler Calculator Update frequency from PSC/ARR — or the best register pair for a target frequency. Q-Format Converter Float ↔ Q7/Q15/Q31 with hex, quantization error and the fixed-point arithmetic rules. ASCII / Text Converter Text ↔ hex/dec/bin/oct byte codes with C array output and a live per-character breakdown.