QuestionElectricity

How Does a Transistor Work? Switches and Amplifiers

Several through-hole transistors in different metal and plastic packages
Several through-hole transistors in different metal and plastic packages. Image: ArnoldReinhold (CC BY-SA 3.0), via Wikimedia Commons

A transistor lets a small electrical signal control a much larger current inside a semiconductor. Used as a switch, it is either fully on or fully off, encoding 1 or 0. Used as an amplifier, it reproduces a small input as a larger output.

Contents

The full answer

A transistor is a three-terminal semiconductor device. Its two main types are the bipolar junction transistor (BJT) and the metal-oxide-semiconductor field-effect transistor (MOSFET). In a BJT, the three terminals are the emitter, base and collector. The base-emitter junction is forward-biased by a small current, and that current allows a much larger current to flow from the collector to the emitter. The ratio of the two currents is the current gain, which in small silicon transistors is often tens to a few hundred.

In a MOSFET, the three terminals are the source, gate and drain. The gate is separated from the semiconductor by a thin insulating layer of silicon dioxide. A voltage on the gate creates an electric field that attracts or repels charge carriers in the silicon beneath it, forming a conducting channel between source and drain. Because the gate is insulated, it draws almost no steady current, which makes MOSFETs very efficient.

Almost all transistors today are made from silicon, which has a band gap of about 1.12 eV at room temperature. A pure silicon crystal conducts very little, but adding dopants creates electrons and holes in a controlled way. Because heat and light also change the number of carriers, engineers must keep chips at stable temperatures.

The key idea is control. A small input, a current in the BJT or a voltage in the MOSFET, sets the flow of a larger current. The name is short for transfer resistor, because the device transfers a signal across a resistance that it controls. Its behaviour depends on the doped regions described in the semiconductor article, which contain electrons and holes that carry current.

The science behind it

Inside a transistor there are two or more p–n junctions, and their behaviour is set by the band gap of the semiconductor. In an n-p-n BJT, electrons from the emitter cross the thin p-type base and are swept into the collector. Only a small number recombine in the base, which is why most of the emitter current reaches the collector and why the base current can be small.

When the base-emitter junction is forward-biased, the depletion zone shrinks and electrons flow across it easily. Changing the base current therefore changes the number of electrons that reach the collector. In a MOSFET, the gate voltage changes the number of carriers in the channel directly, without any current crossing the oxide.

In a digital circuit the transistor is driven hard into one of two states. In the on state, the channel or junction conducts and the output is close to zero volts, which represents 0. In the off state, almost no current flows and the output is close to the supply voltage, which represents 1. A logic gate such as NAND is built from a few transistors arranged so that these states follow Boolean rules.

An everyday example

Think of a phone screen or a computer keyboard. When you press a key, a small signal reaches a chip where many transistors switch on and off in sequence to store, process and display the character. You see only the result, but the work is done by billions of tiny switches.

Amplifiers work the same way on a smaller scale. A microphone produces a tiny voltage, and a transistor amplifier increases it enough to drive a speaker. The loud output is powered by the supply, and the transistor only controls its shape.

Why computers use transistors instead of relays

Before transistors, electronic switching used vacuum tubes and mechanical relays. Vacuum tubes were large, hot and fragile, and relays were slow and wore out with use. A transistor has no moving parts and no heated filament, so it can switch millions of times per second for many years. Modern chips shrink transistors until their features are tens of nanometres across, which allows billions to fit on one chip.

The sheer number of transistors, and their small size, is what makes modern computing possible. Each one uses very little energy per switch, and the chip as a whole performs enormous numbers of calculations.

Common misconceptions

  • A transistor stores electricity like a battery. A transistor does not store energy. It controls current flowing from the supply, and the stored bits in memory come from arrangements of transistors that hold a state.
  • The control current is the same as the output current. In a BJT the base current is much smaller than the collector current. The gain is what makes the device useful.
  • Transistors are only for computers. Transistors are in radios, car engines, power supplies and medical devices, as well as in computers.

Frequently asked questions

What is a transistor used for?

A transistor is used as an electronic switch, which stores 1s and 0s in computer memory and logic circuits, or as an amplifier, which makes a weak signal stronger. Nearly every electronic device, from phones to car engines, contains transistors. Modern processors contain billions of them.

What is the difference between a transistor and a diode?

A diode has two terminals and lets current flow mainly in one direction. A transistor has three terminals, and a signal on one of them controls the current between the other two. This extra control terminal is what makes switching and amplification possible.

Who invented the transistor?

John Bardeen, Walter Brattain and William Shockley at Bell Labs developed the transistor in 1947. Bardeen, Brattain and Shockley shared the 1956 Nobel Prize in Physics for this work. The first working device was a point-contact transistor made from germanium.

What is the difference between a BJT and a MOSFET?

A bipolar junction transistor (BJT) is controlled by a small current into its base. A MOSFET is controlled by a voltage on its gate, and draws almost no steady current. MOSFETs dominate modern digital chips because they use less power.

Why are transistors made from silicon?

Silicon has a band gap of about 1.12 eV, which keeps leakage current low at room temperature while still allowing controlled conduction. Silicon also forms a high-quality insulating oxide layer, which is needed for gates in MOSFETs. Silicon is also cheap and abundant compared with germanium.

Sources and further reading

  • Encyclopaedia Britannica, "Transistor"
  • OpenStax, "College Physics 2e"

Cite this page

“How Does a Transistor Work? Switches and Amplifiers.” Atoms & Forces, https://science.bigworldlist.com/questions/how-does-a-transistor-work/.

More about Semiconductor