Tools / MOSFET switch losses and gate drive
How to work out MOSFET switch losses and gate drive
A MOSFET wastes power in two ways: all the time while on (Rds(on)), and a little at every switch. Here are both, with your numbers.
Pcond = I² × Rds(on); tsw ≈ Qg ÷ Ig; Pgate = Qg × Vgs × f
Result
- Total loss
- 344 mW
- Conduction loss
- 200 mW
- Switching loss
- 144 mW
- Voltage drop
- 100 mV
- Gate current peak
- 50 mA
- Switch time
- 300 ns
- Gate drive power
- 1.5 mW
Step by step
The working with your numbers
- Voltage across the MOSFET when on
V = I × Rds(on) = 2 A × 50 mΩ = 100 mV - Conduction loss
P = I² × Rds(on) = 2² × 0.05 = 200 mW - Peak gate current
Ig = Vgs ÷ Rg = 5 ÷ 100 = 50 mAA microcontroller pin gives about 20 mA. More than that needs a gate driver. - Time to move the gate charge
t ≈ Qg ÷ Ig = 15 nC ÷ 50 mA = 300 ns - Switching loss (rise and fall)
P ≈ ½ × Vs × I × (2t) × f = 0.5 × 12 × 2 × 600 ns × 20 kHz = 144 mWA first estimate, because the drain voltage and current overlap for about this long. - Power the driver must supply to the gate
P = Qg × Vgs × f = 15 nC × 5 V × 20 kHz = 1.5 mW
Does the answer make sense?
- OK: 5 V is well above the 2 V threshold, so the channel is fully on.
- Watch out: 50 mA is too much for a microcontroller pin (about 20 mA). Raise Rg or add a gate driver.
- OK: Switching takes about 600 ns each cycle, against a period of 50,000 µs.
- OK: The part dissipates 344 mW in total. Add a heatsink above about 1 W.
Pick a real part
- Pick a logic-level MOSFET (Vgs(th) under 2 V, Rds(on) quoted at 4.5 V) for 3.3 V or 5 V drive, with a rating of at least 2 × 2 A.
- Add a 10 kΩ resistor from gate to ground so it stays off while the microcontroller boots.
- A flyback diode is needed across relays, motors and other coils.
Common mistakes
- Using the datasheet's Rds(on) at 10 V when you drive at 3.3 V. It is much higher at a low drive.
- Forgetting the gate resistor's job. Too small gives ringing and a big current spike, too large makes it switch slowly and hot.
- Switching a motor with no flyback diode.
Learn it, try it, build it
Calculated, not measured. Check the exact part datasheet and your real circuit before powering anything.
Common questions
How do you work out the power a MOSFET dissipates?
Conduction loss is I² × Rds(on). 2 A through 50 mΩ gives 4 × 0.05 = 0.2 W. Add switching loss at higher frequencies, about ½ × V × I × (rise time + fall time) × f.
Why does a MOSFET get hot even with a low Rds(on)?
Either the gate drive is too low so the real Rds(on) is higher than the datasheet figure, or it switches slowly at a high frequency so the voltage and current overlap during each transition.
