Transistors

A transistor is a three-terminal semiconductor component in which a small signal controls a much larger current. As a switch, it lets a microcontroller pin run a motor, a relay or a strip of LEDs. As an amplifier, it turns a faint signal into a strong one. Billions of them make up the processor in every computer and phone. This article explains how the two main kinds work, how to wire them, and how to test and handle them safely.

About the analogies. Everyday comparisons appear only in shaded "Analogy" boxes beside the real physics, and each box says where the comparison stops working.

1. A short recap

2. What a transistor is

A transistor is a semiconductor device that can amplify or switch electrical signals.[3] A small current or voltage at one of its three terminals controls a much larger current between the other two. The energy in that larger current comes from the power supply, not from the control signal; the transistor only regulates it.[4]

Two families matter most. The bipolar junction transistor (BJT) is controlled by a small current into its middle terminal. "Bipolar" means both electrons and holes carry its current. The field-effect transistor (FET), most often a MOSFET, is controlled by a voltage on an insulated terminal that draws almost no steady current, and uses only one kind of carrier.[5]

Analogy: a valve on a water main. A small turn of a handle controls a large flow pushed by the pressure in the main, not by your hand. OpenStax uses the same picture: transistors are "one-way valves that can be carefully opened and closed to control current."[3]

Where it breaks down: a transistor's current flows one way only, so it cannot pass AC without help. A BJT's "handle" is itself a small current that flows through the device, while a MOSFET's is a voltage that needs only a brief burst of current. A transistor also wastes some power as heat even when "wide open," and it can be destroyed in an instant if pushed past its ratings.

3. A short history

Before transistors, amplifiers and switches used vacuum tubes and electromechanical relays. After World War II, William Shockley organized a group at Bell Telephone Laboratories to find semiconductor replacements for them.[6] On December 16, 1947, John Bardeen and Walter Brattain succeeded with the point-contact transistor: two gold contacts on a slab of germanium, where the voltage on one contact controlled the current through the other, amplifying a signal up to 100 times. Bell Labs announced the "transistor" on June 30, 1948.[6]

On January 23, 1948, Shockley conceived the sturdier junction transistor, a sandwich of doped layers that works by injecting minority carriers across a junction, the principle behind all bipolar transistors today.[7] The first working n-p-n junction transistors were announced in 1951.[8] Shockley, Bardeen and Brattain shared the 1956 Nobel Prize in Physics "for their researches on semiconductors and their discovery of the transistor effect."[9]

Early transistors were germanium; the Regency TR-1 pocket radio of 1954 used four.[10] Germanium leaked current when "off" and worked only from about 0 to 70 °C, while silicon worked from −55 to 125 °C, and by the end of the 1950s silicon was the preferred material.[11] In 1959 Mohamed Atalla and Dawon Kahng at Bell Labs built the first successful MOS (metal-oxide-semiconductor) field-effect transistor.[12] In 1963 Frank Wanlass and Chih-Tang Sah showed that pairing p-channel and n-channel MOS transistors drew close to zero power while idle, the idea now called CMOS.[13] Today over 99 percent of microchips use MOS transistors.[12]

Gordon Moore predicted in 1965 that the components on a chip would double every year, revised in 1975 to every two years: Moore's law.[14] Intel's first microprocessor, the 4004 of 1971, had 2,300 transistors.[15] A 1995 Pentium held nearly 5 million.[14] Apple's M3 chip of 2023 has 25 billion, and the M3 Max 92 billion.[16]

4. How a bipolar junction transistor works

A BJT is three doped regions in a row, making two PN junctions back to back. An NPN transistor has a thin p-type layer between two n-type layers; a PNP has the reverse.[3]​[17] The regions are:

Inside an NPN transistor, with the NPN and PNP symbols Top: a cross-section of an NPN bipolar junction transistor drawn as a horizontal bar of three regions. On the left is the emitter, N-type and heavily doped, crowded with free electrons. In the middle is a narrow base region, P-type, thin and lightly doped, with a few holes. On the right is the collector, N-type and physically larger. Dashed lines mark the two junctions: the base-emitter junction, labeled forward biased, and the collector-base junction, labeled reverse biased. Terminals E, B and C connect to the emitter on the left, the base at the bottom and the collector on the right. Three arrows show electrons leaving the emitter, crossing the base and continuing into the collector; one curved arrow shows a small share of electrons turning down and out through the base lead. A note explains that about 95 to 98 percent of the electrons reach the collector and the few that recombine with holes in the base form the base current. Bottom: the schematic symbols for an NPN transistor, whose emitter arrow points outward, and a PNP transistor, whose emitter arrow points inward, each with base, collector and emitter labeled. ECB EmitterN+, heavily doped BaseP, thin, light doping CollectorN, physically larger B–E junction: forward biased C–B junction: reverse biased Electrons are injected from the emitter, diffuse across the thin base and are swept into the collector (about 95 to 98% of them). A few recombine with holes in the base: that is the base current. free electron hole BCE NPNemitter arrow points out BCE PNPemitter arrow points in
Figure 1. Inside an NPN transistor. Electrons from the heavily doped emitter cross the thin base and are swept into the collector; the few that recombine in the base make up the base current. Symbols: the emitter arrow points out for NPN and in for PNP. Proportions exaggerated. Sources: NEETS Module 7; SparkFun.[19]​[17]

In normal use, the base-emitter junction of an NPN transistor is forward biased: the base sits about 0.6 to 0.7 V above the emitter, like a silicon diode.[17]​[19] This voltage is VBE. Electrons, the majority carriers in the n-type emitter, flood into the base, where they are minority carriers. The base is so thin and has so few holes that almost none recombine. Instead they diffuse (spread by random motion) across to the collector-base junction.[19]​[7]

That junction is reverse biased, with the collector more positive than the base. A reverse-biased junction blocks majority carriers but sweeps minority carriers straight across, so the arriving electrons are pulled into the collector. Typically 95 to 98 percent of the emitter current reaches the collector and 2 to 5 percent leaves through the base, so IE = IB + IC.[19]

So a small base current controls a large collector current. The ratio is the current gain, β (beta), written hFE on datasheets: IC = β × IB.[3] With β = 100, 1 mA into the base allows 100 mA through the collector. Typical values run from 50 to 200, some up to 2,000.[17] Gain also varies between parts and with current: the 2N3904 guarantees 100 to 300 at 10 mA but only 30 or more at 100 mA.[20] Good designs never depend on an exact beta.

A PNP works the same way with every polarity reversed: holes are the carriers, current flows from emitter to collector, and you turn it on by pulling the base about 0.6 V below the emitter.[17] Emitter and collector are not interchangeable, because they are doped differently.[18]

5. How a MOSFET works

A MOSFET (metal-oxide-semiconductor field-effect transistor) controls current with an electric field. Carriers enter at the source (S) and leave at the drain (D), and the gate (G) controls the flow. The gate is a metal or polysilicon layer on a very thin film of silicon dioxide, an insulator, so it never touches the silicon.[5]

In the common N-channel enhancement MOSFET, the source and drain are heavily doped n-type islands (N+) in a block of p-type silicon, the body. With no gate voltage, the path from source to drain runs n-p-n, two junctions back to back, so no current flows. Make the gate positive relative to the source and the gate, oxide and body act like a small capacitor: the gate's positive charge pulls electrons to the surface just beneath the oxide. Once enough gather, they form a thin layer that behaves like n-type silicon, an inversion channel, joining source to drain.[5]

An N-channel enhancement MOSFET, off and on Two side-by-side cross-sections of an N-channel enhancement MOSFET. Each shows a block of P-type silicon, the body. Near its top surface sit two heavily doped N-plus regions, the source on the left and the drain on the right, each with a metal contact and a terminal labeled S and D. Between them, on top of the silicon, is a thin layer of insulating oxide, and on top of that the gate electrode with terminal G. A wire ties the body to the source. Left panel, gate-to-source voltage zero: there is no channel; the two N-plus regions and the P body form two back-to-back PN junctions, so the transistor is off. Right panel, gate-to-source voltage above the threshold: plus signs on the gate, and a row of electrons gathered just under the oxide forms a thin N-type inversion channel joining source to drain; an arrow shows electrons flowing from source to drain, so the transistor is on. A legend identifies the gate, the oxide insulator and the N-plus regions, and notes that the body is tied to the source. N+N+SGDP-type bodyVGS = 0: OFFNo channel: the two N+ regions and the P body formtwo back-to-back PN junctions, so no current flows. N+N+SGDP-type body+ + + + + +electrons flow S to D+VGSVGS above VGS(th): ONThe gate's + charge draws electrons into a thinN-type inversion channel joining source and drain. gate (metal or polysilicon) oxide (insulator) N+ source, drain body tied to source
Figure 2. An N-channel enhancement MOSFET. With the gate at the source voltage there is no channel; above the threshold, the gate's charge pulls electrons into an inversion channel under the oxide. Not to scale. Source: All About Circuits.[5]

The gate-to-source voltage, VGS, at which the channel just starts to form is the threshold voltage, VGS(th). Higher gate voltage builds a stronger channel, and a fully on MOSFET behaves like a small resistor, RDS(on). Two datasheet traps: the threshold is measured at a tiny current, 250 µA for the IRLZ44N, so a gate at threshold is barely on; and RDS(on) is guaranteed only at the gate voltages listed.[21] A logic-level MOSFET is rated at gate voltages a logic chip can supply, such as 5 V.[21] RDS(on) also rises as the part heats up.[22]

The insulated gate draws no steady current, but it needs a brief surge to charge its capacitance at each switch.[5] Datasheets give the charge needed as total gate charge, Qg: 48 nC for the IRLZ44N.[21]

A P-channel MOSFET is the mirror image and turns on when the gate is pulled below the source.[23] A depletion-mode MOSFET has a built-in channel, conducts at zero gate voltage and is turned off by the gate; enhancement mode, off until turned on, is the most common.[5]​[19] In a discrete MOSFET (one transistor per package) the body is tied to the source, which leaves a PN junction from source to drain called the body diode.[5]​[22]

The JFET, briefly

The junction field-effect transistor (JFET) has a gate that forms a PN junction with the channel instead of being insulated. Reverse biasing that junction widens its depletion region and squeezes the channel until it is "pinched off."[24]​[19] A JFET conducts at zero gate voltage, and its gate draws almost no current, so it barely loads the signal feeding it.[19]

6. Symbols, packages and pinouts

On a schematic, a BJT's emitter arrow shows the direction of conventional current: out of an NPN, into a PNP. SparkFun's memory aid: NPN means "not pointing in."[17] A MOSFET symbol draws the gate as a separate line, because it is insulated; a broken channel line marks an enhancement part, and the body arrow points in for N-channel.[5] The physical case is the package:

The key rule: there is no standard pin order. The base is often not the middle lead, and the only sure guides are the datasheet and a meter test.[18]​[19] The 2N3904 and BC547 are both small NPN transistors in TO-92 cases, yet their pins run in opposite orders.[20]​[28] Packages differ too: the 2N3904 runs E-B-C, while the MMBT3904 numbers its pins base, emitter, collector.[20]​[27] Check the datasheet for the exact part and package in your hand.

Common transistor packages and pinouts Drawings of common transistor packages with their pins numbered and named. Top left, three TO-92 packages, small black plastic bodies with a flat face and three leads, viewed with the flat face toward you and the leads pointing down. The 2N3904, an NPN transistor, has pins 1, 2, 3 as emitter, base, collector. The BC547, also NPN, has the reverse order: collector, base, emitter. The 2N7000, an N-channel MOSFET, has source, gate, drain. Top right, two TO-220 packages, larger black bodies with a metal mounting tab and hole above, viewed from the printed face. The TIP120 Darlington has base, collector, emitter, and its tab is the collector. The IRLZ44N MOSFET has gate, drain, source, and its tab is the drain. Bottom left, a tiny SOT-23 surface-mount package about 3 millimeters long, seen from the top, labeled MMBT3904: pin 1 base and pin 2 emitter on one side, pin 3 collector alone on the other. A highlighted note says there is no standard pin order, so check the datasheet for the exact part and package. TO-92 (flat face toward you, leads down) 2N39041E2B3CNPN BC5471C2B3ENPN, order reversed! 2N70001S2G3DN-channel MOSFET TO-220 (printed face toward you) TIP1201B2C3Etab = collector IRLZ44N1G2D3Stab = drain 3 = C 1 = B2 = E MMBT3904 SOT-23, top view,about 3 mm long There is no standard pin order. Check the datasheet for the exact part number and package.
Figure 3. Common packages and pin orders, from each part's datasheet. The 2N3904 and BC547 are reversed, and a TO-220 tab is electrically live. Sources: Diotec, Infineon and Nexperia datasheets.[20]​[28]​[25]​[26]​[21]​[27]

7. Common parts and their key specs

Datasheets list absolute maximum ratings, limits never to be exceeded, then characteristics under stated test conditions. For a BJT, look at maximum voltage VCEO, current IC, power Ptot, gain hFE, and VCE(sat), the small voltage left across it when fully on.[20] For a MOSFET, look at VDS, ID, RDS(on), VGS(th) and the maximum gate voltage, beyond which the oxide fails.[21]

Common transistors and their key ratings (from the cited datasheets)
PartType and packageKey ratingsTypical use
2N3904NPN, TO-92 (E-B-C)40 V; 200 mA; 625 mW; hFE 100 to 300 at 10 mA[20]General small-signal switching and amplifying[20]
2N3906PNP, TO-92−40 V; −200 mA; hFE 100 to 300 at 10 mA[29]The 2N3904's complementary (mirror-image) partner[20]
2N2222ANPN, TO-9240 V; 600 mA; hFE 100 to 300 at 150 mA; VCE(sat) ≤ 0.3 V at 150 mA[30]Switching somewhat heavier loads
BC547NPN, TO-92 (C-B-E)45 V; 100 mA; 500 mW; gain groups A, B, C from 110 up to 800 at 2 mA[28]Small-signal amplifying
2N7000N-channel MOSFET, TO-92 (S-G-D)60 V; 200 mA; VGS(th) 0.8 to 3 V; RDS(on) ≤ 5 Ω at 10 V[25]Small loads, logic signals
IRLZ44NN-channel logic-level MOSFET, TO-220 (G-D-S, tab D)55 V; 47 A (case held at 25 °C); RDS(on) ≤ 0.025 Ω at 5 V; VGS(th) 1 to 2 V; VGS ±16 V max[21]Switching amps from a 5 V logic pin
AO3400AN-channel MOSFET, SOT-2330 V; 5.7 A; RDS(on) < 48 mΩ at 2.5 V; VGS ±12 V max[31]Compact switching from 3.3 V logic
TIP120NPN Darlington, TO-220 (B-C-E, tab C)60 V; 5 A; hFE ≥ 1,000; VCE(sat) ≤ 2 V at 3 A; 2 W without a heat sink[26]Older motor and lamp drivers

8. Operating regions

A BJT has three useful regions.[17] In cutoff, VBE is below about 0.6 V, no base current flows, and it is an open switch. In the active region, the base-emitter junction is forward biased, the collector-base junction reverse biased, and IC = β × IB; amplifiers work here. In saturation, both junctions are forward biased and it acts like a closed switch with only about 0.05 to 0.2 V across it; extra base current no longer raises the collector current, which the load now limits.

BJT operating regions on a set of collector curves A graph of collector current, from 0 to 6 milliamperes, against collector-emitter voltage, from 0 to 12 volts, for an illustrative NPN transistor with a current gain of about 100. Five curves are drawn for base currents of 10, 20, 30, 40 and 50 microamperes. Each rises steeply within the first fraction of a volt, then runs almost flat at about 100 times its base current: 1, 2, 3, 4 and 5 milliamperes. A narrow shaded strip near zero volts is labeled saturation, the flat middle area is labeled active or linear region, where collector current is about beta times base current, and the bottom edge, with no base current and almost no collector current, is labeled cutoff. A dashed load line runs from 12 volts at zero current down-left to about 5.5 milliamperes at zero volts, for a 12 volt supply and a 2.2 kilohm collector resistor. A dot where it crosses the 30 microampere curve marks the bias point Q, at about 5.1 volts and 3.2 milliamperes. 0 2 4 6 8 10 12 0 1 2 3 4 5 6 10 µA 20 µA 30 µA 40 µA 50 µA IB = Q, the bias point (5.1 V, 3.2 mA) load line: 12 V supply, RC = 2.2 kΩ saturation active (linear) region: IC ≈ β × IB cutoff: IB = 0, IC ≈ 0 collector-emitter voltage VCE (volts) collector current IC (mA)
Figure 4. Illustrative collector curves for an NPN transistor with β ≈ 100, modeled for teaching, not from a datasheet. The dashed load line shows every combination a 12 V supply and 2.2 kΩ collector resistor allow. An amplifier rests near the middle (Q); a switch jumps between the cutoff and saturation ends. Sources: SparkFun; All About Circuits.[17]​[32]

A MOSFET also has three regions, with clashing names.[22] In cutoff, VGS is below threshold. In the ohmic region (also called linear or triode), the drain-source voltage is small and the channel acts like a resistor; a MOSFET switch sits here when on. In the saturation region, the drain-source voltage is large and drain current levels off at a value set by VGS; this is the amplifying region, the counterpart of the BJT's active region.

So "saturated" means fully on for a BJT but amplifying for a MOSFET. Infineon adds that the linear region differs from linear mode: "operating in linear mode means in the saturation region, not the ohmic region."[22] Check which convention a document uses.

9. Transistor circuits

A BJT switching a relay (worked example)

An Arduino Uno's ATmega328P chip can source only a little current per pin:[33] 40 mA absolute maximum, with its output voltage guaranteed only up to 20 mA.[34] A small relay, a switch moved by an electromagnet, needs more. The 5 V Omron G5V-1 has a 167 Ω coil drawing 30 mA.[35] A transistor solves this: the pin supplies a few milliamperes to the base, and the transistor carries the coil current. Sitting between load and ground, it is a low-side switch.[17]

Worked example: a transistor switching a relay from a microcontroller pin Schematic of a relay driver. A plus 5 volt rail runs across the top. A relay coil, 167 ohms and about 30 milliamperes, hangs from the rail down to the collector of a 2N3904 NPN transistor, whose emitter goes to ground. A flyback diode, a 1N4148, sits in parallel with the coil, its band (cathode) toward the plus 5 volt rail. On the left, a box labeled microcontroller pin, high equals 5 volts, feeds the transistor base through a 1.2 kilohm base resistor; an arrow marks the base current of about 3.5 milliamperes. The microcontroller ground and the transistor emitter ground are joined. The transistor is labeled switched fully on, saturated. To the right, a separate switch symbol represents the relay contacts, moved by the coil. +5 V relay coil167 Ω, about 30 mA flyback diode1N4148, band to +5 V 2N3904switched fully on(saturated) IC microcontroller pinHIGH = 5 V RB = 1.2 kΩ IB ≈ 3.5 mA grounds joined relay contacts(moved by the coil)
Figure 5. A 2N3904 switching a G5V-1 relay coil from a 5 V pin, with a 1N4148 flyback diode. Values are calculated below from the datasheets.[35]​[20]​[36]

The steps (values calculated from the cited datasheets):

  1. Check the transistor. The 2N3904's 40 V and 200 mA ratings comfortably exceed 5 V and 30 mA.[20]
  2. Choose the base current. A switch must saturate, so give the base far more than IC ÷ β. The datasheet specifies saturation with base current one tenth of collector current (10 mA and 1 mA).[20] Using that ratio, IB ≈ 30 mA ÷ 10 = 3 mA.
  3. Size the base resistor. Saturated, VBE is 0.65 to 0.85 V; allow 0.8 V.[20] Then RB = (5 − 0.8) V ÷ 0.003 A ≈ 1,400 Ω. The next lower standard value, 1.2 kΩ, gives about 3.5 mA. Even if the pin reaches only its guaranteed 4.2 V, the base gets about 2.8 mA.[34]
  4. Check the heat. With about 0.2 V across the transistor, the coil draws about 29 mA.[20]​[35] The transistor dissipates 0.2 V × 29 mA plus 0.8 V × 3.5 mA, under 10 mW against its 625 mW rating.
  5. Add the flyback diode. At switch-off the coil's spike would hit a collector rated for only 40 V. A diode across the coil, band toward +5 V, gives the current a safe loop until it dies away.[37]​[20] A 1N4148, rated 300 mA, easily handles 30 mA.[36] (Recap: inductive kickback; the flyback diode.)

On a 3.3 V board, (3.3 − 0.8) ÷ 0.003 ≈ 833 Ω, so use 820 Ω (calculated). A PNP used as a high-side switch, between supply and load, turns on when its base is pulled low.[17]

A logic-level MOSFET as a low-side switch (worked example)

For bigger loads a MOSFET is usually better: it needs no steady gate current and wastes little power when fully on. Suppose a 5 V pin must switch a 12 V LED strip drawing 3 A, using an IRLZ44N.

Worked example: a logic-level MOSFET as a low-side switch Schematic of a low-side MOSFET switch. A plus 12 volt rail feeds a load box labeled 12 volt LED strip drawing 3 amperes. The bottom of the load goes to the drain of an IRLZ44N N-channel MOSFET, drawn with its built-in body diode; its source goes to ground. On the left, a box labeled microcontroller pin, high equals 5 volts, drives the gate through a 330 ohm gate resistor. A 10 kilohm pull-down resistor runs from the gate to ground. Notes give the on-resistance as at most 0.025 ohms at a gate-source voltage of 5 volts and the heat as 3 squared times 0.025, about 0.23 watts. A footnote says the 12 volt supply negative and the microcontroller ground are joined. +12 V load: 12 V LED stripdrawing 3 A microcontroller pinHIGH = 5 V RG = 330 Ω 10 kΩpull-down IRLZ44N RDS(on) ≤ 0.025 Ω at VGS = 5 V built-in body diode heat: 3² × 0.025 ≈ 0.23 W The 12 V supply's negative and the microcontroller ground are joined.
Figure 6. An IRLZ44N switching a 12 V, 3 A load from a 5 V pin, with a gate resistor and pull-down. Values are calculated below from the datasheets.[21]​[34]
  1. Check the ratings. The IRLZ44N handles 55 V, and with 5 V on the gate its RDS(on) is at most 0.025 Ω.[21]
  2. Work out the heat (calculated). Power in a resistance is I2 × R: 32 × 0.025 = 0.225 W. With a junction-to-air thermal resistance of 62 °C per watt, the chip runs about 14 °C above the air.[21] No heat sink is needed.
  3. Add a gate resistor. The gate draws a surge at each switch.[5] A 330 Ω resistor limits it to about 5 V ÷ 330 Ω ≈ 15 mA, safe for the pin.[34] Delivering the 48 nC gate charge then takes roughly 3 µs (calculated), negligible for on-off switching.[21]
  4. Add a pull-down. During reset the pins are tri-stated, neither high nor low.[34] A floating gate can drift to any voltage, the same reason CMOS inputs must never float; a 10 kΩ resistor to ground is the usual fix.[23] It holds the MOSFET off until the pin drives it.
  5. Join the grounds. Gate voltage only matters relative to the source, so the 12 V supply's negative must connect to the microcontroller's ground.

Two cautions. The IRLZ44N's RDS(on) is specified only at 4, 5 and 10 V on the gate, and its 1 to 2 V threshold is where it barely conducts, so a 3.3 V pin is not guaranteed to turn it fully on.[21] For 3.3 V logic, pick a part specified lower, such as the AO3400A at 2.5 V, and redo the heat check.[31] And a motor, solenoid or relay still needs a flyback diode: switching an inductive load without a clamp can drive the drain past its rating into destructive avalanche breakdown.[22]

The common-emitter amplifier

In a common-emitter amplifier the signal enters at the base and leaves at the collector, with the emitter shared by both.[4] Because a transistor conducts one way only, a bare AC signal would cut it off for half of each cycle. The cure is bias: a steady DC voltage on the base that keeps the transistor active, with the signal riding on top. For faithful reproduction (class A), the resting point sits roughly halfway between cutoff and saturation.[4]​[32]

A common-emitter amplifier with voltage-divider bias Schematic of a common-emitter amplifier with voltage-divider bias, on a 12 volt supply. Resistor R1, 47 kilohms, runs from plus 12 volts to the base node and resistor R2, 10 kilohms, from the base node to ground, setting the base at about 2.1 volts. The base node connects to the base of an NPN transistor. A collector resistor RC, 4.7 kilohms, runs from plus 12 volts to the collector, which sits at about 7.5 volts. An emitter resistor RE, 1.5 kilohms, runs from the emitter, at about 1.45 volts, to ground, with a bypass capacitor CE in parallel. An input coupling capacitor Cin feeds a small sine wave into the base node, and an output coupling capacitor Cout takes a larger, upside-down sine wave from the collector. +12 V R1 47 kΩR2 10 kΩ VB ≈ 2.1 V RC 4.7 kΩ VC ≈ 7.5 V Cout RE 1.5 kΩCEbypass VE ≈ 1.45 V Cin input: small AC signal output: larger,upside down
Figure 7. A common-emitter amplifier with voltage-divider bias. DC voltages are calculated in the text for β ≈ 100. Circuit form: NEETS Module 7; All About Circuits.[19]​[32]

The usual bias is a voltage divider, R1 and R2, plus a resistor RE in the emitter lead, one of the most widely used arrangements.[19] (Recap: the voltage divider.) For figure 7 (all calculated):

RE makes the design stable. Simple single-resistor bias is thermally unstable: as the transistor warms, collector current rises and the operating point drifts.[19] With RE, any rise in current raises the emitter voltage, which reduces VBE and pulls the current back. A bypass capacitor CE across RE keeps that DC correction without cutting the AC gain.[19] Coupling capacitors Cin and Cout pass the signal while blocking DC, so connected equipment cannot upset the bias.[32]​[19] (Recap: coupling capacitors.)

When the input rises, more collector current flows, more voltage drops across RC, and the collector voltage falls. The output is an enlarged, upside-down copy of the input, so this is an inverting amplifier, powered by the supply.[4]

The Darlington pair

A Darlington pair feeds one BJT's emitter into another's base. Their gains multiply, up to about 10,000, but their base-emitter drops add, so the output loses 1.2 to 1.4 V.[17] The TIP120 packages one in a TO-220 with a gain of at least 1,000. At 3 A its VCE(sat) can reach 2 V, so it would dissipate about 6 W (calculated), three times its 2 W rating without a heat sink.[26] The IRLZ44N above did the same job at about 0.23 W.

CMOS logic: how billions of switches compute

In digital circuits a transistor is simply an on-off switch, and integrated circuits pack vast numbers of them onto one piece of silicon to process ones and zeros.[3] The basic building block is the CMOS inverter: a P-channel MOSFET from the supply to the output and an N-channel MOSFET from the output to ground, with gates joined as the input. A low input turns the P-channel on and the N-channel off, so the output is high; a high input gives a low output.[23]

A CMOS inverter, the simplest logic gate Schematic of a CMOS inverter. A P-channel MOSFET has its source connected to the supply, VDD, which stands for logic 1. An N-channel MOSFET below it has its source connected to ground, logic 0. Their drains are joined at the output, and their gates are joined at the input. A truth table beside it reads: input 0 (low), P-channel on, N-channel off, output 1 (high); input 1 (high), P-channel off, N-channel on, output 0 (low). A note says that either way one transistor is off, so almost no current flows from supply to ground. VDD (supply, logic 1) ground (logic 0) input output P-channelN-channel Input P-channel N-channel Output 0 (low) on off 1 (high) 1 (high) off on 0 (low) Either way, one transistor is off, so almost no current flows from supply to ground.
Figure 8. A CMOS inverter, the simplest logic gate, with its truth table. Source: All About Circuits.[23]

In either steady state one transistor is off, so almost no current flows from supply to ground.[23]​[13] Current does flow briefly at every switch, so power rises with switching speed;[23] those bursts are what the decoupling capacitors beside every chip supply. (Recap: decoupling.) Four transistors in series and parallel make NAND and NOR gates.[23] Gates combine into circuits that add, compare and remember, and billions of transistors make a processor like the M3.[16] The Microcontrollers section shows what such chips do.

10. Testing transistors

A multimeter's diode-test mode, which shows a junction's forward voltage, checks most BJTs, which read as two diodes joined at the base.[18] (Recap: testing a diode.)

Avoid resistance ranges that push more than 1 mA through the part.[19] A meter's hFE socket gives only an "approximate" gain, measured on one typical meter at just 10 µA of base current.[38] Gain changes with current, so treat it as a rough check.[20]

A MOSFET can be checked with a diode test that applies about 3 to 4 V; 1.5 V meters cannot turn the gate on.[39] For an N-channel part, put black on the source and touch red to the gate, charging it. Move red to the drain: the reading should be low, because the MOSFET is on. A finger across gate and source discharges it, and the reading should go high.[39] Red on the source and black on the drain should show the body diode.[22] Failed MOSFETs often short drain to gate.[39] Handle them with the static precautions below.

11. Everyday uses

12. Safety and handling

Static electricity. Electrostatic discharge (ESD) from the human body is one of the most frequent causes of transistor damage.[19] MOSFETs are especially vulnerable: a discharge can arc through the thin gate oxide and burn a hole in it.[22] CMOS chips share the weakness.[23] Keep MOSFETs in anti-static bags or conductive foam, ground yourself with a wrist strap, handle parts by the package, and use a grounded soldering iron.[22]​[19]

Heat and thermal runaway. A transistor turns the voltage across it times the current through it into heat. A 2N3904 in free air handles 625 mW;[20] a TIP120 handles 2 W alone or up to 65 W with ideal cooling.[26] Check the dissipation, as in the worked examples, and add a heat sink when needed. Heat can feed on itself: it frees more carriers, allowing more current and more heat, a cycle called thermal runaway.[19] A BJT's collector current rises with temperature, which is why RE matters in the amplifier above.[19] A fully on MOSFET resists runaway because RDS(on) rises with heat, but one run partly on can become thermally unstable.[22] A TO-220 tab carries the collector or drain voltage, and so does any heat sink bolted to it.[26]​[21]

Switching mains loads. Never wire a hobby transistor circuit directly to household mains. Use a relay or module rated for mains, which keeps the high-voltage side separated from your circuit. The little G5V-1 is rated for only 0.5 A at 125 VAC.[35] A power relay such as the Omron G5LE handles 10 A at 120 VAC, with insulation tested to 2,000 VAC between coil and contacts.[43] OSHA notes that 50 to 150 mA through the body can stop breathing and may kill,[44] only a few times a relay coil's 30 mA. Unplug before touching, and keep mains wiring enclosed.

Coming up in this section: 8 Transformers.

The whole story in brief

Sources

All links were checked in October 2026. External links open in a new tab.

  1. Computer History Museum, The Silicon Engine, "1941: Semiconductor diode rectifiers serve in WW II": https://www.computerhistory.org/siliconengine/semiconductor-diode-rectifiers-serve-in-ww-ii/
  2. Computer History Museum, The Silicon Engine, "1940: Discovery of the p-n Junction": https://www.computerhistory.org/siliconengine/discovery-of-the-p-n-junction/
  3. OpenStax, University Physics Volume 3, 9.7 "Semiconductor Devices": https://openstax.org/books/university-physics-volume-3/pages/9-7-semiconductor-devices
  4. All About Circuits, Lessons in Electric Circuits, Vol. III, ch. 4, "The Common-Emitter Amplifier": https://www.allaboutcircuits.com/textbook/semiconductors/chpt-4/common-emitter-amplifier/
  5. All About Circuits, Lessons in Electric Circuits, Vol. III, ch. 2, "Insulated-Gate Field-Effect Transistors (MOSFET)": https://www.allaboutcircuits.com/textbook/semiconductors/chpt-2/insulated-gate-field-effect-transistors-mosfet/
  6. Computer History Museum, The Silicon Engine, "1947: Invention of the Point-Contact Transistor": https://www.computerhistory.org/siliconengine/invention-of-the-point-contact-transistor/
  7. Computer History Museum, The Silicon Engine, "1948: Conception of the Junction Transistor": https://www.computerhistory.org/siliconengine/conception-of-the-junction-transistor/
  8. Computer History Museum, The Silicon Engine, "1951: First Grown-Junction Transistors Fabricated": https://www.computerhistory.org/siliconengine/first-grown-junction-transistors-fabricated/
  9. NobelPrize.org, "The Nobel Prize in Physics 1956": https://www.nobelprize.org/prizes/physics/1956/summary/
  10. Computer History Museum, Revolution, "Regency TR-1 transistor radio": https://www.computerhistory.org/revolution/digital-logic/12/273/1373
  11. Computer History Museum, The Silicon Engine, "1954: Silicon Transistors Offer Superior Operating Characteristics": https://www.computerhistory.org/siliconengine/silicon-transistors-offer-superior-operating-characteristics/
  12. Computer History Museum, The Silicon Engine, "1960: Metal Oxide Semiconductor (MOS) Transistor Demonstrated": https://www.computerhistory.org/siliconengine/metal-oxide-semiconductor-mos-transistor-demonstrated/
  13. Computer History Museum, The Silicon Engine, "1963: Complementary MOS Circuit Configuration is Invented": https://www.computerhistory.org/siliconengine/complementary-mos-circuit-configuration-is-invented/
  14. Computer History Museum, The Silicon Engine, "1965: “Moore's Law” Predicts the Future of Integrated Circuits": https://www.computerhistory.org/siliconengine/moores-law-predicts-the-future-of-integrated-circuits/
  15. Computer History Museum, The Silicon Engine, "1971: Microprocessor Integrates CPU Function onto a Single Chip": https://www.computerhistory.org/siliconengine/microprocessor-integrates-cpu-function-onto-a-single-chip/
  16. Apple Newsroom, "Apple unveils M3, M3 Pro, and M3 Max, the most advanced chips for a personal computer" (October 30, 2023): https://www.apple.com/newsroom/2023/10/apple-unveils-m3-m3-pro-and-m3-max-the-most-advanced-chips-for-a-personal-computer/
  17. SparkFun Learn, "Transistors": https://learn.sparkfun.com/tutorials/transistors/all
  18. All About Circuits, Lessons in Electric Circuits, Vol. III, ch. 4, "Meter Check of a Transistor (BJT)": https://www.allaboutcircuits.com/textbook/semiconductors/chpt-4/meter-check-transistor-bjt/
  19. U.S. Navy, NEETS Module 7: Introduction to Solid-State Devices and Power Supplies (PDF): https://legacy.maritime.org/doc/neets/mod07.pdf
  20. Diotec Semiconductor, 2N3904 NPN small signal transistor data sheet (PDF): https://diotec.com/request/datasheet/2n3904.pdf
  21. Infineon (International Rectifier), IRLZ44NPbF HEXFET power MOSFET data sheet (PDF): https://www.infineon.com/dgdl/irlz44npbf.pdf?fileId=5546d462533600a40153567217c32725
  22. P. B. Green, Infineon Technologies, "Designing with power MOSFETs" (application note, PDF): https://www.infineon.com/assets/row/public/documents/24/42/infineon-designing-with-power-mosfets-applicationnotes-en.pdf
  23. All About Circuits, Lessons in Electric Circuits, Vol. IV, ch. 3, "CMOS Gate Circuitry": https://www.allaboutcircuits.com/textbook/digital/chpt-3/cmos-gate-circuitry/
  24. All About Circuits, Lessons in Electric Circuits, Vol. III, ch. 6, "Introduction to Insulated-Gate Field-Effect Transistors": https://www.allaboutcircuits.com/textbook/semiconductors/chpt-6/insulated-gate-field-effect-transistors-igfet/
  25. Diotec Semiconductor, 2N7000 N-channel enhancement MOSFET data sheet (PDF): https://diotec.com/request/datasheet/2n7000.pdf
  26. Diotec Semiconductor, TIP120 NPN Darlington power transistor data sheet (PDF): https://diotec.com/request/datasheet/tip120.pdf
  27. Nexperia, MMBT3904 NPN switching transistor data sheet (PDF): https://assets.nexperia.com/documents/data-sheet/MMBT3904.pdf
  28. Diotec Semiconductor, BC546 to BC549 NPN small signal transistors data sheet (PDF): https://diotec.com/request/datasheet/bc546.pdf
  29. Diotec Semiconductor, 2N3906 PNP small signal transistor data sheet (PDF): https://diotec.com/request/datasheet/2n3906.pdf
  30. Diotec Semiconductor, 2N2222A NPN transistor data sheet (PDF): https://diotec.com/request/datasheet/2n2222a.pdf
  31. Alpha & Omega Semiconductor, AO3400A 30V N-channel MOSFET data sheet (PDF): https://www.aosmd.com/res/datasheets/AO3400A.pdf
  32. All About Circuits, Lessons in Electric Circuits, Vol. III, ch. 4, "Biasing Techniques (BJT)": https://www.allaboutcircuits.com/textbook/semiconductors/chpt-4/biasing-techniques-bjt/
  33. Arduino, Arduino UNO R3 product reference manual (PDF): https://docs.arduino.cc/resources/datasheets/A000066-datasheet.pdf
  34. Microchip Technology, ATmega48A/PA/88A/PA/168A/PA/328/P data sheet (PDF): https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061B.pdf
  35. Omron, G5V-1 low signal relay data sheet (PDF): https://omronfs.omron.com/en_US/ecb/products/pdf/en-g5v_1.pdf
  36. Vishay, 1N4148 Small Signal Fast Switching Diode data sheet (PDF): https://www.vishay.com/docs/81857/1n4148.pdf
  37. SparkFun Learn, "Diodes": https://learn.sparkfun.com/tutorials/diodes/all
  38. Velleman, DVM66 digital multimeter user manual (PDF): https://cdn.velleman.eu/downloads/1/dvm66gb.pdf
  39. 4QD, "Testing MOSFETs": https://www.4qdtec.com/mostest.html
  40. Computer History Museum, Revolution, "Inventing the Transistor": https://www.computerhistory.org/revolution/digital-logic/12/273
  41. U.S. Department of Energy, "Solar Integration: Inverters and Grid Services Basics": https://www.energy.gov/cmei/systems/solar-integration-inverters-and-grid-services-basics
  42. Texas Instruments, DRV8833 dual H-bridge motor driver data sheet (PDF): https://www.ti.com/lit/ds/symlink/drv8833.pdf
  43. Omron, G5LE PCB power relay data sheet (PDF): https://omronfs.omron.com/en_US/ecb/products/pdf/en-g5le.pdf
  44. U.S. Occupational Safety and Health Administration, Controlling Electrical Hazards (OSHA 3075, PDF): https://www.osha.gov/sites/default/files/publications/OSHA3075.pdf