I²C Pull-up Resistor Calculator

Find the pull-up resistor range for an I²C bus from the supply voltage, bus capacitance and speed mode, get a standard value, and check your own resistor’s rise time, sink current and low level against the I²C specification.

Calculator Electronics Updated Oct 15, 2026
How to Use
  1. Pick the speed mode: Standard (100 kHz), Fast (400 kHz), Fast-mode Plus (1 MHz) or High-speed (3.4 MHz).
  2. Enter the pull-up supply voltage VDD, or tap 1.8, 3.3 or 5 V.
  3. Enter the bus capacitance per line, or switch to Estimate and give the number of devices, their pin capacitance and the length of wiring.
  4. Read the allowed range and the recommended standard value. The waveform shows the rising edge against the allowed rise-time window.
  5. Optionally type the resistor you have fitted (4.7k, 4k7 or 4700) to check its rise time, sink current and low level against the specification.
Bus
V
pF
incl. controller
pF (spec max 10)
cm
pF per cm
Ω, e.g. 4.7k
Presets
Rising edge & bus
Recommended
—
Rp min
—
Rp max
—
Rise time
—
Sink current
—
Low level VOL
—

Worked Example

Fast-mode, 3.3 V, 200 pF per line (the example in TI’s application note SLVA689). A Fast-mode driver must sink 3 mA while holding the line at 0.4 V or less, and the edge must rise from 30% to 70% of VDD within 300 ns.

Rp(min) = (3.3 − 0.4) / 0.003 = 966.7 Ω.
Rp(max) = 300 ns / (0.8473 × 200 pF) = 1,770 Ω = 1.77 kΩ.
Standard E12 values in the range are 1.0 kΩ, 1.2 kΩ and 1.5 kΩ. With 1.2 kΩ the rise time is 0.8473 × 1,200 × 200 pF = 203 ns, leaving about a third of the budget for capacitance you did not count.

The 4.7 kΩ habit on a long 5 V bus. At 100 kHz with 300 pF, Rp(max) = 1,000 ns / (0.8473 × 300 pF) = 3.93 kΩ. A 4.7 kΩ pull-up gives 0.8473 × 4,700 × 300 pF = 1,195 ns, over the 1,000 ns limit. Rp(min) = (5 − 0.4) / 3 mA = 1.53 kΩ, so 2.7 kΩ (686 ns) or 3.3 kΩ (839 ns) fixes it.

The common mistake: the 10–90% rule. Using tr = 2.2 RC for the 300 pF bus above gives Rp(max) = 1,000 ns / (2.2 × 300 pF) = 1.52 kΩ, which is below Rp(min) and makes a working bus look impossible. I²C measures rise time between the 0.3 VDD and 0.7 VDD input thresholds, which is 0.8473 RC.

Show Work

Enter VDD and the bus capacitance to see the working.

Formulas

Minimum pull-up
Rp(min) = (VDD − VOLmax) / IOL
VOLmax 0.4 V at IOL 3 mA (Standard, Fast) or 20 mA (Fast-mode Plus); 0.2 VDD at 2 mA when VDD ≤ 2 V
Maximum pull-up
Rp(max) = tr / (0.8473 × Cb)
tr max 1,000 ns (100 kHz), 300 ns (400 kHz), 120 ns (1 MHz)
Rise time, 30% to 70%
tr = ln(0.7 / 0.3) × Rp × Cb = 0.8473 Rp Cb
The edge reaches 0.3 VDD at 0.3567 RC and 0.7 VDD at 1.2040 RC
Bus capacitance
Cb = n × Cpin + length × Cper cm
Cpin up to 10 pF per I/O pin; limit 400 pF (550 pF in Fast-mode Plus)
Sink current
I = VDD / (Rp + Ron)
Ron = VOLmax / IOL models a driver that just meets the spec (0.4 V / 3 mA = 133 Ω)
Low level
VOL = I × Ron
Equals VOLmax exactly when Rp = Rp(min)
Measured capacitance
Cb = tr,measured / (0.8473 × Rp)
Scope the 30–70% edge to find the real bus load

How I²C Pull-ups Set the Speed

I²C devices never drive SDA or SCL high. Their outputs are open-drain: a transistor pulls the line to ground for a 0 and lets go for a 1, and a pull-up resistor Rp brings the line back up. That is what lets any device hold the clock low and lets chips on different supplies share a bus, but it makes the rising edge an RC charge curve: the resistor charging the capacitance of every pin, trace and cable on the line.

The resistor is squeezed from both sides. Make it too small and a device that can only sink 3 mA cannot pull the line under 0.4 V. Make it too large and the edge does not climb from 0.3 VDD to 0.7 VDD in time. NXP’s user manual UM10204 puts it in one sentence: designs sensitive to supply current “can use a value toward the higher end of the range in order to limit IDD”. This calculator recommends the largest E12 value that still keeps the rise time under 80% of the limit, so there is margin for capacitance you did not count.

ModeClocktr maxCb maxIOL at VOL 0.4 V
Standard-mode100 kHz1,000 ns400 pF3 mA
Fast-mode400 kHz300 ns (min 20 ns)400 pF3 mA (6 mA at 0.6 V for full load)
Fast-mode Plus1 MHz120 ns550 pF20 mA
High-speed, SDAH3.4 MHz (1.7 MHz at 400 pF)80 ns (160 ns at 400 pF)100 pF (400 pF)3 mA

Values from UM10204 Rev. 7.0 (1 October 2021), Tables 10 to 13. Below 2 V the low level is specified as 0.2 VDD at 2 mA instead of 0.4 V at 3 mA (3 mA in High-speed mode).

High-speed mode is different. At 3.4 MHz the clock line SCLH is pulled up by a 3 to 12 mA current source inside the active controller, switched on only during the high-speed part of a transfer, so its rising edge does not depend on Rp. The resistor still sets the data line SDAH, which this calculator sizes, and above 100 pF the specification allows current-source pull-ups in place of resistors.

Philips Semiconductors, now NXP, released I²C in 1982 as a two-wire “Inter-IC” control bus for the chips in consumer electronics. Version 1.0 of the specification (1992) added the 400 kHz Fast-mode, version 2.0 (1998) High-speed mode and lower supply voltages, and version 3 (2007) the 1 MHz Fast-mode Plus with its 20 mA drivers. Rev. 7.0 in 2021 replaced the words master and slave with controller and target.

About This Calculator

This calculator sizes the pull-up resistors on an I²C bus with the equations in section 7.1 of NXP’s UM10204, using the limits from its tables for each speed mode, including the lower sink current the specification allows below 2 V. It recommends a standard E12 value (E24 when no E12 value fits), draws the rising edge against the allowed window, and checks a resistor you already have for rise time, sink current and low level.

If no resistor can work, it says why and what to change: fewer devices or shorter wiring, a slower mode, Fast-mode Plus parts, or a bus buffer that splits the capacitance. All calculations run in your browser; nothing you enter is sent anywhere.

It is for embedded developers, hobbyists wiring sensors to an Arduino or Raspberry Pi, and anyone debugging a bus that fails at 400 kHz but works at 100 kHz.

Related calculators: RC Time Constant Calculator, DIP Switch Address Calculator (for I²C address pins), and SPI Timing Budget Calculator.

Frequently Asked Questions

What value pull-up resistor should I use for I²C?

Any value between Rp(min), set by how much current the weakest driver can sink, and Rp(max), set by the rise time your bus capacitance allows. 4.7 kΩ is the common default and it is fine at 3.3 V and 400 kHz up to about 75 pF per line; above that, 2.2 kΩ covers up to about 161 pF. At 100 kHz a 10 kΩ pull-up is only good to about 118 pF.

Why is I²C rise time measured from 30% to 70% of VDD?

Those are the input thresholds: below 0.3 VDD is a guaranteed low and above 0.7 VDD a guaranteed high. An RC edge reaches 30% after 0.3567 RC and 70% after 1.2040 RC, so the rise time is 0.8473 RC. Using the 10–90% rule (2.2 RC) instead makes your maximum resistor 2.6 times too small.

What happens if the I²C pull-up resistor is too small or too large?

Too small and a device that can only sink 3 mA cannot pull the line below 0.4 V, so other chips may not read a clean low and the low level rises with every extra board. Too large and the line climbs so slowly that it is not high when the clock samples it, which shows up as NAKs, corrupted bytes or a bus that only works at a lower speed.

How do I find the capacitance of my I²C bus?

Add up to 10 pF per device pin (the specification maximum), the PCB traces and any cable. Or measure it: scope the rising edge, read the 30–70% time and divide by 0.8473 × Rp. A 400 ns rise with 4.7 kΩ means about 100 pF.

Do several breakout boards with their own pull-ups cause problems?

They can. Pull-ups on different boards are in parallel: three 4.7 kΩ boards make 1.57 kΩ, and four make 1.18 kΩ. At 5 V in Standard-mode Rp(min) is 1.53 kΩ, so the fourth board breaks the 3 mA sink limit. Remove the extra resistors (often a solder jumper) so the bus has one pull-up per line.

How do I use the I²C Pull-up Resistor Calculator?

Just type your numbers. The answer shows up right away — there is no button to press. Change anything and it updates by itself.

Is it free? Does it work without internet?

Yes to both. It is free with no sign-up, and once the page has loaded it keeps working even with no internet.

Where does my data go?

Nowhere — every calculation runs on your own device. Nothing you enter is uploaded, logged, or stored.

Common Use Cases

3.3 V microcontroller and EEPROM

At 400 kHz with 50 pF per line the range is 967 Ω to 7.08 kΩ. The usual 4.7 kΩ rises in 199 ns, well inside the 300 ns limit.

Arduino sensors on long wires

At 5 V and 100 kHz, 300 pF of cable and pins allows 1.53 kΩ to 3.93 kΩ. A 10 kΩ pull-up takes 2.54 µs to rise and fails; 2.7 kΩ rises in 686 ns.

Fast-mode Plus at 1 MHz

Fm+ drivers sink 20 mA, so at 3.3 V and 200 pF the range is 145 Ω to 708 Ω. A 560 Ω pull-up rises in 95 ns and sinks 5.7 mA.

1.8 V sensor hub

Below 2 V the specification only promises 0.2 VDD at 2 mA, so Rp(min) is 720 Ω. With six sensors and 80 pF the maximum is 4.43 kΩ, and 3.3 kΩ is a good fit.

Diagnosing an overloaded bus

24 devices and 2 m of wiring add up to 440 pF, over the 400 pF limit. At 400 kHz Rp(max) drops to 805 Ω, below the 967 Ω minimum, so the bus needs a buffer or Fm+ parts.

Last updated: