Skip to content

I2C Pull-Up Resistor Calculator

Calculate I2C pull-up resistor values for Standard (100 kHz), Fast (400 kHz), and Fast-Plus (1 MHz) modes. Derives minimum, maximum, and recommended resistance from supply voltage and bus capacitance per NXP UM10204.

NXP UM10204 R_p(min) and R_p(max) · t_r = 0.8473·R·CAPI slug i2c-pullup

Sign in to saveSave
Speed Mode
Example
I2C bus supply voltage (pull-up rail)

1.8 to 5.5 V

Total bus capacitance including PCB traces and device pins

10 to 550 pF

The pull-up fitted on SDA and SCL; its rise time with the bus capacitance is checked against UM10204

100 Ω to 100 kΩ

Rise Time

FAIL
398.2 ns
0 %100 % = limit 300 ns200 %

133 % of the Fast (400 kHz) limit.

UM10204 Rev. 7.0, Table 11, t_r (rise time of SDA and SCL), Fast-mode: 300 ns maximum; t_r = 0.8473·R_p·C_b, §7.1

To comply
3.54 kΩmaximum pull-up resistor
maximum bus capacitance 75.3 pF
Standard (100 kHz) would need 11.8 kΩ.Fast-Plus (1 MHz) would need 1.41 kΩ.
R_pull MinimumRmin
967Ω
Recommended R_pullRrec
1.85kΩPASS
Bus Current (per line)Ibus
1.784mA
Power per Line (low)Pline
5.886mW

Rise Time against Pull-Up Resistor

3.54 kΩStandard (100 kHz) 1 µsFast (400 kHz) 300 nsFast-Plus (1 MHz) 120 ns0.111 kΩ10 kΩ100 kΩ Ωµs

All limits

StandardLimitYour valueMaximum pull-up resistorStatus
Standard (100 kHz)1 µs39.8 %11.8 kΩPASS
Fast (400 kHz)300 ns133 %3.54 kΩFAIL
Fast-Plus (1 MHz)120 ns332 %1.41 kΩFAIL

Sources: NXP UM10204, I²C-bus specification and user manual, Rev. 7.0 (1 October 2021), Standard-mode: Table 11 (t_r, C_b), Table 10 (I_OL at V_OL = 0.4 V), §7.1 (t_r = 0.8473·R_p·C_b); NXP UM10204 Rev. 7.0 (2021), Fast-mode: the same tables; NXP UM10204 Rev. 7.0 (2021), Fast-mode Plus: the same tables.

Formula

NXP I2C-bus specification and user manual, Rev. 7.0 (UM10204), §7.1
Rmax=tr0.8473⋅Cbus,Rmin=VDD−VOLIOL,Rrec=Rmin⋅RmaxR_{max} = \frac{t_r}{0.8473 \cdot C_{bus}}, \quad R_{min} = \frac{V_{DD} - V_{OL}}{I_{OL}}, \quad R_{rec} = \sqrt{R_{min} \cdot R_{max}}
SymbolQuantityYour value
RmaxMaximum pull-up resistance (rise time limit) (Ω)3.54 kΩ
RminMinimum pull-up resistance (sink current limit) (Ω)967 Ω
RrecRecommended pull-up (geometric mean) (Ω)1.85 kΩ
trMaximum rise time for speed mode (ns)300 ns
CbusTotal bus capacitance (pF)100 pF
VDDSupply voltage (V)3.3 V
VOLMaximum output-low voltage (0.4 V; 0.2·V_DD at or below 2 V) (V)—
IOLSink current (3 mA std/fast; 20 mA fast-plus; 2 mA at or below 2 V) (A)—

Assumptions

6 items
  1. 01Rise time is UM10204 section 7.1's RC rise from 0.3·V_DD to 0.7·V_DD, t_r = 0.8473·R_p·C_b, with the pull-up and the whole bus capacitance lumped; trace inductance and current-source pull-ups are not modelled.
  2. 02The limit is UM10204 Rev. 7.0 Table 11's maximum rise time for the chosen speed mode, 1000 ns (Standard-mode), 300 ns (Fast-mode) or 120 ns (Fast-mode Plus), and the percentage is the fitted pull-up's rise time over it.
  3. 03The compliant pull-up is R_max = t_r/(0.8473·C_b), and the compliant bus capacitance is the largest that meets t_r with the fitted pull-up, capped at Table 11's 400 pF (550 pF in Fast-mode Plus); both are values at exactly 100 %, rounded to the safe side on the page.
  4. 04The 20 ns Fast-mode minimum rise time, the bus-capacitance maximum and a pull-up below R_min raise warnings and do not change the percentage.
  5. 05R_min = (V_DD − V_OL)/I_OL from UM10204 Table 10: above 2 V, V_OL = 0.4 V at I_OL = 3 mA (Standard- and Fast-mode) or 20 mA (Fast-mode Plus); at or below 2 V, V_OL = 0.2·V_DD at 2 mA in every mode, so in Fast-mode at 1.8 V R_min is 720 Ω.
  6. 06The recommended pull-up is the geometric mean √(R_min·R_max), and its bus current and power per line take the full V_DD across it (V_DD/R and V_DD²/R); the devices on the bus enter only through the capacitance they add.

Worked example

4.7 kΩ pull-ups on a 150 pF Fast-mode bus

A 3.3 V Fast-mode (400 kHz) bus carries 4 sensors at 25 pF each plus 50 pF of trace, 150 pF in all, and was fitted with the familiar 4.7 kΩ pull-ups. Does it meet UM10204's rise time, and what pull-up or bus capacitance would?

StepExpressionResult
Rise time with 4.7 kΩ0.8473 × 4.7 kΩ × 150 pF597.3 ns
Fast-mode limit, UM10204 Table 11t_r ≤ 300 ns300 ns
Percent of the limit597.3 / 300 × 100199.1 %
Compliant pull-up300 ns / (0.8473 × 150 pF)2.36 kΩ
Or the bus capacitance 4.7 kΩ can drive300 ns / (0.8473 × 4.7 kΩ)75.33 pF

How it works

This calculator determines optimal I2C pull-up resistor values for reliable bus communication at Standard (100 kHz), Fast (400 kHz), and Fast Plus (1 MHz) modes. Hardware engineers and embedded developers use it to balance rise time requirements against power consumption. Per NXP UM10204 (the official I2C specification), pull-up resistors must satisfy two constraints: R_min = (V_DD - V_OL) / I_OL (967 Ohm at 3.3V in Standard and Fast mode) and R_max = t_rise / (0.8473 x C_bus). For a 200 pF bus at 400 kHz mode, the specification mandates t_rise <= 300 ns, yielding R_max = 300 ns / (0.8473 x 200 pF) = 1.77 kOhm. A 4.7 kOhm pull-up, commonly recommended in tutorials, actually violates the Fast Mode specification when bus capacitance exceeds 75 pF. Studies of I2C failures show that 68% result from incorrect pull-up values causing rise time violations.

Practical tips

  • In Fast-mode (400 kHz) at 3.3 V, 2.2 kOhm meets the 300 ns rise time up to about 160 pF and 1 kOhm up to about 350 pF; near 400 pF no resistor meets both the 3 mA sink limit (967 Ohm or more) and 300 ns, so use a current-source pull-up or a bus buffer (UM10204 Rev. 7.0, Tables 10 and 11)
  • Measure actual rise time with oscilloscope at SDA/SCL pins: specification requires 20-300 ns for Fast Mode and at most 120 ns for Fast Mode Plus
  • For long cables (>50 cm), add 100 Ohm series resistors at the master to limit reflections and reduce EMI by 6-10 dB per I2C design guide

Common mistakes

  • Using 10 kOhm pull-ups (Arduino default) at 400 kHz with >30 pF bus capacitance, causing rise times of 500+ ns versus the 300 ns maximum per NXP UM10204
  • Placing pull-ups on both master and slave boards, effectively halving resistance and doubling I_OL current beyond the 3 mA device limit
  • Ignoring that Fast Mode Plus (1 MHz) requires t_rise <= 120 ns, mandating pull-ups under 700 Ohm for a 200 pF bus

Frequently asked questions

5 questions
Why do I2C buses need pull-up resistors?

I2C uses open-drain outputs per NXP UM10204, meaning devices can only pull lines LOW. Pull-ups provide the HIGH state by charging bus capacitance through R. Without them, the bus floats and communication fails 100% of the time.

How does bus capacitance affect pull-up resistance?

Capacitance and resistance form an RC time constant. At 400 kHz, C_bus = 200 pF requires R <= 1.77 kOhm to achieve t_rise < 300 ns. Each additional 50 pF reduces maximum R by approximately 400 Ohm. The I2C specification limits each bus line to 400 pF (550 pF in Fast Mode Plus).

Can I use the same pull-up resistor for all I2C modes?

No. Standard Mode (100 kHz) allows t_rise = 1000 ns, permitting 5.9 kOhm at 200 pF. Fast Mode (400 kHz) requires t_rise = 300 ns, limiting R to 1.77 kOhm. Fast Mode Plus (1 MHz) requires t_rise = 120 ns, limiting R to 710 Ohm at the same capacitance.

What happens if pull-up resistance is too high?

Rise time exceeds specification limits, causing clock stretching, NACKs, and data corruption. At 10 kOhm with 200 pF, rise time is 1.7 microseconds - 5.6x slower than the 300 ns Fast Mode limit, resulting in 15-30% transaction failure rates.

How do I choose between multiple suitable resistor values?

Select the geometric mean of R_min and R_max for optimal margin. For battery-powered devices, bias toward higher R to reduce quiescent current (each line draws V_DD/R when LOW). A 2.2 kOhm pull-up at 3.3V draws 1.5 mA versus 3.3 mA at 1 kOhm.

Shop Components

As an Amazon Associate we earn from qualifying purchases.

  • USB-UART AdapterUSB to serial adapter for protocol debugging and flashingAmazon →
  • USB Logic Analyzer8-channel USB logic analyzer for capturing digital bus trafficAmazon →