You have a TO-92 transistor in your hand, three identical legs, and a footprint that has to be right before the boards are ordered. A transistor pinout tells you which leg is which: emitter, base and collector (E, B, C) for a bipolar transistor, or gate, drain and source (G, D, S) for a MOSFET. There is no single standard order, even inside the same TO-92 package. The 2N3904 is E-B-C, the BC547 is C-B-E, and two parts both sold as “2N2222” have opposite pin orders. The reliable answer always comes from the exact part number’s datasheet. This guide gives verified pinouts for the most searched transistors, shows how to read the diagrams, and explains how to keep the wrong order off your board. To keep a reference at your bench, download the Transistor Pinout PDF cheat sheet.
1. What Is a Transistor Pinout?
It is the map between a transistor’s physical leads and its terminals. A bipolar junction transistor (BJT) has three terminals: the emitter, the base and the collector. A MOSFET has a gate, a drain and a source. The pinout tells you which numbered lead (1, 2, 3) carries which terminal for one specific package.
- Base / gate: the control terminal. A small base current (BJT) or gate voltage (MOSFET) switches the main current.
- Collector / drain: where the main current enters in an NPN BJT or N-channel MOSFET.
- Emitter / source: where it leaves, usually toward ground in a low-side switch.
Why does it matter on a PCB?
A swapped emitter and collector rarely makes a dead short, but the circuit will not work as designed, and a swapped gate or source on a MOSFET usually stops it switching at all. On a production board, the pinout is fixed in copper by the footprint, so a wrong footprint means every board in the batch is wrong.
2. How Do You Read a Transistor Pinout Diagram?
Find the view the datasheet uses, then count from pin 1. For TO-92 parts, most datasheets number the pins with the flat face toward you and the leads pointing down, counting 1, 2, 3 from left to right. Power packages such as TO-220 use the same idea with the printed face toward you.
| Package | How datasheets usually show it | What marks pin 1 |
|---|---|---|
| TO-92 (3-lead plastic) | Flat face toward you, leads down | Left lead in that view |
| TO-18 (metal can) | Bottom view of the leads | The small tab on the can rim |
| SOT-23 (surface mount) | Top view: one pin on one side, two on the other | Pins 1 and 2 on the two-pin side |
| TO-220 (power) | Printed face toward you, leads down | Left lead; the metal tab is also a terminal |

The most common mistake is reading a bottom view as if it were a front view, which mirrors the order. Before you draw a footprint, write down which view the datasheet uses.
3. What Are the Pinouts of the Most Common Transistors?
These pin orders were checked against each part’s manufacturer datasheet. TO-92 parts are read with the flat face toward you and the leads down.
| Part | Type | Package | Pin 1 | Pin 2 | Pin 3 | Datasheet |
|---|---|---|---|---|---|---|
| 2N3904 | NPN | TO-92 | E | B | C | onsemi |
| 2N3906 | PNP | TO-92 | E | B | C | onsemi |
| PN2222A | NPN | TO-92 | E | B | C | onsemi |
| P2N2222A | NPN | TO-92 | C | B | E | onsemi |
| 2N2222A | NPN | TO-18 metal can | E | B | C | Central Semiconductor |
| BC547 / BC546 / BC548 | NPN | TO-92 | C | B | E | onsemi |
| BC557 / BC556 / BC558 | PNP | TO-92 | C | B | E | onsemi |
| BC337 | NPN | TO-92 | C | B | E | onsemi |
| S8050 | NPN | TO-92 | E | B | C | UTC |
| MMBT3904 | NPN | SOT-23 | B | E | C | Nexperia |
| TIP120 | NPN Darlington | TO-220 | B | C | E (tab = C) | onsemi |
| IRF540N | N-channel MOSFET | TO-220 | G | D | S (tab = D) | Infineon |
Other common parts, in the same view:
| Part | Type | Package | Pin 1 | Pin 2 | Pin 3 |
|---|---|---|---|---|---|
| BC327 | PNP | TO-92 | C | B | E |
| TIP31C / TIP41C | NPN | TO-220 | B | C | E (tab = C) |
| TIP32C / TIP42C | PNP | TO-220 | B | C | E (tab = C) |
| BD139 / BD140 | NPN / PNP | TO-126 | E | C | B |
| IRFZ44N / IRF3205 / IRLZ44N | N-channel MOSFET | TO-220 | G | D | S (tab = D) |
| IRF9540N | P-channel MOSFET | TO-220 | G | D | S (tab = D) |
| 2N7000 | N-channel MOSFET | TO-92 | S | G | D |
| BS170 | N-channel MOSFET | TO-92 | D | G | S |
| 2N7002 | N-channel MOSFET | SOT-23 | G | S | D |

Two pairs show why you cannot guess. The 2N3904 and the BC547 are both small NPN transistors in TO-92, with opposite pin orders. The 2N7000 and the BS170 are both small N-channel MOSFETs in TO-92, with drain and source swapped.
4. What Is the 2N2222 Pinout?
It depends on which part you actually have, because three different parts are sold under the “2N2222” name:
| Exact part | Package | Pin order (1-2-3) |
|---|---|---|
| 2N2222A | TO-18 metal can | E-B-C |
| PN2222A | TO-92 plastic | E-B-C |
| P2N2222A | TO-92 plastic | C-B-E |
PN2222A and P2N2222A look identical: same black TO-92 body, same three legs. One is the mirror of the other. That is why a BOM line that just says “2N2222” is not safe.
What happens when a BOM only says “2N2222”?
We have seen it in our own production. A customer’s BOM listed only “2N2222”. The parts that arrived for the build were a mix of TO-92 PN2222A (E-B-C) and P2N2222A (C-B-E). The footprint matched one of them, so the boards built with the other part failed functional test, every one of them. Since then, our incoming inspection checks the full manufacturer part number against the customer’s CAD footprint before a transistor goes onto the line. The fix on your side is simple: put the full part number and manufacturer on the BOM, not the family name.
5. What Is the Pinout of an SMD (SOT-23) Transistor?
Check it separately, because it usually differs from the TO-92 version of the “same” transistor. Nexperia’s MMBT3904 (the surface-mount version of the 2N3904) is B-E-C in SOT-23, while the TO-92 2N3904 is E-B-C. The S8050 shows the same split: the TO-92 version is E-B-C, and the SOT-23 version from Jiangsu Changjing is B-E-C.
- In SOT-23, pin 3 sits alone on one side; pins 1 and 2 are on the other.
- Moving a design from TO-92 prototypes to SOT-23 production always needs a new footprint check.
- Marking codes on SOT-23 parts are short (two or three characters), so the reel label and part number matter more than the body marking.
6. How Are Power Transistor and MOSFET Pins Arranged?
In TO-220 packages, the metal tab is also a terminal, so it matters for both the footprint and the heatsink. On the TIP120 Darlington, the pins are B-C-E and the tab is the collector. On the IRF540N MOSFET, the pins are G-D-S and the tab is the drain.
- A tab connected to the collector or drain is live. If two parts share a heatsink, use insulating pads and washers, or the heatsink shorts them together.
- MOSFET gates are sensitive to static discharge, so handle loose MOSFETs on an ESD-safe bench.
- Do not assume P-channel and N-channel parts in the same package share a pinout; check each datasheet.
7. How Do You Identify Transistor Pins with a Multimeter?
Use the diode-test range and find the base first. A bipolar transistor behaves like two diodes that share the base. The method below follows the All About Circuits meter check:
- Set the meter to diode test.
- Test every pair of leads in both directions (six readings).
- The lead that shows a forward reading to both other leads is the base.
- If the red (positive) probe is on the base for those two readings, it is NPN; if the black probe is, it is PNP.
- All other combinations should read open (OL).

Can a multimeter tell the emitter from the collector?
Not reliably. The two junction readings are close, so confirm emitter and collector against the exact part’s datasheet once you know the base and the polarity. If every pair reads open in both directions, the part may be a MOSFET or it may be damaged.
8. How Do You Prevent Pinout Errors on a PCB?
Tie the footprint to the exact part number, and check it before layout is released. Most pinout errors are library errors, not assembly errors, so the assembler will build exactly what the files say.
| Step | What to do | What it prevents |
|---|---|---|
| BOM | Full manufacturer part number and manufacturer, no family names | Mixed parts with opposite pin orders |
| Footprint | Draw it from that part’s datasheet, noting the datasheet’s view | Mirrored or rotated pin assignment |
| Package change | Recheck the footprint when moving between TO-92, SOT-23 and TO-220 | Different pin orders for the “same” transistor |
| Bottom-side parts | Confirm the CAD tool mirrors the footprint, not the pin numbers | Mirrored pin order on the bottom side |
| Silkscreen | Mark the flat side or pin 1 | Rotated through-hole parts at hand assembly |
| DFM review | Ask the assembler to compare BOM part numbers with footprints | Library mismatches before fabrication |
See our BOM preparation guide for the full BOM format, and our IC programming and testing page for how parts are verified before assembly.
Will automated inspection catch a reversed transistor?
Usually not, if the files are wrong. AOI checks that the part matches the board’s orientation marks and the approved reference, so a wrong footprint that was built consistently looks correct. Electrical tests such as ICT or functional test catch the fault later; see AOI vs X-ray vs ICT for what each one finds.

How can we help?
Send your BOM with full part numbers and your Gerber files, and our engineers will compare each discrete transistor against its footprint during the quote review. We quote within 24 hours with no minimum order quantity, and 2–4 layer FR-4 prototype boards are free. Our SMT assembly and through-hole assembly lines then build to the checked files.
9. Can You Swap Two Transistors if the Pinout Matches?
Only if the electrical ratings also fit. A matching pinout means the part fits the footprint; it does not mean it survives the circuit. Before substituting, check:
| Parameter | Requirement for the substitute |
|---|---|
| Pinout and package | Identical, in the same view |
| Collector-emitter (or drain-source) voltage | Equal or higher |
| Collector (or drain) current | Equal or higher |
| Power dissipation | Equal or higher at your operating temperature |
| Gain (hFE) or gate threshold | Within what the circuit was designed for |
| Switching speed | Fast enough for the circuit’s frequency |
The 2N3904 and the BC547 are a common example: similar small-signal NPN parts, but with opposite pin orders, so they are not drop-in replacements on the same footprint.
Conclusion
A transistor pinout is the lead order of one exact part, not of a family or a package. The 2N3904 is E-B-C, the BC547 is C-B-E, and the PN2222A and P2N2222A sold as “2N2222” are opposites. Read the datasheet’s view, put full part numbers on the BOM, recheck footprints when the package changes, and ask for a DFM review that compares parts against footprints. Send your BOM and Gerbers and contact us today for a quote within 24 hours.
FAQs
What are the three pins of a transistor called? On a bipolar transistor, the emitter, base and collector. On a MOSFET, the source, gate and drain.
How do I know if my TO-92 is E-B-C or C-B-E? Look up the exact part number’s datasheet. The package does not decide the order: the 2N3904 is E-B-C and the BC547 is C-B-E in the same TO-92 body.
What’s the best way to find pin 1 on an SMT package? Use the pin 1 mark on the body (a dot, notch or bevel) and the datasheet’s top-view drawing. On SOT-23, pins 1 and 2 are on the side with two pins.
Can I flip a transistor around if my PCB footprint is wrong? Yes, for a through-hole part on a prototype, you can rotate or cross the leads to correct the order. Fix the footprint before the next build, because bent leads are hard to inspect and stress the part.
Will an assembly house catch my reversed transistor footprint? Not from inspection alone, if the BOM and the Gerber files agree with each other. A DFM review that compares each part number with its footprint is the step that catches it.
Upload your files today · Free DFM check before production · Ship worldwide
Get your PCB prototypes in as fast as 24 hours. We handle FR4, Rogers, and hybrid boards, with standard builds up to 24 layers and higher layer counts subject to engineering review — free prototypes for 2–4 layer FR-4 boards, no minimum order.
Just upload your Gerber + BOM — we source every part, assemble, and inspect (AOI + X‑Ray) so you don't have to chase suppliers. PCB assembly typically takes 5–8 working days once all components are in stock. The confirmed delivery schedule is subject to your quotation.