Before the numbers: check the pinout
Find the pinout diagram in the datasheet for your exact part number, and note which way the flat face is oriented in the drawing. It's a thirty-second check that prevents the most common failure.
The six numbers that matter
1. VCEO — collector-emitter breakdown voltage
The maximum voltage the transistor can block between collector and emitter when it's off. Your supply voltage must sit comfortably below it.
This is an absolute maximum, not a target. Leave headroom — switching an inductive load like a motor or relay produces voltage spikes well above the supply.
2. IC — maximum collector current
The most current the transistor can pass. Compare it against what your load actually draws, including its startup surge, not its average.
A small-signal transistor like the 2N2222 handles a few hundred milliamps. A motor or a long LED strip will want a power transistor or a MOSFET instead.
3. hFE — DC current gain
How much bigger the collector current is than the base current driving it. It's the number that tells you what base resistor to fit.
Two things to know. It's given as a range, often very wide — parts from the same batch differ. And when you're using the transistor as a switch, you deliberately drive the base harder than the gain requires, to push it fully on. A common rule of thumb is to design for a fraction of the minimum quoted gain rather than the typical figure.
4. VCE(sat) — saturation voltage
The voltage still dropped across the transistor when it's switched fully on. Ideally zero; in practice a few tenths of a volt for a BJT.
Two consequences: your load gets slightly less than the full supply, and that dropped voltage times the current is heat the transistor has to lose. At higher currents this is what decides whether you need a heatsink.
5. VBE(sat) — base-emitter voltage
Roughly 0.7V for a silicon BJT when conducting. You need it to size the base resistor: the resistor drops (your pin voltage − VBE), and that sets the base current.
6. PD — power dissipation
How much heat the part can shed, usually quoted at a stated ambient temperature and derated above it. Multiply VCE(sat) by your collector current to see whether you're anywhere near it.
A worked switching example
Say you're switching a load from a 5V Arduino pin, and the load draws 200mA.
- Check IC: is the part rated above 200mA? A 2N2222 is; a tiny signal transistor might not be.
- Check VCEO: comfortably above 5V? Almost certainly.
- Find minimum hFE: say the datasheet's worst case is 50. To saturate properly, design for something well below that — take 10. You need 200mA ÷ 10 = 20mA of base current.
- Check that against the pin: 20mA is within an Arduino pin's ~20mA working figure, but only just. If it were higher you'd need a different transistor or a MOSFET.
- Size the base resistor: (5V − 0.7V) ÷ 0.02A = 215Ω. Use the next standard value down for margin — 220Ω is the obvious choice.
- Check heat: VCE(sat) of ~0.3V × 0.2A = 0.06W. Nowhere near a small transistor's limit.
Six lookups, one piece of arithmetic. That's the whole job.
Don't forget the flyback diode
Switching anything with a coil — a relay, a motor, a solenoid — produces a large reverse voltage spike the instant it turns off. That spike destroys transistors.
A diode across the coil, reversed so it doesn't conduct normally, absorbs it. The datasheet's typical application circuit usually shows one; it isn't optional.
What you can skip
Safe to ignore for hobby switching: gain-bandwidth product, noise figure, junction capacitances, thermal resistance curves, and the S-parameter tables. Those matter for amplifier and RF design, not for turning something on and off.
Related
The general datasheet guide covers the absolute-maximum vs recommended-operating distinction that applies to every part, and the components guide explains what a transistor is doing in the first place.