Why does I2C need pull-up resistors?
SDA and SCL are open-drain outputs. Devices can only pull a line low, so a resistor has to bring it back high.
Get the smallest and largest I2C pull-up resistor value for your supply, bus capacitance and speed, using the equations in the I2C specification. Check a part you already have, and see the rise time, sink current and how much capacitance it can drive.
The highest value the rail can reach.
Pins (up to 10 pF each), traces, connectors and cable.
Optional: blank uses the mode maximum (1 µs, 300 ns, 120 ns).
Optional: from the part’s data sheet.
Optional: from the part’s data sheet.
Allowed pull-up range
967 Ω to 3.54 kΩ
Use the highest VDD the rail can reach for Rp(min): the specification’s own example takes 5.5 V for a 5 V ±10 % supply. Every pull-up on the bus adds in parallel, including those on breakout boards.
E24 values inside the range
| Pull-up | Rise time | Sink current | Worst-case supply current |
|---|---|---|---|
| 1 kΩ | 84.7 ns | 2.9 mA | 3.3 mA |
| 1.2 kΩ | 102 ns | 2.42 mA | 2.75 mA |
| 1.5 kΩ | 127 ns | 1.93 mA | 2.2 mA |
| 1.8 kΩ | 153 ns | 1.61 mA | 1.83 mA |
| 2.2 kΩ | 186 ns | 1.32 mA | 1.5 mA |
| 2.7 kΩ | 229 ns | 1.07 mA | 1.22 mA |
| 3.3 kΩ | 280 ns | 879 µA | 1 mA |
Use Rp(min) = (VDD − VOL) ÷ IOL for the lower limit and Rp(max) = tr ÷ (0.8473 × Cb) for the upper limit. For Fast-mode at 3.3 V with 200 pF, that is 967 Ω to 1.77 kΩ, so a 1.3 kΩ resistor fits. Larger values save power, and smaller ones give faster edges.
SDA and SCL are open-drain, so a resistor has to raise each line. The driver's sink current sets the smallest value, and the bus capacitance and allowed rise time set the largest.
The constant comes from the RC charging curve. A line reaches 30 % of VDD at 0.3567 RC and 70 % at 1.2040 RC, so the rise between the two thresholds takes 0.8473 RC.
Rp(min) = (3.3 − 0.4) ÷ 3 mA = 967 Ω. Rp(max) = 300 ns ÷ (0.8473 × 200 pF) = 1.77 kΩ. A 1.3 kΩ resistor sits near the middle, with a rise time of 220 ns. The two limits match the worked example in TI’s SLVA689.
Rp(min) has to use the highest supply: (5.5 − 0.4) ÷ 3 mA = 1.7 kΩ. With that resistor, the 300 ns limit allows at most 208 pF, which is why the specification says this limits the bus to about 200 pF. Above that, it suggests a switched pull-up circuit.
The 20 mA drivers allow a small Rp(min) = (5 − 0.4) ÷ 20 mA = 230 Ω, and Rp(max) = 120 ns ÷ (0.8473 × 400 pF) = 354 Ω. A 300 Ω resistor fits, but the line can draw up to 16.7 mA from the supply while low.
From UM10204 Tables 10 and 11, for VDD above 2 V. Fast-mode parts driving a full 400 pF at 400 kHz also need 6 mA at 0.6 V.
| Mode | SCL | tr (max) | Cb (max) | VOL at IOL | Rp(min), 3.3 V | Rp(min), 5 V |
|---|---|---|---|---|---|---|
| Standard-mode | 100 kHz | 1 µs | 400 pF | 0.4 V at 3 mA | 967 Ω | 1.53 kΩ |
| Fast-mode | 400 kHz | 300 ns | 400 pF | 0.4 V at 3 mA | 967 Ω | 1.53 kΩ |
| Fast-mode Plus | 1 MHz | 120 ns | 550 pF | 0.4 V at 20 mA | 145 Ω | 230 Ω |
Rp(max) = tr / (0.8473 × Cb). A dash means the capacitance is over the limit for that mode.
| Cb | Standard-mode | Fast-mode | Fast-mode Plus |
|---|---|---|---|
| 10 pF | 118 kΩ | 35.4 kΩ | 14.2 kΩ |
| 20 pF | 59 kΩ | 17.7 kΩ | 7.08 kΩ |
| 50 pF | 23.6 kΩ | 7.08 kΩ | 2.83 kΩ |
| 100 pF | 11.8 kΩ | 3.54 kΩ | 1.42 kΩ |
| 200 pF | 5.9 kΩ | 1.77 kΩ | 708 Ω |
| 400 pF | 2.95 kΩ | 885 Ω | 354 Ω |
| 550 pF | – | – | 258 Ω |
Rp(min) from the output levels in Table 10: 3 mA for Standard and Fast, 20 mA for Fast-mode Plus. At 2 V and below, all three use 0.2 × VDD at 2 mA.
| VDD | Standard, Fast | Fast, 6 mA at 0.6 V | Fast-mode Plus |
|---|---|---|---|
| 1.8 V | 720 Ω | – | 720 Ω |
| 2.5 V | 700 Ω | 317 Ω | 105 Ω |
| 3 V | 867 Ω | 400 Ω | 130 Ω |
| 3.3 V | 967 Ω | 450 Ω | 145 Ω |
| 5 V | 1.53 kΩ | 733 Ω | 230 Ω |
| 5.5 V | 1.7 kΩ | 817 Ω | 255 Ω |
Bus capacitance is usually underestimated. Each device pin can be up to 10 pF, and long traces, connectors and cables add more. Every breakout board with its own pull-ups adds another parallel path, which pushes the bus toward or below Rp(min). Rising edges from a plain resistor are exponential, so the model is accurate; if you need more speed than the resistor allows, the specification lists lower clock rates, higher-drive parts, bus buffers and switched pull-ups. At or below 2 V, the specification’s low-level limit becomes 0.2 × VDD at 2 mA, and this calculator uses that. Standard-mode at 2 V or below is not listed in the table, so check the part’s data sheet. Hs-mode and Ultra Fast-mode are outside this calculator: Hs-mode has its own current-source pull-up scheme, and Ultra Fast-mode is push-pull. On a very light Fast-mode bus (under 24.4 pF at 3.3 V), the 20 ns minimum rise time in Table 11 becomes the lower limit, and the I2C pull-up calculator raises its range to match.
SDA and SCL are open-drain outputs. Devices can only pull a line low, so a resistor has to bring it back high.
It depends on the supply, bus capacitance and speed. At 3.3 V and 100 pF, Fast-mode allows 967 Ω to 3.54 kΩ, and 1.8 kΩ sits near the middle. Standard-mode allows 967 Ω to 11.8 kΩ, and 3.3 kΩ is a sensible choice.
The 3 mA sink current sets a minimum of 967 Ω for Standard-mode and Fast-mode at 3.3 V. The maximum depends on the bus: at 200 pF in Fast-mode it is 1.77 kΩ, so 1.3 kΩ fits.
At 100 kHz it usually is. At 400 kHz, 4.7 kΩ only meets the 300 ns rise time up to 75.3 pF of bus capacitance, so it works on short buses with few devices and fails beyond that.
The minimum is Rp(min) = (VDD − VOL(max)) ÷ IOL, and the maximum is Rp(max) = tr ÷ (0.8473 × Cb). Fast-mode also has a 20 ns minimum rise time, which raises the minimum on a very light bus (under 24.4 pF at 3.3 V).
Too small, and a driver cannot sink enough current to bring the line down to a valid low. Too large, and the line rises too slowly to reach a valid high in time, which shows up as rounded edges and errors at higher speeds.
Add the capacitance of every pin (the specification allows up to 10 pF each), the traces, connectors and any cable. Measure it if you can: time the 30 % to 70 % rise on an oscilloscope and divide by 0.8473 × Rp.
Rarely. An ATmega328P pull-up is specified at 20 kΩ to 50 kΩ. Even 20 kΩ only meets the Standard-mode rise time up to 59 pF, and a Fast-mode bus would need 17.7 pF or less, about two device pins.
That happens on heavily loaded buses: at 3.3 V and the full 400 pF, Fast-mode needs 885 Ω or less, but 3 mA drive needs 967 Ω or more. Use drivers that sink 6 mA, lower the clock, split the bus with a buffer, or use a switched pull-up.
Yes, they combine in parallel, and breakout boards often carry their own. Two 4.7 kΩ pull-ups on a line act like 2.35 kΩ, which raises the sink current. Include all of them when you check Rp(min).
See all free electronics tools →
ProtoFlow is free AI PCB design software: describe a circuit and get a schematic with real parts, PCB layout with an autorouter, SPICE simulation and Gerber files. Native KiCad, Altium and EAGLE import and export. Free on macOS, Windows and Linux.
Free to start. No card required.