Home & workshop Electronics

Pull-up resistor calculator

Supply voltage
V
Bus capacitance
pF
Bus speed
kHz
Maximum sink current
mA
Suggested value 3,120 Ω
3.3 V · 100 pF · 400 kHz bus
Minimum (sink limit) 1,100 Ω
Maximum (rise time limit) 8,852 Ω
Common default 4,700 Ω
Rise time at the suggested value 264.4 ns
Current when pulled low 1.06 mA
Between the sink limit and the rise-time limit

For a 3.3 V I²C bus at 100 kHz with a typical 100 pF of capacitance, anything from about 1 kΩ to 20 kΩ works, and 4.7 kΩ sits comfortably in the middle of that window. It is the default because it is right often enough. Push the bus to 400 kHz or add more devices and the upper limit collapses — which is when a bus that worked at 100 kHz mysteriously stops at 400.

Advertisement
320 × 100

A pull-up has two limits. The minimum is set by how much current the driver can sink: Vcc divided by the sink current. The maximum is set by rise time — the resistor and bus capacitance must charge the line within about 30% of a bit period. For a 3.3 V 400 kHz bus at 100 pF, that window is roughly 1.1 kΩ to 5.6 kΩ.

How to choose a pull-up resistor

1 Enter the supply voltage and the bus speed.
2 Estimate bus capacitance — roughly 10 pF per device plus 1 pF per centimetre of track.
3 Enter the sink current the weakest device can handle, usually 3 mA for I²C.
4 Pick a standard value inside the range shown.

Pull-up selection is a squeeze between two failures. Too weak and the line rises too slowly, so the receiver samples a level that has not arrived yet — which shows up as intermittent errors that get worse as you add devices or lengthen wires. Too strong and the open-drain driver cannot pull the line low enough to register as a zero, which fails hard and immediately. The window between them narrows as bus speed rises and as capacitance grows, which is why a long I²C bus with many devices is genuinely difficult and why active bus buffers exist.

Questions

4.7 kΩ is the usual default for 100 kHz. At 400 kHz or with a long bus you may need 2.2 kΩ or lower.

Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING