Pull Up Resistor: What is it (And How Does it Work)?

what is a pull up resistor
💡
Key learnings:
  • Pull-Up Resistor Definition: A pull-up resistor is defined as a resistor used in electronic circuits to ensure a known voltage state for a signal.
  • Function: Pull-up resistors prevent ambiguous voltage states in digital circuits by keeping the voltage controlled when a switch is open.
  • Avoiding Floating Conditions: These resistors help avoid floating conditions where the circuit can’t decide between high or low states.
  • Short Circuit Prevention: Pull-up resistors prevent short circuits by avoiding direct connections between input pins and ground or supply voltage.
  • Common Applications: They are used to interface switches with digital circuits, in I2C protocol buses, and in resistive sensors to control current flow.

What is a Pull-up Resistor?

A pull-up resistor connects an undriven signal node towards the positive supply and gives it a defined high level. Designers use pull-ups with transistors and switches. A pull-down gives the opposite default by connecting the node towards ground instead of Vcc through a pull-down resistor.

The component is a standard fixed-value resistor connected between a supply voltage and a signal node. Its resistance must establish a valid high level without overloading a device that pulls the node low.

A switch from the input node to ground provides a simple example.

A digital input recognises high (1) and low (0) levels.

Some 5 V TTL-compatible inputs guarantee high at 2 V or more and low at 0.8 V or less. CMOS and lower-voltage devices can use different limits.

A voltage between the guaranteed low and high thresholds is indeterminate. The device data sheet defines the actual limits.

A pull-up or pull-down prevents an otherwise undriven input from floating.

How Does a Pull-up Resistor Work?

The pull-up connects between the positive supply and the input node. With the switch open, it supplies leakage current and holds the node high.

pull up resistor
Pull Up Resistor

When the mechanical switch is open, the input rises close to the supply voltage. When the switch closes, it drives the input to ground.

The resistor sets the default high level, while the switch overrides that weak bias with a low level.

An open-drain or open-collector power electronics device can replace the mechanical switch.

When the switch closes, the pull-up limits current from the supply to ground. A resistor is required in that path; leaving an ordinary high-impedance input directly tied to a valid supply or ground is a different circuit and is not inherently a short circuit.

Pull-up vs. Pull-Down Resistor

The table compares the two default-bias arrangements.

 Pull-up ResistorPull-down Resistor
Input StabilityIt gives an undriven input a defined high level.It gives an undriven input a defined low level.
ConnectionOne terminal connects to VCC.One terminal connects to ground.
Circuit Diagrampull up resistorpull down resistor working
When a switch is openCurrent supplies leakage from VCC, so the input is high.The resistor connects the input to ground, so the input is low.
When a switch is closeCurrent flows from VCC through the resistor and switch to ground, so the input is low.VCC drives the input high while current flows through the pull-down.
UsedUsed when the required default is highUsed when the required default is low
Formula

    \[ R_{pull-up} = \frac{V_{supply} - V_{H(min)}}{I_{sink}} \]

    \[ R_{pull-down} = \frac{V_{L(max)} - 0}{I_{source}} \]

How to Calculate Pull Up Resistor

Ohm’s law sets one pull-up limit from the minimum guaranteed high level and the worst-case current drawn from the node:

    \[ R_{pull-up} = \frac{V_{supply} - V_{Hmin}}{I_{sink}} \]

where:

Vsupply is the supply voltage,

VHmin is the minimum voltage guaranteed as a high state,

Isink is the worst-case current drawn from the node while it must remain high. For an open-drain bus, also calculate the minimum resistance from the driver’s low-level voltage and sink-current rating, then check rise time and bus capacitance.

Applications of Pull-up Resistors

Pull-up resistors provide a default high level or complete an open-drain signal in these cases:

  • A switch or open-collector output can pull a digital input low while the resistor provides its high state.
  • I2C requires pull-ups on SDA and SCL because connected devices use open-drain or open-collector outputs and only pull the shared lines low.
  • A pull-up and resistive sensor can form a voltage divider before analog to digital conversion, with the value chosen for sensor range, loading and converter input requirements.
Want To Learn Faster? 🎓
Get electrical articles delivered to your inbox every week.
No credit card required—it’s 100% free.

About Electrical4U

Electrical4U is dedicated to the teaching and sharing of all things related to electrical and electronics engineering.