Posted in

How to model a DIODE in a circuit?

Hey everyone, thanks for popping in—today we’re diving into something I get asked about all the time here at the diode shop: how to actually model a diode in a circuit, no fancy textbook mumbo jumbo that makes your head spin. I’m gonna keep this real, since I’ve been selling diodes for 8 years now, and half the emails I get are from engineers who just burned up a board because they modeled the diode wrong. Let’s cut to the chase. DIODE

First off, why does modeling even matter? If you slap a random diode onto a board, sure it might work for a prototype, but when you’re scaling production? You gotta make sure it doesn’t overheat, doesn’t fail when the load spikes, and fits within your power budget. I’ve seen guys use the wrong diode model for a regulator circuit, end up with 10k returns because the forward voltage dropped too low and the chip fried. Model right, and you skip that headache.

Let’s start with the basics: what’s a diode’s core model? The old school one is the ideal diode model, right? That’s the “zero voltage drop, infinite current when forward biased, open circuit when reverse biased” thing. It’s quick for initial designs, but it’s garbage for real circuits. Last month, a designer from a robotics firm came to me with a problem: their battery protection circuit kept tripping, and they were using the ideal model for the Schottky diode. Turns out, the forward voltage drop was actually 0.28V, not zero—so their protection threshold was off by enough that it was triggering early. The ideal model’s just a starting point, don’t rely on it for anything beyond sketching a schematic.

Next up is the linear piecewise model. This one’s a step up. It splits the diode into three regions: forward biased below threshold, forward biased above threshold, and reverse biased. For forward biased, you’ve got a turn-on voltage (Vf)—like 0.7V for silicon, 0.2V for Schottky—plus a series resistance (Rs). That Rs is super important, I can’t stress that enough. When current ramps up, the voltage drop isn’t just Vf—it’s Vf + I*Rs. So if you have a 1A current going through a diode with 0.1Ω Rs, that’s an extra 0.1V drop, which adds up to power loss (P = I²Rs). I once sold a batch of 10k Schottkys to a solar inverter company; they had modeled the Rs wrong, so their power loss calculation was off by 5%, which meant their inverter was underperforming. We caught it before production, saved them a ton of cash. The reverse biased part here is just a high resistance, not a perfect open—good enough for low reverse voltage, but if you’re dealing with high reverse bias (like 50V+), you need more.

Then there’s the exponential model, also called the Shockley diode equation. This is the nerd’s go-to for accurate simulations. The formula is I = Is*(e^(qV/(nkT)) – 1). Let me break that down in plain talk: Is is the reverse saturation current (tiny, like 1e-12 A for a small signal diode), q is electron charge, n is the ideality factor (1 for Schottkys, 1-2 for regular silicon), k is Boltzmann’s constant, T is temperature. Why does this matter? Because diodes act different when temperature changes. If your circuit’s gonna run hot (like in a car engine bay, or a power supply), temperature’s a big factor. I had a customer making LED headlights—they were using a standard silicon diode in the reverse polarity protection. When the headlight hit 80°C, the reverse current spiked way higher than their simulation, because Is goes up with temperature. The exponential model accounts for that. But wait, it’s more complex, so it takes longer to simulate—tradeoff between accuracy and speed. For prototyping, you might use the linear model; for production simulation, go exponential.

Wait, don’t forget about real-world effects that most models skip. There’s junction capacitance (Cj)—when the diode switches from forward to reverse, the capacitance affects switching speed. That’s huge for high-frequency circuits, like switch-mode power supplies. If you’re using a diode in a buck converter running at 100kHz, Cj can cause switching losses. I always ask customers what frequency their circuit runs at, because if it’s above 10kHz, they need to include Cj in their model. Then there’s series resistance we talked about, but also thermal resistance (Rth). Diodes get hot, and if you’re not accounting for Rth, your simulation will underestimate junction temperature, leading to overheating and early failure. Last year, a guy from a drone company modeled a diode without Rth, thought it would run at 40°C, but actual was 65°C—his diode died after 10 hours of flight. Oops.

Okay, so how do you actually apply this to a circuit? Let’s walk through a quick example: a simple 5V power supply with a Schottky diode rectifier. First, pick your diode—let’s say a 1A, 20V Schottky (that’s the MBR120, one of our bestsellers). Now, for simulation (I use LTspice, it’s free, everyone should know it), you grab the SPICE model for that diode. Wait, hold up—make sure the SPICE model you use is for the exact part number, not a generic Schottky. Generic models are for “a Schottky”, not the one you’re selling. A lot of engineers grab a generic model, get bad results, blame the diode. That’s a pet peeve of mine. For the MBR120, our SPICE model includes Is, n, Rs, Cj, Rth—all the stuff you need. Plug that into your rectifier circuit, run the transient simulation, check the voltage drop and power loss. If you’re switching at 50kHz, add the Cj parameter to make sure your switching time is correct. If your ambient temp is 50°C, adjust the temperature in the simulation to see if the junction temp stays under the diode’s maximum (for MBR120 it’s 125°C). That’s way better than guessing.

Another example: a reverse polarity protection diode for a battery pack. Let’s say 3.7V Li-ion, so the diode needs to block reverse voltage up to -5V. You can’t use the ideal model here, because when reverse biased, the diode’s leakage current (Ir) matters. A 1N4001 has Ir of like 10µA at 5V reverse, but a Schottky might have higher leakage. If your battery has 1000mAh, 10µA leakage is nothing, but if it’s a tiny coin cell, that can drain it in a week. The linear model’s reverse resistance is (Vreverse/Ir), so you can calculate the leakage, but the exponential model will give you the exact current at different reverse biases. I once had a customer with a wearable device using a coin cell—they modeled the 1N5817 (Schottky) with a linear model, thought leakage was 1µA, but actual was 50µA, so the battery died way before the product’s advertised 6 months. Switched to a 1N4148 (small signal diode) with lower reverse leakage, problem solved.

Now, common mistakes I see all the time: first, using the wrong model for the application. Ideal for high power, exponential for high frequency/temp. Second, ignoring parameters like Rs, Cj, Rth. Third, using a generic SPICE model instead of the part-specific one for your diode. Fourth, not testing the model with real parts. Simulations are great, but you gotta breadboard it too—sometimes the model misses a tiny detail, like lead inductance for surface-mount diodes (SMDs). Wait, right! SMD diodes have lead inductance that affects high-frequency performance. If you’re using an SMD in a 1MHz circuit, add a tiny inductor (like 1nH) in series with the diode model, because the leads have inductance. I learned that the hard way when a customer’s 1MHz converter kept oscillating—turns out they didn’t account for the SMD lead inductance, so their simulation was stable, real circuit wasn’t.

So, what should you do next? If you’re an engineer struggling with circuit simulations, or you just want to make sure your diode choice is right for your design, don’t guess. I’ve got a ton of part-specific SPICE models for all our diodes on our site, but if you’re not finding what you need, hit me up. We don’t just sell diodes—we help you model them right, so your circuits work first time, every time. No more returns, no more late prototypes, no more pulling your hair out because your simulation didn’t match the real world.

Look, I’ve been in this game long enough to know that a good diode model is half the battle. You can have a great circuit design, but if your diode model’s wrong, it’s gonna fail. I’ve fixed more problems with bad diode modeling than with bad component selection, honestly. So do yourself a favor: skip the ideal model for anything beyond a rough sketch, use part-specific models, include all the key parameters, and test with real hardware.

If you’re working on a new design, scaling production, or just confused about which diode model to use for your circuit, reach out to our team for a custom consultation. We’ll walk you through the right model for your application, share SPICE models, and make sure you pick the right diode that fits your needs. No jargon, no pressure—just straight talk about diodes, like we’ve done for thousands of engineers over the years.

Oh, and one last tip: if you’re working with high-temperature environments (automotive, industrial), look for diodes with a wide temperature range, and make sure your model includes temperature coefficients. Diodes behave differently at -40°C vs 125°C, and a good model will account for that. I once had a customer in the automotive industry who used a standard diode, didn’t model temp effects, and their diode failed in cold weather—cost them a big client. Don’t be that guy.

Wait, let’s wrap this up. Modeling a diode isn’t rocket science, but it does require knowing which model fits your circuit. Start simple, level up accuracy as needed, use part-specific parameters, and always validate with real parts. If you need help with any of that, just get in touch to talk through your project. We’re here to make sure your diodes work as hard as you do.

Middle Voltage MOSFETs References:

  1. Shockley, W. (1949). The Theory of p-n Junctions in Semiconductors and p-n Junction Transistors. Bell System Technical Journal.
  2. Antognetti, P., & Massobrio, G. (1988). Semiconductor Device Modeling with SPICE. McGraw-Hill.
  3. Yazdi, N., & Najafi, K. (1998). Characterization and Modeling of Junction Capacitance in Schottky Diodes. IEEE Transactions on Electron Devices.
  4. MBR120 Series Diodes Product Datasheet. (Our Company Diodes Division, 2024).

Tongke Electronic Co., Ltd
Tongke Electronic Co., Ltd. is one of the most experienced diode manufacturers and suppliers in China, featured by quality products and low price. Please rest assured to wholesale advanced diode made in China here from our factory. Contact us for pricelist.
Address: No.3,Chayuan Rd, Street 3, AilingKan, Dalingshan, Dongguan, Guangdong, China.
E-mail: jack@ctk-elec.com
WebSite: https://www.ctkchip.com/