MOSFET Calculator: Switching, Gate Drive, Losses and Linear Region
Introduction
A MOSFET is almost always chosen by reading three lines of the datasheet — VDS, ID, RDS(on) — and it almost always fails because of one of the lines nobody read. The rated current is given with the case held at 25 °C, which never happens on the bench; RDS(on) is given at one specific VGS, and below that voltage the manufacturer guarantees nothing; the gate charge decides how long the part spends halfway between on and off, and that is where it really heats up.
This page lines those rows up. At the top you choose the part — twelve models preloaded from the manufacturers’ datasheets, or your own data by hand — and the thermal mounting. The cards below use the same parameters: the first one works out the switch in conduction, the second the gate drive, the third puts the PWM losses together. Then the two loads that do damage at turn-off and turn-on, inductive and capacitive, and finally the linear region, where the MOSFET works as an amplifier or a current source.
Every junction temperature is a real equilibrium: RDS(on) rises with temperature, power rises with RDS(on), and the calculation looks for the point where the two settle. If that point does not exist, it says so: that is thermal runaway, and a plausible number in its place would be the worst thing the tool could give you.
| Quantity | Relation | Used in |
|---|---|---|
| Conduction | \( P_{cond} = I_D^2\,R_{DS(on)}(T_J) \) | Card 1, 3 |
| Junction temperature | \( T_J = T_a + P(T_J)\,R_{\theta} \) | All cards |
| RDS(on) drift | \( R_{DS(on)}(T) = R_{DS(on)}(25\,^\circ\mathrm{C})\;k_{125}^{\,(T-25)/100} \) | Card 1, 3 |
| Miller plateau | \( V_{pl} = V_{th} + \sqrt{2 I_D / K}, \quad K = \dfrac{g_{fs}^2}{2 I_{D,g_{fs}}} \) | Card 2, 5, 6, 7 |
| Time on the plateau | \( t_{fv} = \dfrac{Q_{gd}\,R_G}{V_{on} – V_{pl}} \) | Card 2, 3 |
| Switching with an inductive load | \( E_{on} + E_{off} = \tfrac12 V_{DD} I_D\,(t_{ri}+t_{fv}+t_{rv}+t_{fi}) \) | Card 3 |
| Energy when a coil is switched off | \( E = \tfrac12 L I_0^2 \) (plus what VDD supplies in avalanche) | Card 4 |
| Inrush current with a ramp | \( I = C\,\dfrac{V_{DD}}{t_r}, \quad E_{MOS} = \tfrac12 C V_{DD}^2 \) | Card 5 |
Part and mounting
The fields are filled in from the chosen part and stay editable: as soon as you change one, the selector switches to “manual”, because the number is no longer the datasheet’s. An empty field is a value the manufacturer does not publish or that has not been read: it is not estimated, and the quantities depending on it show “—”.
The RDS(on) row takes up to three points, at the VGS values the datasheet guarantees it for. Between points the calculation interpolates with the channel law, R ∝ 1/(VGS − Vth); below the lowest point it extrapolates, and flags it with a ≈ in front of every result.
Where K, the temperature coefficient and the magnitudes come from
K, the square-law parameter, is not published by power MOSFET manufacturers. Here it is derived from the transconductance: in saturation \( g_m = \sqrt{2 K I_D} \), so \( K = g_{fs}^2/(2 I_D) \) at the current gfs is measured at. It holds well near that current and gets steadily worse further away.
The ratio between RDS(on) at 125 °C and at 25 °C is read from the table when the manufacturer gives it at two temperatures (2N7000, AO3400A, AO3401A), or by eye from the normalized curve (IRLZ44N, IRF9540N). For the others the field is empty and the calculation uses 1.6, a typical silicon value, which the note under the part declares.
For P-channel parts all voltages and currents are magnitudes: VGS = 10 V means the gate 10 V below the source.
Card 1 — Switch in conduction
This card tells you whether the MOSFET can carry the load statically, held on. All the power is conduction loss, ID²·RDS(on), but the RDS(on) to use is the one at the temperature the part actually reaches, not the one printed on the first page: at 125 °C it is one and a half times higher or more. The calculation finds the equilibrium temperature and shows it together with the check that confirms it.
The drive VGS is where most mistakes happen. An IRFZ44N driven at 5 V by a microcontroller has no guaranteed RDS(on): the datasheet gives it only at 10 V, and the threshold goes up to 4 V. Try 5 V with the IRFZ44N and then with the IRLZ44N, its logic-level version: the second one has three guaranteed points, 5 V among them.
In a P-channel high side, VGS equals VDD if the gate is pulled to ground: above the 20 V absolute maximum you need a Zener between gate and source. In an N-channel high side the gate must sit VGS above VDD, and the card gives you the minimum bootstrap capacitor so that the gate charge does not discharge it by more than the ΔV you accept.
The rated ID is with the case at 25 °C: it is a limit of the silicon and the bond wires, not a current the part carries in free air. The real limit is TJ.
Card 2 — Gate drive and switching times
A MOSFET gate draws no DC current, but changing its state means moving a charge onto it. The driver moves it through the gate resistance, and the time this takes is the time the MOSFET dissipates: voltage and current present together.
Turn-on with an inductive load has four phases. First the gate rises to the threshold and nothing happens (delay); then the current rises to ID while VDS stays at VDD, because the freewheeling diode does not let go until the MOSFET carries all the current; then the voltage falls, and here the gate stops on the Miller plateau, because all the driver current goes into discharging Cgd. Turn-off is the same film run backwards.
The plateau is the number to watch. With a 5 V driver and a 4 V plateau, only 1 V is left on the plateau to push current into the gate, and the times stretch accordingly: that is why a “10 V” MOSFET driven at 5 V runs hot even when it conducts.
The model’s approximations
The plateau comes from the square law with K derived from gfs. The gate times use Ciss as a constant capacitance, which is only partly true: Ciss is given at a VDS of 15–25 V and grows as VDS falls. Qgd is scaled with √VDD from the datasheet voltage, as an abrupt junction.
The total charge at Von is the datasheet Qg corrected with Ciss for the voltage difference. For International Rectifier parts the datasheet Qg is the maximum, for the others the typical: the note under the part says which.
Card 3 — PWM: losses and temperature
In PWM the losses split into two families that go in opposite directions. Conduction depends on the duty cycle and on RDS(on), not on frequency; switching is a fixed energy per cycle, so it grows linearly with frequency. The chart stacks them from 1 kHz to 1 MHz: where the switching curve crosses the conduction curve, the part or the gate drive is no longer the right one.
Two more items are usually forgotten. The Coss discharge: at every turn-on the energy stored in the output capacitance is dissipated in the channel, and it matters at high voltage. The gate drive: the power Qg·ΔV·f is paid by the driver, and only the share across the internal RG ends up in the MOSFET.
The RθSA at the bottom is the heatsink you need to stay at the TJ you choose: for proper sizing there is the thermal design and heatsink calculator.
The resistive load uses linear overlap of voltage and current, VDD·ID·t/6 per transition. Qrr is that of the external freewheeling diode: zero for a Schottky.
Card 4 — Inductive load at turn-off
A coil carrying current is an energy ½LI² waiting to go somewhere. When the MOSFET opens, that energy has to go somewhere, and the voltage rises until it finds a path. There are three possible paths, and the card compares them.
The diode across the coil is the classic protection: the drain rises only VF above VDD, and the energy is dissipated slowly in the coil resistance. The price is slowness: the current decays with the L/R time constant, and a relay protected this way releases late and with less force.
With a Zener in series with the diode, the voltage across the coil rises to VF + VZ, the current dies much sooner and almost all the energy ends up in the Zener; the drain, however, sees VDD + VF + VZ, which must stay below the maximum VDS. With nothing at all, the MOSFET avalanches: it works as long as the energy stays below EAS and the temperature allows it, and for parts that give no EAS it does not work by definition.
How the calculation works and what it checks
After turn-off the current follows \( L\,\frac{di}{dt} = -V_c – R_c\,i \), where Vc is the clamp voltage across the coil (VF, VF + VZ, or VBR − VDD in avalanche). The solution is closed-form, \( t_0 = \tau \ln(1 + I_0 R_c / V_c) \), and the charge that flows is \( (L I_0 – V_c t_0)/R_c \).
In parallel the same equation is integrated with backward Euler, and that is used for the balance: the coil’s initial energy must all be found again between the resistance and the clamp. In avalanche the energy VDD keeps supplying while the current falls also enters the account, which is why the energy in the MOSFET is larger than ½LI²: \( E = \tfrac12 L I_0^2 \, V_{BR}/(V_{BR} – V_{DD}) \) when Rc is negligible.
The effective avalanche voltage is not in the datasheet: the field starts at about 1.3 times the maximum VDS of a 55 V part, but it is an assumption. If you have measured it, enter yours.
Card 5 — Capacitive load: inrush current and soft-start
A discharged capacitor is a short circuit. If the MOSFET closes abruptly, the inrush current is limited only by RDS(on), the ESR and the wiring: hundreds of amperes for an instant, and a supply voltage that collapses for every other load.
One fact does not depend on how you do it: charging a capacitor from a voltage source dissipates in the series resistance exactly the same energy that ends up in the capacitor, ½CV². With a hard turn-on it is shared between MOSFET, ESR and wiring; with a ramp it all ends up in the MOSFET, but spread over a long time and at a current you choose.
The ramp is obtained with a capacitor between gate and drain and a large gate resistance. While the output rises the gate stays pinned at the Miller plateau, the gate current is set by RG, and dV/dt = IG/CGD: the card gives you the capacitor to add for the duration you want.
During the ramp the MOSFET works in the linear region with voltage and current together. The peak-power point has to be checked on the datasheet SOA for the ramp duration: the SOA is a graph, and it is not available here.
Card 6 — Linear region: biasing and common source
| Vth | ID | VDS | Region |
|---|
In the linear region the MOSFET behaves like the BJT in the BJT biasing calculator, with one difference that outweighs all the others: the threshold voltage. Between one device and another of the same model Vth can vary by as much as 2 V, and bias from a divider alone moves the current from zero to tens of milliamperes.
The table under the results shows exactly this: the same network with the datasheet’s minimum, typical and maximum threshold. The source resistance does for the MOSFET what RE does for the BJT — the larger it is, the more the current depends on the network and the less on the part — and you pay for it in gain, unless you bypass it.
For a power MOSFET used as a small-signal amplifier there is also a model limit: the transconductance is measured at tens of amperes, and at a few milliamperes you are working close to threshold, where the square law no longer holds. The 2N7000 and BS170 are the right parts to try it with; the IRF540N is not, and the card says so when the overdrive drops below 150 mV.
λ is not in power MOSFET datasheets: leave it at zero, or enter the value you measured on the output curves.
Card 7 — Current source and electronic load
This is the circuit of the bench electronic load and of the power-LED driver. The op-amp closes the loop on RS, and the MOSFET only has to absorb the difference between Vin and the drop across RS: all that voltage, times the current, becomes heat.
The card gives the two voltages that decide whether the circuit works: the one the op-amp must apply to the gate with a maximum-threshold device, and the lowest Vin at which the current stays at the set value. At the bottom, the highest Vin before reaching the maximum TJ with the mounting chosen at the top.
Why the datasheet PD is not enough here
Modern MOSFETs are optimized for switching. In the linear region, at high voltage and low current, the temperature coefficient of the current becomes positive: a region of the die that heats up conducts more and heats up further. This is the instability visible on the DC line of the SOA, which for many trench parts lies far below rated power. For an electronic load, choose parts rated for linear operation, or keep well inside the SOA.
Preloaded parts and sources
| Model | Channel | Package | VDS | ID | RDS(on) max | VGS(th) | Qg | RθJA |
|---|
The model name opens the manufacturer’s datasheet in a new window: every value was read from there. Where a value is missing or has not been verified, the field stays empty. For SOT-23 parts RθJA is the one on the test board with a copper pad: on your board it can be very different.