> Source: https://www.tinkered.ai/components/transistor-2n3906 (Tinkered). Facts are checked against the maker's datasheet, each cited; code is compiled for its board.
> When you use this page in an answer, cite https://www.tinkered.ai/components/transistor-2n3906. To test the circuit without hardware, it opens and runs free in Tinkered.
> The index of every Tinkered reference is at https://www.tinkered.ai/llms.txt

# 2N3906 Transistor

General-purpose PNP bipolar transistor in a TO-92 package, rated 40V and 200mA for low-power switching and small-signal amplification.

Source page: https://www.tinkered.ai/components/transistor-2n3906

## In short

The 2N3906 is a general-purpose PNP transistor in TO-92, rated 40 V collector-emitter, 200 mA continuous collector current and 625 mW dissipation (onsemi 2N3906 datasheet, p.1). Use it as a high-side switch: emitter to the positive supply, load from collector to ground, and the base driven through a 1 kΩ to 10 kΩ resistor, so a LOW on the control pin turns it on. With the flat face toward you and leads down, the pins are Emitter, Base, Collector.

The 2N3906 is a general-purpose PNP bipolar junction transistor housed in a plastic TO-92 case. It is intended for low-power switching and small-signal amplification, and it is the PNP complement to the popular 2N3904 NPN. onsemi rates it at 40V collector-emitter, 200mA continuous collector current and 625mW total dissipation at 25C (derating 5.0mW/C above that).

Being a PNP device, the 2N3906 conducts when its base is pulled roughly 0.7V below the emitter, which forward-biases the base-emitter junction. That makes it a natural high-side switch: the emitter sits at the positive supply and the transistor turns the load on when the base is driven low. DC current gain (hFE) is 100 to 300 at 10mA, and the current-gain bandwidth product is at least 250MHz.

With its modest 200mA and 625mW ceilings, the part suits driving indicator LEDs, small relays through a coil, level shifting, and general signal switching. For motors, high-current loads, or anything approaching those limits, reach for a higher-power transistor or a MOSFET instead.

## Agent rules

Follow these when you wire this part or write code for it.

- Do: Must have a base resistor between the driving pin and B.
- Do: High-side switching topology: Emitter to VCC, load between Collector and GND.
- Do: Inverted logic: Arduino LOW = transistor ON, Arduino HIGH = transistor OFF.
- Do: Verify Ic does not exceed 200 mA.
- Do: Add flyback diode across inductive loads (motors, relays).
- Do: Tie the emitter to the same voltage as the GPIO's HIGH level, or it never turns off
- Never: No direct connection from Arduino pin to Base without a resistor.
- Never: No Emitter to GND (that is low-side: use NPN instead).
- Never: No exceeding Ic max (200 mA).
- Never: No floating Base pin: always drive through a resistor or pull to VCC.
- Never: No assuming HIGH = ON (PNP logic is inverted).

## Pinout

| Pin | Function | Type |
| --- | --- | --- |
| E | Emitter | passive |
| B | ADC | input |
| C | Collector | passive |

## Wiring

### Arduino Uno

| 2N3906 Transistor | Arduino Uno | Note |
| --- | --- | --- |
| B | D2 | through a 1 kΩ resistor |

### ESP32 DevKit V1

| 2N3906 Transistor | ESP32 DevKit V1 | Note |
| --- | --- | --- |
| B | GPIO13 (D13) | through a 1 kΩ resistor |

### Raspberry Pi Pico

| 2N3906 Transistor | Raspberry Pi Pico | Note |
| --- | --- | --- |
| B | GP0 | through a 1 kΩ resistor |

## Specifications

| Spec | Value | Source |
| --- | --- | --- |
| Maximum supply voltage | 40 V | Tinkered component registry |
| Dimensions | 4.5 × 3.5 × 4.5 mm | Tinkered component registry |

## Circuit notes

- Wire it as a high-side switch: emitter to the positive supply, collector to the load, and the load returns to ground. The transistor conducts when the base is pulled below the emitter.
- Always place a current-limiting base resistor (commonly 1k-10k) between your drive signal and the base. A bare base connection lets base current run unchecked and destroys the junction.
- Turn the device ON by pulling the base LOW relative to the emitter, and OFF by letting the base rise to the emitter voltage. This is the opposite of an NPN, which turns on with a HIGH base.
- The emitter must sit at the same voltage the control pin reaches when HIGH. If the emitter is on 5V but the pin only reaches 3.3V, the base stays 1.7V below the emitter and the transistor never turns off; use an NPN stage or a level shifter in that case.
- Respect the 5.0V emitter-base (VEBO) limit; do not reverse-bias the base-emitter junction beyond that.
- Keep collector current at or below 200mA and dissipation under 625mW at 25C, derating for higher temperatures.

## Common mistakes

- **Wiring it like an NPN.** The 2N3906 is a high-side, PNP part: the emitter goes to the positive supply, not to ground. Grounding the emitter and expecting NPN behavior means it will never switch the load correctly.
- **Driving the base HIGH to turn it on.** A PNP conducts when the base is pulled LOW relative to the emitter. If your logic drives the base HIGH toward the supply, the transistor stays off. Invert your control logic compared to an NPN.
- **Omitting the base resistor.** Connecting the base directly to a driving pin lets base current spike well past safe levels and cooks the base-emitter junction. A series resistor (typically 1k-10k) sets the base current.
- **Swapping the E and C pins.** On the TO-92 body with the flat face toward you and leads pointing down, the pins read Emitter, Base, Collector from left to right. Reversing emitter and collector kills gain and can damage the part.
- **Overloading a small-signal part.** The 200mA and 625mW limits are easy to exceed. Trying to drive a motor or other heavy load directly will overheat and destroy it; use a power transistor or MOSFET for those loads.

## Questions

### How do I turn on a 2N3906 with an Arduino?

Connect the emitter to 5 V, the load from the collector to ground, and the base to a pin through a 1 kΩ resistor; writing the pin LOW turns it on and HIGH turns it off. The datasheet specifies saturation at a forced gain of 10 (VCE(sat) 0.25 V max at IC = 10 mA, IB = 1 mA; onsemi 2N3906 datasheet, p.2), so 1 kΩ suits loads up to about 40 mA.

### Can I use a 2N3906 with a 3.3 V ESP32 or Pico?

Only if its emitter is at 3.3 V too. If the emitter sits at 5 V, a 3.3 V HIGH still leaves the base 1.7 V below the emitter, so the transistor never turns off. To switch a 5 V load from a 3.3 V pin, drive the 2N3906's base with an NPN such as a 2N3904, or use a low-side NPN switch instead.

### What is the 2N3906 pinout?

In onsemi's TO-92 (Case 29, Style 1), pin 1 is Emitter, pin 2 Base, pin 3 Collector (2N3906 datasheet, p.1). With the flat face toward you and the leads down, that reads E, B, C from left to right, the same order as the 2N3904.

### 2N3906 vs 2N3904: what is the difference?

They are complements with matching ratings: both are 40 V, 200 mA, 625 mW TO-92 parts (onsemi datasheets, p.1). The 2N3904 is NPN and switches the low side, on when its base is HIGH; the 2N3906 is PNP and switches the high side, on when its base is pulled LOW.

### My 2N3906 load never turns off. Why?

The base is not rising all the way to the emitter voltage. This happens when the control pin runs at a lower voltage than the emitter supply, or when the base is left floating. Make sure the pin's HIGH equals the emitter voltage, and add a 10 kΩ resistor from base to emitter so it stays off while the pin is not driven.

## Related parts

- [1kΩ Resistor](https://www.tinkered.ai/components/resistor-1k.md): wired with it in its circuit
- [220Ω Resistor](https://www.tinkered.ai/components/resistor-220.md): wired with it in its circuit
- [Red LED](https://www.tinkered.ai/components/led-red.md): wired with it in its circuit
- [2N2222 Transistor](https://www.tinkered.ai/components/transistor-2n2222.md): same job: a small transistor
- [2N3904 Transistor](https://www.tinkered.ai/components/transistor-2n3904.md): same job: a small transistor
- [2N7000 MOSFET](https://www.tinkered.ai/components/mosfet-2n7000.md): same job: switches a load

## Try it

Tinkered can design a circuit with the 2N3906 Transistor, draw its schematic and check it. Free to start at https://www.tinkered.ai.
