UART Baud Rate Calculator

Calculate UART baud rate or divisor/BRR from your clock settings. Includes bit time, frame time, and percent error.

How to Use

  1. Choose a mode: Clock → Baud (given divisor) or Clock → Divisor (given target baud).
  2. Enter your peripheral clock (Hz / kHz / MHz) and select an oversampling mode (commonly 16× or 8×).
  3. Optionally set data bits, parity, and stop bits to estimate frame time.
  4. Open Show Work for the formulas and the exact math used.
Link Readout
Actual baud + error + timing estimates.
Baud
Divisor
Error
Frame
Status:
Quick Notes
  • Typical formula (generic): baud ≈ fclk / (oversample × divisor)
  • Oversample: common UART modes are 16× and 8× (MCU-dependent)
  • Frame bits: start(1) + data(5–9) + parity(0/1) + stop(1/1.5/2)
Inputs & Settings
Enter your clock and either a target baud (to compute divisor) or a divisor (to compute baud).
Examples: 1 MHz, 8 MHz, 16 MHz, 48 MHz, 80 MHz
Different MCUs define divisor/BRR differently. This tool uses a generic divider model + show-work.
Used in Clock → Divisor mode.
Used in Clock → Baud mode. If your MCU uses mantissa/fraction fields, use the Show Work math and your datasheet mapping.

Frame estimate includes 1 start bit and parity if enabled.
Bit order doesn’t change timing; included for completeness.
Show Work (step-by-step)
Work is shown using a generic UART divider model. Always confirm your MCU’s exact BRR/divisor register definition in the datasheet.

Reference

This tool uses a generic baud divider model: baud = f_clk / (OS × divisor)

  • Compute divisor: divisor = f_clk / (OS × baud_target)
  • Compute actual baud: baud_actual = f_clk / (OS × divisor_used)
  • Percent error: %error = (baud_actual − baud_target) / baud_target × 100
  • Frame bits: 1 start + data + parity(0/1) + stop
  • Bit time: t_bit = 1 / baud_actual
  • Frame time: t_frame = frame_bits × t_bit
Where OS is oversampling (typically 16 or 8), and all timing is derived from actual baud.

FAQ

What baud error is “okay”?

It depends on both ends (clock accuracy, oversampling, line conditions). Small errors often work; larger errors can break framing. Use this tool to quantify error and then verify against your device datasheets and requirements.

Why does my MCU datasheet not match this divisor?

Many MCUs use mantissa/fraction fields (or alternate formulas). This tool provides a clean baseline model and shows the math so you can map it to your specific BRR format.

Does parity change the baud rate?

No. Parity changes frame length (more bits per character), so it changes frame time and throughput, not the baud itself.

Tool Info

Last updated:

Updates may include additional MCU-oriented presets, edge-case handling, and export improvements.