← All calculators

I2C pull-up resistor calculator

Standard SDA and SCL pull-up from the bus speed, supply and capacitance, with rise-time and sink-current checks

This I2C pull-up resistor calculator picks a standard pull-up for SDA and SCL from the bus speed, the supply and the bus capacitance. It finds the allowed range, keeps the chosen value inside it at worst-case tolerance, includes pull-ups already on the bus, and checks rise time and sink current against the I²C specification (NXP UM10204).

I2C pull-up resistor formula

SDA and SCL are open drain: devices only pull the lines low, and the pull-up resistor brings them back high. Too small a resistor and a device cannot pull the line low enough; too large and the rising edge is too slow. That gives a minimum and a maximum:

Rp,min = (VDD − VOL) / IOL Rp,max = tr / (0.8473 × Cb)

VOL is the low level a driver guarantees at its sink current IOL; tr is the longest rise time from 30 % to 70 % of VDD (0.8473 = ln(0.7 / 0.3)). At Fast mode (400 kHz) and 3.3 V on 72 pF, any pull-up from 967 Ω to 4.92 kΩ works. The calculator keeps the worst case of the tolerance inside that range: 17 standard values fit, and 4.7 kΩ is the lowest-power one, with a worst rise time of 289.6 ns.

4.7 kΩ or 10 kΩ?

Both are common. On the same 72 pF bus at 400 kHz, 10 kΩ rises in 616 ns at worst, about twice the 300 ns limit. At 100 kHz anything up to 16.4 kΩ works, so 10 kΩ is fine there and draws less current.

How to estimate I2C bus capacitance

Four devices at 10 pF each and 20 cm of trace at about 1 pF per cm make 60 pF; the calculator adds a 20 % design margin for estimate error and a scope probe, giving 72 pF. A measured rise time gives the real value (see the questions below).

Standard, Fast and Fast-mode Plus

  • Standard mode, 100 kHz: rise time up to 1 µs, bus capacitance up to 400 pF, 3 mA drivers: 967 Ω to 16.4 kΩ.
  • Fast mode, 400 kHz: 300 ns and 400 pF, also 3 mA: 967 Ω to 4.92 kΩ.
  • Fast-mode Plus, 1 MHz: 120 ns and 550 pF, with 20 mA drivers that allow much smaller pull-ups: 145 Ω to 1.97 kΩ.

Below 2 V the specification lowers the guaranteed low level to 0.2 × VDD at 2 mA, which raises the minimum resistor.

Pull-ups on breakout boards

Several boards on one bus put their pull-ups in parallel. Enter what is already there and the calculator adds only what is missing: with one 10 kΩ board at 400 kHz it adds 9.1 kΩ (4.76 kΩ effective). When they are too strong together, remove some, often by cutting a solder jumper.

Frequently asked questions

What value pull-up resistor do I need for I2C?

It depends on the bus speed, the supply and the bus capacitance. At 400 kHz and 3.3 V with about 60 pF (72 pF with a 20 % margin), any value from 967 Ω to 4.9 kΩ works; 4.7 kΩ is the lowest-power standard value.

Should I use 4.7 kΩ or 10 kΩ?

At 400 kHz, 10 kΩ on 72 pF gives a rise time of about 616 ns, twice the 300 ns limit, so it is too slow. At 100 kHz the limit is 1 µs and up to 16.4 kΩ works on the same bus.

How do I estimate the bus capacitance?

Add the pin capacitance of every device (up to 10 pF each), the traces (about 1 pF per cm on a PCB) and any connectors and cables. Better: measure the rise time with a scope and work back with Cb = tr / (0.8473 × R).

What happens if the pull-up is too strong or too weak?

Too strong (too small): the devices cannot pull the line low enough, because they can only sink 3 mA in Standard and Fast mode. Too weak (too large): the rising edges are too slow and bits are misread at speed.

My breakout boards already have pull-ups. Do I need more?

Pull-ups on several boards add in parallel. Three boards with 2.2 kΩ each make 733 Ω, below the 967 Ω minimum at 3.3 V, so some must be removed. Two boards with 10 kΩ each make 5 kΩ, slightly too weak for 400 kHz on 72 pF.

Do SDA and SCL both need pull-ups?

Yes. Both lines are open-drain, so each needs one pull-up resistor, not one per device.

Other calculators