Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
Q&A Is using different valued bypass capacitors a cargo cult? Should I do it because that's what everybody else does?

If capacitors were ideal, then you would only need a single one as close between the power and ground pins as you can manage. 100 nF is generally sufficient, since the capacitor is only for holdin...

posted 1y ago by Olin Lathrop‭

Answer
#1: Initial revision by user avatar Olin Lathrop‭ · 2025-09-01T14:33:26Z (about 1 year ago)
If capacitors were ideal, then you would only need a single one as close between the power and ground pins as you can manage.  100 nF is generally sufficient, since the capacitor is only for holding the voltage steady during short-term events.  Over the longer term, the power feed from the more distant supply catches up.

However, real capacitors are not ideal.  They all have a frequency above which they no longer act like capacitors.  Their impedance actually goes up with increased frequency after that point, whereas the impedance of an ideal capacitor decreases with increasing frequency forever.

It turns out that capacitors with a lower capacitance value can be made to work to higher frequencies.  The impedance of a 1 nF capacitor is 100 times higher than that of a 100 nF capacitor when both are functioning like capacitors.  However, at some frequency the impedance of the 100 nF cap will start going up with higher frequency, whereas that of the 1 nF continues to go down.  The result is that there are some frequencies where the 1 nF cap actually has lower impedance than the 100 nF cap.  Therefore paralleling the two keeps the impedance low over a wider frequency range.

For most ordinary microcontrollers, a single 100 nF or even 1 &micro;F cap on each power pin is good enough.  Note that today's 1 &micro;F multi-layer ceramic surface mount caps have less impedance across the whole frequency range than the common 100 nF leaded disk caps from the 1980s where they were placed next to every thru-hole digital chip.

In some cases the extra high frequency range from paralleling caps with different characteristics actually matters.  About 20 years ago, I specified a particular model of 100 pF cap as the first (closest) bypass cap to an RF chip that would handle over 400 MHz.  I carefully looked at a bunch of datasheets to find the cap with the lowest impedance at that frequency.

So why do you seem to get contrary results?  First, you really should be looking at this in the frequency domain.  The size of a glitch from a time domain simulator doesn't mean much.  Second, knowing all the real-world non-ideal characteristics of your caps, the board traces, and the dielectric of the board if practically impossible.  Third, these effects are very short.  Was your simulator really set up to correctly model things that change meaningfully at sub-nanosecond times?

Get your nose out of the simulator and think about the real world instead.