Practice problems
MOSFET switch practice problems
A MOSFET switch uses a gate-source voltage to turn a much larger drain current on and off. Fully on, it behaves as a small resistance, RDS(on), and its conduction loss comes from that. These ten problems find the power dissipation and the drain-source voltage, the currents in the gate resistor and pull-down, what the flyback diode does at turn-off, and the MOSFET's junction temperature. Type your answer to check it, and open the working whenever you want it.
The method
- Fully on, the drain-source voltage is only VDS = I × RDS(on), often tens of millivolts
- The gate draws no DC current, but a gate resistor carries a current pulse each time the gate capacitance charges or discharges
- A flyback diode across a coil, cathode to +, carries the coil's current at turn-off and clamps the drain one diode forward voltage above the supply
- The power sets the junction temperature: Tj = Ta + P × θ, with thermal resistances in series added up
The problems
Type your answer and tap Check. Every one has the working, step by step.
Problem 1 of 10
A logic-level MOSFET switches a 2.5 A load. Fully on, its RDS(on) is 0.04 Ω. How much power does it dissipate?
Show the working
- Fully on, a MOSFET behaves as a small resistance, RDS(on), so its conduction loss is P = I² × RDS(on).
- P = (2.5 A)² × 0.04 Ω = 6.25 × 0.04 = 0.25 W
Answer: 0.25 W
Problem 2 of 10
A MOSFET with RDS(on) = 0.06 Ω carries 1.5 A as a low-side switch. What is its drain-source voltage VDS, in millivolts?
Show the working
- The on-resistance obeys Ohm's law: VDS = I × RDS(on).
- VDS = 1.5 A × 0.06 Ω = 0.09 V, which is 90 mV. The load gets almost all of the supply voltage.
Answer: 90 mV
Problem 3 of 10
A 5 V microcontroller pin drives a MOSFET's gate through a 220 Ω resistor. At the instant the pin goes high, the gate is still at 0 V. What current flows into the gate?
Show the working
- The gate behaves as a small capacitance (the gate-source capacitance). Uncharged, it sits at 0 V, so the resistor has the full 5 V across it.
- I = 5 V over 220 Ω ≈ 22.7 mA, only briefly. As the gate capacitance charges, the current decays to almost zero.
Answer: 22.7 mA
Problem 4 of 10
A 100 kΩ pull-down resistor runs from a MOSFET's gate to ground. While a 5 V pin holds the gate high, what steady current does the pull-down draw, in microamps?
Show the working
- The gate itself draws no DC current, so only the pull-down draws from the pin.
- I = 5 V over 100 kΩ = 0.00005 A, which is 50 µA.
Answer: 50 µA
Problem 5 of 10
A MOSFET dissipates 0.2 W while carrying 2 A. The load changes so it carries 3 A. How much does it dissipate now?
Show the working
- P = I² × RDS(on), so the dissipation grows with the square of the current.
- 1.5 times the current gives 1.5² = 2.25 times the power: 0.2 W × 2.25 = 0.45 W
Answer: 0.45 W
Problem 6 of 10
A MOSFET switches a 12 V relay coil with 240 Ω of resistance, with a flyback diode across the coil. At the instant the MOSFET turns off, what current flows through the diode?
Show the working
- While on, the coil carries I = 12 V over 240 Ω = 0.05 A.
- An inductor's current can't change instantaneously, so at turn-off all of it transfers (commutates) into the diode.
- The diode current starts at 50 mA, then decays. Its current rating must cover the coil's full current.
Answer: 50 mA
Problem 7 of 10
A 12 V solenoid has a silicon flyback diode (0.7 V forward voltage) across it, cathode to the +12 V supply. At the instant a low-side MOSFET turns off, what voltage does its drain rise to?
Show the working
- The coil's current now circulates through the diode, which is forward-biased and drops 0.7 V.
- That clamps the drain one diode forward voltage above the supply: 12 V + 0.7 V = 12.7 V. Without the diode, the inductive kickback could drive it to hundreds of volts.
Answer: 12.7 V
Problem 8 of 10
A MOSFET with no heatsink dissipates 0.5 W. Its junction-to-ambient thermal resistance θ_JA is 62 °C/W, and the ambient temperature is 25 °C. What is its junction temperature?
Show the working
- Power times thermal resistance gives the temperature rise: 0.5 W × 62 °C/W = 31 °C.
- Tj = 25 °C + 31 °C = 56 °C, well under a typical 150 °C maximum junction temperature.
Answer: 56 °C
Problem 9 of 10
Stretch: a MOSFET with RDS(on) = 0.03 Ω switches a 10 A motor. On a heatsink, θ_JC (junction-to-case) is 1.5 °C/W, the thermal pad (case-to-sink) adds 0.5 °C/W and the heatsink (sink-to-ambient) 8 °C/W. At 25 °C ambient, what is the junction temperature?
Show the working
- The dissipation: P = (10 A)² × 0.03 Ω = 3 W.
- Thermal resistances in series add: 1.5 + 0.5 + 8 = 10 °C/W, so the rise is 3 W × 10 °C/W = 30 °C.
- Tj = 25 °C + 30 °C = 55 °C
Answer: 55 °C
Problem 10 of 10
Stretch: at its operating temperature, a MOSFET's RDS(on) is 0.05 Ω. With no heatsink its θ_JA is 62 °C/W, and it sits in an enclosure at 40 °C ambient. What is the most current it can carry if the junction must stay at or below 100 °C?
Show the working
- The allowed rise is 100 °C − 40 °C = 60 °C, so P can be at most 60 °C over 62 °C/W ≈ 0.968 W.
- From P = I² × RDS(on): I = √(0.968 W over 0.05 Ω) = √19.4
- I ≈ 4.4 A. Any more and it needs a heatsink or a MOSFET with lower RDS(on).
Answer: 4.4 A
“MOSFETs and flyback diodes” is lesson 6 of 6 in Silicon Ridge, Electronics World 5. Free with an account. Lessons unlock in order, so you’ll do the 33 before it first.
Free lesson
Now build it yourself
Each lesson comes in three short parts: see the idea, try it on a live board, then build it yourself, with quick checks as you go.
“MOSFETs and flyback diodes” is lesson 6 of 6 in Silicon Ridge, Electronics World 5. Free with an account. Lessons unlock in order, so you’ll do the 33 before it first.
Or start from the very first lesson, no account neededCheck it with a calculator
The ideas behind it
- MOSFET as a switch, explainedA gate voltage, not a current, opens the channel: threshold, R_DS(on) and the flyback diode.
- How to calculate junction temperatureHeat flows like current: watts through °C/W give a temperature rise, so size the copper before it overheats.
- How to switch a big load from an Arduino with a transistorThe pin turns the tap, the supply does the work: an NPN switch, its base resistor and the numbers.
Questions people ask
What does logic-level MOSFET mean?
Its datasheet specifies R_DS(on) at a gate-source voltage V_GS a microcontroller can supply, usually 4.5 V, sometimes 2.5 V. A standard MOSFET is specified at V_GS = 10 V. Driven from 5 V or 3.3 V it may be only partly on, just above its threshold V_GS(th), and a partly-on MOSFET overheats quickly.
Why use a gate resistor if the gate takes no current?
The gate draws no DC current, but it's a small capacitance, so a large current pulse flows while it charges or discharges at each transition. A resistor of 100 to 470 Ω keeps that pulse within the pin's current limit and damps ringing. A pull-down, often 10 to 100 kΩ, holds the gate low while the pin is floating (high-impedance) at power-up.
Where does the flyback diode go?
Across the coil, cathode to the + supply. While the coil is energised, the diode is reverse-biased and conducts nothing. At turn-off the coil's current circulates through it and decays, so the drain rises only about one diode forward voltage above the supply instead of producing an inductive voltage spike.
More practice
- Ohm's law practice problemsFind V, I or R, then the power, with the working for each.
- Units and prefixes practice problemsConvert mA, kΩ, µF, nF, pF, ms and mV, with the working for each.
- LED resistor practice problemsSize the resistor for one LED or a string, round to a standard value, check the power.
- Electrical power practice problemsPower three ways, energy in kWh, battery life and running costs, all worked.
- Series and parallel resistors practice problemsTotals in series and parallel, mixed networks and branch currents, all worked.
- Kirchhoff's laws practice problemsBalance currents at a junction and voltages round a loop, with the working for each.
- Voltage divider practice problemsFind Vout, pick R2 for a target and work out loading, with the working for each.
- Thevenin and Norton equivalent practice problemsReduce a network to V_th in series with R_th, then load it, with the working.
- Capacitor practice problemsCharge, capacitance, series and parallel, and stored energy, with the working.
- RC time constant practice problemsτ = R × C, the 63% rule, charging and discharging, with the working.
- Inductor practice problemsV = L × ΔI ÷ Δt, stored energy and inductors in series and parallel, with the working.
- RL circuit time constant practice problemsτ = L ÷ R, the current's rise and decay, and inductive kickback, with the working.
- AC voltage and transformer practice problemsPeak, RMS, period, AC power and transformer turns ratios, with the working.
- Capacitive and inductive reactance practice problemsCapacitive and inductive reactance, AC current and impedance, with the working.
- Impedance practice problems for RC and RL circuitsSeries RC and RL impedance, phase angle and current, with the working.
- RC filter practice problemsCutoff frequency, choosing R or C, and the output either side of the cutoff, with the working.
- Decibel practice problemsRatios to dB and back, for power and voltage, gains that add and the −3 dB point.
- LC resonance practice problemsf₀ = 1 ÷ (2π√(LC)), tuning for a frequency, and scaling, with the working.
- Diode practice problemsForward voltage, series resistor current, diodes in series, reverse bias and power dissipation.
- Rectifier and ripple practice problemsPeak output, ripple and the smoothing capacitor for half-wave and bridge rectifiers.
- Zener diode practice problemsSize a Zener regulator's resistor, split its current and check the Zener's power.
- Transistor switch practice problemsBase current, base resistor and load current for a BJT switch, then a MOSFET.
- Op-amp gain practice problemsInverting and non-inverting gain, the output, the resistor to pick and when it clips.
- Inverting and summing amplifier practice problemsInverting gain, input resistance, summing amps, averaging, a simple DAC and clipping.
- Schmitt trigger and hysteresis practice problemsHysteresis band, both thresholds and the feedback resistor for a comparator.
- Op-amp limits practice problemsGain-bandwidth, slew rate, output swing and input offset, with the working.
- Binary and hex practice problemsBinary to decimal and back, bits needed, the largest n-bit number and hex.
- Logic gates practice problemsGate outputs, truth-table rows, Boolean expressions and fewer gates, with the working.
- Counters and flip-flops practice problemsTop count, flip-flops needed, frequency division, rollover and ripple delay.
- PWM and duty cycle practice problemsDuty cycle, average voltage, on-time, analogWrite 0–255 and power, with the working.
- ADC and analog input practice problemsanalogRead to volts and back, resolution, dividers and 12-bit ADCs, with the working.