Skip to content

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

P = I² × RDS(on)
  • 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.

  1. 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
    1. Fully on, a MOSFET behaves as a small resistance, RDS(on), so its conduction loss is P = I² × RDS(on).
    2. P = (2.5 A)² × 0.04 Ω = 6.25 × 0.04 = 0.25 W

    Answer: 0.25 W

  2. 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
    1. The on-resistance obeys Ohm's law: VDS = I × RDS(on).
    2. 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

  3. 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
    1. 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.
    2. 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

  4. 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
    1. The gate itself draws no DC current, so only the pull-down draws from the pin.
    2. I = 5 V over 100 kΩ = 0.00005 A, which is 50 µA.

    Answer: 50 µA

  5. 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
    1. P = I² × RDS(on), so the dissipation grows with the square of the current.
    2. 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

  6. 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
    1. While on, the coil carries I = 12 V over 240 Ω = 0.05 A.
    2. An inductor's current can't change instantaneously, so at turn-off all of it transfers (commutates) into the diode.
    3. The diode current starts at 50 mA, then decays. Its current rating must cover the coil's full current.

    Answer: 50 mA

  7. 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
    1. The coil's current now circulates through the diode, which is forward-biased and drops 0.7 V.
    2. 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

  8. 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
    1. Power times thermal resistance gives the temperature rise: 0.5 W × 62 °C/W = 31 °C.
    2. Tj = 25 °C + 31 °C = 56 °C, well under a typical 150 °C maximum junction temperature.

    Answer: 56 °C

  9. 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
    1. The dissipation: P = (10 A)² × 0.03 Ω = 3 W.
    2. Thermal resistances in series add: 1.5 + 0.5 + 8 = 10 °C/W, so the rise is 3 W × 10 °C/W = 30 °C.
    3. Tj = 25 °C + 30 °C = 55 °C

    Answer: 55 °C

  10. 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
    1. 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.
    2. From P = I² × RDS(on): I = √(0.968 W over 0.05 Ω) = √19.4
    3. I ≈ 4.4 A. Any more and it needs a heatsink or a MOSFET with lower RDS(on).

    Answer: 4.4 A

Build it in a free lesson

“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.

Try it yourself: free lesson

“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 needed

Check it with a calculator

The ideas behind it

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