⚡
usefultools.dev
TX

UART Baud Rate Calculator – UBRR, BRR & Frame Timing

NOUVEAU

UART baud rate calculator: bit and frame time, bytes per second and transfer time, plus AVR UBRR and STM32 BRR divisors with baud error %. Free, runs in your browser.

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

Frame format (8N1)
Bit time
8.681 µs
Frame (10 bits)
86.81 µs
Max throughput
11520 B/s
Efficiency
80 %

Sending 1024 bytes takes 88.89 ms back-to-back.

frame = 1 start + 8 data + 0 parity + 1 stop = 10 bits bit time = 1 / 115200 = 8.681 µs

Baud divisor and error
UBRR = 16 (0x010)

Actual baud 117647 · error +2.12 % — above ±2 %, communication may be unreliable. Try the other mode or a UART-friendly crystal.

UBRR = round(16000000 / (8 × 115200) − 1) = round(16.361) = 16

Formulas from the ATmega328P datasheet (USART0) and STM32 reference manuals (USART_BRR). Register layouts differ between families, so verify against the datasheet for your exact part. Both ends together should stay within about ±2 %.

Common baud rates on 8 MHz and 16 MHz AVR
Each cell: UBRR value · baud error
Baud8 MHz8 MHz U2X16 MHz16 MHz U2X
2400207 · +0.16 %416 · -0.08 %416 · -0.08 %832 · +0.04 %
4800103 · +0.16 %207 · +0.16 %207 · +0.16 %416 · -0.08 %
960051 · +0.16 %103 · +0.16 %103 · +0.16 %207 · +0.16 %
1440034 · -0.79 %68 · +0.64 %68 · +0.64 %138 · -0.08 %
1920025 · +0.16 %51 · +0.16 %51 · +0.16 %103 · +0.16 %
2880016 · +2.12 %34 · -0.79 %34 · -0.79 %68 · +0.64 %
3840012 · +0.16 %25 · +0.16 %25 · +0.16 %51 · +0.16 %
576008 · -3.55 %16 · +2.12 %16 · +2.12 %34 · -0.79 %
768006 · -6.99 %12 · +0.16 %12 · +0.16 %25 · +0.16 %
1152003 · +8.51 %8 · -3.55 %8 · -3.55 %16 · +2.12 %
2304001 · +8.51 %3 · +8.51 %3 · +8.51 %8 · -3.55 %
2500001 · +0.00 %3 · +0.00 %3 · +0.00 %7 · +0.00 %
5000000 · +0.00 %1 · +0.00 %1 · +0.00 %3 · +0.00 %
10000000 · -50.00 %0 · +0.00 %0 · +0.00 %1 · +0.00 %
⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

Timing
115200 baud 8N1
86.81 µs/frame · 11520 B/s
Transfer
100 bytes at 9600 8N1
104.2 ms
U2X=0
AVR 16 MHz, 9600
UBRR = 103 · +0.16 %
U2X=1
AVR 16 MHz, 115200, U2X
UBRR = 16 · +2.12 %
OVER16
STM32 72 MHz, 115200
BRR = 0x0271 · +0.00 %
📖

Présentation

A UART sends each byte inside a frame: a start bit, five to nine data bits, an optional parity bit and one, one and a half or two stop bits. This UART baud rate calculator turns a baud rate and frame format such as 8N1 into the bit time, frame time, maximum bytes per second and the time needed to send a block of data, which is what you need when sizing buffers or timeouts.

The second half answers the classic microcontroller question: what value goes in the baud register, and how far off will the real baud rate be? It computes AVR UBRR in normal and double-speed (U2X) mode, STM32 USARTDIV and BRR for 16x and 8x oversampling, and a generic integer divisor, then flags any error above ±2 %. A table shows common baud rates on 8 MHz and 16 MHz AVR boards such as the Arduino Uno.

All maths runs in your browser.

Pourquoi utiliser cet outil ?

  • Frame, throughput and transfer time in one place
  • AVR UBRR with and without U2X
  • STM32 BRR for oversampling 16 and 8
  • Flags baud errors above ±2 %
  • Free, instant and private
⭐

Fonctionnalités

⏱️

Frame timing

Bit time, frame time, efficiency and maximum bytes per second for any 5–9 data bit, parity and stop bit setting.

📦

Transfer time

Enter a byte count to see how long a block takes to send back-to-back.

🔧

AVR UBRR

Normal and U2X double-speed divisors with the resulting baud rate, as used by Arduino Uno, Nano and Mega.

🧩

STM32 BRR

USARTDIV with mantissa and fraction for 16x and 8x oversampling, packed into the BRR register value.

🚦

Error check

Error is colour-coded and flagged above ±2 %, with warnings when the divisor is out of range.

📊

Common baud table

UBRR and error for standard baud rates from 2400 to 1 Mbaud on 8 and 16 MHz clocks.

🛠️

Mode d'emploi

1

Set the frame

Enter the baud rate and pick data bits, parity and stop bits; optionally type how many bytes you will send.

2

Read the timing

Bit time, frame time, throughput and transfer time appear immediately.

3

Enter your clock

Type the peripheral clock (for example 16 MHz or 72M) and choose the divisor type for your MCU.

4

Copy the register

Copy the UBRR or BRR value and check that the error stays within ±2 %.

🤔

Questions fréquentes