I2C pull-up resistor and bus-rise-time calculator

Bus capacitance is the total of wiring, connectors and every device pin on one line (SDA or SCL).

Enter the supply voltage and bus capacitance to see the pull-up range.

No pull-up range to draw.

Show the steps

Interactive calculation is unavailable until JavaScript loads. The formulas, worked examples and references below remain available.

Find the I2C pull-up resistor range from supply voltage, bus capacitance and the Standard-mode, Fast-mode or Fast-mode Plus limits, and the rise time of a chosen resistor.

How to use

Choose the bus mode: Standard-mode (100 kHz), Fast-mode (400 kHz), Fast-mode Plus (1 MHz) or Custom limits.

Enter the pull-up supply voltage and the bus capacitance of one line.

For Custom limits, enter the rise-time limit, the LOW-level voltage and the sink current from your devices' data sheets.

Read the pull-up range. Optionally enter the resistor you plan to fit to see its rise time and LOW-level current.

Copy result copies labelled values; Reset restores the starting fields.

Science

I2C lines are open-drain: devices only pull SDA and SCL low, and a pull-up resistor brings them back high. The line charges through the resistor into the bus capacitance, so a larger resistor or more capacitance makes a slower rising edge.

The specification measures rise time between 30 % and 70 % of the supply. For an RC charge that interval is 0.8473 × R × C, which sets the largest resistor: Rp(max) = tr / (0.8473 × Cb). A 10 % to 90 % rise time (2.2 × R × C) is a different measurement and gives a different answer.

When a device pulls the line low it must sink the current through the pull-up and still stay below the LOW-level voltage. Standard and Fast-mode devices guarantee 3 mA at 0.4 V and Fast-mode Plus devices 20 mA, which sets the smallest resistor: Rp(min) = (VDD − VOL) / IOL. Below 2 V the specification uses 0.2 × VDD at 2 mA.

Limitations: the tool treats each line as one resistor charging one lumped capacitance. It ignores input leakage, series protection resistors, current-source or switched pull-ups, bus buffers, High-speed and Ultra Fast modes, and clock-timing limits other than rise time. Bus capacitance must be estimated or measured; data-sheet pin capacitance alone underestimates it. When no resistor fits, reduce the capacitance, use a slower mode, or use a buffer or switched pull-up (UM10204 section 7.2).

Formulas

Rise time: tr = 0.8473 × Rp × Cb, measured from 0.3 × VDD to 0.7 × VDD.

Largest pull-up: Rp(max) = tr / (0.8473 × Cb).

Smallest pull-up: Rp(min) = (VDD − VOL(max)) / IOL.

Limits: Standard-mode tr 1000 ns, Cb 400 pF, 3 mA at 0.4 V; Fast-mode 300 ns, 400 pF, 3 mA at 0.4 V; Fast-mode Plus 120 ns, 550 pF, 20 mA at 0.4 V; at VDD of 2 V or less, Fast-mode and Fast-mode Plus use 0.2 × VDD at 2 mA.

LOW-level current: I = (VDD − VOL(max)) / Rp.

Examples

Fast-mode, 3.3 V, 200 pF: 966.667 Ω to 1.77033 kΩ. Rp(min) = (3.3 − 0.4) / 0.003; Rp(max) = 300 ns / (0.8473 × 200 pF). This is TI's worked example.

Fast-mode, 5.5 V, 3 mA: Rp(min) 1.7 kΩ; at 300 ns it allows at most 208.3 pF. UM10204 section 7.2.4 quotes about 200 pF.

Fast-mode Plus, 3.3 V, 550 pF: 145 Ω to 257.502 Ω. 20 mA sink current and 120 ns rise time.

Fast-mode, 5 V, 400 pF: No resistor fits: Rp(min) 1.53333 kΩ is above Rp(max) 885.165 Ω. Boundary case. With devices that sink 6 mA at 0.6 V (Custom limits) the range is 733.333 Ω to 885.165 Ω.

Chosen 4.7 kΩ on a 100 pF Fast-mode bus: rise time 398.231 ns, too slow for 300 ns. Common mistake: 4.7 kΩ is a Standard-mode habit; it meets 1000 ns but not Fast-mode.

Fast-mode, 1.8 V: Rp(min) 720 Ω. Below 2 V: VOL = 0.2 × 1.8 = 0.36 V at 2 mA.

References

NXP UM10204 I2C-bus specification and user manual, Rev. 7.0 (section 7.1, Tables 10 and 11)

TI SLVA689A: I2C Bus Pullup Resistor Calculation

BIPM: SI prefixes