Skip to content
Electronics 16 min read

MOSFET Gate Resistor Value: How to Choose It (With Math)

Observation recorded
Cinematic poster of a silicon carbide integrated circuit chip with gold bond wires in a ceramic package, with the title "The Gate Resistor" in large condensed type and the line "How many ohms, and why.".

Drive an IRLZ44N from a 12 V gate driver with no gate resistor and a reasonably tidy 2 cm layout, and the gate does not stop at 12 V. In our simulation it overshoots to 16.4 V within 20 ns, then rings at 27 MHz. The part's absolute maximum gate-source voltage is ±16 V. Nothing on the schematic looks wrong. The problem is two components that are not on the schematic at all: the inductance of the gate loop and the capacitance of the gate itself.

Most advice on gate resistors is either a magic number ("use 10 Ω", "use 220 Ω") or a hand wave about "limiting current". Both numbers can be right, for completely different reasons. This post separates the two cases and gives you the calculation for each.

Quick answerWith a gate driver, pick the gate resistor so the gate loop is damped: Rtotal=(1.4 to 2)Lloop/CissR_{\mathrm{total}} = (1.4\text{ to }2)\sqrt{L_{\mathrm{loop}}/C_{\mathrm{iss}}}, typically 2 to 10 Ω. Driven from a microcontroller pin, pick 100 to 220 Ω to keep pin current under its limit. Then check that switching loss at your PWM frequency is acceptable.
Infographic: What gate resistor does a MOSFET need? A TO-220 IRLZ44N with a 3.3 Ω resistor on its gate leg. From a 12 V driver with no resistor, the gate overshoots to 16.4 V, past its ±16 V rating, and rings at 27 MHz. A chart of gate voltage over 80 ns shows 0 Ω ringing above the 16 V line, 3.3 Ω giving a fast clean edge, and 15 Ω a slow one. 3.3 to 4.7 Ω damps the loop; 220 Ω holds an Arduino pin to 19 mA. Tiles: 27.3 MHz ring; 125 mA pin spike with no resistor; 0.057 W switching loss at 20 kHz. Myth: the resistor damps the loop or protects the pin, not the MOSFET.
Tap the image to view it full size. View the accessible, editable SVG.

What is a MOSFET gate, electrically?

To the circuit driving it, a MOSFET gate looks like a capacitor. The IRLZ44N datasheet lists an input capacitance Ciss of 1,700 pF and a total gate charge of up to 48 nC. To turn the transistor on you must push that charge in; to turn it off you must pull it out. The faster you want to switch, the larger the current.

That capacitor is not connected by ideal wires. The gate current flows out of the driver, along a trace, through the gate lead and bond wire, across the gate oxide, and back through the source lead and a ground return to the driver. Every millimetre of that loop has inductance. The IRLZ44N datasheet quotes 7.5 nH of internal source inductance alone. PCB rules of thumb put a trace at roughly 0.5 to 1 nH per millimetre, depending on how close its return path runs. A total gate loop of 10 to 40 nH is normal for a through-hole part on a small board.

Schematic of a MOSFET gate drive loop: a driver with about 2 ohm output resistance, an external gate resistor, the loop inductance from traces and leads, the internal gate resistance and the 1.7 nanofarad input capacitance of an IRLZ44N, with a 10 to 100 kilohm pulldown resistor from gate to source and the return path through the source.
Figure 1. The gate drive loop as the physics sees it. The driver's output resistance, the external gate resistor RG, the internal gate resistance, the loop inductance and Ciss form a series RLC circuit. The pulldown Rpd is large enough to ignore for the dynamics.

A resistor, an inductor and a capacitor in series: that is the textbook RLC circuit, and the gate resistor is the only part of it you get to choose freely.

The misconception: “the gate resistor limits current to protect the MOSFET”

You will read that a gate resistor "protects the MOSFET from too much current". The MOSFET's gate does not care how much current flows into it; gate current is just charge arriving at a capacitor. What the resistor actually does depends on what is driving the gate:

  • With a gate driver IC (amps of peak current, ohms of output resistance), the gate resistor mainly damps the RLC loop so the gate voltage does not overshoot and ring. It also sets switching speed, which matters for EMI and losses.
  • With a microcontroller pin (tens of milliamps, tens of ohms), the loop is already heavily damped by the pin's own resistance. Here the resistor protects the pin, not the MOSFET, by limiting the current spike when the gate charges.

A second, related myth: "more gate resistance is always safer". Past the point of critical damping, extra resistance only slows the edges, and slow edges cost heat in the MOSFET. We will quantify that below.

How do you calculate the gate resistor for damping?

For a series RLC circuit, the damping ratio is:

ζ=Rtotal2CLRtotal=Rdriver+RG+RG,int\begin{aligned}\zeta &= \frac{R_{\mathrm{total}}}{2}\sqrt{\frac{C}{L}} \\ R_{\mathrm{total}} &= R_{\mathrm{driver}} + R_G + R_{G,\mathrm{int}}\end{aligned}

ζ < 1 is underdamped (overshoot and ringing). ζ = 1 is critically damped, the fastest edge with no overshoot. ζ = 0.7 gives about 4.6% overshoot and is slightly faster than ζ = 1.

Setting ζ = 1 gives Texas Instruments' recommended value from its gate-driver application report SLUA618: RGATE,OPT=2LS/CISS−(RDRV+RG,I)R_{\mathrm{GATE,OPT}} = 2\sqrt{L_S/C_{\mathrm{ISS}}} - (R_{\mathrm{DRV}} + R_{G,I}). Many designers aim slightly lower, around ζ = 0.7, and accept a few percent of overshoot for faster switching.

Worked example: IRLZ44N with a 12 V gate driver

Numbers: Ciss = 1,700 pF (IRLZ44N datasheet, typical). Loop inductance L = 20 nH, our estimate of 7.5 nH of package source inductance plus about 15 mm of loop path at roughly 0.8 nH/mm. Driver: a Microchip TC4420, with a typical source (high-side) output resistance of 2.1 Ω. The IRLZ44N datasheet does not specify its internal gate resistance, so we leave it out; that errs toward choosing a slightly larger external resistor.

Step 1. Characteristic impedance of the loop

L/C=20 nH1.7 nF=11.76=3.43 Ω\sqrt{L/C} = \sqrt{\frac{20\ \mathrm{nH}}{1.7\ \mathrm{nF}}} = \sqrt{11.76} = 3.43\ \Omega

Step 2. Natural frequency (what you would see ringing)

f0=12πLC=12π20×10−9×1.7×10−9=27.3 MHz\begin{aligned}f_0 &= \frac{1}{2\pi\sqrt{LC}} \\ &= \frac{1}{2\pi\sqrt{20{\times}10^{-9} \times 1.7{\times}10^{-9}}} \\ &= \mathbf{27.3\ MHz}\end{aligned}

Step 3. Damping with no external resistor

ζ=2.121.7/20=1.05×0.2915=0.31overshoot=exp⁡ ⁣(−πζ1−ζ2)=exp⁡(−0.962/0.952)=36%VGS,peak=12×1.36=16.4 V\begin{aligned}\zeta &= \tfrac{2.1}{2}\sqrt{1.7/20} = 1.05 \times 0.2915 \\ &= 0.31 \\ \text{overshoot} &= \exp\!\left(\frac{-\pi\zeta}{\sqrt{1 - \zeta^2}}\right) \\ &= \exp(-0.962/0.952) = 36\% \\ V_{GS,\mathrm{peak}} &= 12 \times 1.36 = \mathbf{16.4\ V}\end{aligned}

That is above the ±16 V rating.

Step 4. Total R for the target damping

ζ=0.7: Rtotal=1.4×3.43=4.8 ΩRG=4.8−2.1=2.7 Ωζ=1.0: Rtotal=2×3.43=6.9 ΩRG=6.9−2.1=4.8 Ω\begin{aligned}\zeta = 0.7:\ R_{\mathrm{total}} &= 1.4 \times 3.43 = 4.8\ \Omega \\ R_G &= 4.8 - 2.1 = 2.7\ \Omega \\ \zeta = 1.0:\ R_{\mathrm{total}} &= 2 \times 3.43 = 6.9\ \Omega \\ R_G &= 6.9 - 2.1 = 4.8\ \Omega\end{aligned}

Choice: 3.3 Ω to 4.7 Ω (ζ = 0.79 to 0.99, overshoot 1.8% to 0%)

Simulated gate-source voltage versus time for a 12 volt step. With no external gate resistor the voltage overshoots to 16.4 volts at about 20 nanoseconds, above the 16 volt maximum, and rings. With 2.7 ohms it peaks at 12.6 volts, with 4.7 ohms it rises cleanly to 12 volts, and with 15 ohms it rises slowly over about 100 nanoseconds.
Figure 2. Gate voltage after a 12 V step, simulated by integrating the series RLC equations with L = 20 nH and Ciss = 1.7 nF. This isolates the loop dynamics; in a real switching event the Miller plateau interrupts the rise, but the overshoot at the end of the edge behaves the same way.

Figure 2 shows why the exact value matters less than being in the right zone. Between 2.7 Ω and 4.7 Ω the edge is fast and clean. At 0 Ω it is fast and dangerous. At 15 Ω it is safe and slow, and slow costs power.

How sensitive is this to the inductance you guessed?

The weak point of the calculation is L. You rarely know it to better than a factor of two. Fortunately the required resistance scales with √L, so a factor of two in inductance changes the answer by only 41%.

Damping ratio versus total gate loop resistance from 0 to 20 ohms for loop inductances of 10, 20 and 40 nanohenries with 1.7 nanofarad input capacitance. A green band marks damping ratio 0.7 to 1, crossed at about 3.4 to 4.9 ohms for 10 nanohenries, 4.8 to 6.9 ohms for 20 nanohenries and 6.8 to 9.7 ohms for 40 nanohenries.
Figure 3. Damping ratio versus total loop resistance for three loop inductances. The target band (ζ = 0.7 to 1) needs about 3.4 to 4.9 Ω total at 10 nH, 4.8 to 6.9 Ω at 20 nH and 6.8 to 9.7 Ω at 40 nH. A layout that doubles the loop area pushes you one line to the right.

The practical procedure: compute RG for your best guess of L, build it, and look at the gate with a scope using a short ground spring on the probe. If you see ringing, increase RG one or two E12 steps. The better fix, when you can, is to shrink the loop: put the driver right next to the MOSFET and run the gate trace directly over its return.

What does a bigger gate resistor cost you?

Every ohm you add stretches the switching transition, and during the transition the MOSFET carries current and blocks voltage at the same time. The standard first-order estimate uses the charge that must move during the transition (roughly half of Qgs plus all of Qgd) and the gate current available at the Miller plateau voltage Vpl:

Qsw≈Qgs/2+Qgd=8.6/2+25=29.3 nCton≈QswRtotalVdrive−Vpltoff≈QswRtotalVplPsw≈12VDSID(ton+toff)f\begin{aligned}Q_{sw} &\approx Q_{gs}/2 + Q_{gd} \\ &= 8.6/2 + 25 = 29.3\ \mathrm{nC} \\ t_{\mathrm{on}} &\approx \frac{Q_{sw} R_{\mathrm{total}}}{V_{\mathrm{drive}} - V_{pl}} \\ t_{\mathrm{off}} &\approx \frac{Q_{sw} R_{\mathrm{total}}}{V_{pl}} \\ P_{sw} &\approx \tfrac12 V_{DS} I_D (t_{\mathrm{on}} + t_{\mathrm{off}}) f\end{aligned}

Gate charges from the IRLZ44N datasheet.

For a load of 12 V at 5 A, the IRLZ44N transfer curve puts Vpl near 2.7 V. One caveat: the datasheet measures Qgd at VDS = 44 V, so at 12 V the real Miller charge is smaller and these losses are on the pessimistic side.

Gate driver, RG = 4.7 Ω, 20 kHz

Rtotal=4.7+2.1=6.8 Ωton=29.3 nC×6.8/(12−2.7)=21 nstoff=29.3 nC×6.8/2.7=74 nsPsw=0.5×12×5×95 ns×20 k=0.057 W\begin{aligned}R_{\mathrm{total}} &= 4.7 + 2.1 = 6.8\ \Omega \\ t_{\mathrm{on}} &= 29.3\,\mathrm{nC} \times 6.8/(12 - 2.7) \\ &= 21\ \mathrm{ns} \\ t_{\mathrm{off}} &= 29.3\,\mathrm{nC} \times 6.8/2.7 = 74\ \mathrm{ns} \\ P_{sw} &= 0.5 \times 12 \times 5 \times 95\,\mathrm{ns} \times 20\,\mathrm{k} \\ &= \mathbf{0.057\ W}\end{aligned}

Compare the conduction loss at full duty: (5 A)2×25 mΩ=0.63 W(5\ \mathrm{A})^2 \times 25\ \mathrm{m\Omega} = 0.63\ \mathrm{W}.

Log-log plot of estimated switching loss versus external gate resistor from 1 to 1000 ohms for an IRLZ44N switching 12 volts at 5 amps. With a 12 volt driver at 20 kilohertz, 4.7 ohms gives 0.06 watts. From a 5 volt microcontroller pin with about 40 ohms of output resistance, 220 ohms gives 0.09 watts at 490 hertz but 3.7 watts at 20 kilohertz. A dashed line marks 0.63 watts of conduction loss.
Figure 4. Estimated switching loss versus external gate resistor, from the gate-charge model above. Pin drive at 490 Hz is cheap even with 220 Ω. The same pin at 20 kHz loses more in switching than in conduction, at any resistor value, because the pin's own 40 Ω is already too slow.

Figure 4 contains the most useful lesson in this post. With a proper driver, the gate resistor that gives good damping (a few ohms) also keeps switching loss small compared with conduction loss. From a microcontroller pin, the switching loss is dominated by the pin itself, and the only real decision is the PWM frequency. At Arduino's default 490 Hz, fine. Above a few kilohertz with amps of load, use a driver.

What gate resistor should you use with an Arduino or other microcontroller?

An ATmega328P output pin is guaranteed to hold within 0.8 V of the rail while sinking 20 mA at 5 V, which implies an output resistance of up to about 40 Ω. The per-pin absolute maximum is 40 mA DC.

Peak gate current at the moment of switching (gate at 0 V, pin at 5 V)

no resistor: 5/40≈125 mA100 Ω: 5/(100+40)=36 mA220 Ω: 5/(220+40)=19 mA\begin{aligned}\text{no resistor}:&\ 5/40 \approx 125\ \mathrm{mA} \\ 100\ \Omega:&\ 5/(100 + 40) = 36\ \mathrm{mA} \\ 220\ \Omega:&\ 5/(220 + 40) = \mathbf{19\ mA}\end{aligned}

With no resistor the current is limited only by the pin.

Damping with 220 Ω (L = 20 nH, C = 1.7 nF)

ζ=2602×0.2915=38\zeta = \tfrac{260}{2} \times 0.2915 = 38

Very overdamped, so no ringing is possible.

Switching time and loss at 490 Hz, 12 V 5 A load

ton=29.3 nC×260/2.3=3.3 μstoff=29.3 nC×260/2.7=2.8 μsPsw=0.5×12×5×6.1 μs×490=0.09 W\begin{aligned}t_{\mathrm{on}} &= 29.3\,\mathrm{nC} \times 260/2.3 = 3.3\ \mu\mathrm{s} \\ t_{\mathrm{off}} &= 29.3\,\mathrm{nC} \times 260/2.7 = 2.8\ \mu\mathrm{s} \\ P_{sw} &= 0.5 \times 12 \times 5 \times 6.1\,\mu\mathrm{s} \times 490 \\ &= \mathbf{0.09\ W}\end{aligned}

Is the 125 mA spike with no resistor actually destructive? It lasts well under a microsecond and Microchip rates the pin for DC, so in practice pins usually survive it. But it is a stress you are imposing for no benefit, and it couples a sharp current spike into the microcontroller's ground. A 100 to 220 Ω resistor is the boring, correct answer. Arduino's analogWrite() runs at about 490 Hz on most Uno pins (980 Hz on pins 5 and 6), so the slower edges cost almost nothing.

One more check: logic-level drive. The IRLZ44N specifies RDS(on) at VGS = 5 V (25 mΩ) and 4 V (35 mΩ). Plenty of popular MOSFETs, like the IRFZ44N without the "L", only specify it at 10 V and will run hot from a 5 V pin no matter what resistor you choose.

Why does a MOSFET need a gate pulldown resistor?

The pulldown (10 to 100 kΩ from gate to source) is about what happens when nobody is driving. During power-up, reset or firmware flashing, microcontroller pins are high-impedance inputs. The gate, a well-insulated capacitor, will then sit at whatever voltage leakage, capacitive coupling from the drain, or a stray finger puts on it. A MOSFET half on with 12 V across it and amps available can dissipate enough to fail.

Two details that tutorials skip:

  • Where it goes. Put it on the MOSFET side of the gate resistor, from gate to source. That way it holds the gate even if the series resistor or the connection to the driver is open. With 220 Ω in series and 10 kΩ to ground, the gate reaches 5 × 10,000 / 10,220 = 4.89 V, a negligible loss.
  • Why it cannot replace a driver. On its own a 10 kΩ pulldown discharges 1.7 nF with a time constant of 17 µs, and the full gate charge takes longer still. It is a safety net for the undriven state, not a turn-off mechanism.
Rule-of-thumb summary. Gate driver IC: RG=(1.4 to 2)L/CissR_G = (1.4\text{ to }2)\sqrt{L/C_{\mathrm{iss}}} minus driver resistance, usually 2 to 10 Ω, then verify on a scope. Microcontroller pin: 100 to 220 Ω, low PWM frequency, logic-level MOSFET. Always: a 10 to 100 kΩ pulldown at the gate.

FAQ

What value gate resistor should I use for a MOSFET?

With a dedicated gate driver, choose the total loop resistance for a damping ratio of 0.7 to 1: Rtotal=(1.4 to 2)Lloop/CissR_{\mathrm{total}} = (1.4\text{ to }2)\sqrt{L_{\mathrm{loop}}/C_{\mathrm{iss}}}, then subtract the driver and internal gate resistance. That usually lands between 2 and 10 Ω. Driven straight from a microcontroller pin, use 100 to 220 Ω to keep the pin current within its rating.

Do I need a gate resistor for a MOSFET driven by an Arduino?

It is strongly recommended. Without one, the gate capacitance draws a current spike limited only by the pin's own output resistance, roughly 40 Ω on an ATmega328P, which is well above the 40 mA absolute maximum per pin. A 220 Ω resistor limits the peak to about 19 mA and costs almost nothing in switching loss at the default 490 Hz PWM.

What does the pulldown resistor on a MOSFET gate do?

It holds the gate at 0 V when the driver is not driving, for example while a microcontroller is in reset and its pins are high-impedance inputs. Without it the gate can float or charge from leakage and noise, half-turning the MOSFET on. Values of 10 to 100 kΩ are typical.

Why does my MOSFET gate ring?

The gate drive path has inductance from traces, leads and the package, and the MOSFET input is a capacitance. Together they form a series LC circuit that resonates, typically at tens of megahertz. If the loop resistance is too low the resonance is underdamped and the gate voltage overshoots and rings.

Sources

  1. International Rectifier / Infineon, IRLZ44NPbF datasheet (Ciss 1,700 pF, Qg 48 nC, Qgs 8.6 nC, Qgd 25 nC at VDS = 44 V, LS 7.5 nH, VGS ±16 V, RDS(on) 25 mΩ at 5 V, transfer characteristics): infineon.com/dgdl/irlz44npbf.pdf
  2. L. Balogh, Texas Instruments SLUA618A, "Fundamentals of MOSFET and IGBT Gate Driver Circuits" (gate-drive resonant circuit, Equation 15 for RGATE,OPT): ti.com/lit/pdf/slua618
  3. Microchip TC4420/TC4429 6 A MOSFET driver datasheet (output resistance 2.1 Ω typ high, 1.5 Ω typ low): microchip.com/en-us/product/TC4420
  4. Microchip (Atmel), ATmega328P datasheet 7810D, DC characteristics (VOL 0.8 V at 20 mA, VOH 4.1 V at −20 mA, 5 V) and absolute maximum ratings (40 mA per I/O pin): ww1.microchip.com ATmega328P datasheet PDF
  5. Arduino language reference, analogWrite() PWM frequencies (490 Hz, 980 Hz on Uno pins 5 and 6): reference.arduino.cc analogWrite
  6. Altium, "PCB Trace Inductance Calculation: How Wide is Too Wide?" (typical 5 to 10 nH per inch of trace): resources.altium.com

Method note: step responses are a numerical integration of the linear series RLC equations; switching losses use the first-order gate-charge model with datasheet charges. Loop inductance is an estimate; measure your own gate waveform before finalizing a design.

Header image: NASA (image GRC-2015-C-00595), regraded for this article.

Related observations
Electronics 555 Timer Frequency Formula: Where 1.44 Comes From Projects Building Your Own Quadcopter Drone: Essential Parts and Specifications in India Electronics Button Debounce Capacitor Value: How to Size the RC
Transmit