In this guide
How to Read a MOSFET Datasheet and Pick the Right One
You wire a MOSFET to switch a motor or an LED strip, the code is correct, and the transistor still gets hot enough to burn a finger — or the load never fully turns on. In most student builds the code is not the problem. The wrong MOSFET was picked from the headline numbers on the first page of the datasheet, and the numbers that actually decide success were on page three.
This guide walks through the six datasheet values that matter, the threshold-voltage trap that catches almost every beginner, a worked selection for a 12 V load driven from an ESP32, and the supporting parts (gate resistor, pull-down, flyback diode) that complete the circuit.
Why MOSFET selection is not about the biggest current rating
A MOSFET datasheet leads with its maximum drain current, sometimes 50 A or more for a part in a small package. That number is usually measured at a case temperature of 25 degrees C with ideal cooling — conditions no student board provides. The continuous current your part survives on a real PCB is set by heat: how much power the channel dissipates when on, and how fast that heat leaves the package.
Two MOSFETs with the same headline current can behave completely differently in your circuit. One turns fully on from a 3.3 V logic signal and runs cool. The other barely opens at 3.3 V, sits in its resistive region, and cooks. Telling them apart takes about two minutes once you know where to look.
First question: can your signal actually turn it on?
Vgs(th) is not the on-voltage
The gate threshold voltage, Vgs(th), is the gate voltage at which the MOSFET just begins to conduct — typically defined at a drain current of only 250 microamps. It is a turn-on whisper, not a fully-on state. A part with Vgs(th) listed as 2–4 V is not fully on at 4 V; it has barely started.
The number you need: Rds(on) at your gate voltage
Look instead at the Rds(on) specification table. It lists the on-resistance at specific gate voltages, for example at Vgs = 10 V, at 4.5 V, or at 2.5 V. The rule:
- If Rds(on) is specified at a gate voltage at or below the signal you can provide, the part is usable as a switch with that signal.
- If Rds(on) is only specified at 10 V and you are driving the gate from a 3.3 V ESP32 pin or a 5 V Arduino pin, the part is the wrong choice for direct drive, whatever its threshold voltage says.
Parts marketed as logic-level MOSFETs specify Rds(on) at 4.5 V or lower. For 3.3 V systems, prefer a part that specifies Rds(on) at 2.5 V or 3.3 V. If your only option needs 10 V at the gate, add a gate driver or a small transistor stage to raise the gate voltage — do not hope the MOSFET will manage.
The six numbers that decide the choice
Work through these in order for any candidate part:
- Vds(max) — drain-source voltage rating. Must exceed your supply voltage with margin for spikes. For a 12 V load, choose at least a 20–30 V part; for anything inductive or on a vehicle supply, double the nominal voltage is a sensible starting margin. Exceeding Vds, even briefly, can avalanche the device.
- Rds(on) at your gate voltage. This sets the conduction loss (step below). Lower is better, and it rises with temperature — the datasheet graph of Rds(on) versus temperature typically shows it growing by 1.5–2x from room temperature to hot.
- Id — continuous drain current. Treat the headline figure as an upper bound under perfect cooling, then check the package-limited and temperature-derated curves. If your load needs 3 A, a part whose realistic board-level rating is comfortably above that, with low Rds(on), will run far cooler than a part chosen only because its headline says 30 A.
- Gate charge, Qg, and gate capacitance. These decide how fast the MOSFET can switch and how much current your driver must supply during transitions. For simple on/off switching at human timescales they rarely matter. For PWM at tens of kilohertz — motor speed control, dimming — a large Qg driven weakly from a GPIO pin means slow transitions, and slow transitions mean time spent in the lossy linear region on every cycle.
- Thermal resistance and package. The TO-220 package can shed far more heat than a small SOT-23, and the datasheet thermal resistance (junction-to-ambient) lets you estimate temperature rise: rise = power dissipated x thermal resistance. If the estimate puts the junction near its maximum (often 150–175 degrees C), choose a lower Rds(on), add a heatsink, or pick a bigger package.
- Body diode behaviour. Every MOSFET contains a body diode between drain and source. In a simple low-side switch it sets the reverse-polarity behaviour; in bridge and synchronous circuits its forward drop and reverse recovery affect losses. For a basic switch you mainly need to know it exists, so the drain/source orientation in your schematic is not a surprise.
N-channel or P-channel, low-side or high-side
The default student topology is an N-channel MOSFET as a low-side switch: load between the positive supply and the drain, source to ground, gate driven by the controller. N-channel parts offer the lowest Rds(on) for the price, and the gate drive is simple because the source sits at ground.
A P-channel MOSFET as a high-side switch (source to the positive supply, load between drain and ground) keeps the load's ground connection intact, which matters when the load shares ground-referenced signals. The trade-offs: P-channel parts have higher Rds(on) for the same size and price, and the gate must be pulled up to the supply rail to turn off — if the supply is 12 V and your controller is 3.3 V, you need a level-shifting stage so the gate never sees a voltage that leaves it half-on or exceeds its Vgs(max), commonly plus/minus 20 V.
If the load's ground must stay connected and the currents are modest, P-channel high-side is clean. Otherwise, low-side N-channel is the simpler, cooler-running default. For a broader comparison with mechanical switching, see the relay vs MOSFET selection guide.
Worked example: a 12 V, 3 A load from an ESP32
Goal: switch a 12 V LED strip drawing about 3 A, dimmed by PWM from an ESP32 (3.3 V GPIO).
Step 1 — topology: low-side N-channel; the strip's ground can be switched, so this is fine.
Step 2 — voltage: 12 V supply, so Vds(max) of 30 V gives reasonable spike margin.
Step 3 — gate drive: the GPIO gives 3.3 V, so shortlist only parts with Rds(on) specified at 2.5 V or 3.3 V.
Step 4 — conduction loss: suppose the chosen part has Rds(on) = 15 milliohms at Vgs = 2.5 V (read from its table — this is an example value for the calculation, not a claim about a specific part). Conduction loss P = I squared x R = 3 x 3 x 0.015 = 0.135 W. In a TO-220 in still air that is a modest temperature rise; in a small surface-mount package you would check the thermal resistance before committing.
Step 5 — compare the trap part: a non-logic-level MOSFET with Rds(on) specified only at 10 V might present an effective resistance of, say, several hundred milliohms at 3.3 V drive. At 3 A, even 200 milliohms dissipates 1.8 W and drops 0.6 V — the strip runs dimmer and the transistor needs a heatsink. Same circuit, same code, completely different outcome, decided entirely by which Rds(on) row you read.
Step 6 — PWM check: at a PWM frequency around 1 kHz for LED dimming, gate charge is rarely the limiting factor. For a motor at 20 kHz, prefer a lower-Qg part or a dedicated driver if edges look slow on a scope.
The three supporting components
- Gate series resistor (typically 47–220 ohms). Limits the peak current into the gate capacitance at each transition and damps ringing on the gate wire. Too large a value slows switching and raises PWM losses, so keep it modest.
- Gate pull-down resistor (typically 10k ohms to ground). While the controller boots, its pins float. Without a pull-down, a floating gate can drift on and energise a motor or heater unexpectedly. This resistor guarantees off-until-commanded.
- Flyback diode for inductive loads. Motors, relays, solenoids and pumps generate a voltage spike at turn-off. A diode across the load (rated for at least the load current, placed close to the load) gives that current a safe path. The MOSFET's own body diode does not protect it in the low-side topology — this is the single most common cause of a MOSFET that dies on the first motor test. General transient behaviour is covered in the TVS and circuit protection guide.
A seven-step selection routine
- Write down the load: supply voltage, steady current, peak or stall current, and whether it is inductive.
- Choose the topology (default: low-side N-channel).
- Filter candidates by Vds(max) with spike margin.
- Filter again by gate drive: Rds(on) must be specified at or below your actual gate voltage.
- Compute conduction loss at the worst-case current; estimate temperature rise from the package thermal resistance.
- If you use PWM, sanity-check gate charge against your drive source and frequency.
- Add the gate resistor, pull-down, and (for inductive loads) the flyback diode to the schematic before ordering anything.
General datasheet-reading habits — finding the conditions column, checking graphs against your operating point — are covered in Reading Datasheets Effectively. Power-rail choices upstream of the switch are covered in the voltage regulator comparison.
Five mistakes that kill MOSFETs in student builds
- Choosing by Vgs(th). Threshold means barely conducting. Always choose by the Rds(on) row at your gate voltage.
- No flyback diode on a motor. The turn-off spike avalanches the device, sometimes on the first run, sometimes after a week of apparently fine tests.
- No gate pull-down. The load twitches or turns on during boot and reset, which is a safety problem with heaters and motors.
- Trusting the headline current. A 60 A headline in a package that can only shed a watt without a heatsink is a 2–3 A part in practice at moderate Rds(on).
- Long, loose gate wiring. A gate lead draped across a breadboard picks up noise and rings; keep gate wiring short, and keep the gate resistor close to the gate pin.
FAQ
Can I drive a MOSFET directly from an Arduino or ESP32 pin?
Yes, for switching, provided the part is logic-level (Rds(on) specified at your pin voltage) and the switching frequency is modest. The pin only supplies gate-charge current during transitions. For fast PWM or large MOSFETs, use a gate driver.
Why does my MOSFET get hot even though the current is well below its rating?
Usually one of two reasons: the gate voltage is too low, so the channel is only partly enhanced and its resistance is far above the datasheet's best figure; or you are switching it slowly under PWM, so it spends time in the linear region each cycle. Measure the voltage drop across the device while on — V = I x R gives you its effective resistance in your circuit.
What is the difference between a MOSFET and a relay for switching a load?
A MOSFET switches silently, fast, and without wear, but only for DC within its ratings and with attention to heat. A relay gives galvanic isolation and switches AC or either polarity, at the cost of speed, coil power, contact wear and audible clicking. The relay vs MOSFET guide works through the decision.
Can I put two MOSFETs in parallel for more current?
You can, and MOSFETs share current reasonably well when on because Rds(on) rises with temperature, which self-balances steady conduction. They still need matched gate drive (a small resistor per gate) and a shared thermal path, and paralleling is not a fix for a part that is wrong on gate voltage.
What does a heatsink actually change in the calculation?
It lowers the thermal resistance from junction to ambient, so the same dissipation produces a smaller temperature rise. Re-run the estimate with the heatsink's thermal resistance added to the junction-to-case figure before assuming a hot part is now safe.
Limitations
This guide covers single-MOSFET low-side and simple high-side switching of DC loads at student-project scale. It does not cover bridge design in depth, synchronous rectification, gate-driver IC selection for high-frequency converters, or safety isolation for mains-connected loads — mains switching belongs behind proper isolation and standards, not a breadboard MOSFET. All example resistances and losses above are worked illustrations for the calculation method; read the actual figures for your candidate part from its own datasheet, under your conditions.
Where to go from here
- Relay vs MOSFET: Switch Selection — the other switching option, compared honestly.
- Reading Datasheets Effectively — the general skill behind this guide.
- Voltage Regulators: 7805 vs Buck vs Boost — choosing the rail that feeds your load.
- Op-Amp Basics with the LM358 — the analogue companion skill.